blob: 95f4ca1bf8cd66e1c7b0c66c5c02122040c72bd3 (
plain)
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
48
49
50
51
52
53
54
55
56
|
# ex:ts=8
# New ports collection makefile for: libsndfile
# Date created: Jul 20, 2001
# Whom: ijliao
#
# $FreeBSD$
#
PORTNAME= libsndfile
PORTVERSION= 1.0.12
CATEGORIES= audio
MASTER_SITES= http://www.mega-nerd.com/libsndfile/
MAINTAINER= ahze@FreeBSD.org
COMMENT= Reading and writing files containing sampled sound (like WAV or AIFF)
USE_GNOME= gnomehack gnometarget pkgconfig
USE_AUTOTOOLS= libtool: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
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>
|