diff options
author | jlam <jlam@pkgsrc.org> | 2003-01-29 11:02:58 +0000 |
---|---|---|
committer | jlam <jlam@pkgsrc.org> | 2003-01-29 11:02:58 +0000 |
commit | 0741df3b43f992002237863f817bc9a8776aa424 (patch) | |
tree | 802cf09070d9e1aa0e76d7145f6440ea5737f23a /lang/blackdown-jdk13/Makefile | |
parent | 75a598f50269a75f68792129e3c7c682d73dcdf8 (diff) | |
download | pkgsrc-0741df3b43f992002237863f817bc9a8776aa424.tar.gz |
Use a more easily scalable method of removing files that are shared with
the JRE package. Also clean up the PLIST so that this package deinstalls
cleanly on i386.
Diffstat (limited to 'lang/blackdown-jdk13/Makefile')
-rw-r--r-- | lang/blackdown-jdk13/Makefile | 23 |
1 files changed, 11 insertions, 12 deletions
diff --git a/lang/blackdown-jdk13/Makefile b/lang/blackdown-jdk13/Makefile index e6902c7aa8d..04dff4efb96 100644 --- a/lang/blackdown-jdk13/Makefile +++ b/lang/blackdown-jdk13/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.16 2002/11/25 14:08:22 schmonz Exp $ +# $NetBSD: Makefile,v 1.17 2003/01/29 11:02:58 jlam Exp $ # BASENAME= j2sdk @@ -11,24 +11,23 @@ DEPENDS= blackdown-jre13>=1:../../lang/blackdown-jre13 .include "../../lang/blackdown-jre13/Makefile.common" -PLIST_SRC= ${PKGDIR}/PLIST +PLIST_SRC= # empty .if ${BLACKDOWN_ARCH} == "i386" PLIST_SRC+= ${PKGDIR}/PLIST.i386 .endif +PLIST_SRC+= ${PKGDIR}/PLIST -# these are part of JRE +# Remove parts that are in common with the JRE. +# post-extract: - cd ${WRKSRC}/jre/bin; \ - for i in * .java_wrapper; do \ - if [ -f $$i ]; then \ - ${RM} -f $$i ${WRKSRC}/bin/$$i; \ - else \ + common=`${SED} -e "s,\\$${BLACKDOWN_ARCH},${BLACKDOWN_ARCH},g" ${FILESDIR}/common | ${AWK} '/^#.*/ { next } /^$$/ { next } { print }'`; \ + cd ${WRKSRC}; for i in $$common; do \ + if [ -d $$i ]; then \ ${RM} -rf $$i; \ - fi \ + else \ + ${RM} -f $$i; \ + fi; \ done - ${RM} -rf ${WRKSRC}/jre - ${RM} -f ${WRKSRC}/LICENSE ${WRKSRC}/CHANGES \ - ${WRKSRC}/COPYRIGHT ${WRKSRC}/README ${WRKSRC}/INSTALL .include "../../mk/bsd.pkg.mk" |