summaryrefslogtreecommitdiff
path: root/emulators
diff options
context:
space:
mode:
authorjschauma <jschauma@pkgsrc.org>2002-10-14 14:35:23 +0000
committerjschauma <jschauma@pkgsrc.org>2002-10-14 14:35:23 +0000
commitabdbe10c856e70db986cfbd1d1cde279407eda20 (patch)
treeae15022f93945144606728e7bee01845463a2c4c /emulators
parentdb34f0b75d35bdde60d73d18acf3009e73fce2a4 (diff)
downloadpkgsrc-abdbe10c856e70db986cfbd1d1cde279407eda20.tar.gz
Add post-install target to create symlinks from foo.so to foo.so.major.
This addresses problem #3 in PR pkg/18606.
Diffstat (limited to 'emulators')
-rw-r--r--emulators/suse_x11/Makefile14
1 files changed, 13 insertions, 1 deletions
diff --git a/emulators/suse_x11/Makefile b/emulators/suse_x11/Makefile
index ad874ad7896..ab25b906d27 100644
--- a/emulators/suse_x11/Makefile
+++ b/emulators/suse_x11/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.19 2002/08/25 21:49:50 jlam Exp $
+# $NetBSD: Makefile,v 1.20 2002/10/14 14:35:23 jschauma Exp $
DISTNAME= suse_x11-${SUSE_VERSION}
PKGREVISION= 2
@@ -33,4 +33,16 @@ RPMIGNOREPATH= usr/X11R6/bin usr/X11R6/include \
usr/X11R6/lib/X11/x11perfcomp
.endif
+post-install:
+ @${GREP} "^@exec.*.so" ${PLIST_SRC} | \
+ ${SED} -e 's,.*/\(.*\.so\)\.\([0-9]\),@exec ${LN} -sf \
+ \1.\2 %D/${EMULSUBDIR}/usr/X11R6/lib/\1,' \
+ >> ${PLIST_SRC}
+ @${GREP} "^@unexec rm -f" ${PLIST_SRC} | \
+ ${SED} -e 's,\(.*\)\.[0-9],\1,' >> ${PLIST_SRC}
+ @for link in `${GREP} "^@exec ln.*.so" ${PLIST_SRC} | \
+ ${SED} -e 's,.*/\(.*\.so\.[0-9]\),\1,'`; do \
+ cd ${EMULDIR}/usr/X11R6/lib && ${LN} -sf $$link $${link%.[0-9]}; \
+ done
+
.include "../suse_linux/Makefile.common"