diff options
author | joerg <joerg> | 2008-04-04 15:24:20 +0000 |
---|---|---|
committer | joerg <joerg> | 2008-04-04 15:24:20 +0000 |
commit | 8446e57acba2bfaa37dad1393c10667b40a30d0a (patch) | |
tree | 4d1d434a56bca91b16d63f9f676e385de1bde31c /audio | |
parent | 79076c58acbd3c3742017ba17e8c9129334422fd (diff) | |
download | pkgsrc-8446e57acba2bfaa37dad1393c10667b40a30d0a.tar.gz |
DESTDIR support.
Diffstat (limited to 'audio')
-rw-r--r-- | audio/gsm/Makefile | 16 | ||||
-rw-r--r-- | audio/gsm/distinfo | 4 | ||||
-rw-r--r-- | audio/gsm/patches/patch-ab | 6 |
3 files changed, 14 insertions, 12 deletions
diff --git a/audio/gsm/Makefile b/audio/gsm/Makefile index 719f2eb8029..2820d1f9c6e 100644 --- a/audio/gsm/Makefile +++ b/audio/gsm/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.30 2007/03/24 19:21:19 joerg Exp $ +# $NetBSD: Makefile,v 1.31 2008/04/04 15:24:20 joerg Exp $ # DISTNAME= gsm-1.0.10 @@ -10,17 +10,19 @@ MAINTAINER= pkgsrc-users@NetBSD.org HOMEPAGE= http://kbs.cs.tu-berlin.de/~jutta/toast.html COMMENT= Audio converter and library for converting u-law to gsm encoding +PKG_DESTDIR_SUPPORT= user-destdir + WRKSRC= ${WRKDIR}/gsm-1.0-pl10 USE_LIBTOOL= yes NO_CONFIGURE= yes -MAKE_ENV+= INSTALL_ROOT=${PREFIX:Q} ROOT=${WRKSRC:Q} -INSTALLATION_DIRS= bin include lib ${PKGMANDIR}/man1 ${PKGMANDIR}/man3 +MAKE_ENV+= ROOT=${WRKSRC:Q} +INSTALL_ENV+= INSTALL_ROOT=${DESTDIR:Q}${PREFIX:Q} +INSTALLATION_DIRS= bin include/gsm lib ${PKGMANDIR}/man1 ${PKGMANDIR}/man3 post-install: - ${INSTALL_DATA_DIR} ${PREFIX}/include/gsm - ${INSTALL_DATA} ${WRKSRC}/inc/private.h ${PREFIX}/include/gsm - ${INSTALL_DATA} ${WRKSRC}/inc/proto.h ${PREFIX}/include/gsm - ${INSTALL_DATA} ${WRKSRC}/inc/unproto.h ${PREFIX}/include/gsm + ${INSTALL_DATA} ${WRKSRC}/inc/private.h ${DESTDIR}${PREFIX}/include/gsm + ${INSTALL_DATA} ${WRKSRC}/inc/proto.h ${DESTDIR}${PREFIX}/include/gsm + ${INSTALL_DATA} ${WRKSRC}/inc/unproto.h ${DESTDIR}${PREFIX}/include/gsm .include "../../mk/bsd.pkg.mk" diff --git a/audio/gsm/distinfo b/audio/gsm/distinfo index 070f38def1c..45e0654ceb0 100644 --- a/audio/gsm/distinfo +++ b/audio/gsm/distinfo @@ -1,8 +1,8 @@ -$NetBSD: distinfo,v 1.5 2005/10/29 16:20:26 tv Exp $ +$NetBSD: distinfo,v 1.6 2008/04/04 15:24:20 joerg Exp $ SHA1 (gsm-1.0.10.tar.gz) = ee47a81f4137bf3ce933dc610cb2293055ce9c02 RMD160 (gsm-1.0.10.tar.gz) = 334f93ab232c0b5c1b3090ffa551af0ee0455ed0 Size (gsm-1.0.10.tar.gz) = 65928 bytes SHA1 (patch-aa) = 2c36148172e64602903e18d93e685d5bd84db5c8 -SHA1 (patch-ab) = 88bc6a8d77589f0ee95fca9268ae36a8d4a8b50a +SHA1 (patch-ab) = 39fa8d1211c500e444e3f8cd1689a53a81c56c2e SHA1 (patch-ac) = 9e4e582cfd4f6892531578d9df25a29485e8cf32 diff --git a/audio/gsm/patches/patch-ab b/audio/gsm/patches/patch-ab index 3dd888ea51b..bc685550160 100644 --- a/audio/gsm/patches/patch-ab +++ b/audio/gsm/patches/patch-ab @@ -1,4 +1,4 @@ -$NetBSD: patch-ab,v 1.7 2003/09/18 18:55:23 wiz Exp $ +$NetBSD: patch-ab,v 1.8 2008/04/04 15:24:20 joerg Exp $ --- Makefile.orig Tue Jul 2 10:36:06 1996 +++ Makefile Sun Jan 16 02:16:43 2000 @@ -120,7 +120,7 @@ $NetBSD: patch-ab,v 1.7 2003/09/18 18:55:23 wiz Exp $ + cd $(LIB) && \ + $(LIBTOOL) --mode=link $(CC) -o `$(BASENAME) $@` \ + $(GSM_OBJECTS:.o=.lo) \ -+ -rpath $(GSM_INSTALL_LIB) -version-info 1:10 ++ -rpath $(PREFIX)/lib -version-info 1:10 # Toast, Untoast and Tcat -- the compress-like frontends to gsm. @@ -209,7 +209,7 @@ $NetBSD: patch-ab,v 1.7 2003/09/18 18:55:23 wiz Exp $ + ${BSD_INSTALL_DATA} $? $(GSM_INSTALL_INC) + +$(GSM_INSTALL_LIB)/libgsm.la: $(LIBGSM) -+ ${LIBTOOL} --mode=install ${BSD_INSTALL_DATA} $? $(GSM_INSTALL_LIB) ++ ${LIBTOOL} --mode=install ${BSD_INSTALL_LIB} $? $(GSM_INSTALL_LIB) # Distribution |