aboutsummaryrefslogtreecommitdiffstats
path: root/audio/cmt
diff options
context:
space:
mode:
authorijliao <ijliao@FreeBSD.org>2002-06-17 02:17:24 +0800
committerijliao <ijliao@FreeBSD.org>2002-06-17 02:17:24 +0800
commitdec33e0c592f4a7a19169b39ab0afd808e67c298 (patch)
tree9d10e5f06c8b146c9b2c7e191ae88c11e97ea995 /audio/cmt
parent37627d09a56ebadcff708bfd47a7487280ed2185 (diff)
downloadfreebsd-ports-gnome-dec33e0c592f4a7a19169b39ab0afd808e67c298.tar.gz
freebsd-ports-gnome-dec33e0c592f4a7a19169b39ab0afd808e67c298.tar.zst
freebsd-ports-gnome-dec33e0c592f4a7a19169b39ab0afd808e67c298.zip
fix patch
use REINPLACE_CMD bump PORTREVISION PR: 39313 Submitted by: maintainer
Diffstat (limited to 'audio/cmt')
-rw-r--r--audio/cmt/Makefile19
-rw-r--r--audio/cmt/files/patch-cmt.cpp15
-rw-r--r--audio/cmt/files/patch-makefile16
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)