2000-10-12 01:58:05 +00:00
# New ports collection makefile for: csound
# Date created: 2000-10-11
# Whom: trevor
#
# $FreeBSD$
#
PORTNAME = csound
2002-01-23 00:45:37 +00:00
PORTVERSION = 4.16
2000-10-12 01:58:05 +00:00
CATEGORIES = audio
MASTER_SITES = ftp://ftp.maths.bath.ac.uk/pub/dream/newest/
2002-01-23 00:45:37 +00:00
DISTNAME = Csound${ PORTVERSION }
2000-10-12 01:58:05 +00:00
DIST_SUBDIR = csound
MAINTAINER = trevor@FreeBSD.org
LIB_DEPENDS = tcl83:${ PORTSDIR } /lang/tcl83 \
tk83:${ PORTSDIR } /x11-toolkits/tk83
RESTRICTED = "no redistribution; no commercial use except to make music (see http://mitpress.mit.edu/e-books/csound/fpage/FAQml/faq/faq.html#THE CSOUND COPYRIGHT ISSUES)"
MAKE_ENV = CPPFLAGS = " -I ${ PREFIX } /include " \
LDFLAGS = " -L ${ PREFIX } /lib -L ${ LOCALBASE } /lib "
NO_WRKSUBDIR = yes
2002-01-23 00:45:37 +00:00
PKGMESSAGE = ${ WRKDIR } /pkg-message
2000-10-18 12:16:11 +00:00
PLIST = ${ WRKDIR } /pkg-plist
2000-10-12 01:58:05 +00:00
USE_X_PREFIX = yes
pre-build :
2002-01-29 09:33:26 +00:00
${ FIND } ${ WRKDIR } -type f -exec ${ CHMOD } 644 \{ \} \;
2000-10-18 12:16:11 +00:00
post-build :
2000-10-12 01:58:05 +00:00
${ RM } -f ${ PLIST }
2002-01-23 00:45:37 +00:00
for i in ` find ${ WRKDIR } -type f -perm 755` ; do \
2002-01-29 09:33:26 +00:00
${ ECHO_CMD } bin/` ${ BASENAME } $$ { i} ` >> ${ PLIST } ; \
2000-10-18 12:16:11 +00:00
done
2002-01-29 09:33:26 +00:00
${ ECHO_CMD } share/csound/csound.xmg >> ${ PLIST }
${ ECHO_CMD } "@dirrm share/csound" >> ${ PLIST }
${ ECHO_CMD } "*** WARNING ***" > ${ PKGMESSAGE }
${ ECHO_CMD } "The sources for the csound package have not been" >> ${ PKGMESSAGE }
${ ECHO_CMD } "thoroughly reviewed by the FreeBSD maintainer." >> ${ PKGMESSAGE }
2000-10-12 01:58:05 +00:00
post-patch :
2002-01-23 00:45:37 +00:00
${ PERL } -pi -e " s:/usr/local/lib: ${ DATADIR } :g " ${ WRKSRC } /getstring.c
2002-02-11 22:36:29 +00:00
${ FIND } ${ WRKSRC } -type f -exec \
${ PERL } -pi -e "s:<malloc.h>:<stdlib.h>:g" { } \;
2000-10-12 01:58:05 +00:00
do-install :
${ MKDIR } ${ PREFIX } /share/csound
2002-01-23 00:45:37 +00:00
${ INSTALL_DATA } ${ WRKSRC } /csound.xmg ${ DATADIR } /csound.xmg
${ FIND } ${ WRKDIR } -type f -perm 755 \
-exec ${ INSTALL_PROGRAM } { } ${ PREFIX } /bin \;
2000-10-12 01:58:05 +00:00
. i n c l u d e < b s d . p o r t . m k >