2000-10-11 21:58:05 -04:00
# New ports collection makefile for: csound
# Date created: 2000-10-11
# Whom: trevor
#
# $FreeBSD$
#
PORTNAME = csound
PORTVERSION = 4.08
2000-10-18 23:09:14 -04:00
PORTREVISION = 1
2000-10-11 21:58:05 -04:00
CATEGORIES = audio
MASTER_SITES = ftp://ftp.maths.bath.ac.uk/pub/dream/newest/
DISTFILES = Csound.tar.gz
. i f ! d e f i n e d ( N O P O R T D O C S )
DISTFILES += Version${ PORTVERSION : S /./_/ } .Notes
. e n d i f
DIST_SUBDIR = csound
EXTRACT_ONLY = Csound.tar.gz
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
2000-10-18 08:16:11 -04:00
PLIST = ${ WRKDIR } /pkg-plist
2000-10-11 21:58:05 -04:00
USE_X_PREFIX = yes
pre-build :
2000-10-18 08:16:11 -04:00
find ${ WRKDIR } -type f -exec ${ CHMOD } 644 \{ \} \;
post-build :
2000-10-11 21:58:05 -04:00
${ RM } -f ${ PLIST }
2000-10-18 08:16:11 -04:00
@for i in ` find ${ WRKDIR } -type f -perm 755` ; do \
${ ECHO } bin/` ${ BASENAME } $$ { i} ` >> ${ PLIST } ; \
done
${ ECHO } share/csound/csound.dat >> ${ PLIST }
2000-10-11 21:58:05 -04:00
. i f ! d e f i n e d ( N O P O R T D O C S )
${ ECHO } share/doc/csound/Version${ PORTVERSION : S /./_/ } .Notes >> ${ PLIST }
${ ECHO } "@dirrm share/doc/csound" >> ${ PLIST }
. e n d i f
${ ECHO } "@dirrm share/csound" >> ${ PLIST }
post-patch :
${ PERL } -pi -e " s:PREFIX: ${ PREFIX } :g " ${ WRKSRC } /getstring.c
do-install :
${ MKDIR } ${ PREFIX } /share/csound
. i f ! d e f i n e d ( N O P O R T D O C S )
${ MKDIR } ${ PREFIX } /share/doc/csound
${ INSTALL_DATA } ${ _DISTDIR } /Version${ PORTVERSION : S /./_/ } .Notes \
${ PREFIX } /share/doc/csound
. e n d i f
${ INSTALL_DATA } ${ WRKSRC } /csound.txt ${ PREFIX } /share/csound/csound.dat
2000-10-18 08:16:11 -04:00
for i in ` find ${ WRKDIR } -type f -perm 755` ; do \
${ INSTALL_PROGRAM } $$ { i} ${ PREFIX } /bin ; \
done
2000-10-11 21:58:05 -04:00
. i n c l u d e < b s d . p o r t . m k >