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
|
2008-04-07 22:37:23 +02:00
|
|
|
PORTVERSION= 1.2.1
|
2012-07-19 22:15:37 +02:00
|
|
|
PORTREVISION= 3
|
2001-03-18 06:08:05 +01:00
|
|
|
CATEGORIES= audio
|
2009-08-22 02:13:26 +02:00
|
|
|
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}-src/${PORTNAME}-${PORTVERSION}-src
|
2001-03-18 06:08:05 +01:00
|
|
|
|
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
|
|
|
|
2012-07-19 22:15:37 +02:00
|
|
|
LIB_DEPENDS= ogg:${PORTSDIR}/audio/libogg
|
2002-01-19 17:54:57 +01:00
|
|
|
|
2010-12-04 08:34:27 +01:00
|
|
|
USE_AUTOTOOLS= libtool
|
2007-08-07 20:41:34 +02:00
|
|
|
GNU_CONFIGURE= yes
|
2005-03-16 15:49:23 +01:00
|
|
|
CONFIGURE_ARGS= --enable-sse \
|
2008-04-07 22:37:23 +02:00
|
|
|
--with-ogg="${LOCALBASE}" \
|
|
|
|
--disable-thorough-tests \
|
|
|
|
--disable-xmms-plugin
|
2011-09-24 00:26:39 +02:00
|
|
|
CPPFLAGS+= -I${WRKSRC}/include
|
2009-03-24 15:47:42 +01:00
|
|
|
MAKE_JOBS_SAFE= yes
|
2001-03-18 06:08:05 +01:00
|
|
|
|
2008-07-05 18:24:10 +02:00
|
|
|
.if !defined(WITHOUT_ICONV)
|
|
|
|
USE_ICONV= yes
|
|
|
|
CONFIGURE_ARGS+=--with-libiconv-prefix="${LOCALBASE}"
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+=--without-libiconv-prefix
|
|
|
|
.endif
|
|
|
|
|
2008-04-07 22:37:23 +02:00
|
|
|
MAKE_ARGS= pkgconfigdir="${PREFIX}/libdata/pkgconfig"
|
2002-07-07 01:45:21 +02:00
|
|
|
.if defined(NOPORTDOCS)
|
2008-04-07 22:37:23 +02:00
|
|
|
MAKE_ENV+= DOC=""
|
2002-07-07 01:45:21 +02:00
|
|
|
.else
|
2008-04-07 22:37:23 +02:00
|
|
|
MAKE_ENV+= DOC=doc
|
2002-07-07 01:45:21 +02:00
|
|
|
.endif
|
2001-03-18 06:08:05 +01:00
|
|
|
|
2007-08-07 20:41:34 +02:00
|
|
|
USE_LDCONFIG= 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"
|
2008-04-07 22:37:23 +02:00
|
|
|
BUILD_DEPENDS+= nasm:${PORTSDIR}/devel/nasm
|
2005-04-11 11:47:42 +02:00
|
|
|
.endif
|
|
|
|
|
2008-04-07 22:37:23 +02:00
|
|
|
pre-patch:
|
|
|
|
@${REINPLACE_CMD} 's:^docdir = $$(datadir)/doc/$$(PACKAGE)-$$(VERSION):docdir = $$(datadir)/doc/$$(PACKAGE):' \
|
|
|
|
`find ${WRKSRC}/doc -name Makefile.in`
|
2002-10-05 18:37:28 +02:00
|
|
|
|
2009-07-09 13:17:56 +02:00
|
|
|
# "obj" is magic to our make(1)
|
|
|
|
post-configure:
|
|
|
|
@${RM} -rf ${WRKSRC}/obj
|
|
|
|
|
2003-04-16 01:38:24 +02:00
|
|
|
post-build:
|
|
|
|
${REINPLACE_CMD} 's:%%PREFIX%%:${PREFIX}:' ${WRKSRC}/man/flac.1
|
|
|
|
|
2008-06-20 18:22:18 +02:00
|
|
|
regression-test: build
|
2008-04-07 22:37:23 +02:00
|
|
|
@cd ${WRKSRC}; ${SETENV} ${MAKE_ENV} ${MAKE} check
|
2003-02-23 03:14:52 +01:00
|
|
|
|
2005-04-11 11:47:42 +02:00
|
|
|
.include <bsd.port.post.mk>
|