summaryrefslogtreecommitdiff
path: root/audio/tclmidi/files/patch-aa
diff options
context:
space:
mode:
authorMikhail Teterin <mi@FreeBSD.org>2012-04-11 06:18:00 +0000
committerMikhail Teterin <mi@FreeBSD.org>2012-04-11 06:18:00 +0000
commite4010ab91b1be1b9d528e2dcdfb5ec63733e7530 (patch)
tree0b3c0077c8205b389596b65c293c6743a7ce2aa6 /audio/tclmidi/files/patch-aa
parentphp4 is EOLed, deprecate ports depending on it. (diff)
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
Notes
Notes: svn path=/head/; revision=294612
Diffstat (limited to 'audio/tclmidi/files/patch-aa')
-rw-r--r--audio/tclmidi/files/patch-aa96
1 files changed, 91 insertions, 5 deletions
diff --git a/audio/tclmidi/files/patch-aa b/audio/tclmidi/files/patch-aa
index 9a53e78ef542..037b99198ab6 100644
--- a/audio/tclmidi/files/patch-aa
+++ b/audio/tclmidi/files/patch-aa
@@ -1,24 +1,35 @@
---- Makefile.in.orig Mon Nov 9 18:00:54 1998
-+++ Makefile.in Mon Nov 9 17:47:11 1998
+--- Makefile.in 1996-10-09 23:32:36.000000000 -0400
++++ Makefile.in 2012-04-07 12:07:34.000000000 -0400
@@ -11,7 +11,7 @@
# The directory containing the Tcl library archive file appropriate
# for this version of Tk:
-TCL_BIN_DIR = @TCL_BIN_DIR@
-+TCL_BIN_DIR = ${LOCALBASE}/lib/tcl8.2
++TCL_BIN_DIR = ${TCL_LIBDIR}
#----------------------------------------------------------------
# The information below is modified by the configure script when
-@@ -35,7 +35,7 @@
+@@ -35,8 +35,9 @@
VPATH = @srcdir@
CFLAGS = @CFLAGS@ @DEFS@
-CC_SWITCHES = @CFLAGS@ @DEFS@ ${SHLIB_CFLAGS} \
+CC_SWITCHES = @CFLAGS@ @DEFS@ ${SHLIB_CFLAGS} -I${TCL_GENERIC_DIR} \
-Idevice -Ievents -Irb -Ipatch -Ismf -Isong -I.
++CXX_SWITCHES= ${CC_SWITCHES} ${CXXFLAGS}
TCLMFILES = tclmCmd.o tclmUtil.o tclmEvnt.o tclmPlay.o tclmPtch.o TclmIntp.o
-@@ -101,7 +101,7 @@
+ TCLMFILES_SRC = tclmCmd.cxx tclmUtil.cxx tclmEvnt.cxx tclmPlay.cxx \
+@@ -61,7 +62,7 @@
+ @echo 'pkg_mkIndex . $(PROJ_LIB_NAME)' | @TCLSH_PATH@
+
+ .cxx.o:
+- @CXX@ -c $(CC_SWITCHES) $<
++ @CXX@ -c $(CXX_SWITCHES) $<
+
+ $(PROJ_LIB_NAME): events/objs smf/objs \
+ song/objs device/objs patch/objs rb/objs $(TCLMFILES)
+@@ -101,7 +102,7 @@
install: $(PROJ_LIB_NAME) $(SCRIPTS)
-mkdir -p $(prefix)$(libdir)/tclmidi
@@ -27,3 +38,78 @@
echo 'pkg_mkIndex $(prefix)$(libdir)/tclmidi \
$(PROJECT)*${SHLIB_SUFFIX}' | @TCLSH_PATH@
cd man; $(MAKE) install
+@@ -128,7 +129,7 @@
+ sed "/[#]# Dependancies/,$$$$d" < Makefile > Makefile.tmp
+ echo >> Makefile.tmp
+ echo "##" "Dependancies" >> Makefile.tmp
+- @CXX@ -M $(CC_SWITCHES) $(TCLMFILES_SRC) >> Makefile.tmp
++ @CXX@ -M $(CXX_SWITCHES) $(TCLMFILES_SRC) >> Makefile.tmp
+ cp Makefile.tmp Makefile
+ rm Makefile.tmp
+
+--- device/Makefile.in 1996-10-09 23:32:40.000000000 -0400
++++ device/Makefile.in 2012-04-07 12:13:09.000000000 -0400
+@@ -18,4 +18,5 @@
+ -I$(srcdir)/../events -I$(srcdir)/../rb -I$(srcdir)/../patch \
+ -I$(srcdir)/../smf -I$(srcdir)/../song -I$(srcdir)/.. -I$(srcdir)
++CXX_SWITCHES= ${CC_SWITCHES} ${CXXFLAGS}
+
+ DEVICEFILES = MidiDev.o TclmDr75.o
+@@ -25,5 +26,5 @@
+
+ .cxx.o:
+- @CXX@ -c $(CC_SWITCHES) $<
++ @CXX@ -c $(CXX_SWITCHES) $<
+
+ objs: $(DEVICEFILES)
+@@ -34,5 +35,5 @@
+ echo >> Makefile.tmp
+ echo "##" "Dependancies" >> Makefile.tmp
+- @CXX@ -M $(CC_SWITCHES) $(DEVICEFILES_SRC) >> Makefile.tmp
++ @CXX@ -M $(CXX_SWITCHES) $(DEVICEFILES_SRC) >> Makefile.tmp
+ cp Makefile.tmp Makefile
+ rm Makefile.tmp
+--- events/Makefile.in 1996-10-09 23:32:42.000000000 -0400
++++ events/Makefile.in 2012-04-07 12:15:41.000000000 -0400
+@@ -17,4 +17,5 @@
+ CC_SWITCHES = @CFLAGS@ @DEFS@ -I${TCL_GENERIC_DIR} ${SHLIB_CFLAGS} \
+ -I$(srcdir)/../smf -I$(srcdir)/../song -I$(srcdir)/.. -I$(srcdir)
++CXX_SWITCHES = ${CC_SWITCHES} ${CXXFLAGS}
+
+ EVENTFILES = ChanPres.o Event.o MChanPrf.o MCopy.o MCue.o \
+@@ -36,5 +37,5 @@
+
+ .cxx.o:
+- @CXX@ -c $(CC_SWITCHES) $<
++ @CXX@ -c $(CXX_SWITCHES) $<
+
+ objs: $(EVENTFILES)
+@@ -45,5 +46,5 @@
+ echo >> Makefile.tmp
+ echo "##" "Dependancies" >> Makefile.tmp
+- @CXX@ -M $(CC_SWITCHES) $(EVENTFILES_SRC) >> Makefile.tmp
++ @CXX@ -M $(CXX_SWITCHES) $(EVENTFILES_SRC) >> Makefile.tmp
+ cp Makefile.tmp Makefile
+ rm Makefile.tmp
+--- patch/Makefile.in 1996-10-09 23:32:43.000000000 -0400
++++ patch/Makefile.in 2012-04-07 12:23:29.000000000 -0400
+@@ -17,4 +17,5 @@
+ CC_SWITCHES = @CFLAGS@ @DEFS@ -I${TCL_GENERIC_DIR} ${SHLIB_CFLAGS} \
+ -I. -I..
++CXX_SWITCHES = ${CC_SWITCHES} ${CXXFLAGS}
+
+ PATCHFILES = GusPatch.o
+@@ -24,5 +25,5 @@
+
+ .cxx.o:
+- @CXX@ -c $(CC_SWITCHES) $<
++ @CXX@ -c $(CXX_SWITCHES) $<
+
+ objs: $(PATCHFILES)
+@@ -33,5 +34,5 @@
+ echo >> Makefile.tmp
+ echo "##" "Dependancies" >> Makefile.tmp
+- @CXX@ -M $(CC_SWITCHES) $(PATCHFILES_SRC) >> Makefile.tmp
++ @CXX@ -M $(CXX_SWITCHES) $(PATCHFILES_SRC) >> Makefile.tmp
+ cp Makefile.tmp Makefile
+ rm Makefile.tmp