blob: a3edc3b9d9be565cde628b1473f56c01e7cfee90 (
plain) (
tree)
|
|
# New ports collection makefile for: libsndfile
# Date created: Jul 20, 2001
# Whom: ijliao
#
# $FreeBSD$
#
PORTNAME= libsndfile
PORTVERSION= 1.0.17
PORTREVISION= 2
CATEGORIES= audio
MASTER_SITES= http://www.mega-nerd.com/libsndfile/
MAINTAINER= multimedia@FreeBSD.org
COMMENT= Reading and writing files containing sampled sound (like WAV or AIFF)
USE_GNOME= gnomehack gnometarget pkgconfig
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --enable-justsrc \
--disable-gcc-pipe \
--disable-sqlite
CONFIGURE_ENV= CPPFLAGS="-isystem /usr/include -isystem ${LOCALBASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib"
USE_LDCONFIG= yes
MAN1= sndfile-convert.1 sndfile-info.1 sndfile-play.1
OPTIONS= FLAC "Enable flac support" On
.include <bsd.port.pre.mk>
.if !defined(WITHOUT_FLAC)
LIB_DEPENDS+= FLAC.10:${PORTSDIR}/audio/flac
CONFIGURE_ARGS+=--enable-flac
.else
CONFIGURE_ARGS+=--disable-flac
.endif
post-patch:
@${REINPLACE_CMD} -e '/^SUBDIRS =/s/ doc / /g' ${WRKSRC}/Makefile.in
post-install:
.if !defined(NOPORTDOCS)
@${MKDIR} ${DOCSDIR}
.for file in AUTHORS ChangeLog NEWS README TODO
${INSTALL_DATA} ${WRKSRC}/${file} ${DOCSDIR}
.endfor
${TAR} -C ${WRKSRC}/doc --exclude "*Makefile*" --exclude "*.in" \
-cf - . | ${TAR} -C ${DOCSDIR} --unlink -xf -
@${CHOWN} ${SHAREOWN}:${SHAREGRP} ${DOCSDIR}
.endif
.include <bsd.port.post.mk>
|