summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjoerg <joerg@pkgsrc.org>2010-01-27 19:22:35 +0000
committerjoerg <joerg@pkgsrc.org>2010-01-27 19:22:35 +0000
commit469dcd97dca9ba93712ae688a4339f75f0a2b608 (patch)
tree9b1c96f4359d26a2c394b14d55dd0d4823e4140c
parent73db6653a37baabb2533c540ee2df0d2b5878bda (diff)
downloadpkgsrc-469dcd97dca9ba93712ae688a4339f75f0a2b608.tar.gz
DESTDIR support. Based on patch from Steven Drake.
-rw-r--r--comms/jpilot/Makefile17
1 files changed, 9 insertions, 8 deletions
diff --git a/comms/jpilot/Makefile b/comms/jpilot/Makefile
index 905ac2024c1..7c64c0b77df 100644
--- a/comms/jpilot/Makefile
+++ b/comms/jpilot/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.67 2010/01/17 12:02:08 wiz Exp $
+# $NetBSD: Makefile,v 1.68 2010/01/27 19:22:35 joerg Exp $
#
DISTNAME= jpilot-1.6.0
@@ -10,6 +10,8 @@ MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://www.jpilot.org/
COMMENT= Desktop organizer application for the palm pilot
+PKG_DESTDIR_SUPPORT= user-destdir
+
CONFLICTS+= jpilot-libplugin-[0-9]*
USE_LIBTOOL= YES
@@ -36,13 +38,12 @@ PLUGINSDIR= ${PREFIX}/lib/jpilot/plugins
post-extract:
${RM} -f ${WRKSRC}/po/Makefile.in
+INSTALLATION_DIRS= ${DOCDIR} ${INCDIR} ${PLUGINSIDR}
+
post-install:
- ${INSTALL_DATA_DIR} ${DOCDIR}
- ${INSTALL_DATA_DIR} ${INCDIR}
- ${INSTALL_DATA_DIR} ${PLUGINSDIR}
- cd ${WRKSRC}; ${INSTALL_DATA} libplugin.h prefs.h ${INCDIR}
- ${INSTALL_DATA} ${WRKSRC}/BUGS ${DOCDIR}
- cd ${WRKSRC}/docs; ${INSTALL_MAN} *.1 ${MAN1DIR}
- ${TOUCH} ${PLUGINSDIR}/.directory
+ cd ${WRKSRC} && ${INSTALL_DATA} libplugin.h prefs.h ${DESTDIR}${INCDIR}
+ ${INSTALL_DATA} ${WRKSRC}/BUGS ${DESTDIR}${DOCDIR}
+ ${INSTALL_MAN} ${WRKSRC}/docs/*.1 ${DESTDIR}${MAN1DIR}
+ ${TOUCH} ${DESTDIR}${PLUGINSDIR}/.directory
.include "../../mk/bsd.pkg.mk"