summaryrefslogtreecommitdiffstats
path: root/x11-toolkits/xforms
diff options
context:
space:
mode:
authordirk <dirk@FreeBSD.org>1998-12-27 18:43:33 +0000
committerdirk <dirk@FreeBSD.org>1998-12-27 18:43:33 +0000
commit05c5b72de75337662ee0974089b1a3a0099224ed (patch)
tree10c38e769727c0a704ca14fa36ddfa675c390d75 /x11-toolkits/xforms
parentb2b57fcb77829ce9df88e10cb9a3a00939fc0ae6 (diff)
downloadFreeBSD-ports-05c5b72de75337662ee0974089b1a3a0099224ed.zip
FreeBSD-ports-05c5b72de75337662ee0974089b1a3a0099224ed.tar.gz
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/xforms')
-rw-r--r--x11-toolkits/xforms/Makefile16
1 files changed, 15 insertions, 1 deletions
diff --git a/x11-toolkits/xforms/Makefile b/x11-toolkits/xforms/Makefile
index fff0592..faa95fe 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
OpenPOWER on IntegriCloud