summaryrefslogtreecommitdiff
path: root/cad/spice/Makefile
diff options
context:
space:
mode:
authorhubertf <hubertf@pkgsrc.org>1998-06-11 14:51:54 +0000
committerhubertf <hubertf@pkgsrc.org>1998-06-11 14:51:54 +0000
commita8f3e2682340ef5587258c1ee98a73f74c4a4e97 (patch)
treeadf7cbe649f3e257fba66a9b022816f25213d6fe /cad/spice/Makefile
parent9bc476a12c1cceb9254ff05ee3ad16ec0ace589d (diff)
downloadpkgsrc-a8f3e2682340ef5587258c1ee98a73f74c4a4e97.tar.gz
Rework for NetBSD
Diffstat (limited to 'cad/spice/Makefile')
-rw-r--r--cad/spice/Makefile44
1 files changed, 37 insertions, 7 deletions
diff --git a/cad/spice/Makefile b/cad/spice/Makefile
index 919b27d1ac6..dfe523294bb 100644
--- a/cad/spice/Makefile
+++ b/cad/spice/Makefile
@@ -1,9 +1,5 @@
-# New ports collection makefile for: spice
-# Version required: 3f5
-# Date created: 26 Mar 96
-# Whom: Julian Jenkins <kaveman@magna.com.au>
-#
-# $Id: Makefile,v 1.1.1.1 1998/06/11 14:39:01 hubertf Exp $
+# $NetBSD: Makefile,v 1.2 1998/06/11 14:51:54 hubertf Exp $
+# FreeBSD Id: Makefile,v 1.10 1998/06/08 09:21:37 tg Exp
#
DISTNAME= sp3f4.kit
@@ -25,10 +21,44 @@ MAN1= sconvert.1 nutmeg.1 spice.1
MAN3= mfb.3
MAN5= mfbcap.5
+do-configure:
+ ${RM} -f ${WRKSRC}/makefile
+ sed 's@$${X11BASE}@${X11BASE}@' <${FILESDIR}/NetBSD >${WRKSRC}/conf/NetBSD
+ ${MV} ${WRKSRC}/conf/defaults ${WRKSRC}/conf/defaults.BAK
+ sed \
+ -e 's@$${X11BASE}@${X11BASE}@' \
+ -e 's@$${PREFIX}@${PREFIX}@' \
+ <${WRKSRC}/conf/defaults.BAK >${WRKSRC}/conf/defaults
+
+do-build:
+ cd ${WRKSRC} ; util/build NetBSD default
+
+do-install:
+ cd ${WRKSRC} ; util/build NetBSD install
+ chmod a+rx ${PREFIX}/bin/spice3 ${PREFIX}/bin/nutmeg \
+ ${PREFIX}/bin/sconvert ${PREFIX}/bin/help \
+ ${PREFIX}/bin/proc2mod ${PREFIX}/bin/multidec
+ strip ${PREFIX}/bin/spice3 ${PREFIX}/bin/nutmeg \
+ ${PREFIX}/bin/sconvert ${PREFIX}/bin/help \
+ ${PREFIX}/bin/proc2mod ${PREFIX}/bin/multidec
+ chmod -R a+rX ${PREFIX}/share/spice3
+ ${INSTALL_MAN} ${WRKSRC}/man/man5/mfbcap.5 ${PREFIX}/man/man5/mfbcap.5
+ ${INSTALL_MAN} ${WRKSRC}/man/man1/sconvert.1 ${PREFIX}/man/man1/sconvert.1
+ ${INSTALL_MAN} ${WRKSRC}/man/man1/nutmeg.1 ${PREFIX}/man/man1/nutmeg.1
+ ${INSTALL_MAN} ${WRKSRC}/man/man1/spice.1 ${PREFIX}/man/man1/spice.1
+ ${INSTALL_MAN} ${WRKSRC}/man/man3/mfb.3 ${PREFIX}/man/man3/mfb.3
+
post-install:
.if !defined(NOPORTDOCS)
${MKDIR} ${PREFIX}/share/examples/spice3
${INSTALL_DATA} ${WRKSRC}/examples/*.cir ${PREFIX}/share/examples/spice3
.endif
-.include <bsd.port.mk>
+
+.include "../../mk/bsd.pkg.mk"
+
+
+x:
+.if exists(${PACKAGES})
+ ls -lad ${PACKAGES}
+.endif