From fac32e69a7f585d064f50ca31f39d859f238a79d Mon Sep 17 00:00:00 2001 From: Jeremy Messenger Date: Sat, 15 Sep 2007 16:02:19 +0000 Subject: - Fix the build when audio/oss is installed by force to search for sys/soundcard.h in /usr/include first rather than oss's header. [1] - While I am here, fix the flac option. The autocheck is not need when it is enable by default and add --disable-flac to make WITHOUT_FLAC works. PR: ports/116268 [1] Reported by: Volker [1] --- audio/libsndfile/Makefile | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/audio/libsndfile/Makefile b/audio/libsndfile/Makefile index fce92d46f306..63c36479b71a 100644 --- a/audio/libsndfile/Makefile +++ b/audio/libsndfile/Makefile @@ -19,7 +19,7 @@ GNU_CONFIGURE= yes CONFIGURE_ARGS= --enable-justsrc \ --disable-gcc-pipe \ --disable-sqlite -CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \ +CONFIGURE_ENV= CPPFLAGS="-isystem /usr/include -isystem ${LOCALBASE}/include" \ LDFLAGS="-L${LOCALBASE}/lib" USE_LDCONFIG= yes @@ -29,8 +29,11 @@ OPTIONS= FLAC "Enable flac support" On .include -.if !defined(WITHOUT_FLAC) || exists(${LOCALBASE}/lib/libFLAC.a) +.if !defined(WITHOUT_FLAC) LIB_DEPENDS+= FLAC.7:${PORTSDIR}/audio/flac +CONFIGURE_ARGS+=--enable-flac +.else +CONFIGURE_ARGS+=--disable-flac .endif post-patch: -- cgit v1.2.3