summaryrefslogtreecommitdiff
path: root/lang/cint
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/cint
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/cint')
-rw-r--r--lang/cint/Makefile87
1 files changed, 54 insertions, 33 deletions
diff --git a/lang/cint/Makefile b/lang/cint/Makefile
index be04d6f46e2..1f1efda0bdb 100644
--- a/lang/cint/Makefile
+++ b/lang/cint/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.23 2006/11/09 11:12:06 rillig Exp $
+# $NetBSD: Makefile,v 1.24 2008/03/04 16:38:11 jlam Exp $
DISTNAME= cint5.15
PKGNAME= cint-5.15.174
@@ -11,6 +11,8 @@ MAINTAINER= drochner@NetBSD.org
HOMEPAGE= http://root.cern.ch/root/Cint.html
COMMENT= C/C++ interpreter
+PKG_DESTDIR_SUPPORT= user-destdir
+
#same distribution file name for minor versions
DIST_SUBDIR= ${PKGNAME_NOREV}
WRKSRC= ${WRKDIR}
@@ -44,37 +46,56 @@ do-build:
esac
do-install:
- ${INSTALL_DATA_DIR} ${PREFIX}/cint
- ${INSTALL_PROGRAM} ${WRKDIR}/cint ${PREFIX}/cint
- ${INSTALL_PROGRAM} ${WRKDIR}/makecint ${PREFIX}/cint
- ${SED} "s;XXXPREFIXXXX;${PREFIX};g" <${FILESDIR}/cint.sh >${PREFIX}/bin/cint
- ${CHMOD} +x ${PREFIX}/bin/cint
- rm -f ${PREFIX}/bin/makecint
- ${LN} ${PREFIX}/bin/cint ${PREFIX}/bin/makecint
- ${INSTALL_DATA} ${WRKDIR}/MAKEINFO ${PREFIX}/cint
- ${CP} -r ${WRKDIR}/include ${WRKDIR}/stl ${PREFIX}/cint
- ${RM} ${PREFIX}/cint/include/Makeit ${PREFIX}/cint/include/make*
- ${INSTALL_DATA_DIR} ${PREFIX}/cint/lib
- ${CP} -r ${WRKDIR}/lib/prec_stl ${PREFIX}/cint/lib
- ${INSTALL_DATA} ${WRKDIR}/G__ci.h ${PREFIX}/cint
- ${INSTALL_DATA_DIR} ${PREFIX}/share/doc/cint
- ${INSTALL_DATA} ${WRKSRC}/doc/bytecode.txt ${PREFIX}/share/doc/cint
- ${INSTALL_DATA} ${WRKSRC}/doc/cint.txt ${PREFIX}/share/doc/cint
- ${INSTALL_DATA} ${WRKSRC}/doc/cintapi.txt ${PREFIX}/share/doc/cint
- ${INSTALL_DATA} ${WRKSRC}/doc/extlib.txt ${PREFIX}/share/doc/cint
- ${INSTALL_DATA} ${WRKSRC}/doc/ifdef.txt ${PREFIX}/share/doc/cint
- ${INSTALL_DATA} ${WRKSRC}/doc/limitati.txt ${PREFIX}/share/doc/cint
- ${INSTALL_DATA} ${WRKSRC}/doc/limitnum.txt ${PREFIX}/share/doc/cint
- ${INSTALL_DATA} ${WRKSRC}/doc/makecint.txt ${PREFIX}/share/doc/cint
- ${INSTALL_DATA} ${WRKSRC}/doc/message.txt ${PREFIX}/share/doc/cint
- ${INSTALL_DATA} ${WRKSRC}/doc/ref.txt ${PREFIX}/share/doc/cint
- ${INSTALL_MAN} ${WRKSRC}/doc/man1/cint.1 ${PREFIX}/${PKGMANDIR}/man1
- ${INSTALL_MAN} ${WRKSRC}/doc/man1/makecint.1 ${PREFIX}/${PKGMANDIR}/man1
- ${INSTALL_MAN} ${WRKSRC}/doc/man2/garbage.2 ${PREFIX}/${PKGMANDIR}/man2
- ${INSTALL_MAN} ${WRKSRC}/doc/man2/security.2 ${PREFIX}/${PKGMANDIR}/man2
- ${INSTALL_MAN} ${WRKSRC}/doc/man2/unique.2 ${PREFIX}/${PKGMANDIR}/man2
- ${INSTALL_MAN} ${WRKSRC}/doc/man3/array.h.3 ${PREFIX}/${PKGMANDIR}/man3
- ${INSTALL_MAN} ${WRKSRC}/doc/man3/fft.h.3 ${PREFIX}/${PKGMANDIR}/man3
- ${INSTALL_MAN} ${WRKSRC}/doc/man3/statistics.h.3 ${PREFIX}/${PKGMANDIR}/man3
+ ${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/cint
+ ${INSTALL_PROGRAM} ${WRKDIR}/cint ${DESTDIR}${PREFIX}/cint
+ ${INSTALL_PROGRAM} ${WRKDIR}/makecint ${DESTDIR}${PREFIX}/cint
+ ${SED} "s;XXXPREFIXXXX;${PREFIX};g" <${FILESDIR}/cint.sh >${DESTDIR}${PREFIX}/bin/cint
+ ${CHMOD} +x ${DESTDIR}${PREFIX}/bin/cint
+ rm -f ${DESTDIR}${PREFIX}/bin/makecint
+ cd ${DESTDIR}${PREFIX}/bin && ${LN} cint makecint
+ ${INSTALL_DATA} ${WRKDIR}/MAKEINFO ${DESTDIR}${PREFIX}/cint
+ ${CP} -r ${WRKDIR}/include ${WRKDIR}/stl ${DESTDIR}${PREFIX}/cint
+ ${RM} ${DESTDIR}${PREFIX}/cint/include/Makeit \
+ ${DESTDIR}${PREFIX}/cint/include/make*
+ ${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/cint/lib
+ ${CP} -r ${WRKDIR}/lib/prec_stl ${DESTDIR}${PREFIX}/cint/lib
+ ${INSTALL_DATA} ${WRKDIR}/G__ci.h ${DESTDIR}${PREFIX}/cint
+ ${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/share/doc/cint
+ ${INSTALL_DATA} ${WRKSRC}/doc/bytecode.txt \
+ ${DESTDIR}${PREFIX}/share/doc/cint
+ ${INSTALL_DATA} ${WRKSRC}/doc/cint.txt \
+ ${DESTDIR}${PREFIX}/share/doc/cint
+ ${INSTALL_DATA} ${WRKSRC}/doc/cintapi.txt \
+ ${DESTDIR}${PREFIX}/share/doc/cint
+ ${INSTALL_DATA} ${WRKSRC}/doc/extlib.txt \
+ ${DESTDIR}${PREFIX}/share/doc/cint
+ ${INSTALL_DATA} ${WRKSRC}/doc/ifdef.txt \
+ ${DESTDIR}${PREFIX}/share/doc/cint
+ ${INSTALL_DATA} ${WRKSRC}/doc/limitati.txt \
+ ${DESTDIR}${PREFIX}/share/doc/cint
+ ${INSTALL_DATA} ${WRKSRC}/doc/limitnum.txt \
+ ${DESTDIR}${PREFIX}/share/doc/cint
+ ${INSTALL_DATA} ${WRKSRC}/doc/makecint.txt \
+ ${DESTDIR}${PREFIX}/share/doc/cint
+ ${INSTALL_DATA} ${WRKSRC}/doc/message.txt \
+ ${DESTDIR}${PREFIX}/share/doc/cint
+ ${INSTALL_DATA} ${WRKSRC}/doc/ref.txt \
+ ${DESTDIR}${PREFIX}/share/doc/cint
+ ${INSTALL_MAN} ${WRKSRC}/doc/man1/cint.1 \
+ ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1
+ ${INSTALL_MAN} ${WRKSRC}/doc/man1/makecint.1 \
+ ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1
+ ${INSTALL_MAN} ${WRKSRC}/doc/man2/garbage.2 \
+ ${DESTDIR}${PREFIX}/${PKGMANDIR}/man2
+ ${INSTALL_MAN} ${WRKSRC}/doc/man2/security.2 \
+ ${DESTDIR}${PREFIX}/${PKGMANDIR}/man2
+ ${INSTALL_MAN} ${WRKSRC}/doc/man2/unique.2 \
+ ${DESTDIR}${PREFIX}/${PKGMANDIR}/man2
+ ${INSTALL_MAN} ${WRKSRC}/doc/man3/array.h.3 \
+ ${DESTDIR}${PREFIX}/${PKGMANDIR}/man3
+ ${INSTALL_MAN} ${WRKSRC}/doc/man3/fft.h.3 \
+ ${DESTDIR}${PREFIX}/${PKGMANDIR}/man3
+ ${INSTALL_MAN} ${WRKSRC}/doc/man3/statistics.h.3 \
+ ${DESTDIR}${PREFIX}/${PKGMANDIR}/man3
.include "../../mk/bsd.pkg.mk"