diff options
author | trevor <trevor@FreeBSD.org> | 2002-01-23 08:45:37 +0800 |
---|---|---|
committer | trevor <trevor@FreeBSD.org> | 2002-01-23 08:45:37 +0800 |
commit | 14eb44a7e974cfc7a7bd509b73d2b6392caef5e9 (patch) | |
tree | 22b39d182640f7d7bf8ee63c1474861c194966ab /audio/csound/Makefile | |
parent | c74572cf2c16243331ebb0fcb605ddcb75f604ef (diff) | |
download | freebsd-ports-gnome-14eb44a7e974cfc7a7bd509b73d2b6392caef5e9.tar.gz freebsd-ports-gnome-14eb44a7e974cfc7a7bd509b73d2b6392caef5e9.tar.zst freebsd-ports-gnome-14eb44a7e974cfc7a7bd509b73d2b6392caef5e9.zip |
Update to 4.16.
Submitted by: Sven Petai <hadara@bsd.ee>
PR: 34160
also:
Use new FIND and DATADIR macros.
Simplify do-install target.
Add warning.
The csound.txt data file has been renamed upstream to csound.xmg,
so don't rename it to csound.dat. Users will know it is not a text
file.
Diffstat (limited to 'audio/csound/Makefile')
-rw-r--r-- | audio/csound/Makefile | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/audio/csound/Makefile b/audio/csound/Makefile index 48662f07f6c6..aa2c33120408 100644 --- a/audio/csound/Makefile +++ b/audio/csound/Makefile @@ -6,16 +6,14 @@ # PORTNAME= csound -PORTVERSION= 4.13 +PORTVERSION= 4.16 CATEGORIES= audio MASTER_SITES= ftp://ftp.maths.bath.ac.uk/pub/dream/newest/ -DISTFILES= Csound${PORTVERSION}.tar.gz +DISTNAME= Csound${PORTVERSION} DIST_SUBDIR= csound -EXTRACT_ONLY= Csound${PORTVERSION}.tar.gz MAINTAINER= trevor@FreeBSD.org -BROKEN= "distfile was overwritten" LIB_DEPENDS= tcl83:${PORTSDIR}/lang/tcl83 \ tk83:${PORTSDIR}/x11-toolkits/tk83 @@ -24,6 +22,7 @@ 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 +PKGMESSAGE= ${WRKDIR}/pkg-message PLIST= ${WRKDIR}/pkg-plist USE_X_PREFIX= yes @@ -32,21 +31,22 @@ pre-build: post-build: ${RM} -f ${PLIST} - @for i in `find ${WRKDIR} -type f -perm 755`; do \ + for i in `find ${WRKDIR} -type f -perm 755`; do \ ${ECHO} bin/`${BASENAME} $${i}` >> ${PLIST}; \ done - ${ECHO} share/csound/csound.dat >> ${PLIST} + ${ECHO} share/csound/csound.xmg >> ${PLIST} ${ECHO} "@dirrm share/csound" >> ${PLIST} + ${ECHO} "*** WARNING ***" > ${PKGMESSAGE} + ${ECHO} "The sources for the csound package have not been" >> ${PKGMESSAGE} + ${ECHO} "thoroughly reviewed by the FreeBSD maintainer." >> ${PKGMESSAGE} post-patch: - ${PERL} -pi -e "s:/usr/local/lib:${PREFIX}/share/csound:g" ${WRKSRC}/getstring.c - ${PERL} -pi -e "s:csound.txt:csound.dat:g" ${WRKSRC}/getstring.c + ${PERL} -pi -e "s:/usr/local/lib:${DATADIR}:g" ${WRKSRC}/getstring.c do-install: ${MKDIR} ${PREFIX}/share/csound - ${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 + ${INSTALL_DATA} ${WRKSRC}/csound.xmg ${DATADIR}/csound.xmg + ${FIND} ${WRKDIR} -type f -perm 755 \ + -exec ${INSTALL_PROGRAM} {} ${PREFIX}/bin \; .include <bsd.port.mk> |