summaryrefslogtreecommitdiff
path: root/lang/jdk/Makefile
diff options
context:
space:
mode:
authoragc <agc@pkgsrc.org>2001-02-09 17:48:39 +0000
committeragc <agc@pkgsrc.org>2001-02-09 17:48:39 +0000
commitac6a7d3a2bcf418685b77e31da8779d2b81eaf31 (patch)
treee4153f5656467c1cd1e388641b967a9567b7945d /lang/jdk/Makefile
parent318b41ac3338a4e294d43cac7be6b94284de5d12 (diff)
downloadpkgsrc-ac6a7d3a2bcf418685b77e31da8779d2b81eaf31.tar.gz
+ Create the symlinks relative to the cwd, so that we don't get erroneous
pathnames in there. + Treat libXm separately from the rest of the libs, since (a) it needs a separate "intermediate" symlink as well, even for ELF libs, and (b) it uses a completely different version number from the rest of the libs, for obvious reasons
Diffstat (limited to 'lang/jdk/Makefile')
-rw-r--r--lang/jdk/Makefile11
1 files changed, 7 insertions, 4 deletions
diff --git a/lang/jdk/Makefile b/lang/jdk/Makefile
index ba9c7324eda..29691b782a9 100644
--- a/lang/jdk/Makefile
+++ b/lang/jdk/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.22 2001/02/09 17:02:46 agc Exp $
+# $NetBSD: Makefile,v 1.23 2001/02/09 17:48:39 agc Exp $
#
VERSION= 1.1.8
@@ -49,15 +49,18 @@ NO_BIN_ON_FTP= ${RESTRICTED}
# This gross hack normalizes the shlib names so that automatic
# shared library handling will work.
pre-install:
- @for X in ${WRKSRC}/lib/i386/green_threads/lib*.so ;do \
+ @(cd ${WRKSRC}/lib/i386/green_threads; \
+ ${LN} -s libXm.so libXm.so.2; \
+ for X in lib*.so ;do \
+ if [ "$X" = "libXm.so" ]; then continue; fi; \
if [ -f $$X.* ] ;then \
${MV} $$X $$X.* ; \
${LN} -s $$X.* $$X; \
elif [ -f "$$X" ] ;then \
${MV} $$X $$X.${VERSION} ; \
- ${LN} -s $$X.${VERSION} $$X; \
+ ${LN} -s $$X.${VERSION} $$X; \
fi ; \
- done
+ done)
.endif
do-install: