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