mirror of
https://git.FreeBSD.org/ports.git
synced 2025-02-06 11:41:52 +00:00
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
This commit is contained in:
parent
49e93e39fa
commit
45d5180a9c
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=15664
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user