pkgsrc-Users archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[patch] destdir support for benchmark/ubench
Patch is here
Index: Makefile
===================================================================
RCS file: /cvsroot/pkgsrc/benchmarks/ubench/Makefile,v
retrieving revision 1.5
diff -u -r1.5 Makefile
--- Makefile 4 Mar 2006 21:29:01 -0000 1.5
+++ Makefile 15 Nov 2008 19:47:21 -0000
@@ -12,14 +12,15 @@
BUILD_TARGET= ubench
INSTALLATION_DIRS= bin ${PKGMANDIR}/man8 share/doc/ubench
+PKG_DESTDIR_SUPPORT= user-destdir
SUBST_CLASSES+= path
SUBST_STAGE.path= post-configure
SUBST_FILES.path= Makefile
-SUBST_SED.path= -e "s,/usr/local,${PREFIX},"
+SUBST_SED.path= -e "s,/usr/local,${DESTDIR}${PREFIX},"
post-install:
- ${INSTALL_MAN} ${WRKSRC}/ubench.8 ${PREFIX}/${PKGMANDIR}/man8
- ${INSTALL_DATA} ${WRKSRC}/README ${PREFIX}/share/doc/ubench
+ ${INSTALL_MAN} ${WRKSRC}/ubench.8 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man8
+ ${INSTALL_DATA} ${WRKSRC}/README ${DESTDIR}${PREFIX}/share/doc/ubench
.include "../../mk/bsd.pkg.mk"
--
Best regards, Aleksey Cheusov.
Home |
Main Index |
Thread Index |
Old Index