DESTDIR support.

This commit is contained in:
joerg 2008-04-04 15:24:20 +00:00
parent 186c640c51
commit 3cbba4d437
3 changed files with 14 additions and 12 deletions

View file

@ -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"

View file

@ -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

View file

@ -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