2001-03-18 00:08:05 -05:00
|
|
|
# New ports collection makefile for: flac
|
|
|
|
# Date created: Mar 18, 2001
|
|
|
|
# Whom: Ying-Chieh Liao <ijliao@FreeBSD.org>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= flac
|
2003-02-22 21:14:52 -05:00
|
|
|
PORTVERSION= 1.1.0
|
2003-12-20 10:22:56 -05:00
|
|
|
PORTREVISION= 3
|
2001-03-18 00:08:05 -05:00
|
|
|
CATEGORIES= audio
|
|
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
|
|
|
|
MASTER_SITE_SUBDIR= ${PORTNAME}
|
|
|
|
|
2001-11-03 17:22:34 -05:00
|
|
|
MAINTAINER= naddy@FreeBSD.org
|
2003-02-21 07:52:52 -05:00
|
|
|
COMMENT= Free lossless audio codec
|
2001-03-18 00:08:05 -05:00
|
|
|
|
2002-10-31 14:31:09 -05:00
|
|
|
LIB_DEPENDS= iconv.3:${PORTSDIR}/converters/libiconv \
|
2003-12-20 10:22:56 -05:00
|
|
|
ogg.5:${PORTSDIR}/audio/libogg
|
2002-01-19 11:54:57 -05:00
|
|
|
|
2001-06-07 22:06:30 -04:00
|
|
|
.if ${MACHINE_ARCH} == "i386"
|
2003-06-10 11:40:08 -04:00
|
|
|
BUILD_DEPENDS= nasm:${PORTSDIR}/devel/nasm
|
2001-06-07 22:06:30 -04:00
|
|
|
.endif
|
|
|
|
|
2003-04-15 19:38:24 -04:00
|
|
|
USE_REINPLACE= yes
|
2004-03-14 01:17:56 -05:00
|
|
|
USE_LIBTOOL_VER= 13
|
2003-10-27 04:11:28 -05:00
|
|
|
CONFIGURE_TARGET= --target=${MACHINE_ARCH}-unknown-freebsd${OSREL}
|
2003-06-10 11:40:08 -04:00
|
|
|
CONFIGURE_ARGS= --enable-sse --enable-3dnow \
|
2002-10-08 19:01:05 -04:00
|
|
|
--with-libiconv-prefix="${LOCALBASE}" \
|
|
|
|
--with-ogg="${LOCALBASE}"
|
2003-06-10 11:40:08 -04:00
|
|
|
CONFIGURE_ENV= CPPFLAGS="-I${WRKSRC}/include" \
|
|
|
|
XMMS_CONFIG=/usr/bin/false # must be absolute path
|
2001-03-18 00:08:05 -05:00
|
|
|
|
2002-07-06 19:45:21 -04:00
|
|
|
.if defined(NOPORTDOCS)
|
|
|
|
MAKE_ENV= DOC=""
|
|
|
|
.else
|
|
|
|
MAKE_ENV= DOC=doc
|
|
|
|
.endif
|
2001-03-18 00:08:05 -05:00
|
|
|
|
|
|
|
INSTALLS_SHLIB= yes
|
2003-02-22 21:14:52 -05:00
|
|
|
MAN1= flac.1 metaflac.1
|
2002-10-08 19:01:05 -04:00
|
|
|
|
|
|
|
# "obj" is magic to our make(1)
|
2002-10-05 12:37:28 -04:00
|
|
|
post-configure:
|
2002-10-08 19:01:05 -04:00
|
|
|
@${RM} -rf ${WRKSRC}/obj
|
2002-10-05 12:37:28 -04:00
|
|
|
|
2003-04-15 19:38:24 -04:00
|
|
|
post-build:
|
|
|
|
${REINPLACE_CMD} 's:%%PREFIX%%:${PREFIX}:' ${WRKSRC}/man/flac.1
|
|
|
|
|
2003-02-22 21:14:52 -05:00
|
|
|
test: build
|
|
|
|
@cd ${WRKSRC}; make check
|
|
|
|
|
2001-03-18 00:08:05 -05:00
|
|
|
.include <bsd.port.mk>
|