mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-27 00:57:50 +00:00
30587b71c2
(via libvorbis, libtheora).
66 lines
1.4 KiB
Makefile
66 lines
1.4 KiB
Makefile
# New ports collection makefile for: flac
|
|
# Date created: Mar 18, 2001
|
|
# Whom: Ying-Chieh Liao <ijliao@FreeBSD.org>
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= flac
|
|
PORTVERSION= 1.2.1
|
|
PORTREVISION= 2
|
|
CATEGORIES= audio
|
|
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}-src/${PORTNAME}-${PORTVERSION}-src
|
|
|
|
MAINTAINER= naddy@FreeBSD.org
|
|
COMMENT= Free lossless audio codec
|
|
|
|
LIB_DEPENDS= ogg.7:${PORTSDIR}/audio/libogg
|
|
|
|
USE_AUTOTOOLS= libtool:22
|
|
GNU_CONFIGURE= yes
|
|
CONFIGURE_ARGS= --enable-sse \
|
|
--with-ogg="${LOCALBASE}" \
|
|
--disable-thorough-tests \
|
|
--disable-xmms-plugin
|
|
CONFIGURE_ENV= CPPFLAGS="-I${WRKSRC}/include"
|
|
MAKE_JOBS_SAFE= yes
|
|
|
|
.if !defined(WITHOUT_ICONV)
|
|
USE_ICONV= yes
|
|
CONFIGURE_ARGS+=--with-libiconv-prefix="${LOCALBASE}"
|
|
.else
|
|
CONFIGURE_ARGS+=--without-libiconv-prefix
|
|
.endif
|
|
|
|
MAKE_ARGS= pkgconfigdir="${PREFIX}/libdata/pkgconfig"
|
|
.if defined(NOPORTDOCS)
|
|
MAKE_ENV+= DOC=""
|
|
.else
|
|
MAKE_ENV+= DOC=doc
|
|
.endif
|
|
|
|
USE_LDCONFIG= yes
|
|
MAN1= flac.1 metaflac.1
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
.if ${ARCH} == "i386"
|
|
BUILD_DEPENDS+= nasm:${PORTSDIR}/devel/nasm
|
|
.endif
|
|
|
|
pre-patch:
|
|
@${REINPLACE_CMD} 's:^docdir = $$(datadir)/doc/$$(PACKAGE)-$$(VERSION):docdir = $$(datadir)/doc/$$(PACKAGE):' \
|
|
`find ${WRKSRC}/doc -name Makefile.in`
|
|
|
|
# "obj" is magic to our make(1)
|
|
post-configure:
|
|
@${RM} -rf ${WRKSRC}/obj
|
|
|
|
post-build:
|
|
${REINPLACE_CMD} 's:%%PREFIX%%:${PREFIX}:' ${WRKSRC}/man/flac.1
|
|
|
|
regression-test: build
|
|
@cd ${WRKSRC}; ${SETENV} ${MAKE_ENV} ${MAKE} check
|
|
|
|
.include <bsd.port.post.mk>
|