diff options
author | hans <hans@pkgsrc.org> | 2011-04-21 17:53:26 +0000 |
---|---|---|
committer | hans <hans@pkgsrc.org> | 2011-04-21 17:53:26 +0000 |
commit | a3fa89a237f2d4ae74ece8037c9fb89e984530f8 (patch) | |
tree | c81ecc1c7acd1ca02e719973a54ae9a96c0fb40c /audio | |
parent | d86c6c16d6632650e25ed36abd50dc62044c6012 (diff) | |
download | pkgsrc-a3fa89a237f2d4ae74ece8037c9fb89e984530f8.tar.gz |
Make this work on SunOS.
audio/cdparanoia is not available for SunOS, but devel/libcdio has a
working alternative. Also, don't depend on gsed directly, add it to
USE_TOOLS.
Diffstat (limited to 'audio')
-rw-r--r-- | audio/abcde/Makefile | 23 | ||||
-rw-r--r-- | audio/abcde/distinfo | 4 | ||||
-rw-r--r-- | audio/abcde/patches/patch-ac | 10 |
3 files changed, 29 insertions, 8 deletions
diff --git a/audio/abcde/Makefile b/audio/abcde/Makefile index 98bc8a053d3..46b450b1ac3 100644 --- a/audio/abcde/Makefile +++ b/audio/abcde/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.44 2010/04/11 07:25:49 sekiya Exp $ +# $NetBSD: Makefile,v 1.45 2011/04/21 17:53:26 hans Exp $ DISTNAME= abcde-2.3.99.7_p235 PKGNAME= abcde-2.3.99.7 @@ -10,12 +10,15 @@ MAINTAINER= sekiya@NetBSD.org HOMEPAGE= http://code.google.com/p/abcde/ COMMENT= Command-line utility to rip and encode an audio CD +.include "../../mk/bsd.prefs.mk" + 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 +.if ${OPSYS} != "SunOS" +DEPENDS+= cdparanoia>=>=3.0.9.7:../../audio/cdparanoia +.endif DEPENDS+= mkcue>=2.1:../../misc/mkcue -DEPENDS+= gsed>=4.2:../../textproc/gsed PKG_DESTDIR_SUPPORT= user-destdir @@ -23,7 +26,7 @@ NO_BUILD= yes EXTRACT_SUFX= .tar.bz2 WRKSRC= ${WRKDIR}/${PKGNAME_NOREV} -USE_TOOLS+= bash:run +USE_TOOLS+= bash:run gsed:run REPLACE_BASH= abcde EGDIR= ${PREFIX}/share/examples/abcde @@ -49,4 +52,16 @@ do-install: ${INSTALL_MAN} ${WRKSRC}/cddb-tool.1 \ ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1 +.if ${OPSYS} == "SunOS" +USE_TOOLS+= ftp:run + +SUBST_CLASSES+= abcde-cdparanoia +SUBST_STAGE.abcde-cdparanoia= pre-configure +SUBST_MESSAGE.abcde-cdparanoia= Adjusting cd-paranoia command name +SUBST_FILES.abcde-cdparanoia= abcde abcde.conf +SUBST_SED.abcde-cdparanoia= -e "/CDPARANOIA=cdparanoia/s/cdparanoia/cd-paranoia/" + +.include "../../misc/libcdio/buildlink3.mk" +.endif + .include "../../mk/bsd.pkg.mk" diff --git a/audio/abcde/distinfo b/audio/abcde/distinfo index 5500f1845c8..8c69798b41d 100644 --- a/audio/abcde/distinfo +++ b/audio/abcde/distinfo @@ -1,7 +1,7 @@ -$NetBSD: distinfo,v 1.34 2010/04/11 07:25:49 sekiya Exp $ +$NetBSD: distinfo,v 1.35 2011/04/21 17:53:26 hans Exp $ SHA1 (abcde-2.3.99.7_p235.tar.bz2) = 51db5e7da9b3eda0844904ad2b9138fa97eeb254 RMD160 (abcde-2.3.99.7_p235.tar.bz2) = bbb7116a8a06ffae6e0027e5a7524e023bfd71cf Size (abcde-2.3.99.7_p235.tar.bz2) = 171342 bytes SHA1 (patch-ab) = eacbb4582c8dc74c6415adbb0af387aacce81ccc -SHA1 (patch-ac) = 28fe0fceeb0d0f0ebb1207a487db5c0d68745d98 +SHA1 (patch-ac) = b6bcd301ff64fb11e7a5bda91e13b75dea568dbc diff --git a/audio/abcde/patches/patch-ac b/audio/abcde/patches/patch-ac index 20c6db4ae01..c2acf8020ff 100644 --- a/audio/abcde/patches/patch-ac +++ b/audio/abcde/patches/patch-ac @@ -1,4 +1,4 @@ -$NetBSD: patch-ac,v 1.26 2010/04/11 07:25:49 sekiya Exp $ +$NetBSD: patch-ac,v 1.27 2011/04/21 17:53:26 hans Exp $ --- abcde.orig 2010-04-10 10:14:30.000000000 +0900 +++ abcde 2010-04-10 18:40:03.000000000 +0900 @@ -126,5 +126,11 @@ $NetBSD: patch-ac,v 1.26 2010/04/11 07:25:49 sekiya Exp $ OSFLAVOUR=NBSD + SED=gsed elif [ X$(uname) = "SunOS" ] ; then - HTTPGET="" +- HTTPGET="" ++ HTTPGET=ftp MD5SUM=md5 + OSFLAVOUR=SunOS ++ SED=gsed + else + HTTPGET=wget + fi |