- 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 <heizraum@freenet.de> [1]
This commit is contained in:
Jeremy Messenger 2007-09-15 16:02:19 +00:00
parent 16fae2b3e3
commit fac32e69a7
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=199522

View file

@ -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 <bsd.port.pre.mk>
.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: