diff options
author | Ying-Chieh Liao <ijliao@FreeBSD.org> | 2002-06-16 18:17:24 +0000 |
---|---|---|
committer | Ying-Chieh Liao <ijliao@FreeBSD.org> | 2002-06-16 18:17:24 +0000 |
commit | caa508348d125f4a67ded225335c4dd5536a2215 (patch) | |
tree | 80ca53e27fed7aebc77b88a893e8480a8f0119ce /audio/cmt | |
parent | Upgrade to 5.3R2.4 (diff) |
fix patch
use REINPLACE_CMD
bump PORTREVISION
PR: 39313
Submitted by: maintainer
Notes
Notes:
svn path=/head/; revision=61382
Diffstat (limited to 'audio/cmt')
-rw-r--r-- | audio/cmt/Makefile | 19 | ||||
-rw-r--r-- | audio/cmt/files/patch-cmt.cpp | 15 | ||||
-rw-r--r-- | audio/cmt/files/patch-makefile | 16 |
3 files changed, 27 insertions, 23 deletions
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|<malloc.h>|<stdlib.h>|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|<malloc.h>|<stdlib.h>|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) |