summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTrevor Johnson <trevor@FreeBSD.org>2000-10-18 12:16:11 +0000
committerTrevor Johnson <trevor@FreeBSD.org>2000-10-18 12:16:11 +0000
commit2147bbaf3c37d882af1d76ca17660949581e23b3 (patch)
treeb07ad3a632fffe253576189d1d4fff7989401083
parentDeactivate python-beta. (diff)
Construct PLIST in WRKDIR, to make bento a happy meal.
Install the ancillary commands too.
Notes
Notes: svn path=/head/; revision=33963
-rw-r--r--audio/csound/Makefile18
1 files changed, 11 insertions, 7 deletions
diff --git a/audio/csound/Makefile b/audio/csound/Makefile
index c2ee9580ba7f..a7a80cd65e90 100644
--- a/audio/csound/Makefile
+++ b/audio/csound/Makefile
@@ -26,13 +26,18 @@ RESTRICTED= "no redistribution; no commercial use except to make music (see http
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 bin/csound share/csound/csound.dat
- ${ECHO} ${i} >> ${PLIST}
-.endfor
+ @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}
@@ -49,10 +54,9 @@ do-install:
${INSTALL_DATA} ${_DISTDIR}/Version${PORTVERSION:S/./_/}.Notes \
${PREFIX}/share/doc/csound
.endif
- ${INSTALL_PROGRAM} ${WRKSRC}/csound ${PREFIX}/bin
${INSTALL_DATA} ${WRKSRC}/csound.txt ${PREFIX}/share/csound/csound.dat
-
-post-clean:
- ${RM} -f ${PLIST}
+ for i in `find ${WRKDIR} -type f -perm 755`; do \
+ ${INSTALL_PROGRAM} $${i} ${PREFIX}/bin ; \
+ done
.include <bsd.port.mk>