summaryrefslogtreecommitdiff
path: root/multimedia/libmpeg3
diff options
context:
space:
mode:
authorjlam <jlam@pkgsrc.org>2008-03-04 19:32:30 +0000
committerjlam <jlam@pkgsrc.org>2008-03-04 19:32:30 +0000
commitf847dc9588e5531e66098b93bbc0c6e3812a799d (patch)
treebe7fb221de1b1a2204c821c7626a52e6f564036b /multimedia/libmpeg3
parent39843c2c61acd3e8f1b7d0fa6eb0f76884067d10 (diff)
downloadpkgsrc-f847dc9588e5531e66098b93bbc0c6e3812a799d.tar.gz
Mechanical changes to add DESTDIR support to packages that install
their files via a custom do-install target.
Diffstat (limited to 'multimedia/libmpeg3')
-rw-r--r--multimedia/libmpeg3/Makefile22
1 files changed, 12 insertions, 10 deletions
diff --git a/multimedia/libmpeg3/Makefile b/multimedia/libmpeg3/Makefile
index d9b87b133f2..b79159447ae 100644
--- a/multimedia/libmpeg3/Makefile
+++ b/multimedia/libmpeg3/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.9 2008/02/20 09:56:44 xtraeme Exp $
+# $NetBSD: Makefile,v 1.10 2008/03/04 19:32:30 jlam Exp $
#
DISTNAME= libmpeg3-1.7-src
@@ -12,6 +12,8 @@ MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://heroines.sourceforge.net/libmpeg3.php3
COMMENT= MPEG decoding library
+PKG_DESTDIR_SUPPORT= user-destdir
+
.include "../../mk/bsd.prefs.mk"
.if (${MACHINE_ARCH} == "i386")
@@ -49,26 +51,26 @@ INSTALLATION_DIRS= bin lib
do-install:
for f in ${INSTBINS}; do \
- ${INSTALL_PROGRAM} ${WRKSRC}/work/$$f ${PREFIX}/bin; \
+ ${INSTALL_PROGRAM} ${WRKSRC}/work/$$f ${DESTDIR}${PREFIX}/bin; \
done
${INSTALL_DATA_DIR} ${PREFIX}/include/mpeg3
for f in ${INSTHDRS}; do \
- ${INSTALL_DATA} ${WRKSRC}/$$f ${PREFIX}/include/mpeg3; \
+ ${INSTALL_DATA} ${WRKSRC}/$$f ${DESTDIR}${PREFIX}/include/mpeg3; \
done
- ${INSTALL_DATA_DIR} ${PREFIX}/include/mpeg3/audio
+ ${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/include/mpeg3/audio
for f in ${AINSTHDRS}; do \
${INSTALL_DATA} ${WRKSRC}/audio/$$f \
- ${PREFIX}/include/mpeg3/audio; \
+ ${DESTDIR}${PREFIX}/include/mpeg3/audio; \
done
- ${INSTALL_DATA_DIR} ${PREFIX}/include/mpeg3/video
+ ${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/include/mpeg3/video
for f in ${VINSTHDRS}; do \
${INSTALL_DATA} ${WRKSRC}/video/$$f \
- ${PREFIX}/include/mpeg3/video; \
+ ${DESTDIR}${PREFIX}/include/mpeg3/video; \
done
- ${INSTALL_LIB} ${WRKSRC}/work/libmpeg3.a ${PREFIX}/lib
- ${INSTALL_DATA_DIR} ${PREFIX}/share/doc/html/libmpeg3
+ ${INSTALL_LIB} ${WRKSRC}/work/libmpeg3.a ${DESTDIR}${PREFIX}/lib
+ ${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/share/doc/html/libmpeg3
${INSTALL_DATA} ${WRKSRC}/docs/index.html \
- ${PREFIX}/share/doc/html/libmpeg3
+ ${DESTDIR}${PREFIX}/share/doc/html/libmpeg3
.include "../../mk/pthread.buildlink3.mk"
.include "../../mk/bsd.pkg.mk"