DESTDIR support. Needs pkg-config.diff -r1.21 -r1.22 pkgsrc/audio/xmp/Makefile
(joerg)
@@ -1,34 +1,37 @@ | @@ -1,34 +1,37 @@ | |||
1 | # $NetBSD: Makefile,v 1.21 2009/01/09 20:43:53 shattered Exp $ | 1 | # $NetBSD: Makefile,v 1.22 2009/02/07 21:10:47 joerg Exp $ | |
2 | 2 | |||
3 | DISTNAME= xmp-2.5.1 | 3 | DISTNAME= xmp-2.5.1 | |
4 | CATEGORIES= audio | 4 | CATEGORIES= audio | |
5 | MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=xmp/} | 5 | MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=xmp/} | |
6 | 6 | |||
7 | MAINTAINER= rxg@NetBSD.org | 7 | MAINTAINER= rxg@NetBSD.org | |
8 | HOMEPAGE= http://xmp.sourceforge.net/ | 8 | HOMEPAGE= http://xmp.sourceforge.net/ | |
9 | COMMENT= Player for many different Amiga and PC module formats | 9 | COMMENT= Player for many different Amiga and PC module formats | |
10 | 10 | |||
11 | PKG_DESTDIR_SUPPORT= user-destdir | |||
12 | ||||
11 | GNU_CONFIGURE= yes | 13 | GNU_CONFIGURE= yes | |
12 | CONFIGURE_ARGS+=--disable-alsa \ | 14 | CONFIGURE_ARGS+=--disable-alsa \ | |
13 | --disable-oss \ | 15 | --disable-oss \ | |
14 | --disable-xmms \ | 16 | --disable-xmms \ | |
15 | --sysconfdir=${PKG_SYSCONFDIR} | 17 | --sysconfdir=${PKG_SYSCONFDIR} | |
16 | 18 | |||
17 | USE_TOOLS+= gmake | 19 | USE_TOOLS+= gmake pkg-config | |
18 | 20 | |||
19 | EGDIR= ${PREFIX}/share/examples/xmp | 21 | EGDIR= ${PREFIX}/share/examples/xmp | |
20 | CONF_FILES= ${EGDIR}/xmp-modules.conf ${PKG_SYSCONFDIR}/xmp-modules.conf | 22 | CONF_FILES= ${EGDIR}/xmp-modules.conf ${PKG_SYSCONFDIR}/xmp-modules.conf | |
21 | CONF_FILES+= ${EGDIR}/xmp.conf ${PKG_SYSCONFDIR}/xmp.conf | 23 | CONF_FILES+= ${EGDIR}/xmp.conf ${PKG_SYSCONFDIR}/xmp.conf | |
22 | 24 | |||
25 | INSTALLATION_DIRS= bin ${PKGMANDIR}/man1 ${EGDIR} | |||
26 | ||||
27 | INSTALL_MAKE_FLAGS+= INSTALL=${INSTALL} | |||
28 | ||||
23 | .include "options.mk" | 29 | .include "options.mk" | |
24 | .include "../../mk/bsd.prefs.mk" | 30 | .include "../../mk/bsd.prefs.mk" | |
25 | 31 | |||
26 | .if ${OPSYS} == "Darwin" || ${OPSYS} == "Interix" | 32 | .if ${OPSYS} == "Darwin" || ${OPSYS} == "Interix" | |
27 | # No native support for these OS's, so use esound for audio output | 33 | # No native support for these OS's, so use esound for audio output | |
28 | .include "../../audio/esound/buildlink3.mk" | 34 | .include "../../audio/esound/buildlink3.mk" | |
29 | .endif | 35 | .endif | |
30 | 36 | |||
31 | pre-install: | |||
32 | ${INSTALL_DATA_DIR} ${EGDIR} | |||
33 | ||||
34 | .include "../../mk/bsd.pkg.mk" | 37 | .include "../../mk/bsd.pkg.mk" |
@@ -1,10 +1,10 @@ | @@ -1,10 +1,10 @@ | |||
1 | $NetBSD: distinfo,v 1.10 2009/01/09 20:43:53 shattered Exp $ | 1 | $NetBSD: distinfo,v 1.11 2009/02/07 21:10:48 joerg Exp $ | |
2 | 2 | |||
3 | SHA1 (xmp-2.5.1.tar.gz) = 20ce22f453e49adb590b3cbd3ae3e812eb7de4ee | 3 | SHA1 (xmp-2.5.1.tar.gz) = 20ce22f453e49adb590b3cbd3ae3e812eb7de4ee | |
4 | RMD160 (xmp-2.5.1.tar.gz) = 5fcd7f62b34424e5848806244485d5960a068cc8 | 4 | RMD160 (xmp-2.5.1.tar.gz) = 5fcd7f62b34424e5848806244485d5960a068cc8 | |
5 | Size (xmp-2.5.1.tar.gz) = 772595 bytes | 5 | Size (xmp-2.5.1.tar.gz) = 772595 bytes | |
6 | SHA1 (patch-ac) = e6db4ff056954cf25030160cf12c30e45b24fda1 | 6 | SHA1 (patch-ac) = 5831f36e9b13c9e658c7e204b3fdb33f08e560d0 | |
7 | SHA1 (patch-ag) = 813d3c73334cb025b2900d398fb8be8ec2b42d22 | 7 | SHA1 (patch-ag) = 813d3c73334cb025b2900d398fb8be8ec2b42d22 | |
8 | SHA1 (patch-ah) = 0807af0d328f578cacf121d12370cd59841d9924 | 8 | SHA1 (patch-ah) = 0807af0d328f578cacf121d12370cd59841d9924 | |
9 | SHA1 (patch-al) = d909468c772325acf3d5e16daeaf7e62a36c7582 | 9 | SHA1 (patch-al) = d909468c772325acf3d5e16daeaf7e62a36c7582 | |
10 | SHA1 (patch-am) = d22d3310225f070327ec891046bd5113b6352251 | 10 | SHA1 (patch-am) = d22d3310225f070327ec891046bd5113b6352251 |
@@ -1,14 +1,14 @@ | @@ -1,14 +1,14 @@ | |||
1 | $NetBSD: patch-ac,v 1.4 2009/01/09 20:43:53 shattered Exp $ | 1 | $NetBSD: patch-ac,v 1.5 2009/02/07 21:10:48 joerg Exp $ | |
2 | 2 | |||
3 | --- etc/Makefile.orig 2007-10-23 11:28:30.000000000 +0000 | 3 | --- etc/Makefile.orig 2007-10-23 11:28:30.000000000 +0000 | |
4 | +++ etc/Makefile | 4 | +++ etc/Makefile | |
5 | @@ -14,7 +14,6 @@ subdist:: all | 5 | @@ -14,7 +14,6 @@ subdist:: all | |
6 | include $(TOPDIR)/Makefile.rules | 6 | include $(TOPDIR)/Makefile.rules | |
7 | 7 | |||
8 | install:: | 8 | install:: | |
9 | - @echo Installing xmp.conf and xmp-modules.conf in $(SYSCONFDIR)... | 9 | - @echo Installing xmp.conf and xmp-modules.conf in $(SYSCONFDIR)... | |
10 | - @[ -d $(DESTDIR)$(SYSCONFDIR) ] || mkdir -p $(DESTDIR)$(SYSCONFDIR) | 10 | - @[ -d $(DESTDIR)$(SYSCONFDIR) ] || mkdir -p $(DESTDIR)$(SYSCONFDIR) | |
11 | - $(INSTALL) -m644 xmp.conf xmp-modules.conf $(DESTDIR)$(SYSCONFDIR)/ | 11 | - $(INSTALL) -m644 xmp.conf xmp-modules.conf $(DESTDIR)$(SYSCONFDIR)/ | |
12 | + @echo Installing xmp.conf and xmp-modules.conf in $(datarootdir)/examples/xmp... | 12 | + @echo Installing xmp.conf and xmp-modules.conf in ${DESTDIR}$(datarootdir)/examples/xmp... | |
13 | + $(INSTALL) -m644 xmp.conf xmp-modules.conf $(datarootdir)/examples/xmp | 13 | + $(INSTALL) -m644 xmp.conf xmp-modules.conf ${DESTDIR}$(datarootdir)/examples/xmp | |
14 | 14 |