From 2147bbaf3c37d882af1d76ca17660949581e23b3 Mon Sep 17 00:00:00 2001 From: Trevor Johnson Date: Wed, 18 Oct 2000 12:16:11 +0000 Subject: Construct PLIST in WRKDIR, to make bento a happy meal. Install the ancillary commands too. --- audio/csound/Makefile | 18 +++++++++++------- 1 file 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 -- cgit v1.2.3