summaryrefslogtreecommitdiff
path: root/lang/baci
diff options
context:
space:
mode:
authorjlam <jlam@pkgsrc.org>2008-03-04 16:38:11 +0000
committerjlam <jlam@pkgsrc.org>2008-03-04 16:38:11 +0000
commit8bf74c5086e810635eb42ee6260913f330977167 (patch)
tree3b3e69289dd17a1030bb7365e1cb146dbfea41bd /lang/baci
parent563238a90334d8045ade559a74f641eba13dbc99 (diff)
downloadpkgsrc-8bf74c5086e810635eb42ee6260913f330977167.tar.gz
Mechanical changes to add DESTDIR support to packages that install
their files via a custom do-install target.
Diffstat (limited to 'lang/baci')
-rw-r--r--lang/baci/Makefile27
1 files changed, 13 insertions, 14 deletions
diff --git a/lang/baci/Makefile b/lang/baci/Makefile
index 74bed46f4ef..704554aed5f 100644
--- a/lang/baci/Makefile
+++ b/lang/baci/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.12 2007/02/22 19:26:37 wiz Exp $
+# $NetBSD: Makefile,v 1.13 2008/03/04 16:38:11 jlam Exp $
#
DISTNAME= bacisrc
@@ -14,25 +14,24 @@ COMMENT= Ben-Ari Concurrent Interpreter
DEPENDS+= bison-[0-9]*:../../devel/bison
-USE_TOOLS+= flex
+PKG_DESTDIR_SUPPORT= user-destdir
-PLIST_SRC= ${WRKDIR}/PLIST
+USE_TOOLS+= flex
INSTALLATION_DIRS= bin
do-build:
- cd ${WRKSRC}/ccomp && ${MAKE}
- cd ${WRKSRC}/disasm && ${MAKE}
- cd ${WRKSRC}/interp && ${MAKE}
- cd ${WRKSRC}/pascomp && ${MAKE}
+ cd ${WRKSRC}/ccomp && ${MAKE}
+ cd ${WRKSRC}/disasm && ${MAKE}
+ cd ${WRKSRC}/interp && ${MAKE}
+ cd ${WRKSRC}/pascomp && ${MAKE}
do-install:
- ${INSTALL_PROGRAM} ${WRKSRC}/ccomp/bacc ${PREFIX}/bin
- ${INSTALL_PROGRAM} ${WRKSRC}/disasm/badis ${PREFIX}/bin
- ${INSTALL_PROGRAM} ${WRKSRC}/interp/bainterp ${PREFIX}/bin
- ${INSTALL_PROGRAM} ${WRKSRC}/pascomp/bapas ${PREFIX}/bin
- ${INSTALL_DATA_DIR} ${PREFIX}/share/doc/baci
- ${INSTALL_DATA} ${WRKDIR}/bacidoc/* ${PREFIX}/share/doc/baci
- ${CP} ${PKGDIR}/PLIST ${WRKDIR}
+ ${INSTALL_PROGRAM} ${WRKSRC}/ccomp/bacc ${DESTDIR}${PREFIX}/bin
+ ${INSTALL_PROGRAM} ${WRKSRC}/disasm/badis ${DESTDIR}${PREFIX}/bin
+ ${INSTALL_PROGRAM} ${WRKSRC}/interp/bainterp ${DESTDIR}${PREFIX}/bin
+ ${INSTALL_PROGRAM} ${WRKSRC}/pascomp/bapas ${DESTDIR}${PREFIX}/bin
+ ${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/share/doc/baci
+ ${INSTALL_DATA} ${WRKDIR}/bacidoc/* ${DESTDIR}${PREFIX}/share/doc/baci
.include "../../mk/bsd.pkg.mk"