1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-21 04:06:46 +00:00
freebsd-ports/audio/libsndfile/Makefile
Jason E. Hale 466738b16b Add several security fixes addressing:
- CVE-2017-6892
- CVE-2017-8361
- CVE-2017-8362
- CVE-2017-8363
- CVE-2017-8365
- CVE-2017-12562
- CVE-2017-14634

Note:
- Fix for CVE-2017-8365 is included in files/patch-CVE-2017-8361

While here:
- Fix LICENSE and add LICENSE_FILE

PR:		226271
Submitted by:	jhale
Reviewed by:	koobs, eadler, jbeich
Approved by:	ports-secteam (eadler)
Obtained from:	upstream (https://github.com/erikd/libsndfile)
MFH:		2018Q1
Security:	004debf9-1d16-11e8-b6aa-4ccc6adda413
Security:	2b386075-1d9c-11e8-b6aa-4ccc6adda413
Differential Revision:	https://reviews.freebsd.org/D14552
2018-03-02 00:42:07 +00:00

50 lines
1.4 KiB
Makefile

# Created by: ijliao
# $FreeBSD$
PORTNAME= libsndfile
PORTVERSION= 1.0.28
PORTREVISION= 1
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
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>