mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-18 08:02:48 +00:00
40b1f7b485
Submitted by: 1wkmmr@gmail.com
58 lines
1.5 KiB
Makefile
58 lines
1.5 KiB
Makefile
# New ports collection makefile for: libsndfile
|
|
# Date created: Jul 20, 2001
|
|
# Whom: ijliao
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= libsndfile
|
|
PORTVERSION= 1.0.18
|
|
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
|
|
USE_GMAKE= yes
|
|
CONFIGURE_ARGS= --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= EXTERNAL "Enable FLAC and Ogg Vorbis support" on
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
.if defined(WITHOUT_EXTERNAL) || defined(WITH_FLAC)
|
|
CONFIGURE_ARGS+=--disable-external-libs
|
|
.else
|
|
CONFIGURE_ARGS+=--disable-flac
|
|
LIB_DEPENDS+= FLAC.10:${PORTSDIR}/audio/flac \
|
|
vorbis.4:${PORTSDIR}/audio/libvorbis
|
|
.endif
|
|
|
|
post-patch:
|
|
@${REINPLACE_CMD} \
|
|
-e 's/vorbis >= 1\.2\.1/vorbis >= 1.2.0/g' \
|
|
-e 's/vorbisenc >= 1\.2\.1/vorbisenc >= 1.2.0/g' \
|
|
${WRKSRC}/configure
|
|
@${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>
|