1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-13 07:34:50 +00:00

- Conditionalize dependency for devel/sdl12

- Support CFLAGS properly

PR:		38707
Submitted by:	Ports Fury
This commit is contained in:
Ying-Chieh Liao 2002-05-30 18:07:15 +00:00
parent 5b81c2f3b9
commit e9f1af8f8e
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=60315
2 changed files with 20 additions and 16 deletions

View File

@ -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>

View File

@ -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; \