1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-18 03:46:03 +00:00
freebsd-ports/audio/flac/Makefile
Christian Weisgerber e8c58c6b92 Update to FLAC 1.1.2. Notable changes:
* better Ogg FLAC support
* speedups
* several new options to flac and metaflac
* several API additions
* streaming support in the XMMS plugin
* bugfixes
2005-03-16 14:49:23 +00:00

53 lines
1.1 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
CATEGORIES= audio
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ${PORTNAME}
MAINTAINER= naddy@FreeBSD.org
COMMENT= Free lossless audio codec
LIB_DEPENDS= ogg.5:${PORTSDIR}/audio/libogg
.if ${MACHINE_ARCH} == "i386"
BUILD_DEPENDS= nasm:${PORTSDIR}/devel/nasm
.endif
USE_ICONV= yes
USE_REINPLACE= yes
USE_LIBTOOL_VER=15
CONFIGURE_TARGET= --target=${MACHINE_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
INSTALLS_SHLIB= yes
MAN1= flac.1 metaflac.1
# "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.mk>