aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--audio/mhwaveedit/Makefile25
-rw-r--r--audio/mhwaveedit/files/patch-Makefile.in11
2 files changed, 20 insertions, 16 deletions
diff --git a/audio/mhwaveedit/Makefile b/audio/mhwaveedit/Makefile
index e75370a12807..834025640945 100644
--- a/audio/mhwaveedit/Makefile
+++ b/audio/mhwaveedit/Makefile
@@ -8,19 +8,34 @@
PORTNAME= mhwaveedit
PORTVERSION= 1.1.3
+PORTREVISION= 1
CATEGORIES= audio
MASTER_SITES= http://www.mtek.chalmers.se/~hjormagn/
MAINTAINER= ports@FreeBSD.org
-LIB_DEPENDS= sndfile:${PORTSDIR}/audio/libsndfile \
- SDL-1.1:${PORTSDIR}/devel/sdl12
+LIB_DEPENDS= sndfile.0:${PORTSDIR}/audio/libsndfile
-SDL_CONFIG?= ${LOCALBASE}/bin/sdl11-config
USE_GTK= yes
GNU_CONFIGURE= yes
-CONFIGURE_ENV= SDL_CONFIG="${SDL_CONFIG}" \
- CPPFLAGS="${CXXFLAGS} -I${LOCALBASE}/include" \
+CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib"
+CONFIGURE_ARGS= --without-portaudio
+
+.if defined(WITH_SDL)
+LIB_DEPENDS+= SDL-1.1.4:${PORTSDIR}/devel/sdl12
+SDL_CONFIG?= ${LOCALBASE}/bin/sdl11-config
+CONFIGURE_ENV+= SDL_CONFIG="${SDL_CONFIG}"
+.else
+CONFIGURE_ARGS+= --without-sdl
+.endif
+
+post-patch:
+ @${FIND} ${WRKSRC} -name "Makefile.in" | ${XARGS} ${PERL} -pi -e \
+ 's|^CFLAGS =.*$$|CFLAGS = \@CFLAGS\@|g'
+
+do-install:
+ ${INSTALL_PROGRAM} ${WRKSRC}/src/mhwaveedit ${PREFIX}/bin
.include <bsd.port.mk>
diff --git a/audio/mhwaveedit/files/patch-Makefile.in b/audio/mhwaveedit/files/patch-Makefile.in
deleted file mode 100644
index 228d5ebfdec9..000000000000
--- a/audio/mhwaveedit/files/patch-Makefile.in
+++ /dev/null
@@ -1,11 +0,0 @@
---- src/Makefile.in.orig Fri Apr 19 22:08:26 2002
-+++ src/Makefile.in Fri Apr 19 22:08:46 2002
-@@ -171,7 +171,7 @@
- if test -f $$p \
- ; then \
- p1=`echo "$$p1" | sed -e 's,^.*/,,'`; \
-- f=`echo $$p1|sed '$(transform);s/$$/$(EXEEXT)/'`; \
-+ f=`echo $$p1|sed 's/$$/$(EXEEXT)/'`; \
- echo " $(INSTALL_PROGRAM_ENV) $(binPROGRAMS_INSTALL) $$p $(DESTDIR)$(bindir)/$$f"; \
- $(INSTALL_PROGRAM_ENV) $(binPROGRAMS_INSTALL) $$p $(DESTDIR)$(bindir)/$$f; \
- else :; fi; \