blob: 9e65e2d4fe84042d7957b5bb19b9a78b98337325 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
|
# Created by: ijliao
# $FreeBSD$
PORTNAME= libsndfile
PORTVERSION= 1.0.28
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
USES= cpe gmake libtool localbase pkgconfig
CPE_VENDOR= ${CPE_PRODUCT}_project
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --disable-gcc-pipe \
--disable-sqlite \
--disable-alsa \
--disable-octave \
--with-pkgconfigdir=${PREFIX}/libdata/pkgconfig
USE_LDCONFIG= yes
TEST_TARGET= check
INSTALL_TARGET= install-strip
OPTIONS_DEFINE= CPU_CLIP EXTERNAL DOCS
OPTIONS_DEFAULT= EXTERNAL
CPU_CLIP_DESC= Allow machine-dependent clipping
EXTERNAL_DESC= Enable FLAC and Ogg Vorbis support
CPU_CLIP_VARS= MANUAL_PACKAGE_BUILD="WITH_CPU_CLIP may customize the package for the build machine"
CPU_CLIP_CONFIGURE_OFF= --disable-cpu-clip
EXTERNAL_LIB_DEPENDS= libFLAC.so:audio/flac \
libogg.so:audio/libogg \
libvorbis.so:audio/libvorbis
EXTERNAL_CONFIGURE_OFF= --disable-external-libs
post-patch:
@${REINPLACE_CMD} -e '/^SUBDIRS =/s/ doc / /g' ${WRKSRC}/Makefile.in
post-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
@${TAR} -C ${WRKSRC}/doc --exclude "*Makefile*" --exclude "*.in" \
-cf - . | ${TAR} -C ${STAGEDIR}${DOCSDIR} --unlink -xf -
.include <bsd.port.mk>
|