mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-27 05:10:36 +00:00
42 lines
957 B
Makefile
42 lines
957 B
Makefile
# New ports collection makefile for: libmad
|
|
# Date created: 26 November 2003
|
|
# Whom: Sergey Akifyev <asa@gascom.ru>
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= libmad
|
|
PORTVERSION= 0.15.1b
|
|
PORTREVISION= 2
|
|
CATEGORIES= audio
|
|
MASTER_SITES= SF/mad/${PORTNAME}/${PORTVERSION} \
|
|
ftp://ftp.mars.org/pub/mpeg/
|
|
|
|
|
|
MAINTAINER= dinoex@FreeBSD.org
|
|
COMMENT= Libmad library (part of MAD project)
|
|
|
|
USE_AUTOTOOLS= libtool
|
|
GNU_CONFIGURE= yes
|
|
USE_GNOME= pkgconfig
|
|
USE_LDCONFIG= yes
|
|
CONFIGURE_ARGS= --disable-debugging \
|
|
--enable-sso
|
|
.if defined(WITH_SPEED)
|
|
CONFIGURE_ARGS+= --enable-speed
|
|
.else
|
|
CONFIGURE_ARGS+= --enable-accuracy
|
|
.endif
|
|
|
|
post-patch:
|
|
@${SED} -e 's|%PREFIX%|${PREFIX}|g ; s|%VERSION%|${PORTVERSION}|g' \
|
|
${FILESDIR}/mad.pc.in > ${WRKDIR}/mad.pc
|
|
@${REINPLACE_CMD} -e 's| -fforce-mem||' \
|
|
${WRKSRC}/configure
|
|
|
|
post-install:
|
|
${MKDIR} ${PREFIX}/libdata/pkgconfig
|
|
${INSTALL_DATA} ${WRKDIR}/mad.pc ${PREFIX}/libdata/pkgconfig
|
|
|
|
.include <bsd.port.mk>
|