aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorobrien <obrien@FreeBSD.org>2000-12-06 04:58:15 +0800
committerobrien <obrien@FreeBSD.org>2000-12-06 04:58:15 +0800
commit62e6e92a67abc0d2e28e321b394ef8edb0e82ecc (patch)
tree9168c36981a08cc4531cf0661f53e7324e479be0
parent3e240f47f4a227561b4f7286c8f3799b0ccea94b (diff)
downloadfreebsd-ports-gnome-62e6e92a67abc0d2e28e321b394ef8edb0e82ecc.tar.gz
freebsd-ports-gnome-62e6e92a67abc0d2e28e321b394ef8edb0e82ecc.tar.zst
freebsd-ports-gnome-62e6e92a67abc0d2e28e321b394ef8edb0e82ecc.zip
Do dynamic PLIST creation like the `gcc-devel' port. This is the easiest
way to deal with the differing results fix-includes gives depending on the FreeBSD version this port is built on.
-rw-r--r--lang/egcs/Makefile17
-rw-r--r--lang/egcs/pkg-plist181
2 files changed, 13 insertions, 185 deletions
diff --git a/lang/egcs/Makefile b/lang/egcs/Makefile
index 251b63a8935d..2ca594174e0b 100644
--- a/lang/egcs/Makefile
+++ b/lang/egcs/Makefile
@@ -28,12 +28,8 @@ USE_BZIP2= yes
.include <bsd.port.pre.mk>
EGCS_REV= egcs-2.91.66
-LIBSTDCPP_REV= 2.9.0
.if ${PORTOBJFORMAT} == "elf"
-.if ${MACHINE_ARCH} == "i386"
-PLIST= ${WRKDIR}/PLIST
-.endif
CONFIGURE_TARGET= ${ARCH}-portbld-freebsd${OSREL}
.else
CONFIGURE_TARGET= ${ARCH}-portbld-freebsdaout${OSREL}
@@ -65,9 +61,6 @@ pre-configure:
@(MAJ=`sysctl -n kern.osreldate | ${SED} -e '/.....$$/s///'` ; \
${SED} -e "s:__FreeBSD__:__FreeBSD__=$${MAJ}:" ${FILESDIR}/freebsd.h \
>${WRKSRC}/gcc/config/freebsd.h )
-.if ${PORTOBJFORMAT} == "elf" && ${MACHINE_ARCH} == "i386"
- @${SED} -e 's/^@comment ELF-only://' ${PKGDIR}/pkg-plist >${PLIST}
-.endif
pre-install:
${MKDIR} ${PREFIX}/info
@@ -100,5 +93,15 @@ post-install:
.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} \
+ -type f -o -type l >${WRKDIR}/PLIST.gcc-lib
+ ${ECHO} "r ${TMPPLIST}" > ${WRKDIR}/ex.script
+ ${ECHO} "/Insert PLIST.gcc-lib" >> ${WRKDIR}/ex.script
+ ${ECHO} "d" >> ${WRKDIR}/ex.script
+ ${ECHO} "r ${WRKDIR}/PLIST.gcc-lib" >> ${WRKDIR}/ex.script
+ ${ECHO} "x!" >> ${WRKDIR}/ex.script
+ ${CP} -p ${TMPPLIST} ${TMPPLIST}.pre-gcc-lib
+ cd ${WRKDIR} ; ex < ex.script
.include <bsd.port.post.mk>
diff --git a/lang/egcs/pkg-plist b/lang/egcs/pkg-plist
index 0c1c86753fa7..f234cb6a451f 100644
--- a/lang/egcs/pkg-plist
+++ b/lang/egcs/pkg-plist
@@ -12,143 +12,9 @@ bin/unprotoize
%%GNU_HOST%%/include/_G_config.h
%%GNU_HOST%%/include/assert.h
%%GNU_HOST%%/lib/libiberty.a
-lib/gcc-lib/%%GNU_HOST%%/%%EGCS_REV%%/include/g++/PlotFile.h
-lib/gcc-lib/%%GNU_HOST%%/%%EGCS_REV%%/include/g++/SFile.h
-lib/gcc-lib/%%GNU_HOST%%/%%EGCS_REV%%/include/g++/algo.h
-lib/gcc-lib/%%GNU_HOST%%/%%EGCS_REV%%/include/g++/algobase.h
-lib/gcc-lib/%%GNU_HOST%%/%%EGCS_REV%%/include/g++/algorithm
-lib/gcc-lib/%%GNU_HOST%%/%%EGCS_REV%%/include/g++/alloc.h
-lib/gcc-lib/%%GNU_HOST%%/%%EGCS_REV%%/include/g++/builtinbuf.h
-lib/gcc-lib/%%GNU_HOST%%/%%EGCS_REV%%/include/g++/bvector.h
-lib/gcc-lib/%%GNU_HOST%%/%%EGCS_REV%%/include/g++/cassert
-lib/gcc-lib/%%GNU_HOST%%/%%EGCS_REV%%/include/g++/cctype
-lib/gcc-lib/%%GNU_HOST%%/%%EGCS_REV%%/include/g++/cerrno
-lib/gcc-lib/%%GNU_HOST%%/%%EGCS_REV%%/include/g++/cfloat
-lib/gcc-lib/%%GNU_HOST%%/%%EGCS_REV%%/include/g++/ciso646
-lib/gcc-lib/%%GNU_HOST%%/%%EGCS_REV%%/include/g++/climits
-lib/gcc-lib/%%GNU_HOST%%/%%EGCS_REV%%/include/g++/clocale
-lib/gcc-lib/%%GNU_HOST%%/%%EGCS_REV%%/include/g++/cmath
-lib/gcc-lib/%%GNU_HOST%%/%%EGCS_REV%%/include/g++/complex
-lib/gcc-lib/%%GNU_HOST%%/%%EGCS_REV%%/include/g++/complex.h
-lib/gcc-lib/%%GNU_HOST%%/%%EGCS_REV%%/include/g++/csetjmp
-lib/gcc-lib/%%GNU_HOST%%/%%EGCS_REV%%/include/g++/csignal
-lib/gcc-lib/%%GNU_HOST%%/%%EGCS_REV%%/include/g++/cstdarg
-lib/gcc-lib/%%GNU_HOST%%/%%EGCS_REV%%/include/g++/cstddef
-lib/gcc-lib/%%GNU_HOST%%/%%EGCS_REV%%/include/g++/cstdio
-lib/gcc-lib/%%GNU_HOST%%/%%EGCS_REV%%/include/g++/cstdlib
-lib/gcc-lib/%%GNU_HOST%%/%%EGCS_REV%%/include/g++/cstring
-lib/gcc-lib/%%GNU_HOST%%/%%EGCS_REV%%/include/g++/ctime
-lib/gcc-lib/%%GNU_HOST%%/%%EGCS_REV%%/include/g++/cwchar
-lib/gcc-lib/%%GNU_HOST%%/%%EGCS_REV%%/include/g++/cwctype
-lib/gcc-lib/%%GNU_HOST%%/%%EGCS_REV%%/include/g++/defalloc.h
-lib/gcc-lib/%%GNU_HOST%%/%%EGCS_REV%%/include/g++/deque
-lib/gcc-lib/%%GNU_HOST%%/%%EGCS_REV%%/include/g++/deque.h
-lib/gcc-lib/%%GNU_HOST%%/%%EGCS_REV%%/include/g++/dummy.h
-lib/gcc-lib/%%GNU_HOST%%/%%EGCS_REV%%/include/g++/editbuf.h
-lib/gcc-lib/%%GNU_HOST%%/%%EGCS_REV%%/include/g++/floatio.h
-lib/gcc-lib/%%GNU_HOST%%/%%EGCS_REV%%/include/g++/fstream
-lib/gcc-lib/%%GNU_HOST%%/%%EGCS_REV%%/include/g++/fstream.h
-lib/gcc-lib/%%GNU_HOST%%/%%EGCS_REV%%/include/g++/function.h
-lib/gcc-lib/%%GNU_HOST%%/%%EGCS_REV%%/include/g++/functional
-lib/gcc-lib/%%GNU_HOST%%/%%EGCS_REV%%/include/g++/hash_map
-lib/gcc-lib/%%GNU_HOST%%/%%EGCS_REV%%/include/g++/hash_map.h
-lib/gcc-lib/%%GNU_HOST%%/%%EGCS_REV%%/include/g++/hash_set
-lib/gcc-lib/%%GNU_HOST%%/%%EGCS_REV%%/include/g++/hash_set.h
-lib/gcc-lib/%%GNU_HOST%%/%%EGCS_REV%%/include/g++/hashtable.h
-lib/gcc-lib/%%GNU_HOST%%/%%EGCS_REV%%/include/g++/heap.h
-lib/gcc-lib/%%GNU_HOST%%/%%EGCS_REV%%/include/g++/indstream.h
-lib/gcc-lib/%%GNU_HOST%%/%%EGCS_REV%%/include/g++/iolibio.h
-lib/gcc-lib/%%GNU_HOST%%/%%EGCS_REV%%/include/g++/iomanip
-lib/gcc-lib/%%GNU_HOST%%/%%EGCS_REV%%/include/g++/iomanip.h
-lib/gcc-lib/%%GNU_HOST%%/%%EGCS_REV%%/include/g++/iosfwd
-lib/gcc-lib/%%GNU_HOST%%/%%EGCS_REV%%/include/g++/iostdio.h
-lib/gcc-lib/%%GNU_HOST%%/%%EGCS_REV%%/include/g++/iostream
-lib/gcc-lib/%%GNU_HOST%%/%%EGCS_REV%%/include/g++/iostream.h
-lib/gcc-lib/%%GNU_HOST%%/%%EGCS_REV%%/include/g++/iostreamP.h
-lib/gcc-lib/%%GNU_HOST%%/%%EGCS_REV%%/include/g++/istream.h
-lib/gcc-lib/%%GNU_HOST%%/%%EGCS_REV%%/include/g++/iterator
-lib/gcc-lib/%%GNU_HOST%%/%%EGCS_REV%%/include/g++/iterator.h
-lib/gcc-lib/%%GNU_HOST%%/%%EGCS_REV%%/include/g++/libio.h
-lib/gcc-lib/%%GNU_HOST%%/%%EGCS_REV%%/include/g++/libioP.h
-lib/gcc-lib/%%GNU_HOST%%/%%EGCS_REV%%/include/g++/list
-lib/gcc-lib/%%GNU_HOST%%/%%EGCS_REV%%/include/g++/list.h
-lib/gcc-lib/%%GNU_HOST%%/%%EGCS_REV%%/include/g++/map
-lib/gcc-lib/%%GNU_HOST%%/%%EGCS_REV%%/include/g++/map.h
-lib/gcc-lib/%%GNU_HOST%%/%%EGCS_REV%%/include/g++/memory
-lib/gcc-lib/%%GNU_HOST%%/%%EGCS_REV%%/include/g++/multimap.h
-lib/gcc-lib/%%GNU_HOST%%/%%EGCS_REV%%/include/g++/multiset.h
-lib/gcc-lib/%%GNU_HOST%%/%%EGCS_REV%%/include/g++/numeric
-lib/gcc-lib/%%GNU_HOST%%/%%EGCS_REV%%/include/g++/ostream.h
-lib/gcc-lib/%%GNU_HOST%%/%%EGCS_REV%%/include/g++/pair.h
-lib/gcc-lib/%%GNU_HOST%%/%%EGCS_REV%%/include/g++/parsestream.h
-lib/gcc-lib/%%GNU_HOST%%/%%EGCS_REV%%/include/g++/pfstream.h
-lib/gcc-lib/%%GNU_HOST%%/%%EGCS_REV%%/include/g++/procbuf.h
-lib/gcc-lib/%%GNU_HOST%%/%%EGCS_REV%%/include/g++/pthread_alloc
-lib/gcc-lib/%%GNU_HOST%%/%%EGCS_REV%%/include/g++/pthread_alloc.h
-lib/gcc-lib/%%GNU_HOST%%/%%EGCS_REV%%/include/g++/queue
-lib/gcc-lib/%%GNU_HOST%%/%%EGCS_REV%%/include/g++/rope
-lib/gcc-lib/%%GNU_HOST%%/%%EGCS_REV%%/include/g++/rope.h
-lib/gcc-lib/%%GNU_HOST%%/%%EGCS_REV%%/include/g++/ropeimpl.h
-lib/gcc-lib/%%GNU_HOST%%/%%EGCS_REV%%/include/g++/set
-lib/gcc-lib/%%GNU_HOST%%/%%EGCS_REV%%/include/g++/set.h
-lib/gcc-lib/%%GNU_HOST%%/%%EGCS_REV%%/include/g++/slist
-lib/gcc-lib/%%GNU_HOST%%/%%EGCS_REV%%/include/g++/slist.h
-lib/gcc-lib/%%GNU_HOST%%/%%EGCS_REV%%/include/g++/stack
-lib/gcc-lib/%%GNU_HOST%%/%%EGCS_REV%%/include/g++/stack.h
-lib/gcc-lib/%%GNU_HOST%%/%%EGCS_REV%%/include/g++/std/bastring.cc
-lib/gcc-lib/%%GNU_HOST%%/%%EGCS_REV%%/include/g++/std/bastring.h
-lib/gcc-lib/%%GNU_HOST%%/%%EGCS_REV%%/include/g++/std/complext.cc
-lib/gcc-lib/%%GNU_HOST%%/%%EGCS_REV%%/include/g++/std/complext.h
-lib/gcc-lib/%%GNU_HOST%%/%%EGCS_REV%%/include/g++/std/dcomplex.h
-lib/gcc-lib/%%GNU_HOST%%/%%EGCS_REV%%/include/g++/std/fcomplex.h
-lib/gcc-lib/%%GNU_HOST%%/%%EGCS_REV%%/include/g++/std/ldcomplex.h
-lib/gcc-lib/%%GNU_HOST%%/%%EGCS_REV%%/include/g++/std/straits.h
-lib/gcc-lib/%%GNU_HOST%%/%%EGCS_REV%%/include/g++/stdexcept
-lib/gcc-lib/%%GNU_HOST%%/%%EGCS_REV%%/include/g++/stdiostream.h
-lib/gcc-lib/%%GNU_HOST%%/%%EGCS_REV%%/include/g++/stl.h
-lib/gcc-lib/%%GNU_HOST%%/%%EGCS_REV%%/include/g++/stl_algo.h
-lib/gcc-lib/%%GNU_HOST%%/%%EGCS_REV%%/include/g++/stl_algobase.h
-lib/gcc-lib/%%GNU_HOST%%/%%EGCS_REV%%/include/g++/stl_alloc.h
-lib/gcc-lib/%%GNU_HOST%%/%%EGCS_REV%%/include/g++/stl_bvector.h
-lib/gcc-lib/%%GNU_HOST%%/%%EGCS_REV%%/include/g++/stl_config.h
-lib/gcc-lib/%%GNU_HOST%%/%%EGCS_REV%%/include/g++/stl_construct.h
-lib/gcc-lib/%%GNU_HOST%%/%%EGCS_REV%%/include/g++/stl_deque.h
-lib/gcc-lib/%%GNU_HOST%%/%%EGCS_REV%%/include/g++/stl_function.h
-lib/gcc-lib/%%GNU_HOST%%/%%EGCS_REV%%/include/g++/stl_hash_fun.h
-lib/gcc-lib/%%GNU_HOST%%/%%EGCS_REV%%/include/g++/stl_hash_map.h
-lib/gcc-lib/%%GNU_HOST%%/%%EGCS_REV%%/include/g++/stl_hash_set.h
-lib/gcc-lib/%%GNU_HOST%%/%%EGCS_REV%%/include/g++/stl_hashtable.h
-lib/gcc-lib/%%GNU_HOST%%/%%EGCS_REV%%/include/g++/stl_heap.h
-lib/gcc-lib/%%GNU_HOST%%/%%EGCS_REV%%/include/g++/stl_iterator.h
-lib/gcc-lib/%%GNU_HOST%%/%%EGCS_REV%%/include/g++/stl_list.h
-lib/gcc-lib/%%GNU_HOST%%/%%EGCS_REV%%/include/g++/stl_map.h
-lib/gcc-lib/%%GNU_HOST%%/%%EGCS_REV%%/include/g++/stl_multimap.h
-lib/gcc-lib/%%GNU_HOST%%/%%EGCS_REV%%/include/g++/stl_multiset.h
-lib/gcc-lib/%%GNU_HOST%%/%%EGCS_REV%%/include/g++/stl_numeric.h
-lib/gcc-lib/%%GNU_HOST%%/%%EGCS_REV%%/include/g++/stl_pair.h
-lib/gcc-lib/%%GNU_HOST%%/%%EGCS_REV%%/include/g++/stl_queue.h
-lib/gcc-lib/%%GNU_HOST%%/%%EGCS_REV%%/include/g++/stl_raw_storage_iter.h
-lib/gcc-lib/%%GNU_HOST%%/%%EGCS_REV%%/include/g++/stl_relops.h
-lib/gcc-lib/%%GNU_HOST%%/%%EGCS_REV%%/include/g++/stl_rope.h
-lib/gcc-lib/%%GNU_HOST%%/%%EGCS_REV%%/include/g++/stl_set.h
-lib/gcc-lib/%%GNU_HOST%%/%%EGCS_REV%%/include/g++/stl_slist.h
-lib/gcc-lib/%%GNU_HOST%%/%%EGCS_REV%%/include/g++/stl_stack.h
-lib/gcc-lib/%%GNU_HOST%%/%%EGCS_REV%%/include/g++/stl_tempbuf.h
-lib/gcc-lib/%%GNU_HOST%%/%%EGCS_REV%%/include/g++/stl_tree.h
-lib/gcc-lib/%%GNU_HOST%%/%%EGCS_REV%%/include/g++/stl_uninitialized.h
-lib/gcc-lib/%%GNU_HOST%%/%%EGCS_REV%%/include/g++/stl_vector.h
-lib/gcc-lib/%%GNU_HOST%%/%%EGCS_REV%%/include/g++/stream.h
-lib/gcc-lib/%%GNU_HOST%%/%%EGCS_REV%%/include/g++/streambuf.h
-lib/gcc-lib/%%GNU_HOST%%/%%EGCS_REV%%/include/g++/strfile.h
-lib/gcc-lib/%%GNU_HOST%%/%%EGCS_REV%%/include/g++/string
-lib/gcc-lib/%%GNU_HOST%%/%%EGCS_REV%%/include/g++/strstream
-lib/gcc-lib/%%GNU_HOST%%/%%EGCS_REV%%/include/g++/strstream.h
-lib/gcc-lib/%%GNU_HOST%%/%%EGCS_REV%%/include/g++/tempbuf.h
-lib/gcc-lib/%%GNU_HOST%%/%%EGCS_REV%%/include/g++/tree.h
-lib/gcc-lib/%%GNU_HOST%%/%%EGCS_REV%%/include/g++/type_traits.h
-lib/gcc-lib/%%GNU_HOST%%/%%EGCS_REV%%/include/g++/utility
-lib/gcc-lib/%%GNU_HOST%%/%%EGCS_REV%%/include/g++/vector
-lib/gcc-lib/%%GNU_HOST%%/%%EGCS_REV%%/include/g++/vector.h
+@comment Insert PLIST.gcc-lib here
+@comment -=[ begin PLIST.gcc-lib ]=-
+@comment -=[ end PLIST.gcc-lib ]=-
@unexec install-info --delete %D/info/gcc.info %D/info/dir
@unexec install-info --delete %D/info/g77.info %D/info/dir
@unexec install-info --delete %D/info/cpp.info %D/info/dir
@@ -210,47 +76,6 @@ info/gcc.info-9
@exec install-info %D/info/cpp.info %D/info/dir
@exec install-info %D/info/g77.info %D/info/dir
@exec install-info %D/info/gcc.info %D/info/dir
-lib/gcc-lib/%%GNU_HOST%%/%%EGCS_REV%%/SYSCALLS.c.X
-lib/gcc-lib/%%GNU_HOST%%/%%EGCS_REV%%/cc1
-lib/gcc-lib/%%GNU_HOST%%/%%EGCS_REV%%/cc1obj
-lib/gcc-lib/%%GNU_HOST%%/%%EGCS_REV%%/cc1plus
-lib/gcc-lib/%%GNU_HOST%%/%%EGCS_REV%%/cpp
-lib/gcc-lib/%%GNU_HOST%%/%%EGCS_REV%%/collect2
-@comment ELF-only:lib/gcc-lib/%%GNU_HOST%%/%%EGCS_REV%%/crtbegin.o
-@comment ELF-only:lib/gcc-lib/%%GNU_HOST%%/%%EGCS_REV%%/crtbeginS.o
-@comment ELF-only:lib/gcc-lib/%%GNU_HOST%%/%%EGCS_REV%%/crtend.o
-@comment ELF-only:lib/gcc-lib/%%GNU_HOST%%/%%EGCS_REV%%/crtendS.o
-lib/gcc-lib/%%GNU_HOST%%/%%EGCS_REV%%/f771
-lib/gcc-lib/%%GNU_HOST%%/%%EGCS_REV%%/include/README
-lib/gcc-lib/%%GNU_HOST%%/%%EGCS_REV%%/include/assert.h
-lib/gcc-lib/%%GNU_HOST%%/%%EGCS_REV%%/include/exception
-lib/gcc-lib/%%GNU_HOST%%/%%EGCS_REV%%/include/float.h
-lib/gcc-lib/%%GNU_HOST%%/%%EGCS_REV%%/include/g2c.h
-lib/gcc-lib/%%GNU_HOST%%/%%EGCS_REV%%/include/limits.h
-lib/gcc-lib/%%GNU_HOST%%/%%EGCS_REV%%/include/math.h
-lib/gcc-lib/%%GNU_HOST%%/%%EGCS_REV%%/include/new
-lib/gcc-lib/%%GNU_HOST%%/%%EGCS_REV%%/include/new.h
-lib/gcc-lib/%%GNU_HOST%%/%%EGCS_REV%%/include/objc/NXConstStr.h
-lib/gcc-lib/%%GNU_HOST%%/%%EGCS_REV%%/include/objc/Object.h
-lib/gcc-lib/%%GNU_HOST%%/%%EGCS_REV%%/include/objc/Protocol.h
-lib/gcc-lib/%%GNU_HOST%%/%%EGCS_REV%%/include/objc/encoding.h
-lib/gcc-lib/%%GNU_HOST%%/%%EGCS_REV%%/include/objc/hash.h
-lib/gcc-lib/%%GNU_HOST%%/%%EGCS_REV%%/include/objc/objc-api.h
-lib/gcc-lib/%%GNU_HOST%%/%%EGCS_REV%%/include/objc/objc-list.h
-lib/gcc-lib/%%GNU_HOST%%/%%EGCS_REV%%/include/objc/objc.h
-lib/gcc-lib/%%GNU_HOST%%/%%EGCS_REV%%/include/objc/sarray.h
-lib/gcc-lib/%%GNU_HOST%%/%%EGCS_REV%%/include/objc/thr.h
-lib/gcc-lib/%%GNU_HOST%%/%%EGCS_REV%%/include/objc/typedstream.h
-lib/gcc-lib/%%GNU_HOST%%/%%EGCS_REV%%/include/syslimits.h
-lib/gcc-lib/%%GNU_HOST%%/%%EGCS_REV%%/include/typeinfo
-lib/gcc-lib/%%GNU_HOST%%/%%EGCS_REV%%/libgcc.a
-lib/gcc-lib/%%GNU_HOST%%/%%EGCS_REV%%/libobjc.a
-lib/gcc-lib/%%GNU_HOST%%/%%EGCS_REV%%/specs
-@comment These 3 libraries are moved from PREFIX/lib to avoid conflicts
-@comment with the stock compiler.
-lib/gcc-lib/%%GNU_HOST%%/%%EGCS_REV%%/libg2c.a
-lib/gcc-lib/%%GNU_HOST%%/%%EGCS_REV%%/libiberty.a
-lib/gcc-lib/%%GNU_HOST%%/%%EGCS_REV%%/libstdc++.a
@dirrm %%GNU_HOST%%/include
@dirrm %%GNU_HOST%%/lib
@dirrm %%GNU_HOST%%