diff options
Diffstat (limited to 'audio')
-rw-r--r-- | audio/snack/Makefile | 23 | ||||
-rw-r--r-- | audio/snack/distinfo | 2 | ||||
-rw-r--r-- | audio/snack/pkg-plist | 1 |
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%% |