2001-07-20 04:45:18 +02:00
|
|
|
# New ports collection makefile for: libsndfile
|
|
|
|
# Date created: Jul 20, 2001
|
|
|
|
# Whom: ijliao
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= libsndfile
|
2011-09-12 21:40:18 +02:00
|
|
|
PORTVERSION= 1.0.25
|
2012-07-19 22:15:37 +02:00
|
|
|
PORTREVISION= 2
|
2001-07-20 04:45:18 +02:00
|
|
|
CATEGORIES= audio
|
2010-04-10 15:28:52 +02:00
|
|
|
MASTER_SITES= http://www.mega-nerd.com/libsndfile/files/
|
2001-07-20 04:45:18 +02:00
|
|
|
|
2006-06-09 20:00:35 +02:00
|
|
|
MAINTAINER= multimedia@FreeBSD.org
|
2003-02-20 18:07:10 +01:00
|
|
|
COMMENT= Reading and writing files containing sampled sound (like WAV or AIFF)
|
2001-07-20 04:45:18 +02:00
|
|
|
|
2011-03-29 16:03:35 +02:00
|
|
|
LICENSE= LGPL21
|
|
|
|
LICENSE_FILE= ${WRKSRC}/COPYING
|
|
|
|
|
2011-08-11 21:20:17 +02:00
|
|
|
USE_GNOME= gnomehack pkgconfig
|
2006-02-23 11:40:44 +01:00
|
|
|
GNU_CONFIGURE= yes
|
2009-02-15 05:39:01 +01:00
|
|
|
USE_GMAKE= yes
|
2009-02-09 04:00:13 +01:00
|
|
|
CONFIGURE_ARGS= --disable-gcc-pipe \
|
2009-03-10 13:11:47 +01:00
|
|
|
--disable-sqlite \
|
2010-12-15 22:48:34 +01:00
|
|
|
--disable-alsa \
|
2009-03-10 13:11:47 +01:00
|
|
|
--disable-octave
|
2011-09-12 21:40:18 +02:00
|
|
|
CPPFLAGS+= -isystem /usr/include -isystem ${LOCALBASE}/include
|
2011-09-24 00:26:39 +02:00
|
|
|
LDFLAGS+= -L${LOCALBASE}/lib
|
2006-09-02 22:48:50 +02:00
|
|
|
USE_LDCONFIG= yes
|
2001-07-20 04:45:18 +02:00
|
|
|
|
2010-11-03 11:48:47 +01:00
|
|
|
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
|
2002-09-20 09:36:43 +02:00
|
|
|
|
2011-09-12 21:40:18 +02:00
|
|
|
PORTDOCS= AUTHORS ChangeLog NEWS README libsndfile.css \
|
|
|
|
new_file_type.HOWTO libsndfile.jpg *.html
|
2011-03-29 16:03:35 +02:00
|
|
|
|
2012-05-30 13:42:38 +02:00
|
|
|
OPTIONS_DEFINE= CPU_CLIP EXTERNAL DOCS
|
|
|
|
OPTIONS_DEFAULT= EXTERNAL
|
|
|
|
CPU_CLIP_DESC= Allow machine-dependent clipping
|
|
|
|
EXTERNAL_DESC= Enable FLAC and Ogg Vorbis support
|
2005-09-30 10:30:00 +02:00
|
|
|
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2012-05-30 13:42:38 +02:00
|
|
|
.if ${PORT_OPTIONS:MCPU_CLIP}
|
2012-03-07 05:44:06 +01:00
|
|
|
MANUAL_PACKAGE_BUILD= WITH_CPU_CLIP may customize the package for the build machine
|
2012-05-30 13:42:38 +02:00
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --disable-cpu-clip
|
2012-03-07 05:44:06 +01:00
|
|
|
.endif
|
|
|
|
|
2012-05-30 13:42:38 +02:00
|
|
|
.if ${PORT_OPTIONS:MEXTERNAL}
|
2009-02-09 04:00:13 +01:00
|
|
|
LIB_DEPENDS+= FLAC.10:${PORTSDIR}/audio/flac \
|
|
|
|
vorbis.4:${PORTSDIR}/audio/libvorbis
|
2012-05-30 13:42:38 +02:00
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+=--disable-external-libs
|
2005-09-30 10:30:00 +02:00
|
|
|
.endif
|
|
|
|
|
2004-07-09 19:13:17 +02:00
|
|
|
post-patch:
|
|
|
|
@${REINPLACE_CMD} -e '/^SUBDIRS =/s/ doc / /g' ${WRKSRC}/Makefile.in
|
|
|
|
|
2012-03-07 05:44:06 +01:00
|
|
|
check regression-test test: build
|
|
|
|
@cd ${WRKSRC}; ${SETENV} ${MAKE_ENV} ${MAKE} ${_MAKE_JOBS} ${MAKE_ARGS} \
|
|
|
|
check
|
|
|
|
|
2001-07-20 04:45:18 +02:00
|
|
|
post-install:
|
2012-05-30 13:42:38 +02:00
|
|
|
.if ${PORT_OPTIONS:MDOCS}
|
2001-07-20 04:45:18 +02:00
|
|
|
@${MKDIR} ${DOCSDIR}
|
2011-03-29 16:03:35 +02:00
|
|
|
@${TAR} -C ${WRKSRC}/doc --exclude "*Makefile*" --exclude "*.in" \
|
2004-07-09 19:13:17 +02:00
|
|
|
-cf - . | ${TAR} -C ${DOCSDIR} --unlink -xf -
|
2004-02-28 20:40:37 +01:00
|
|
|
@${CHOWN} ${SHAREOWN}:${SHAREGRP} ${DOCSDIR}
|
2001-07-20 04:45:18 +02:00
|
|
|
.endif
|
|
|
|
|
2005-09-30 10:30:00 +02:00
|
|
|
.include <bsd.port.post.mk>
|