summaryrefslogtreecommitdiff
path: root/x11/Xaw3d
diff options
context:
space:
mode:
authoragc <agc>1998-03-12 00:58:06 +0000
committeragc <agc>1998-03-12 00:58:06 +0000
commitdcfa921ff7937f2ba47a03d2e53a24ee5284c96f (patch)
treeb39831299fa37b7968617d4c6f48d516d8c535db /x11/Xaw3d
parent368ab90668af0533979749e029a3bd48ac6db8bc (diff)
downloadpkgsrc-dcfa921ff7937f2ba47a03d2e53a24ee5284c96f.tar.gz
Delete the static library from the PLIST if no static library was
built. Fixes a problem pointed out by Charles Hannum.
Diffstat (limited to 'x11/Xaw3d')
-rw-r--r--x11/Xaw3d/Makefile11
1 files changed, 9 insertions, 2 deletions
diff --git a/x11/Xaw3d/Makefile b/x11/Xaw3d/Makefile
index 14844a03d2c..93d7f616436 100644
--- a/x11/Xaw3d/Makefile
+++ b/x11/Xaw3d/Makefile
@@ -3,7 +3,7 @@
# Date created: 30th November 1997
# Whom: tron@lyssa.owl.de, soren@t.dk
#
-# $NetBSD: Makefile,v 1.10 1998/02/02 08:59:32 hubertf Exp $
+# $NetBSD: Makefile,v 1.11 1998/03/12 00:58:06 agc Exp $
# FreeBSD Id: Makefile,v 1.14 1997/06/19 09:33:26 asami Exp
#
@@ -16,13 +16,20 @@ MAINTAINER= tron@netbsd.org
USE_IMAKE= yes
WRKSRC= ${WRKDIR}/xc/lib/Xaw3d
+PLIST_SRC= ${WRKDIR}/PLIST-src
post-extract:
- @(cd ${WRKSRC};ln -s .. X11)
+ @(cd ${WRKSRC}; ${LN} -s .. X11)
post-install:
${LDCONFIG} || ${TRUE}
${MKDIR} ${PREFIX}/share/doc/Xaw3d
${CP} ${WRKSRC}/README.XAW3D ${PREFIX}/share/doc/Xaw3d
+ @if [ -f ${WRKSRC}/libXaw3d.a ]; then \
+ ${CP} ${PKGDIR}/PLIST ${PLIST_SRC}; \
+ else \
+ ${SED} -e '/lib\/libXaw3d\.a/d' \
+ < ${PKGDIR}/PLIST > ${PLIST_SRC}; \
+ fi
.include <bsd.port.mk>