freebsd-ports/audio/flac/Makefile
Ade Lovett 3f651573ad Whoa there, boy, that's a mighty big commit y'all have there...
Begin autotools sanitization sequence by requiring ports to explicitly
specify which version of {libtool,autoconf,automake} they need, erasing
the concept of a "system default".

For ports-in-waiting:

	USE_LIBTOOL=YES		->	USE_LIBTOOL_VER=13
	USE_AUTOCONF=YES	->	USE_AUTOCONF_VER=213
	USE_AUTOMAKE=YES	->	USE_AUTOMAKE_VER=14

Ports attempting to use the old style system after June 1st 2004 will be
sorely disappointed.
2004-03-14 06:17:56 +00:00

54 lines
1.2 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.0
PORTREVISION= 3
CATEGORIES= audio
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ${PORTNAME}
MAINTAINER= naddy@FreeBSD.org
COMMENT= Free lossless audio codec
LIB_DEPENDS= iconv.3:${PORTSDIR}/converters/libiconv \
ogg.5:${PORTSDIR}/audio/libogg
.if ${MACHINE_ARCH} == "i386"
BUILD_DEPENDS= nasm:${PORTSDIR}/devel/nasm
.endif
USE_REINPLACE= yes
USE_LIBTOOL_VER= 13
CONFIGURE_TARGET= --target=${MACHINE_ARCH}-unknown-freebsd${OSREL}
CONFIGURE_ARGS= --enable-sse --enable-3dnow \
--with-libiconv-prefix="${LOCALBASE}" \
--with-ogg="${LOCALBASE}"
CONFIGURE_ENV= CPPFLAGS="-I${WRKSRC}/include" \
XMMS_CONFIG=/usr/bin/false # must be absolute path
.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>