aboutsummaryrefslogtreecommitdiffstats
path: root/audio
diff options
context:
space:
mode:
authorijliao <ijliao@FreeBSD.org>2002-05-31 02:07:15 +0800
committerijliao <ijliao@FreeBSD.org>2002-05-31 02:07:15 +0800
commit76d2d7e6b4497546a8ac47e0fd42835feef15524 (patch)
treeed963ab3d7f211c73435136f84348796d7478814 /audio
parent003ee40f475ab713911b8d8e63d8d820f5605342 (diff)
downloadfreebsd-ports-gnome-76d2d7e6b4497546a8ac47e0fd42835feef15524.tar.gz
freebsd-ports-gnome-76d2d7e6b4497546a8ac47e0fd42835feef15524.tar.zst
freebsd-ports-gnome-76d2d7e6b4497546a8ac47e0fd42835feef15524.zip
- Conditionalize dependency for devel/sdl12
- Support CFLAGS properly PR: 38707 Submitted by: Ports Fury
Diffstat (limited to 'audio')
-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; \