diff options
author | heinz <heinz@pkgsrc.org> | 2007-07-14 17:06:44 +0000 |
---|---|---|
committer | heinz <heinz@pkgsrc.org> | 2007-07-14 17:06:44 +0000 |
commit | 85d24f934ea510924271205ba3513bbc27afdbee (patch) | |
tree | 8cbfb0e984b0ad38e55199bd449397567f5cdf8d /graphics/mpgtx | |
parent | 7dd0ff62d5b38cac2db9380921da9b5fc7317288 (diff) | |
download | pkgsrc-85d24f934ea510924271205ba3513bbc27afdbee.tar.gz |
Added support for installation to DESTDIR.
Diffstat (limited to 'graphics/mpgtx')
-rw-r--r-- | graphics/mpgtx/Makefile | 18 |
1 files changed, 12 insertions, 6 deletions
diff --git a/graphics/mpgtx/Makefile b/graphics/mpgtx/Makefile index f63feaa1eaa..f852dee2037 100644 --- a/graphics/mpgtx/Makefile +++ b/graphics/mpgtx/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.14 2007/01/07 09:13:56 rillig Exp $ +# $NetBSD: Makefile,v 1.15 2007/07/14 17:06:44 heinz Exp $ # DISTNAME= mpgtx-1.3.1 @@ -9,6 +9,8 @@ MAINTAINER= pkgsrc-users@NetBSD.org HOMEPAGE= http://mpgtx.sourceforge.net/ COMMENT= Split and join MPEG files in various ways +PKG_DESTDIR_SUPPORT= user-destdir + HAS_CONFIGURE= yes CONFIGURE_ARGS+= --prefix=${PREFIX:Q} \ --manprefix=${PREFIX:Q} @@ -21,14 +23,18 @@ MLINKS= mpgcat.1 mpgjoin.1 mpginfo.1 mpgsplit.1 mpgdemux.1 INSTALLATION_DIRS= bin ${PKGMANDIR}/man1 do-install: - ${INSTALL_PROGRAM} ${WRKSRC}/mpgtx ${PREFIX}/bin + ${INSTALL_PROGRAM} ${WRKSRC:Q}/mpgtx ${DESTDIR:Q}${PREFIX:Q}/bin .for f in ${PLINKS} - ${LN} -f ${PREFIX}/bin/mpgtx ${PREFIX}/bin/${f} + ${LN} -f ${DESTDIR:Q}${PREFIX:Q}/bin/mpgtx \ + ${DESTDIR:Q}${PREFIX:Q}/bin/${f} .endfor - ${INSTALL_MAN} ${WRKSRC}/man/mpgtx.1 ${PREFIX}/${PKGMANDIR}/man1 + ${INSTALL_MAN} ${WRKSRC:Q}/man/mpgtx.1 \ + ${DESTDIR:Q}${PREFIX:Q}/${PKGMANDIR}/man1 .for f in ${MLINKS} - ${LN} -f ${PREFIX}/${PKGMANDIR}/man1/mpgtx.1 ${PREFIX}/${PKGMANDIR}/man1/${f} + ${LN} -f ${DESTDIR:Q}${PREFIX:Q}/${PKGMANDIR}/man1/mpgtx.1 \ + ${DESTDIR:Q}${PREFIX:Q}/${PKGMANDIR}/man1/${f} .endfor - ${INSTALL_MAN} ${WRKSRC}/man/tagmp3.1 ${PREFIX}/${PKGMANDIR}/man1 + ${INSTALL_MAN} ${WRKSRC:Q}/man/tagmp3.1 \ + ${DESTDIR:Q}${PREFIX:Q}/${PKGMANDIR}/man1 .include "../../mk/bsd.pkg.mk" |