aboutsummaryrefslogtreecommitdiffstats
path: root/lang
diff options
context:
space:
mode:
authorobrien <obrien@FreeBSD.org>2001-01-08 05:59:01 +0800
committerobrien <obrien@FreeBSD.org>2001-01-08 05:59:01 +0800
commit5cc8e47a92230876bb2464aab515e4dfe19597c1 (patch)
tree161deaeda808be2266d71b6ac82f0cb79afa0b55 /lang
parent40550f8a2b9848bb6cbad559aaa7ba35b5845598 (diff)
downloadfreebsd-ports-gnome-5cc8e47a92230876bb2464aab515e4dfe19597c1.tar.gz
freebsd-ports-gnome-5cc8e47a92230876bb2464aab515e4dfe19597c1.tar.zst
freebsd-ports-gnome-5cc8e47a92230876bb2464aab515e4dfe19597c1.zip
Introduce `TARGLIB' from gcc-devel to clean this thing up.
Also change the ELF vs. aout logic so other formats can be targeted.
Diffstat (limited to 'lang')
-rw-r--r--lang/gcc295/Makefile32
1 files changed, 16 insertions, 16 deletions
diff --git a/lang/gcc295/Makefile b/lang/gcc295/Makefile
index 39185c612dda..6f755d093748 100644
--- a/lang/gcc295/Makefile
+++ b/lang/gcc295/Makefile
@@ -30,19 +30,21 @@ MAINTAINER= obrien@FreeBSD.org
.include <bsd.port.pre.mk>
GCC_REV= ${DISTNAME:S/gcc-//g:S/.test1//g}
+TARGLIB= ${PREFIX}/lib/gcc-lib/${CONFIGURE_TARGET}/${GCC_REV}
LIBSTDCPP_REV= 2100
-.if ${PORTOBJFORMAT} == "elf"
-CONFIGURE_TARGET= ${ARCH}-portbld-freebsd${OSREL}
-.else
+.if ${PORTOBJFORMAT} == "aout"
CONFIGURE_TARGET= ${ARCH}-portbld-freebsdaout${OSREL}
+.else
+CONFIGURE_TARGET= ${ARCH}-portbld-freebsd${OSREL}
.endif
PLIST_SUB+= EGCS_REV=${GCC_REV} GNU_HOST=${CONFIGURE_TARGET}
GNU_CONFIGURE= yes
USE_GMAKE= yes
CONFIGURE_ARGS= --with-gnu-as --with-gnu-ld \
- --with-gxx-include-dir=${PREFIX}/lib/gcc-lib/${CONFIGURE_TARGET}/${GCC_REV}/include/g++
+ --with-gxx-include-dir=${TARGLIB}/include/g++
+#CONFIGURE_ARGS+= --program-suffix=-2.95.3
.if defined(WANT_SHAREDLIBS)
CONFIGURE_ARGS+= --enable-shared
.endif
@@ -77,12 +79,12 @@ post-install:
${PREFIX}/bin/g++filt ${PREFIX}/bin/g77 ${PREFIX}/bin/gcov \
${PREFIX}/bin/protoize ${PREFIX}/bin/unprotoize \
${PREFIX}/bin/${CONFIGURE_TARGET}-gcc \
- ${PREFIX}/lib/gcc-lib/${CONFIGURE_TARGET}/${GCC_REV}/cc1 \
- ${PREFIX}/lib/gcc-lib/${CONFIGURE_TARGET}/${GCC_REV}/cc1obj \
- ${PREFIX}/lib/gcc-lib/${CONFIGURE_TARGET}/${GCC_REV}/cc1plus \
- ${PREFIX}/lib/gcc-lib/${CONFIGURE_TARGET}/${GCC_REV}/cpp0 \
- ${PREFIX}/lib/gcc-lib/${CONFIGURE_TARGET}/${GCC_REV}/collect2 \
- ${PREFIX}/lib/gcc-lib/${CONFIGURE_TARGET}/${GCC_REV}/f771 ; \
+ ${TARGLIB}/cc1 \
+ ${TARGLIB}/cc1obj \
+ ${TARGLIB}/cc1plus \
+ ${TARGLIB}/cpp0 \
+ ${TARGLIB}/collect2 \
+ ${TARGLIB}/f771 ; \
do \
strip $$prog ; \
done)
@@ -91,22 +93,20 @@ post-install:
${MV} ${PREFIX}/bin/g77 ${PREFIX}/bin/g77
${MV} ${PREFIX}/bin/g++filt ${PREFIX}/bin/g++filt295
${RM} -f ${PREFIX}/bin/cpp
- ${MV} ${PREFIX}/lib/libiberty.a \
- ${PREFIX}/lib/gcc-lib/${CONFIGURE_TARGET}/${GCC_REV}
+ ${MV} ${PREFIX}/lib/libiberty.a ${TARGLIB}
${MV} -f ${PREFIX}/lib/libstdc++.a.${LIBSTDCPP_REV} \
- ${PREFIX}/lib/gcc-lib/${CONFIGURE_TARGET}/${GCC_REV}/libstdc++.a
+ ${TARGLIB}/libstdc++.a
${MV} ${PREFIX}/man/man1/gcc.1 ${PREFIX}/man/man1/gcc295.1
${MV} ${PREFIX}/man/man1/g++.1 ${PREFIX}/man/man1/g++295.1
${MV} ${PREFIX}/man/man1/g77.1 ${PREFIX}/man/man1/g77.1
.if defined(WANT_SHAREDLIBS)
- ${MV} -f ${PREFIX}/lib/libstdc++.so* \
- ${PREFIX}/lib/gcc-lib/${CONFIGURE_TARGET}/${GCC_REV}
+ ${MV} -f ${PREFIX}/lib/libstdc++.so* ${TARGLIB}
.endif
.for info in cpp g77 gcc
install-info ${PREFIX}/info/${info}.info ${PREFIX}/info/dir
.endfor
cd ${PREFIX} ;\
- find lib/gcc-lib/${CONFIGURE_TARGET}/${EGCS_REV} \
+ find lib/gcc-lib/${CONFIGURE_TARGET}/${GCC_REV} \
-type f -o -type l >${WRKDIR}/PLIST.gcc-lib
${ECHO} "r ${TMPPLIST}" > ${WRKDIR}/ex.script
${ECHO} "/Insert PLIST.gcc-lib" >> ${WRKDIR}/ex.script