From caa508348d125f4a67ded225335c4dd5536a2215 Mon Sep 17 00:00:00 2001 From: Ying-Chieh Liao Date: Sun, 16 Jun 2002 18:17:24 +0000 Subject: fix patch use REINPLACE_CMD bump PORTREVISION PR: 39313 Submitted by: maintainer --- audio/cmt/Makefile | 19 ++++--------------- audio/cmt/files/patch-cmt.cpp | 15 +++++++++++++++ audio/cmt/files/patch-makefile | 16 ++++++++-------- 3 files changed, 27 insertions(+), 23 deletions(-) create mode 100644 audio/cmt/files/patch-cmt.cpp (limited to 'audio/cmt') diff --git a/audio/cmt/Makefile b/audio/cmt/Makefile index 217e7908e7fe..4f23a1ac62e6 100644 --- a/audio/cmt/Makefile +++ b/audio/cmt/Makefile @@ -6,6 +6,7 @@ PORTNAME= cmt PORTVERSION= 1.12 +PORTREVISION= 1 CATEGORIES= audio MASTER_SITES= http://www.ladspa.org/download/ DISTNAME= ${PORTNAME}_src @@ -20,21 +21,9 @@ WRKSRC= ${WRKDIR}/${PORTNAME}/src MAKEFILE= makefile ALL_TARGET= targets -post-patch: - @${FIND} ${WRKSRC} -name '*.cpp' | ${XARGS} ${PERL} -pi -e \ - 's|||g' - -.for i in ${WRKSRC}/analogue.cpp \ - ${WRKSRC}/canyondelay.cpp \ - ${WRKSRC}/lofi.cpp \ - ${WRKSRC}/phasemod.cpp \ - ${WRKSRC}/syndrum.cpp \ - ${WRKSRC}/vcf303.cpp - ${MV} ${WRKDIR}/$i ${WRKDIR}/$i.sed - ${SED} -e "s:malloc.h:stdlib.h:g" \ - ${WRKDIR}/$i.sed >${WRKDIR}/$i - ${RM} ${WRKDIR}/$i.sed -.endfor +pre-patch: + @${FIND} ${WRKSRC} -name '*.cpp' | ${XARGS} \ + ${REINPLACE_CMD} -e "s|||g" do-install: @${INSTALL_DATA} ${WRKSRC}/../plugins/cmt.so ${LOCALBASE}/lib/ladspa/ diff --git a/audio/cmt/files/patch-cmt.cpp b/audio/cmt/files/patch-cmt.cpp new file mode 100644 index 000000000000..634c3b69e88e --- /dev/null +++ b/audio/cmt/files/patch-cmt.cpp @@ -0,0 +1,15 @@ +--- cmt.cpp.orig Wed Jun 5 23:15:32 2002 ++++ cmt.cpp Wed Jun 5 23:16:33 2002 +@@ -115,9 +115,9 @@ + void CMT_Descriptor:: + addPort(LADSPA_PortDescriptor iPortDescriptor, + const char * pcPortName, +- LADSPA_PortRangeHintDescriptor iHintDescriptor = 0, +- LADSPA_Data fLowerBound = 0, +- LADSPA_Data fUpperBound = 0) { ++ LADSPA_PortRangeHintDescriptor iHintDescriptor, ++ LADSPA_Data fLowerBound, ++ LADSPA_Data fUpperBound) { + + unsigned long lOldPortCount = PortCount; + unsigned long lNewPortCount = PortCount + 1; diff --git a/audio/cmt/files/patch-makefile b/audio/cmt/files/patch-makefile index 6a7f997c68a9..f9693e0ee9fc 100644 --- a/audio/cmt/files/patch-makefile +++ b/audio/cmt/files/patch-makefile @@ -1,22 +1,22 @@ ---- makefile.orig Tue Sep 18 00:15:28 2001 -+++ makefile Sun May 12 00:46:39 2002 -@@ -12,9 +12,7 @@ - # GENERAL +--- makefile.orig Wed Jun 5 23:11:40 2002 ++++ makefile Wed Jun 5 23:11:57 2002 +@@ -13,8 +13,8 @@ # --INCLUDES = -I/usr/local/include/ + INCLUDES = -I/usr/local/include/ -CFLAGS = $(INCLUDES) -Wall -Werror -O3 -fPIC -CXXFLAGS = $(CFLAGS) -+CXXFLAGS += -I/usr/local/include/ ++CFLAGS += $(INCLUDES) -Wall -Werror ++CXXFLAGS += $(CFLAGS) PLUGIN_LIB = ../plugins/cmt.so ############################################################################### -@@ -61,7 +59,7 @@ +@@ -61,7 +61,7 @@ targets: $(PLUGIN_LIB) $(PLUGIN_LIB): $(PLUGIN_OBJECTS) - $(CXX) -shared \ -+ $(CXX) ${CXXFLAGS} -shared \ ++ $(CXX) ${CXXFLAGS} -shared \ -o $(PLUGIN_LIB) \ $(PLUGIN_OBJECTS) -- cgit v1.2.3