aboutsummaryrefslogtreecommitdiff
path: root/audio/mhwaveedit
diff options
context:
space:
mode:
authorYing-Chieh Liao <ijliao@FreeBSD.org>2002-05-30 18:07:15 +0000
committerYing-Chieh Liao <ijliao@FreeBSD.org>2002-05-30 18:07:15 +0000
commite9f1af8f8e759c16b85f18afb4ec1d6e5b3cf15d (patch)
tree0e75d6439e1388ef651b72b555c7f463397d3a6a /audio/mhwaveedit
parent5b81c2f3b9c87a3df32dc58a54e19be6dd623af7 (diff)
downloadports-e9f1af8f8e759c16b85f18afb4ec1d6e5b3cf15d.tar.gz
ports-e9f1af8f8e759c16b85f18afb4ec1d6e5b3cf15d.zip
- Conditionalize dependency for devel/sdl12
- Support CFLAGS properly PR: 38707 Submitted by: Ports Fury
Notes
Notes: svn path=/head/; revision=60315
Diffstat (limited to 'audio/mhwaveedit')
-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; \