2000-10-12 01:58:05 +00:00
|
|
|
# New ports collection makefile for: csound
|
|
|
|
# Date created: 2000-10-11
|
|
|
|
# Whom: trevor
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= csound
|
2003-05-03 15:56:24 +00:00
|
|
|
PORTVERSION= 4.23
|
2000-10-12 01:58:05 +00:00
|
|
|
CATEGORIES= audio
|
2002-03-10 09:17:54 +00:00
|
|
|
MASTER_SITES= ftp://sunsite.univie.ac.at/pub/sound/csound/newest/ \
|
|
|
|
ftp://ftp.cs.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
|
2003-03-01 14:34:33 +00:00
|
|
|
COMMENT= Sound synthesizer
|
2000-10-12 01:58:05 +00:00
|
|
|
|
2003-10-18 07:18:14 +00:00
|
|
|
LIB_DEPENDS= tcl84:${PORTSDIR}/lang/tcl84 \
|
|
|
|
tk84:${PORTSDIR}/x11-toolkits/tk84
|
2000-10-12 01:58:05 +00:00
|
|
|
|
2002-02-11 22:55:44 +00:00
|
|
|
RESTRICTED= "no redistribution; no commercial use except to make music (see http://mitpress.mit.edu/e-books/csound/fpage/FAQml/faq/faq.html)"
|
|
|
|
NO_CDROM= ${RESTRICTED}
|
|
|
|
NO_FTP= ${RESTRICTED}
|
2000-10-12 01:58:05 +00:00
|
|
|
|
|
|
|
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
|
2003-05-03 15:56:24 +00:00
|
|
|
USE_REINPLACE= yes
|
2000-10-12 01:58:05 +00:00
|
|
|
|
|
|
|
pre-build:
|
2003-05-03 15:56:24 +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-05-25 15:24:43 +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:
|
2003-05-03 15:56:24 +00:00
|
|
|
@${REINPLACE_CMD} -i -e "s:/usr/local/lib:${DATADIR}:g" ${WRKSRC}/getstring.c
|
|
|
|
@${FIND} ${WRKSRC} -type f -exec \
|
|
|
|
${REINPLACE_CMD} -i -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
|
|
|
|
|
|
|
.include <bsd.port.mk>
|