summaryrefslogtreecommitdiffstats
path: root/audio
diff options
context:
space:
mode:
authorjkoshy <jkoshy@FreeBSD.org>2002-06-17 08:21:53 +0000
committerjkoshy <jkoshy@FreeBSD.org>2002-06-17 08:21:53 +0000
commit91cc07e050734359bfe09c37d005520b4d5de317 (patch)
tree694905535b2ce8c9215234103e813bfd378f7cca /audio
parent794a0582efaf441c1e6dbe0a84f26fdc00f6a50d (diff)
downloadFreeBSD-ports-91cc07e050734359bfe09c37d005520b4d5de317.zip
FreeBSD-ports-91cc07e050734359bfe09c37d005520b4d5de317.tar.gz
Upgrade to v2.1.6. Make port respect ${PREFIX}. Add conditional support
for OGG/VORBIS (make 'WITH_VORBIS=yes'). PR: ports/35476 Submitted by: David Yeske <dyeske@yahoo.com>
Diffstat (limited to 'audio')
-rw-r--r--audio/snack/Makefile23
-rw-r--r--audio/snack/distinfo2
-rw-r--r--audio/snack/pkg-plist1
3 files changed, 23 insertions, 3 deletions
diff --git a/audio/snack/Makefile b/audio/snack/Makefile
index 96e405a..4506a48 100644
--- a/audio/snack/Makefile
+++ b/audio/snack/Makefile
@@ -7,7 +7,7 @@
#
PORTNAME= snack
-PORTVERSION= 2.1.4
+PORTVERSION= 2.1.6
CATEGORIES= audio tcl83 tk83
MASTER_SITES= http://www.speech.kth.se/~kare/
DISTNAME= ${PORTNAME}${PORTVERSION}
@@ -19,9 +19,28 @@ LIB_DEPENDS= tk83.1:${PORTSDIR}/x11-toolkits/tk83
WRKSRC= ${WRKDIR}/${DISTNAME}/unix
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --with-tcl=${LOCALBASE}/lib/tcl8.3 \
- --with-tk=${LOCALBASE}/lib/tk8.3
+ --with-tk=${LOCALBASE}/lib/tk8.3 \
+ --prefix=${PREFIX}
+
PLIST_SUB= SNACK_VER=${PORTVERSION:R}
+.if defined(WITH_VORBIS)
+LIB_DEPENDS+= vorbis.1:${PORTSDIR}/audio/libvorbis
+CONFIGURE_ARGS+= --with-ogg-include=${LOCALBASE}/include \
+ --with-ogg-lib=${LOCALBASE}/lib
+ALL_TARGET= all libsnackogg.so
+PLIST_SUB+= VORBIS=""
+.else
+PLIST_SUB+= VORBIS="@comment "
+.endif
+
+pre-everything:
+.if !defined(WITH_VORBIS)
+ @${ECHO}
+ @${ECHO} 'Use "make WITH_VORBIS=yes" to build support for OGG Vorbis.'
+ @${ECHO}
+.endif
+
post-patch:
@${PERL} -pi -e "s,%%LOCALBASE%%,${LOCALBASE},g" ${WRKSRC}/Makefile.in
diff --git a/audio/snack/distinfo b/audio/snack/distinfo
index c71e56d..e83472e 100644
--- a/audio/snack/distinfo
+++ b/audio/snack/distinfo
@@ -1 +1 @@
-MD5 (snack2.1.4.tar.gz) = a63251923d947ac7cefb908f824374f9
+MD5 (snack2.1.6.tar.gz) = 6f0fa148ec6445e20936d09f92327ef4
diff --git a/audio/snack/pkg-plist b/audio/snack/pkg-plist
index 2b3cafa..367fd1a 100644
--- a/audio/snack/pkg-plist
+++ b/audio/snack/pkg-plist
@@ -1,6 +1,7 @@
lib/libsnackstub%%SNACK_VER%%.a
lib/snack%%SNACK_VER%%/libsnack.so
lib/snack%%SNACK_VER%%/libsound.so
+%%VORBIS%%lib/snack%%SNACK_VER%%/libsnackogg.so
lib/snack%%SNACK_VER%%/pkgIndex.tcl
lib/snack%%SNACK_VER%%/snack.tcl
@dirrm lib/snack%%SNACK_VER%%
OpenPOWER on IntegriCloud