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