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
|
2002-10-05 16:37:28 +00:00
|
|
|
PORTVERSION= 1.0.4
|
2002-10-31 19:31:09 +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
|
|
|
|
2002-10-31 19:31:09 +00:00
|
|
|
BUILD_DEPENDS= ${NONEXISTENT}:${PORTSDIR}/converters/libiconv:extract
|
|
|
|
LIB_DEPENDS= iconv.3:${PORTSDIR}/converters/libiconv \
|
|
|
|
ogg.4:${PORTSDIR}/audio/libogg
|
2002-01-19 16:54:57 +00:00
|
|
|
|
2001-03-18 05:08:05 +00:00
|
|
|
.if defined(WITH_XMMS)
|
2002-10-08 23:01:05 +00:00
|
|
|
# id3lib is only used by the XMMS plugin
|
2002-11-28 16:37:35 +00:00
|
|
|
BUILD_DEPENDS+= xmms-config:${PORTSDIR}/multimedia/xmms
|
2003-01-07 04:56:15 +00:00
|
|
|
LIB_DEPENDS+= id3-3.8.2:${PORTSDIR}/audio/id3lib \
|
2002-11-28 16:37:35 +00:00
|
|
|
xmms.3:${PORTSDIR}/multimedia/xmms
|
2002-10-08 23:01:05 +00:00
|
|
|
CONFIGURE_ARGS+=--with-id3lib="${LOCALBASE}"
|
2001-06-10 14:03:01 +00:00
|
|
|
PLIST_SUB= XMMS=""
|
|
|
|
.else
|
2002-01-19 16:54:57 +00:00
|
|
|
CONFIGURE_ENV+= XMMS_CONFIG=/usr/bin/false # must be absolute path
|
2001-06-10 14:03:01 +00:00
|
|
|
PLIST_SUB= XMMS="@comment "
|
2001-03-18 05:08:05 +00:00
|
|
|
.endif
|
|
|
|
|
2001-06-08 02:06:30 +00:00
|
|
|
.if ${MACHINE_ARCH} == "i386"
|
2001-06-09 04:57:03 +00:00
|
|
|
BUILD_DEPENDS+= nasm:${PORTSDIR}/devel/nasm
|
2001-06-08 02:06:30 +00:00
|
|
|
.endif
|
|
|
|
|
2002-10-05 16:37:28 +00:00
|
|
|
USE_LIBTOOL= yes
|
2002-01-19 16:54:57 +00:00
|
|
|
CONFIGURE_TARGET= --target=${MACHINE_ARCH}-unknown-freebsd${OSREL}
|
2002-10-08 23:01:05 +00:00
|
|
|
CONFIGURE_ARGS+=--enable-sse --enable-3dnow \
|
|
|
|
--with-libiconv-prefix="${LOCALBASE}" \
|
|
|
|
--with-ogg="${LOCALBASE}"
|
2002-11-01 18:35:56 +00:00
|
|
|
CONFIGURE_ENV= CONFIG_SHELL="${SH}" \
|
|
|
|
CPPFLAGS="-I${WRKSRC}/include"
|
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
|
2001-08-03 14:09:24 +00:00
|
|
|
MAN1= flac.1
|
|
|
|
|
2002-10-08 23:01:05 +00:00
|
|
|
# missing auxiliary script
|
|
|
|
post-extract:
|
2002-10-31 19:31:09 +00:00
|
|
|
@${CP} `cd ${PORTSDIR}/converters/libiconv && make -V WRKSRC`/autoconf/config.rpath ${WRKSRC}
|
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
|
|
|
|
2001-03-18 05:08:05 +00:00
|
|
|
.include <bsd.port.mk>
|