summaryrefslogtreecommitdiff
path: root/lang/a60
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/a60
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/a60')
-rw-r--r--lang/a60/Makefile27
1 files changed, 16 insertions, 11 deletions
diff --git a/lang/a60/Makefile b/lang/a60/Makefile
index e37bce177c2..7b0fe7d0265 100644
--- a/lang/a60/Makefile
+++ b/lang/a60/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.11 2007/02/22 19:26:37 wiz Exp $
+# $NetBSD: Makefile,v 1.12 2008/03/04 16:38:11 jlam Exp $
DISTNAME= a60-0.20a
CATEGORIES= lang
@@ -7,6 +7,8 @@ MASTER_SITES= ftp://ftp.ibr.cs.tu-bs.de/pub/local/algol60/
MAINTAINER= pkgsrc-users@NetBSD.org
COMMENT= Algol 60 interpreter
+PKG_DESTDIR_SUPPORT= user-destdir
+
GNU_CONFIGURE= yes
CPPFLAGS+= -Dunix
@@ -16,23 +18,26 @@ INFO_FILES= # PLIST
INSTALLATION_DIRS= bin ${PKGINFODIR} ${PKGMANDIR}/man1
do-install:
- ${INSTALL_PROGRAM} ${WRKSRC}/a60 ${PREFIX}/bin/
- ${INSTALL_DATA_DIR} ${PREFIX}/share/a60/
- ${INSTALL_DATA} ${WRKSRC}/a60-mkc.inc ${PREFIX}/share/a60/
+ ${INSTALL_PROGRAM} ${WRKSRC}/a60 ${DESTDIR}${PREFIX}/bin/
+ ${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/share/a60/
+ ${INSTALL_DATA} ${WRKSRC}/a60-mkc.inc \
+ ${DESTDIR}${PREFIX}/share/a60/
cd ${WRKSRC}; for f in \
RRA60.info RRA60.info-[0-9]* \
a60.info a60.info-[0-9]*; \
do \
${TEST} ! -f "$$f" || \
- ${INSTALL_DATA} "$$f" ${PREFIX}/${PKGINFODIR}; \
+ ${INSTALL_DATA} "$$f" ${DESTDIR}${PREFIX}/${PKGINFODIR};\
done
- ${INSTALL_MAN} ${WRKSRC}/a60.man ${PREFIX}/${PKGMANDIR}/man1/a60.1
- ${INSTALL_DATA_DIR} ${PREFIX}/share/examples/a60/
+ ${INSTALL_MAN} ${WRKSRC}/a60.man \
+ ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1/a60.1
+ ${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/share/examples/a60/
cd ${WRKSRC}/examples && ${INSTALL_DATA} *.a60 README \
- ${PREFIX}/share/examples/a60/
- ${INSTALL_DATA} ${WRKSRC}/xa60.* ${PREFIX}/share/examples/a60/
- ${INSTALL_DATA_DIR} ${PREFIX}/share/doc/a60/
+ ${DESTDIR}${PREFIX}/share/examples/a60/
+ ${INSTALL_DATA} ${WRKSRC}/xa60.* \
+ ${DESTDIR}${PREFIX}/share/examples/a60/
+ ${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/share/doc/a60/
cd ${WRKSRC} && ${INSTALL_DATA} a60.ps RRA60.ps \
- ${PREFIX}/share/doc/a60/
+ ${DESTDIR}${PREFIX}/share/doc/a60/
.include "../../mk/bsd.pkg.mk"