diff options
author | dirk <dirk@FreeBSD.org> | 1998-12-28 02:43:33 +0800 |
---|---|---|
committer | dirk <dirk@FreeBSD.org> | 1998-12-28 02:43:33 +0800 |
commit | 05c5b72de75337662ee0974089b1a3a0099224ed (patch) | |
tree | 10c38e769727c0a704ca14fa36ddfa675c390d75 /x11-toolkits | |
parent | b2b57fcb77829ce9df88e10cb9a3a00939fc0ae6 (diff) | |
download | freebsd-ports-gnome-05c5b72de75337662ee0974089b1a3a0099224ed.tar.gz freebsd-ports-gnome-05c5b72de75337662ee0974089b1a3a0099224ed.tar.zst freebsd-ports-gnome-05c5b72de75337662ee0974089b1a3a0099224ed.zip |
Fix soname for ELF.
This is a quick and dirty temporary fix only.
I'll ask the author to use the correct soname in the distribution.
PR: ports/9042
Diffstat (limited to 'x11-toolkits')
-rw-r--r-- | x11-toolkits/xforms/Makefile | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/x11-toolkits/xforms/Makefile b/x11-toolkits/xforms/Makefile index fff059208a4f..faa95fe5b0e0 100644 --- a/x11-toolkits/xforms/Makefile +++ b/x11-toolkits/xforms/Makefile @@ -3,7 +3,7 @@ # Date created: 28 March 1997 # Whom: gena # -# $Id: Makefile,v 1.20 1998/11/02 04:35:07 jseger Exp $ +# $Id: Makefile,v 1.21 1998/11/11 05:37:39 asami Exp $ # USE_X_PREFIX= yes @@ -30,7 +30,21 @@ WRKSRC= ${WRKDIR}/xforms MAN1= fdesign.1 fd2ps.1 MAN5= xforms.5 +# XXX: ask the author to include the right soname +.if ${PORTOBJFORMAT} == "elf" +.if !exists(/usr/bin/perl5) +pre-fetch: + @${ECHO} "Need perl5 to patch soname" + @${FALSE} +.endif +.endif + post-install: +# XXX: ask the author to include the right soname +.if ${PORTOBJFORMAT} == "elf" + /usr/bin/perl5 -pe 's/libforms.so.0.88/libxforms.so.0\000\000/' < ${PREFIX}/lib/libxforms.so.0 > ${PREFIX}/lib/libxforms.so.0.tmp + ${MV} ${PREFIX}/lib/libxforms.so.0.tmp ${PREFIX}/lib/libxforms.so.0 +.endif ${LDCONFIG} -m ${PREFIX}/lib .if !defined(NOMANCOMPRESS) @${RM} ${PREFIX}/man/man5/forms.5 |