1) COMMENT can be overrritten by a slave port (suggested by obrien)

2) Option WANT_SHAREDLIBS now uses ldconfig, so LIB_DEPENDS work.
   fix PLIST so critical file libgcc_s.so.1 is included.
   no response from obrien since 2003-03-31
Approved by:	gerald
This commit is contained in:
Dirk Meyer 2003-04-13 06:05:49 +00:00
parent 4e1bacd096
commit 81c16ac79d
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=78843

View File

@ -24,7 +24,7 @@ DISTFILES= gcc-core-${PORTVERSION}${EXTRACT_SUFX} \
gcc-objc-${PORTVERSION}${EXTRACT_SUFX}
MAINTAINER= gerald@FreeBSD.org
COMMENT= GNU Compiler Collection 3.2.2
COMMENT?= GNU Compiler Collection 3.2.2
.if defined (WITH_BOUNDSCHECKING)
# Fetch another file, but don't extract it. Also add another patchfile.
@ -68,6 +68,9 @@ CONFIGURE_ARGS+= --with-system-zlib --includedir=${TARGLIB}/include/Java
CONFIGURE_ENV= MAKEINFO="makeinfo --no-split"
.if defined(WANT_SHAREDLIBS)
CONFIGURE_ARGS+= --enable-shared
INSTALLS_SHLIB= yes
LDCONFIG_DIRS= %%PREFIX%%/lib ${TARGLIB}
EXTRA_SHLIB= libgcc_s
.else
CONFIGURE_ARGS+= --disable-shared
.endif
@ -173,7 +176,7 @@ post-install:
${MV} -f ${PREFIX}/bin/gccbug ${PREFIX}/bin/gccbug-${PORTVERSION}
# These 3 libraries are moved from PREFIX/lib to avoid conflicts
# with the stock compiler.
.for file in libstdc++ libsupc++ libg2c libfrtbegin libobjc
.for file in libstdc++ libsupc++ libg2c libfrtbegin libobjc ${EXTRA_SHLIB}
${MV} -f ${PREFIX}/lib/${file}.* ${TARGLIB}
.endfor
-${MV} -f ${PREFIX}/lib/ieee ${TARGLIB}