mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-14 23:46:10 +00:00
45d5180a9c
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
55 lines
1.4 KiB
Makefile
55 lines
1.4 KiB
Makefile
# New ports collection makefile for: xforms
|
|
# Version required: 0.88.1
|
|
# Date created: 28 March 1997
|
|
# Whom: gena
|
|
#
|
|
# $Id: Makefile,v 1.21 1998/11/11 05:37:39 asami Exp $
|
|
#
|
|
|
|
USE_X_PREFIX= yes
|
|
.include <bsd.port.pre.mk>
|
|
|
|
.if ${PORTOBJFORMAT} == "elf"
|
|
DISTNAME= bxform-freebsd-elf
|
|
MASTER_SITES= http://bragg.phys.uwm.edu/~zhao/ftp/
|
|
PATCHDIR= ${.CURDIR}/patches.elf
|
|
.else
|
|
DISTNAME= bxform-088
|
|
MASTER_SITES= ftp://bragg.phys.uwm.edu/pub/xforms/freeBSD/ \
|
|
ftp://ftp.via.ecp.fr/pub2/xforms/freeBSD/ \
|
|
ftp://ftp.st.ryukoku.ac.jp/pub/X11/xforms/freeBSD/
|
|
.endif
|
|
PKGNAME= xforms-0.88.1
|
|
CATEGORIES= graphics x11-toolkits
|
|
EXTRACT_SUFX= .tgz
|
|
|
|
MAINTAINER= gena@NetVision.net.il
|
|
|
|
PATCH_STRIP= -p0 -t
|
|
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
|
|
@ln -fs xforms.5.gz ${PREFIX}/man/man5/forms.5.gz
|
|
.endif
|
|
|
|
.include <bsd.port.post.mk>
|