2001-11-24 06:37:05 +01:00
|
|
|
# ex:ts=8
|
|
|
|
# New ports collection makefile for: snack
|
|
|
|
# Date created: Nov 24, 2001
|
|
|
|
# Whom: ijliao
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= snack
|
2004-02-18 17:28:08 +01:00
|
|
|
PORTVERSION= 2.2.4
|
2003-08-17 03:14:07 +02:00
|
|
|
CATEGORIES= audio tcl84 tk84
|
2001-11-24 06:37:05 +01:00
|
|
|
MASTER_SITES= http://www.speech.kth.se/~kare/
|
|
|
|
DISTNAME= ${PORTNAME}${PORTVERSION}
|
|
|
|
|
|
|
|
MAINTAINER= ports@FreeBSD.org
|
2004-02-18 17:28:08 +01:00
|
|
|
COMMENT= A sound toolkit for scripting languages
|
2001-11-24 06:37:05 +01:00
|
|
|
|
2003-08-17 03:14:07 +02:00
|
|
|
LIB_DEPENDS= tk84.1:${PORTSDIR}/x11-toolkits/tk84
|
2001-12-16 20:38:20 +01:00
|
|
|
|
2001-11-24 06:37:05 +01:00
|
|
|
WRKSRC= ${WRKDIR}/${DISTNAME}/unix
|
2004-02-18 17:28:08 +01:00
|
|
|
|
2002-09-01 18:07:59 +02:00
|
|
|
USE_REINPLACE= yes
|
2001-11-24 06:37:05 +01:00
|
|
|
GNU_CONFIGURE= yes
|
2004-02-18 17:28:08 +01:00
|
|
|
CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
|
2003-08-17 03:14:07 +02:00
|
|
|
CONFIGURE_ARGS= --with-tcl=${LOCALBASE}/lib/tcl8.4 \
|
2004-02-18 17:28:08 +01:00
|
|
|
--with-tk=${LOCALBASE}/lib/tk8.4
|
|
|
|
MAKE_ENV= prefix=${PREFIX} exec_prefix=${PREFIX}
|
|
|
|
|
|
|
|
PLIST_SUB= SNACK_VER=${PORTVERSION:R}
|
|
|
|
|
|
|
|
CFLAGS+= -I${LOCALBASE}/include/tcl8.4 -I${LOCALBASE}/include/tk8.4 \
|
|
|
|
-I${LOCALBASE}/include
|
2002-06-17 10:21:53 +02:00
|
|
|
|
2004-02-18 17:28:08 +01:00
|
|
|
OPTIONS= VORBIS "Support for OGG/Vorbis Audio" off
|
|
|
|
|
|
|
|
.include <bsd.port.pre.mk>
|
2001-11-24 06:37:05 +01:00
|
|
|
|
2002-06-17 10:21:53 +02:00
|
|
|
.if defined(WITH_VORBIS)
|
2003-12-20 17:14:14 +01:00
|
|
|
LIB_DEPENDS+= vorbis.3:${PORTSDIR}/audio/libvorbis
|
2003-10-27 10:11:28 +01:00
|
|
|
CONFIGURE_ARGS+= --with-ogg-include=${LOCALBASE}/include \
|
|
|
|
--with-ogg-lib=${LOCALBASE}/lib
|
2002-06-17 10:21:53 +02:00
|
|
|
ALL_TARGET= all libsnackogg.so
|
|
|
|
PLIST_SUB+= VORBIS=""
|
|
|
|
.else
|
|
|
|
PLIST_SUB+= VORBIS="@comment "
|
|
|
|
.endif
|
|
|
|
|
2001-11-24 06:37:05 +01:00
|
|
|
post-install:
|
2004-02-18 17:28:08 +01:00
|
|
|
.if !defined(NOPORTDOCS)
|
2001-11-24 06:37:05 +01:00
|
|
|
@${MKDIR} ${DOCSDIR}
|
2004-02-18 17:28:08 +01:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/../doc/* ${DOCSDIR}
|
2001-11-24 06:37:05 +01:00
|
|
|
.endif
|
|
|
|
|
2004-02-18 17:28:08 +01:00
|
|
|
.include <bsd.port.post.mk>
|