2001-11-24 05:37:05 +00:00
|
|
|
# ex:ts=8
|
|
|
|
# New ports collection makefile for: snack
|
|
|
|
# Date created: Nov 24, 2001
|
|
|
|
# Whom: ijliao
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= snack
|
2003-06-15 22:05:32 +00:00
|
|
|
PORTVERSION= 2.2.2
|
2003-08-17 01:14:07 +00:00
|
|
|
PORTREVISION= 1
|
|
|
|
CATEGORIES= audio tcl84 tk84
|
2001-11-24 05:37:05 +00:00
|
|
|
MASTER_SITES= http://www.speech.kth.se/~kare/
|
|
|
|
DISTNAME= ${PORTNAME}${PORTVERSION}
|
|
|
|
|
|
|
|
MAINTAINER= ports@FreeBSD.org
|
2003-02-20 17:07:10 +00:00
|
|
|
COMMENT= The Snack Sound Toolkit
|
2001-11-24 05:37:05 +00:00
|
|
|
|
2003-08-17 01:14:07 +00:00
|
|
|
LIB_DEPENDS= tk84.1:${PORTSDIR}/x11-toolkits/tk84
|
2001-12-16 19:38:20 +00:00
|
|
|
|
2001-11-24 05:37:05 +00:00
|
|
|
WRKSRC= ${WRKDIR}/${DISTNAME}/unix
|
2002-09-01 16:07:59 +00:00
|
|
|
USE_REINPLACE= yes
|
2001-11-24 05:37:05 +00:00
|
|
|
GNU_CONFIGURE= yes
|
2003-08-17 01:14:07 +00:00
|
|
|
CONFIGURE_ARGS= --with-tcl=${LOCALBASE}/lib/tcl8.4 \
|
|
|
|
--with-tk=${LOCALBASE}/lib/tk8.4 \
|
2002-06-17 08:21:53 +00:00
|
|
|
--prefix=${PREFIX}
|
|
|
|
|
2003-06-15 22:05:32 +00:00
|
|
|
PLIST_SUB= SNACK_VER=2.2
|
2001-11-24 05:37:05 +00:00
|
|
|
|
2002-06-17 08:21:53 +00:00
|
|
|
.if defined(WITH_VORBIS)
|
2002-07-20 15:32:43 +00:00
|
|
|
LIB_DEPENDS+= vorbis.2:${PORTSDIR}/audio/libvorbis
|
2003-10-27 09:11:28 +00:00
|
|
|
CONFIGURE_ARGS+= --with-ogg-include=${LOCALBASE}/include \
|
|
|
|
--with-ogg-lib=${LOCALBASE}/lib
|
2002-06-17 08:21:53 +00:00
|
|
|
ALL_TARGET= all libsnackogg.so
|
|
|
|
PLIST_SUB+= VORBIS=""
|
|
|
|
.else
|
|
|
|
PLIST_SUB+= VORBIS="@comment "
|
|
|
|
.endif
|
|
|
|
|
2003-02-28 22:53:02 +00:00
|
|
|
pre-everything::
|
2002-06-17 08:21:53 +00:00
|
|
|
.if !defined(WITH_VORBIS)
|
2003-09-27 00:23:56 +00:00
|
|
|
@${ECHO_MSG}
|
|
|
|
@${ECHO_MSG} 'Use "make WITH_VORBIS=yes" to build support for OGG Vorbis.'
|
|
|
|
@${ECHO_MSG}
|
2002-06-17 08:21:53 +00:00
|
|
|
.endif
|
|
|
|
|
2001-11-24 05:37:05 +00:00
|
|
|
post-patch:
|
2003-06-15 22:05:32 +00:00
|
|
|
@${REINPLACE_CMD} -e "s,%%LOCALBASE%%,${LOCALBASE},g" \
|
|
|
|
-e "s,%%PREFIX%%,${PREFIX},g" ${WRKSRC}/Makefile.in
|
2001-11-24 05:37:05 +00:00
|
|
|
|
|
|
|
.if !defined(NOPORTDOCS)
|
|
|
|
post-install:
|
|
|
|
@${MKDIR} ${DOCSDIR}
|
|
|
|
${CP} ${WRKSRC}/../doc/* ${DOCSDIR}
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|