aboutsummaryrefslogtreecommitdiffstats
path: root/audio/libmad/Makefile
blob: 07f1002dad51b4c5d995e71a80860bcec3d2eb70 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
# 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=   ${MASTER_SITE_SOURCEFORGE} \
        ftp://ftp.mars.org/pub/mpeg/
MASTER_SITE_SUBDIR= mad

MAINTAINER= dinoex@FreeBSD.org
COMMENT=    Libmad library (part of MAD project)

USE_AUTOTOOLS=  libtool:22
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

post-install:
    ${MKDIR} ${PREFIX}/libdata/pkgconfig
    ${INSTALL_DATA} ${WRKDIR}/mad.pc ${PREFIX}/libdata/pkgconfig

.include <bsd.port.mk>