aboutsummaryrefslogtreecommitdiffstats
path: root/audio/tclmidi/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'audio/tclmidi/Makefile')
-rw-r--r--audio/tclmidi/Makefile40
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>