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
|
2001-03-18 00:08:05 -05:00
|
|
|
CATEGORIES= audio
|
|
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
|
|
|
|
MASTER_SITE_SUBDIR= ${PORTNAME}
|
|
|
|
|
2003-02-22 21:14:52 -05:00
|
|
|
PATCH_SITES= ${MASTER_SITE_DEBIAN}
|
|
|
|
PATCH_SITE_SUBDIR= pool/main/f/${PORTNAME}
|
|
|
|
PATCHFILES= ${PORTNAME}_${PORTVERSION}-3.diff.gz
|
|
|
|
PATCH_DIST_STRIP= -p1
|
|
|
|
|
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 \
|
|
|
|
ogg.4:${PORTSDIR}/audio/libogg
|
2002-01-19 11:54:57 -05:00
|
|
|
|
2001-03-18 00:08:05 -05:00
|
|
|
.if defined(WITH_XMMS)
|
2003-02-22 21:14:52 -05:00
|
|
|
# We don't build with id3lib support, because of C++ related build
|
|
|
|
# problems. Detection is disabled by patch-configure.
|
2002-11-28 11:37:35 -05:00
|
|
|
BUILD_DEPENDS+= xmms-config:${PORTSDIR}/multimedia/xmms
|
2003-02-22 21:14:52 -05:00
|
|
|
LIB_DEPENDS+= xmms.3:${PORTSDIR}/multimedia/xmms
|
2001-06-10 10:03:01 -04:00
|
|
|
PLIST_SUB= XMMS=""
|
|
|
|
.else
|
2002-01-19 11:54:57 -05:00
|
|
|
CONFIGURE_ENV+= XMMS_CONFIG=/usr/bin/false # must be absolute path
|
2001-06-10 10:03:01 -04:00
|
|
|
PLIST_SUB= XMMS="@comment "
|
2001-03-18 00:08:05 -05:00
|
|
|
.endif
|
|
|
|
|
2001-06-07 22:06:30 -04:00
|
|
|
.if ${MACHINE_ARCH} == "i386"
|
2001-06-09 00:57:03 -04:00
|
|
|
BUILD_DEPENDS+= nasm:${PORTSDIR}/devel/nasm
|
2001-06-07 22:06:30 -04:00
|
|
|
.endif
|
|
|
|
|
2002-10-05 12:37:28 -04:00
|
|
|
USE_LIBTOOL= yes
|
2002-01-19 11:54:57 -05:00
|
|
|
CONFIGURE_TARGET= --target=${MACHINE_ARCH}-unknown-freebsd${OSREL}
|
2002-10-08 19:01:05 -04:00
|
|
|
CONFIGURE_ARGS+=--enable-sse --enable-3dnow \
|
|
|
|
--with-libiconv-prefix="${LOCALBASE}" \
|
|
|
|
--with-ogg="${LOCALBASE}"
|
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-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>
|