diff options
author | kim <kim> | 2002-11-29 02:37:21 +0000 |
---|---|---|
committer | kim <kim> | 2002-11-29 02:37:21 +0000 |
commit | 917795374d4fc9ac8f0042e14484d1c035eb50f4 (patch) | |
tree | fd5b6d192364880ed21b4265c20798beb555abab /audio/abcde/Makefile | |
parent | af2ee7701853a74fc076ca3a74ef57131e4db21c (diff) | |
download | pkgsrc-917795374d4fc9ac8f0042e14484d1c035eb50f4.tar.gz |
Preserve pkgsrc and distribution defaults better:
- use ${PKG_SYSCONFBASE} instead of hardcoded /usr/pkg/etc
- keep the ID3v2 default as distributed, and depend on audio/id3v2
- don't depend on vorbis-tools: just inform the user about the need
to install at least one of the supported encoders
- sample config only has commented out entries, so install it only
in the examples directory
Diffstat (limited to 'audio/abcde/Makefile')
-rw-r--r-- | audio/abcde/Makefile | 22 |
1 files changed, 14 insertions, 8 deletions
diff --git a/audio/abcde/Makefile b/audio/abcde/Makefile index fa8766d24f3..37b10ab3c0c 100644 --- a/audio/abcde/Makefile +++ b/audio/abcde/Makefile @@ -1,9 +1,10 @@ -# $NetBSD: Makefile,v 1.6 2002/09/20 00:33:12 hubertf Exp $ +# $NetBSD: Makefile,v 1.7 2002/11/29 02:37:21 kim Exp $ -DISTNAME= abcde_2.0.3.orig -PKGNAME= abcde-2.0.3 +DISTNAME= abcde-2.0.3 +PKGREVISION= 1 CATEGORIES= audio MASTER_SITES= http://frantica.lly.org/~rcw/abcde/ +DISTFILES= ${DISTNAME:S/-/_/}.orig.tar.gz MAINTAINER= lukem@netbsd.org HOMEPAGE= http://frantica.lly.org/~rcw/abcde/page/ @@ -11,24 +12,29 @@ COMMENT= Command-line utility to rip and encode an audio CD DEPENDS+= cd-discid>=0.7:../../audio/cd-discid DEPENDS+= id3-[0-9]*:../../audio/id3 +DEPENDS+= id3v2-[0-9]*:../../audio/id3v2 DEPENDS+= cdparanoia>=3.0.9.7:../../audio/cdparanoia -DEPENDS+= vorbis-tools>=1.0.0.6:../../audio/vorbis-tools DEPENDS+= wget>=1.7:../../net/wget -WRKSRC= ${WRKDIR}/${PKGNAME} - NO_BUILD= # defined +EGDIR= ${PREFIX}/share/examples/abcde + +MESSAGE_SUBST+= EGDIR=${EGDIR} +MESSAGE_SUBST+= PKG_SYSCONFBASE=${PKG_SYSCONFBASE} + post-patch: @cd ${WRKSRC} && for f in abcde abcde.1; do \ - ${SED} "s,@ETCDIR@,${PREFIX}/etc," $$f > $$f.tmp && \ + ${SED} "s,@PKG_SYSCONFBASE@,${PKG_SYSCONFBASE}," \ + $$f > $$f.tmp && \ ${MV} $$f.tmp $$f; \ done do-install: ${INSTALL_SCRIPT} ${WRKSRC}/abcde ${PREFIX}/bin ${INSTALL_SCRIPT} ${WRKSRC}/cddb-tool ${PREFIX}/bin - ${INSTALL_DATA} ${WRKSRC}/abcde.conf ${PREFIX}/etc + ${INSTALL_DATA_DIR} ${EGDIR} + ${INSTALL_DATA} ${WRKSRC}/abcde.conf ${EGDIR} ${INSTALL_MAN} ${WRKSRC}/abcde.1 ${PREFIX}/man/man1 ${INSTALL_MAN} ${WRKSRC}/cddb-tool.1 ${PREFIX}/man/man1 |