blob: caadaafc7355dcb9d0a58b8716596fa3f5b15bab (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
|
# New ports collection makefile for: csound
# Date created: 2000-10-11
# Whom: trevor
#
# $FreeBSD$
#
PORTNAME= csound
PORTVERSION= 4.08
PORTREVISION= 1
CATEGORIES= audio
MASTER_SITES= ftp://ftp.maths.bath.ac.uk/pub/dream/newest/
DISTFILES= Csound.tar.gz
.if !defined(NOPORTDOCS)
DISTFILES+= Version${PORTVERSION:S/./_/}.Notes
.endif
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
PLIST= ${WRKDIR}/pkg-plist
USE_X_PREFIX= yes
pre-build:
find ${WRKDIR} -type f -exec ${CHMOD} 644 \{\} \;
post-build:
${RM} -f ${PLIST}
@for i in `find ${WRKDIR} -type f -perm 755`; do \
${ECHO} bin/`${BASENAME} $${i}` >> ${PLIST}; \
done
${ECHO} share/csound/csound.dat >> ${PLIST}
.if !defined(NOPORTDOCS)
${ECHO} share/doc/csound/Version${PORTVERSION:S/./_/}.Notes >> ${PLIST}
${ECHO} "@dirrm share/doc/csound" >> ${PLIST}
.endif
${ECHO} "@dirrm share/csound" >> ${PLIST}
post-patch:
${PERL} -pi -e "s:PREFIX:${PREFIX}:g" ${WRKSRC}/getstring.c
do-install:
${MKDIR} ${PREFIX}/share/csound
.if !defined(NOPORTDOCS)
${MKDIR} ${PREFIX}/share/doc/csound
${INSTALL_DATA} ${_DISTDIR}/Version${PORTVERSION:S/./_/}.Notes \
${PREFIX}/share/doc/csound
.endif
${INSTALL_DATA} ${WRKSRC}/csound.txt ${PREFIX}/share/csound/csound.dat
for i in `find ${WRKDIR} -type f -perm 755`; do \
${INSTALL_PROGRAM} $${i} ${PREFIX}/bin ; \
done
.include <bsd.port.mk>
|