pkgsrc-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
pkg/39982: benchmark/ubench: destdir support (patch)
>Number: 39982
>Category: pkg
>Synopsis: benchmark/ubench: destdir support (patch)
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: pkg-manager
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Thu Nov 20 18:50:00 +0000 2008
>Originator: cheusov%tut.by@localhost
>Release: NetBSD 4.0_STABLE
>Organization:
>Environment:
System: NetBSD chen.chizhovka.net 4.0_STABLE NetBSD 4.0_STABLE (GENERIC) #3:
Sun Oct 19 20:54:51 EEST 2008
cheusov%chen.chizhovka.net@localhost:/srv/obj/sys/arch/i386/compile/GENERIC i386
Architecture: i386
Machine: i386
>Description:
destdir support is needed
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 20 Nov 2008 18:44:43 -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"
>Fix:
Unknown
Home |
Main Index |
Thread Index |
Old Index