pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

fix DESTDIR support



Module Name:	pkgsrc-wip
Committed By:	Darrin B. Jewell <dbj%NetBSD.org@localhost>
Pushed By:	dbj
Date:		Tue Feb 16 22:52:47 2016 -0800
Changeset:	53b03a23c9052bb39d4187f2ced06ab1906ec43d

Modified Files:
	txt2tags/Makefile

Log Message:
fix DESTDIR support

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=53b03a23c9052bb39d4187f2ced06ab1906ec43d

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 txt2tags/Makefile | 14 ++++++++------
 1 file changed, 8 insertions(+), 6 deletions(-)

diffs:
diff --git a/txt2tags/Makefile b/txt2tags/Makefile
index 353d67f..bcbb11b 100644
--- a/txt2tags/Makefile
+++ b/txt2tags/Makefile
@@ -18,14 +18,16 @@ USE_LANGUAGES=	# none
 
 DOC_DIR=			${PREFIX}/share/doc/${PKGBASE}
 SAMPLES_DIR=			${PREFIX}/share/examples/${PKGBASE}
+INSTALLATION_DIRS+= 		${DOC_DIR} ${SAMPLES_DIR}
+INSTALLATION_DIRS+= 		bin ${PKGMANDIR}/man1
 
 do-install:
-	${INSTALL_DATA_DIR} ${DOC_DIR} ${SAMPLES_DIR} ${SAMPLES_DIR}/img
-	${INSTALL_SCRIPT} ${WRKSRC}/txt2tags ${PREFIX}/bin
-	${INSTALL_DATA} ${WRKSRC}/doc/*.* ${DOC_DIR}
-	${INSTALL_DATA} ${WRKSRC}/samples/*.* ${SAMPLES_DIR}
-	${INSTALL_DATA} ${WRKSRC}/samples/img/*.* ${SAMPLES_DIR}/img
-	${INSTALL_MAN} ${WRKSRC}/doc/manpage.man ${PREFIX}/${PKGMANDIR}/man1/txt2tags.1
+	${INSTALL_DATA_DIR} ${DOC_DIR} ${SAMPLES_DIR} ${DESTDIR}${SAMPLES_DIR}/img
+	${INSTALL_SCRIPT} ${WRKSRC}/txt2tags ${DESTDIR}${PREFIX}/bin
+	${INSTALL_DATA} ${WRKSRC}/doc/*.* ${DESTDIR}${DOC_DIR}
+	${INSTALL_DATA} ${WRKSRC}/samples/*.* ${DESTDIR}${SAMPLES_DIR}
+	${INSTALL_DATA} ${WRKSRC}/samples/img/*.* ${DESTDIR}${SAMPLES_DIR}/img
+	${INSTALL_MAN} ${WRKSRC}/doc/manpage.man ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1/txt2tags.1
 
 .include "../../lang/python/application.mk"
 .include "../../mk/bsd.pkg.mk"


Home | Main Index | Thread Index | Old Index