aboutsummaryrefslogtreecommitdiff
path: root/lang/gcc44
diff options
context:
space:
mode:
authorGerald Pfeifer <gerald@FreeBSD.org>2014-01-25 19:34:26 +0000
committerGerald Pfeifer <gerald@FreeBSD.org>2014-01-25 19:34:26 +0000
commit9c067a521a9c3137c92c6c0684802429ca26d240 (patch)
treef06d69ce2817feb0a7a69658f7d35c658d621a30 /lang/gcc44
parentbe1d3f697a06c3a4b4e4f11afc685df2accd96c5 (diff)
downloadports-9c067a521a9c3137c92c6c0684802429ca26d240.tar.gz
ports-9c067a521a9c3137c92c6c0684802429ca26d240.zip
Notes
Diffstat (limited to 'lang/gcc44')
-rw-r--r--lang/gcc44/Makefile27
-rw-r--r--lang/gcc44/pkg-plist7
2 files changed, 17 insertions, 17 deletions
diff --git a/lang/gcc44/Makefile b/lang/gcc44/Makefile
index 5156ad688d8b..074ab1f5b52c 100644
--- a/lang/gcc44/Makefile
+++ b/lang/gcc44/Makefile
@@ -6,7 +6,7 @@ PORTVERSION= 4.4.7
PORTEPOCH= 1
CATEGORIES= lang
MASTER_SITES= ${MASTER_SITE_GCC}
-MASTER_SITE_SUBDIR= releases/gcc-${VERSIONSTRING}
+MASTER_SITE_SUBDIR= releases/gcc-${DISTVERSION}
DISTNAME= gcc-${DISTVERSION}
MAINTAINER= gerald@FreeBSD.org
@@ -16,13 +16,16 @@ LIB_DEPENDS= libgmp.so:${PORTSDIR}/math/gmp \
libmpfr.so:${PORTSDIR}/math/mpfr
RUN_DEPENDS+= ${LOCALBASE}/bin/as:${PORTSDIR}/devel/binutils
-DEPRECATED= Superseded by GCC 4.6, only kept for the sake of cad/salome
+DEPRECATED= Superseded by GCC 4.6
-VERSIONSTRING= ${PORTVERSION}
+# DISTVERSION relates to downloads, GCC_VERSION and SUFFIX to names
+# of executables and directories once installed.
+DISTVERSION= ${PORTVERSION}
+GCC_VERSION= ${PORTVERSION:C/(.+)\.[0-9]{8}/\1/}
SUFFIX= ${PORTVERSION:C/([0-9]+).([0-9]+).*/\1\2/}
ONLY_FOR_ARCHS= amd64 i386 sparc64
USE_BINUTILS= yes
-USES= bison gmake iconv perl5
+USES= gmake iconv perl5
USE_BZIP2= yes
USE_PERL5= build
SSP_UNSAFE= yes
@@ -30,7 +33,6 @@ SSP_UNSAFE= yes
PATCH_WRKSRC= ${SRCDIR}
CONFIGURE_SCRIPT= ../${SRCDIR:S/${WRKDIR}\///}/configure
-NO_STAGE= yes
.include <bsd.port.pre.mk>
.if ${ARCH} == "amd64"
@@ -39,7 +41,7 @@ CONFIGURE_TARGET= x86_64-portbld-${OPSYS:L}${OSREL}
CONFIGURE_TARGET= ${ARCH}-portbld-${OPSYS:L}${OSREL}
.endif
-SRCDIR= ${WRKDIR}/gcc-${VERSIONSTRING}
+SRCDIR= ${WRKDIR}/gcc-${DISTVERSION}
WRKSRC= ${WRKDIR}/build
TARGLIB= ${PREFIX}/lib/gcc${SUFFIX}
LIBEXEC= ${PREFIX}/libexec/gcc${SUFFIX}
@@ -61,14 +63,9 @@ CONFIGURE_ARGS+=--disable-bootstrap \
--with-system-zlib
MAKE_ARGS+= MAKEINFOFLAGS="--no-split"
USE_LDCONFIG= ${TARGLIB}
-PLIST_SUB= GCC_VER=${PORTVERSION} \
+PLIST_SUB= GCC_VERSION=${GCC_VERSION} \
GNU_HOST=${CONFIGURE_TARGET} \
SUFFIX=${SUFFIX}
-MAN1= cpp${SUFFIX}.1 \
- g++${SUFFIX}.1 \
- gcc${SUFFIX}.1 \
- gcov${SUFFIX}.1 \
- gfortran${SUFFIX}.1
INFO= gcc${SUFFIX}/cpp \
gcc${SUFFIX}/cppinternals \
gcc${SUFFIX}/gcc \
@@ -86,13 +83,11 @@ pre-configure:
@${MKDIR} ${CONFIGURE_WRKSRC}
post-install:
- ${RM} -f ${PREFIX}/man/man7/fsf-funding.7 \
- ${PREFIX}/man/man7/gfdl.7 ${PREFIX}/man/man7/gpl.7
- ${RM} -f ${TARGLIB}/*.la
+ ${RM} -f ${STAGEDIR}${TARGLIB}/*.la
# Add target libraries and include files to packaging list.
${RM} -f ${WRKDIR}/PLIST.lib
.for d in ${TARGLIB:S/^${PREFIX}\///} ${LIBEXEC:S/^${PREFIX}\///}
- cd ${PREFIX} ; if [ -d $d ]; then \
+ cd ${STAGEDIR}${PREFIX} ; if [ -d $d ]; then \
${FIND} $d -type f -o -type l >>${WRKDIR}/PLIST.lib ;\
${FIND} $d -type d | ${SORT} -r \
| ${SED} -e 's/^/@dirrm /g' >>${WRKDIR}/PLIST.lib ;\
diff --git a/lang/gcc44/pkg-plist b/lang/gcc44/pkg-plist
index 089b913eb62d..e7ccb0126182 100644
--- a/lang/gcc44/pkg-plist
+++ b/lang/gcc44/pkg-plist
@@ -1,7 +1,7 @@
bin/%%GNU_HOST%%-c++%%SUFFIX%%
bin/%%GNU_HOST%%-g++%%SUFFIX%%
bin/%%GNU_HOST%%-gcc%%SUFFIX%%
-bin/%%GNU_HOST%%-gcc-%%GCC_VER%%
+bin/%%GNU_HOST%%-gcc-%%GCC_VERSION%%
bin/%%GNU_HOST%%-gfortran%%SUFFIX%%
bin/c++%%SUFFIX%%
bin/cpp%%SUFFIX%%
@@ -11,4 +11,9 @@ bin/gccbug%%SUFFIX%%
bin/gcov%%SUFFIX%%
bin/gfortran%%SUFFIX%%
info/gcc%%SUFFIX%%/dir
+man/man1/cpp%%SUFFIX%%.1.gz
+man/man1/g++%%SUFFIX%%.1.gz
+man/man1/gcc%%SUFFIX%%.1.gz
+man/man1/gcov%%SUFFIX%%.1.gz
+man/man1/gfortran%%SUFFIX%%.1.gz
@comment Insert PLIST.lib here