aboutsummaryrefslogtreecommitdiffstats
path: root/audio/libtunepimp-old/Makefile
blob: b10f19cae313f632aa1b07326862a93736fb7a4e (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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
# New ports collection makefile for:    tunepimp
# Date Created:             11 Aug 2004
# Whom:                 Lauri Watts <lauri@kde.org>
#
# $FreeBSD$
#

PORTNAME=   libtunepimp-old
PORTVERSION=    0.4.2
PORTREVISION=   4
PORTEPOCH=  2
CATEGORIES= audio
MASTER_SITES=   http://ftp.musicbrainz.org/pub/musicbrainz/ \
        ftp://ftp.au.musicbrainz.org/pub/musicbrainz/
DISTNAME=   libtunepimp-${PORTVERSION}

MAINTAINER= fluffy@ael.ru
COMMENT=    Client library for musicbrainz

LIB_DEPENDS=    FLAC:${PORTSDIR}/audio/flac \
        expat:${PORTSDIR}/textproc/expat2 \
        mad:${PORTSDIR}/audio/libmad \
        mp4v2:${PORTSDIR}/multimedia/mpeg4ip-libmp4v2 \
        musicbrainz:${PORTSDIR}/audio/libmusicbrainz \
        ogg:${PORTSDIR}/audio/libogg \
        tag:${PORTSDIR}/audio/taglib \
        vorbis:${PORTSDIR}/audio/libvorbis

CONFLICTS=  trm-0* libtunepimp-0*
USE_GMAKE=  yes
USE_GNOME=  gnomehack gnometarget pkgconfig
USE_AUTOTOOLS=  libtool:15
CONFIGURE_ARGS= --libdir=${PREFIX}/lib/tunepimp-0.4 --includedir=${PREFIX}/include/tunepimp-0.4
CONFIGURE_ENV=  CPPFLAGS="-I${LOCALBASE}/include" \
        LDFLAGS="-L${LOCALBASE}/lib -liconv"
INSTALLS_SHLIB= yes
LDCONFIG_DIRS=  %%PREFIX%%/lib/tunepimp-0.4
USE_LDCONFIG=   ${PREFIX}/lib/tunepimp-0.4

post-patch:
    @${REINPLACE_CMD} -e 's|^CFLAGS=|#CFLAGS=|g ; \
         s|^CPPFLAGS=|#CPPFLAGS=|g' ${WRKSRC}/configure
    @${REINPLACE_CMD} -e 's|-lthr|${PTHREAD_LIBS}|g' \
        ${WRKSRC}/lib/threads/posix/Makefile.in

post-configure:
    @${REINPLACE_CMD} -e 's|\(^LDFLAGS =.*\)|\1 ${PTHREAD_LIBS} -liconv|g' \
        ${WRKSRC}/examples/Makefile
    @${REINPLACE_CMD} -e \
    's|PREFIX"/lib/tunepimp/plugins"|PREFIX"/lib/tunepimp-0.4/tunepimp/plugins"|g' \
        ${WRKSRC}/lib/tunepimp.cpp


.include <bsd.port.mk>