diff options
Diffstat (limited to 'audio/libsndfile/Makefile')
-rw-r--r-- | audio/libsndfile/Makefile | 23 |
1 files changed, 20 insertions, 3 deletions
diff --git a/audio/libsndfile/Makefile b/audio/libsndfile/Makefile index 58025679bd95..22e8e1f0804f 100644 --- a/audio/libsndfile/Makefile +++ b/audio/libsndfile/Makefile @@ -7,21 +7,38 @@ # PORTNAME= libsndfile -PORTVERSION= 1.0.11 +PORTVERSION= 1.0.12 CATEGORIES= audio MASTER_SITES= http://www.mega-nerd.com/libsndfile/ -MAINTAINER= ports@FreeBSD.org +MAINTAINER= ahze@FreeBSD.org COMMENT= Reading and writing files containing sampled sound (like WAV or AIFF) USE_GNOME= gnomehack gnometarget pkgconfig USE_LIBTOOL_VER=15 USE_REINPLACE= yes CONFIGURE_ARGS= --enable-justsrc --disable-gcc-pipe +CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \ + LDFLAGS="-L${LOCALBASE}/lib" INSTALLS_SHLIB= yes MAN1= sndfile-convert.1 sndfile-info.1 sndfile-play.1 +OPTIONS= FLAC "Enable flac support" On \ + SQLITE3 "Enable Sqlite3 support" Off + +.include <bsd.port.pre.mk> + +.if defined(WITH_SQLITE3) +LIB_DEPENDS+= sqlite3.8:${PORTSDIR}/databases/sqlite3 +.else +CONFIGURE_ARGS= --disable-sqlite +.endif + +.if !defined(WITHOUT_FLAC) || exists(${LOCALBASE}/lib/libFLAC.a) +LIB_DEPENDS+= FLAC.7:${PORTSDIR}/audio/flac +.endif + post-patch: @${REINPLACE_CMD} -e '/^SUBDIRS =/s/ doc / /g' ${WRKSRC}/Makefile.in @@ -36,4 +53,4 @@ post-install: @${CHOWN} ${SHAREOWN}:${SHAREGRP} ${DOCSDIR} .endif -.include <bsd.port.mk> +.include <bsd.port.post.mk> |