1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-25 04:43:33 +00:00
freebsd-ports/audio/flac/Makefile
Christian Weisgerber 18adb14800 Fix integer overflows (CVE-2007-4619) by backporting corresponding
fixes from FLAC 1.2.1.

Reviewed by:    miwi
Approved by:    portmgr (linimon)
Security: 	ff65eecb-91e4-11dc-bd6c-0016179b2dd5
2007-11-13 14:28:29 +00:00

62 lines
1.3 KiB
Makefile

# New ports collection makefile for: flac
# Date created: Mar 18, 2001
# Whom: Ying-Chieh Liao <ijliao@FreeBSD.org>
#
# $FreeBSD$
#
PORTNAME= flac
PORTVERSION= 1.1.2
PORTREVISION= 2
CATEGORIES= audio
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:S/$/:sf/} \
${MASTER_SITE_LOCAL:S/$/:local/}
MASTER_SITE_SUBDIR= ${PORTNAME}/:sf naddy/:local
DISTFILES= ${EXTRACT_ONLY}:sf flac-alloc.h:local
EXTRACT_ONLY= ${DISTNAME}${EXTRACT_SUFX}
MAINTAINER= naddy@FreeBSD.org
COMMENT= Free lossless audio codec
LIB_DEPENDS= ogg.5:${PORTSDIR}/audio/libogg
USE_AUTOTOOLS= libtool:15
USE_ICONV= yes
GNU_CONFIGURE= yes
CONFIGURE_TARGET= --target=${ARCH}-unknown-freebsd${OSREL}
CONFIGURE_ARGS= --enable-sse \
--with-libiconv-prefix="${LOCALBASE}" \
--with-ogg="${LOCALBASE}"
CONFIGURE_ENV= CPPFLAGS="-I${WRKSRC}/include" \
ac_cv_path_XMMS_CONFIG=no
.if defined(NOPORTDOCS)
MAKE_ENV= DOC=""
.else
MAKE_ENV= DOC=doc
.endif
USE_LDCONFIG= yes
MAN1= flac.1 metaflac.1
.include <bsd.port.pre.mk>
.if ${ARCH} == "i386"
BUILD_DEPENDS= nasm:${PORTSDIR}/devel/nasm
.endif
post-extract:
@${CP} ${DISTDIR}/flac-alloc.h ${WRKSRC}/include/share/alloc.h
# "obj" is magic to our make(1)
post-configure:
@${RM} -rf ${WRKSRC}/obj
post-build:
${REINPLACE_CMD} 's:%%PREFIX%%:${PREFIX}:' ${WRKSRC}/man/flac.1
test: build
@cd ${WRKSRC}; ${MAKE} check
.include <bsd.port.post.mk>