user-destdir support

This commit is contained in:
joerg 2009-07-08 14:12:30 +00:00
parent b8d3fc6e0d
commit 1b67b6ff24
2 changed files with 13 additions and 6 deletions

View file

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.27 2006/12/15 20:32:53 joerg Exp $
# $NetBSD: Makefile,v 1.28 2009/07/08 14:15:07 joerg Exp $
DISTNAME= xmradio-1.2
PKGREVISION= 3
@ -9,6 +9,8 @@ MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://core.de/~coto/xmradio.html
COMMENT= Radio application for Brooktree 848 compatible TV cards
PKG_DESTDIR_SUPPORT= user-destdir
DEPENDS+= sox>=12.16:../../audio/sox
ONLY_FOR_PLATFORM= NetBSD-1.4[Y-Z]-* NetBSD-1.4Z[A-Z]-i386 \
@ -17,9 +19,10 @@ ONLY_FOR_PLATFORM= NetBSD-1.4[Y-Z]-* NetBSD-1.4Z[A-Z]-i386 \
USE_IMAKE= YES
INSTALLATION_DIRS= share/doc/xmradio
post-install:
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/xmradio
${INSTALL_DATA} ${WRKSRC}/README ${PREFIX}/share/doc/xmradio
${INSTALL_DATA} ${WRKSRC}/README ${DESTDIR}${PREFIX}/share/doc/xmradio
.include "../../x11/libXpm/buildlink3.mk"
.include "../../mk/motif.buildlink3.mk"

View file

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.12 2008/05/01 13:17:55 obache Exp $
# $NetBSD: Makefile,v 1.13 2009/07/08 14:12:30 joerg Exp $
DISTNAME= dbench-3.04
CATEGORIES= benchmarks
@ -9,6 +9,7 @@ HOMEPAGE= http://samba.org/ftp/tridge/dbench/README
COMMENT= Simulation of the Ziff-Davis netbench benchmark
PKG_INSTALLATION_TYPES= overwrite pkgviews
PKG_DESTDIR_SUPPORT= user-destdir
GNU_CONFIGURE= yes
@ -18,7 +19,9 @@ GNU_CONFIGURE= yes
MAKE_ENV+= DB_LDFLAGS="-lrt" TB_LDFLAGS="-lsocket -lnsl"
.endif
INSTALL_MAKE_FLAGS+= prefix=${DESTDIR}${PREFIX}
INSTALL_MAKE_FLAGS+= prefix=${DESTDIR}${PREFIX} \
datadir=${DESTDIR}${PREFIX}/share/dbench \
mandir=${DESTDIR}${PREFIX}/${PKGMANDIR}/man1
CONFIGURE_ARGS+= --datadir=${PREFIX}/share/dbench
SUBST_CLASSES+= path
@ -26,8 +29,9 @@ SUBST_STAGE.path= post-configure
SUBST_FILES.path= dbench.1
SUBST_SED.path= -e 's|/usr/share/|${PREFIX}/share/|g'
INSTALLATION_DIRS= share/doc/dbench
post-install:
${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/share/doc/dbench
${INSTALL_DATA} ${WRKSRC}/README ${DESTDIR}${PREFIX}/share/doc/dbench
.include "../../mk/bsd.pkg.mk"