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
|
2005-03-16 15:49:23 +01:00
|
|
|
PORTVERSION= 1.1.2
|
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
|
|
|
|
2004-03-30 21:20:22 +02:00
|
|
|
USE_ICONV= yes
|
2003-04-16 01:38:24 +02:00
|
|
|
USE_REINPLACE= yes
|
2005-03-16 15:49:23 +01:00
|
|
|
USE_LIBTOOL_VER=15
|
2005-04-11 10:04:41 +02:00
|
|
|
CONFIGURE_TARGET= --target=${ARCH}-unknown-freebsd${OSREL}
|
2005-03-16 15:49:23 +01:00
|
|
|
CONFIGURE_ARGS= --enable-sse \
|
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" \
|
2005-03-16 15:49:23 +01:00
|
|
|
ac_cv_path_XMMS_CONFIG=no
|
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
|
|
|
|
2005-04-11 11:47:42 +02:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
|
|
|
.if ${ARCH} == "i386"
|
|
|
|
BUILD_DEPENDS= nasm:${PORTSDIR}/devel/nasm
|
|
|
|
.endif
|
|
|
|
|
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
|
2005-03-16 15:49:23 +01:00
|
|
|
@cd ${WRKSRC}; ${MAKE} check
|
2003-02-23 03:14:52 +01:00
|
|
|
|
2005-04-11 11:47:42 +02:00
|
|
|
.include <bsd.port.post.mk>
|