1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-17 08:01:36 +00:00
freebsd-ports/audio/flac/Makefile
Marcus von Appen 821843ca06 - Convert USE_ICONV=yes to USES=iconv
- Change USE_GNOME=pkgconfig|gnomehack to USES=pathfix|pkgconfig while here

Reviewed by:	bapt, kwm
2013-04-27 08:50:46 +00:00

67 lines
1.4 KiB
Makefile

# Created by: Ying-Chieh Liao <ijliao@FreeBSD.org>
# $FreeBSD$
PORTNAME= flac
PORTVERSION= 1.2.1
PORTREVISION= 3
CATEGORIES= audio
MASTER_SITES= http://downloads.xiph.org/releases/flac/
MAINTAINER= naddy@FreeBSD.org
COMMENT= Free lossless audio codec
LIB_DEPENDS= ogg:${PORTSDIR}/audio/libogg
USE_AUTOTOOLS= libtool
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --enable-sse \
--with-ogg="${LOCALBASE}" \
--disable-thorough-tests \
--disable-xmms-plugin
CPPFLAGS+= -I${WRKSRC}/include
MAKE_JOBS_SAFE= yes
OPTIONS_DEFINE= ICONV
OPTIONS_DEFAULT=ICONV
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MICONV}
USES+= iconv
CONFIGURE_ARGS+=--with-libiconv-prefix="${LOCALBASE}"
.else
CONFIGURE_ARGS+=--without-libiconv-prefix
.endif
MAKE_ARGS= pkgconfigdir="${PREFIX}/libdata/pkgconfig"
.if ${PORT_OPTIONS:MDOCS}
MAKE_ENV+= DOC=doc
.else
MAKE_ENV+= 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>