aboutsummaryrefslogtreecommitdiffstats
path: root/audio/akode/Makefile
blob: cf8625f9be73e0fd863143a955996ec27d7dadc6 (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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
# New ports collection makefile for:    mpeglib_artsplug
# Date created:             July 09 2004
# Whom:                 Michael Nottebrock <lofi@FreeBSD.org>
#
# $FreeBSD$
#

PORTNAME=   akode
PORTVERSION=    2.0
PORTEPOCH=  1
CATEGORIES= audio kde
MASTER_SITES=   ${MASTER_SITE_LOCAL} \
        http://www.kde-apps.org/content/
MASTER_SITE_SUBDIR=lofi
DISTNAME=   'download.php?content=30375'
EXTRACT_SUFX=   # none

MAINTAINER= kde@FreeBSD.org
COMMENT=    Default KDE audio backend

CONFLICTS=  kdemultimedia-3.[1-3]*

FETCH_CMD=  /usr/bin/fetch

OPTIONS=    JACK "Jack output plugin" off \
        MPC "Monkey's Audio decoder plugin" on \
        MPEG "MPEG Audio (including mp3) plugin" on \
        OSS "OSS output plugin" on \
        POLYPAUDIO "Polypaudio output plugin" off \
        RESAMPLER "Resampler processing plugin" on \
        XIPH "FLAC/Speex/Vorbis decoder plugin" on

USE_AUTOTOOLS=  libltdl
USE_REINPLACE=  yes
GNU_CONFIGURE=  yes
USE_GMAKE=  yes
WRKSRC=     ${WRKDIR}/${PORTNAME}-2.0
INSTALLS_SHLIB= yes
PLIST_SUB+= MACHINE_ARCH=${MACHINE_ARCH}

CONFIGURE_ARGS+=--build=${MACHINE_ARCH}-portbld-freebsd${OSREL} \
        --program-transform-name= \
        --with-extra-libs=${LOCALBASE}/lib \
        --with-extra-includes=${LOCALBASE}/include

.include <bsd.port.pre.mk>

.if defined(WITH_JACK)
RUN_DEPENDS+=   ${LOCALBASE}/lib/libakode_jack_sink.so:${PORTSDIR}/audio/akode-plugins-jack
.endif

.if !defined(WITHOUT_MPC)
RUN_DEPENDS+=   ${LOCALBASE}/lib/libakode_mpc_decoder.so:${PORTSDIR}/audio/akode-plugins-mpc
.endif

.if !defined(WITHOUT_MPEG)
RUN_DEPENDS+=   ${LOCALBASE}/lib/libakode_mpeg_decoder.so:${PORTSDIR}/audio/akode-plugins-mpeg
.endif

.if !defined(WITHOUT_OSS)
RUN_DEPENDS+=   ${LOCALBASE}/lib/libakode_oss_sink.so:${PORTSDIR}/audio/akode-plugins-oss
.endif

.if defined(WITH_POLYPAUDIO)
RUN_DEPENDS+=   ${LOCALBASE}/lib/libakode_polyp_sink.so:${PORTSDIR}/audio/akode-plugins-polypaudio
.endif

.if !defined(WITHOUT_RESAMPLER)
RUN_DEPENDS+=   ${LOCALBASE}/lib/libakode_src_resampler.so:${PORTSDIR}/audio/akode-plugins-resampler
.endif

.if !defined(WITHOUT_XIPH)
RUN_DEPENDS+=   ${LOCALBASE}/lib/libakode_xiph_decoder.so:${PORTSDIR}/audio/akode-plugins-xiph
.endif

post-patch:
    @${SETENV} TZ=UTC ${TOUCH} -t 200511231529.06 ${WRKSRC}/akode/lib/akode_export.h.in
    ${REINPLACE_CMD} -e 's|akodeplay_LDFLAGS =.*|akodeplay_LDFLAGS = \
    $$(all_libraries) ${PTHREAD_LIBS}|g' \
        ${WRKSRC}/akode/akodeplay/Makefile.in

do-build:
    cd ${WRKSRC}/akode && ${GMAKE}

do-install:
    cd ${WRKSRC}/akode && ${GMAKE} install

.include <bsd.port.post.mk>