summaryrefslogtreecommitdiff
path: root/cad/lc
diff options
context:
space:
mode:
authordmcmahill <dmcmahill@pkgsrc.org>2007-02-24 03:32:07 +0000
committerdmcmahill <dmcmahill@pkgsrc.org>2007-02-24 03:32:07 +0000
commitefe0b50b162265d1da9336dd09cbcc19c07ff9f8 (patch)
tree148e948b07da32580d1487b382cef96b99d10cf1 /cad/lc
parent2ca0cd5b5adda2b2f648034786c9ad32e868d11f (diff)
downloadpkgsrc-efe0b50b162265d1da9336dd09cbcc19c07ff9f8.tar.gz
fix WRKSRC and PLIST for x86_64
Diffstat (limited to 'cad/lc')
-rw-r--r--cad/lc/Makefile10
1 files changed, 8 insertions, 2 deletions
diff --git a/cad/lc/Makefile b/cad/lc/Makefile
index 9c1eeb8ecc8..747c8d7a5bd 100644
--- a/cad/lc/Makefile
+++ b/cad/lc/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.7 2007/02/24 00:29:42 dmcmahill Exp $
+# $NetBSD: Makefile,v 1.8 2007/02/24 03:32:07 dmcmahill Exp $
DISTNAME= lc # Overridden below
PKGNAME= lc-2.10
@@ -47,6 +47,8 @@ DISTNAME= lc_amd64_lx24
DEPENDS+= suse_openmotif>=9.1:../../emulators/${SUSE_DIR_PREFIX}_openmotif
DEPENDS+= suse_x11>=9.1:../../emulators/${SUSE_DIR_PREFIX}_x11
. endif
+WRKSRC= ${WRKDIR}/lc
+HAVE_LCSPICE= "@comment "
.elif ${MACHINE_ARCH} == "mipsel"
DISTNAME= lc_irix
@@ -71,6 +73,10 @@ PKG_FAIL_REASON+= '${PKGNAME} requires Solaris libraries - see compat_svr4(8)'
. endif
.endif
+HAVE_LCSPICE?= ""
+
+PLIST_SUBST+= HAVE_LCSPICE=${HAVE_LCSPICE}
+
DISTFILES= lc_doc.tar.gz ${DISTNAME}${EXTRACT_SUFX}
INSTALLATION_DIRS= bin share
@@ -78,7 +84,7 @@ INSTALLATION_DIRS= bin share
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/bin/lc ${PREFIX}/bin/lc
${INSTALL_PROGRAM} ${WRKSRC}/bin/lcplot ${PREFIX}/bin/lcplot
- ${INSTALL_PROGRAM} ${WRKSRC}/bin/spice ${PREFIX}/bin/lcspice
+ if test -f ${WRKSRC}/bin/spice ; then ${INSTALL_PROGRAM} ${WRKSRC}/bin/spice ${PREFIX}/bin/lcspice ; fi
cd ${PREFIX}/share && ${TAR} -zxf ${DISTDIR}/${DIST_SUBDIR}/lc_doc.tar.gz
${CHMOD} -R 644 ${PREFIX}/share/lc2.10
${CHOWN} -R ${SHAREOWN} ${PREFIX}/share/lc2.10