1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-17 03:25:46 +00:00
freebsd-ports/audio/libsndfile/Makefile
Baptiste Daroussin 5b0188fa82 - update to 1.0.24
- add license
2011-03-29 14:03:35 +00:00

59 lines
1.5 KiB
Makefile

# New ports collection makefile for: libsndfile
# Date created: Jul 20, 2001
# Whom: ijliao
#
# $FreeBSD$
#
PORTNAME= libsndfile
PORTVERSION= 1.0.24
CATEGORIES= audio
MASTER_SITES= http://www.mega-nerd.com/libsndfile/files/
MAINTAINER= multimedia@FreeBSD.org
COMMENT= Reading and writing files containing sampled sound (like WAV or AIFF)
LICENSE= LGPL21
LICENSE_FILE= ${WRKSRC}/COPYING
USE_GNOME= gnomehack gnometarget pkgconfig
GNU_CONFIGURE= yes
USE_GMAKE= yes
CONFIGURE_ARGS= --disable-gcc-pipe \
--disable-sqlite \
--disable-alsa \
--disable-octave
CONFIGURE_ENV= CPPFLAGS="-isystem /usr/include -isystem ${LOCALBASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib"
USE_LDCONFIG= yes
MAN1= sndfile-concat.1 sndfile-cmp.1 sndfile-convert.1 \
sndfile-info.1 sndfile-metadata-get.1 sndfile-metadata-set.1 \
sndfile-play.1 sndfile-deinterleave.1 sndfile-interleave.1
PORTDOCS= libsndfile.css new_file_type.HOWTO libsndfile.jpg .html
OPTIONS= EXTERNAL "Enable FLAC and Ogg Vorbis support" on
.include <bsd.port.pre.mk>
.if defined(WITHOUT_EXTERNAL)
CONFIGURE_ARGS+=--disable-external-libs
.else
LIB_DEPENDS+= FLAC.10:${PORTSDIR}/audio/flac \
vorbis.4:${PORTSDIR}/audio/libvorbis
.endif
post-patch:
@${REINPLACE_CMD} -e '/^SUBDIRS =/s/ doc / /g' ${WRKSRC}/Makefile.in
post-install:
.if !defined(NOPORTDOCS)
@${MKDIR} ${DOCSDIR}
@${TAR} -C ${WRKSRC}/doc --exclude "*Makefile*" --exclude "*.in" \
-cf - . | ${TAR} -C ${DOCSDIR} --unlink -xf -
@${CHOWN} ${SHAREOWN}:${SHAREGRP} ${DOCSDIR}
.endif
.include <bsd.port.post.mk>