summaryrefslogtreecommitdiff
path: root/editors/pico
diff options
context:
space:
mode:
authorjlam <jlam@pkgsrc.org>2008-03-03 18:25:52 +0000
committerjlam <jlam@pkgsrc.org>2008-03-03 18:25:52 +0000
commit80c7fb273d8e710ea174cde389ccea199e8a754b (patch)
tree94991d2182e36c43f4a6dac0f35a6023230a4d45 /editors/pico
parent38c8b857b2a15de072b4fa8baf0650634b5be996 (diff)
downloadpkgsrc-80c7fb273d8e710ea174cde389ccea199e8a754b.tar.gz
Mechanical changes to add DESTDIR support to packages that install
their files via a custom do-install target.
Diffstat (limited to 'editors/pico')
-rw-r--r--editors/pico/Makefile14
1 files changed, 8 insertions, 6 deletions
diff --git a/editors/pico/Makefile b/editors/pico/Makefile
index 622120781b5..a3db611764a 100644
--- a/editors/pico/Makefile
+++ b/editors/pico/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.70 2007/03/21 19:39:08 jwise Exp $
+# $NetBSD: Makefile,v 1.71 2008/03/03 18:25:53 jlam Exp $
#
# NOTE:
# When updating, it is necessary to change the shlib version, located in
@@ -20,6 +20,8 @@ COMMENT= Text editor (ships with Pine), and Pine's text editing lib
LICENSE= pine-license
+PKG_DESTDIR_SUPPORT= user-destdir
+
USE_LIBTOOL= yes
.include "../../mk/bsd.prefs.mk"
@@ -65,13 +67,13 @@ do-build:
do-install:
${LIBTOOL} --mode=install ${INSTALL_LIB} \
- ${WRKSRC}/pico/libpico.la ${PREFIX}/lib
+ ${WRKSRC}/pico/libpico.la ${DESTDIR}${PREFIX}/lib
${LIBTOOL} --mode=install ${INSTALL_PROGRAM} \
- ${WRKSRC}/pico/pico ${WRKSRC}/pico/pilot ${PREFIX}/bin
- ${INSTALL_MAN} ${WRKSRC}/doc/pico.1 ${PREFIX}/${PKGMANDIR}/man1
- ${INSTALL_MAN} ${WRKSRC}/doc/pilot.1 ${PREFIX}/${PKGMANDIR}/man1
+ ${WRKSRC}/pico/pico ${WRKSRC}/pico/pilot ${DESTDIR}${PREFIX}/bin
+ ${INSTALL_MAN} ${WRKSRC}/doc/pico.1 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1
+ ${INSTALL_MAN} ${WRKSRC}/doc/pilot.1 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1
${INSTALL_DATA_DIR} ${PREFIX}/include/pico
- cd ${WRKSRC}/pico && ${INSTALL_DATA} *.h ${PREFIX}/include/pico
+ cd ${WRKSRC}/pico && ${INSTALL_DATA} *.h ${DESTDIR}${PREFIX}/include/pico
.include "../../devel/ncurses/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"