diff options
author | mi <mi@FreeBSD.org> | 2012-04-11 14:18:00 +0800 |
---|---|---|
committer | mi <mi@FreeBSD.org> | 2012-04-11 14:18:00 +0800 |
commit | d54126dbf927441bbaffde0fae0040a9e071ab9f (patch) | |
tree | 1319eb3592a2914c0875e8a1511b62e4e4fc1a14 /audio/tclmidi/Makefile | |
parent | 4dbd8e94c38dd55219d1293f59b6bab54ebbd671 (diff) | |
download | freebsd-ports-gnome-d54126dbf927441bbaffde0fae0040a9e071ab9f.tar.gz freebsd-ports-gnome-d54126dbf927441bbaffde0fae0040a9e071ab9f.tar.zst freebsd-ports-gnome-d54126dbf927441bbaffde0fae0040a9e071ab9f.zip |
Unbreak and fix:
* Use BSDmakefile (and bsd.lib.mk) instead of
configure/Makefile.in;
* plug some (but not all!) ancient memory leaks;
* make use of bsd.tcl.mk (now requires Tcl-8.4 or higher);
* fix warnings and 64-bit issues;
* bump PORTREVISION.
To do:
* plug the remaining memory leak (valgrind is priceless!);
* fix up the author's tests to uniformly report failure or
success and arrange for them to run post-build.
Feature safe: yes
Diffstat (limited to 'audio/tclmidi/Makefile')
-rw-r--r-- | audio/tclmidi/Makefile | 40 |
1 files changed, 19 insertions, 21 deletions
diff --git a/audio/tclmidi/Makefile b/audio/tclmidi/Makefile index 637732d2f9f7..77c25fe44195 100644 --- a/audio/tclmidi/Makefile +++ b/audio/tclmidi/Makefile @@ -7,22 +7,20 @@ PORTNAME= tclmidi PORTVERSION= 3.1 +PORTREVISION= 1 CATEGORIES= audio -MASTER_SITES= ftp://ftp.cs.ruu.nl/pub/MIDI/PROGRAMS/ \ - http://ringtail.its.monash.edu.au/pub/midi/PROGRAMS/ -# despite references on the homepage to ftp.xor.com, that server -# doesn't work - edwin 20021227 +MASTER_SITES= http://ringtail.its.monash.edu.au/pub/midi/PROGRAMS/ MAINTAINER= ports@FreeBSD.org COMMENT= A language designed for creating and editing standard MIDI files -LIB_DEPENDS= tcl82.1:${PORTSDIR}/lang/tcl82 - -MAKE_ENV= TCL_GENERIC_DIR=${LOCALBASE}/include/tcl8.2 -GNU_CONFIGURE= yes -CONFIGURE_ARGS= --with-tclsh=${LOCALBASE}/bin/tclsh8.2 +USE_TCL= 84+ +MAKE_ENV= TCL_INCLUDEDIR="${TCL_INCLUDEDIR}" TCL_LIBDIR="${TCL_LIBDIR}" +MAKE_ENV+= TCLSH=${TCLSH} FILESDIR="${FILESDIR}" MAN="${MAN1} ${MANN}" PKGMESSAGE= ${WRKDIR}/pkg-message SUB_FILES= pkg-message +MAKE_JOBS_SAFE= yes +MAKEFILE= ${FILESDIR}/BSDmakefile MAN1= mplay.1 mrec.1 tclmidi.1 minfo.1 midtotcl.1 MANN= midiconf.n midievnt.n midifree.n midiget.n midigrep.n \ @@ -30,19 +28,19 @@ MANN= midiconf.n midievnt.n midifree.n midiget.n midigrep.n \ midirec.n midirew.n midisplt.n midistop.n midiwait.n \ midiwrit.n midivers.n midimove.n midicopy.n mididel.n \ miditrck.n mididev.n miditime.n midifeat.n +MANCOMPRESSED= maybe -.include <bsd.port.pre.mk> - -.if ${ARCH} == "ia64" || ${ARCH} == "sparc64" -IGNORE= ignored due to cast from pointer to integer of different size -.elif ${OSVERSION} >= 900000 -BROKEN= does not build -.endif - -post-patch: - @${CP} -f ${FILESDIR}/strstream.h ${WRKSRC} +post-build: + cd ${WRKSRC} && echo pkg_mkIndex . tclmidi31.so | ${TCLSH} -post-install: +pre-su-install: +.for s in mplay mrec minfo midtotcl + ${SED} 's|/usr/local/bin/tclsh|${TCLSH}|' \ + < ${WRKSRC}/$s.dist > ${PREFIX}/bin/$s + ${CHMOD} 755 ${PREFIX}/bin/$s +.endfor @${CAT} ${PKGMESSAGE} + ${MKDIR} ${PREFIX}/lib/tclmidi + ${INSTALL_DATA} ${WRKSRC}/pkgIndex.tcl ${PREFIX}/lib/tclmidi/ -.include <bsd.port.post.mk> +.include <bsd.port.mk> |