call for lightweight GNU C++ runtime port

Nikolai Lifanov lifanov at mail.lifanov.com
Mon Dec 30 21:59:36 UTC 2013


Observing woes of Opera, VirtualBox, and the like, there needs to be a
port that just includes libstdc++ from lang/gcc46 or compatible in a way
that doesn't conflict with gcc.

It's common in Linux land (and pkgsrc) to have a gcc-libs package, so I
propose something along these lines. This also allows for more liberal
use, since libstdc++ carries a Runtime Library Exception license.

How about something along the lines of this?

PORTNAME=       libstdc++46
PORTVERSION=    4.6.4
CATEGORIES=     misc
COMMENT=        GCC 4.6 C++ runtime library
MASTER_SITES=   http://pkg.freebsd.org/${DIST_SUBDIR}/latest/All/
DISTNAME=       gcc-${PORTVERSION}
EXTRACT_SUFX=   .txz

.if !defined(ARCH)
ARCH!=          uname -p
.endif

.if ${ARCH} == i386
DIST_SUBDIR=    freebsd:${OSREL:C/\..*//}:x86:32
.endif

.if ${ARCH} == amd64
DIST_SUBDIR=    freebsd:${OSREL:C/\..*//}:x86:64
.endif

LICENSE_TEXT=   GPLv3 with Runtime Library Exception

ONLY_FOR_ARCHS= amd64 i386

USE_LDCONFIG=   ${PREFIX}/lib/${PORTNAME}
NO_BUILD=       yes

.....actually installing that one file......

This could also be a slave of lang/gcc46 or something else entirely.

- Nikolai Lifanov


More information about the freebsd-ports mailing list