aboutsummaryrefslogtreecommitdiffstats
path: root/audio/gmusicbrowser/Makefile
blob: 87ae54a7ca9c1907719523330444df07cf1981a4 (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
# Created by: Zhihao Yuan <lichray@gmail.com>
# $FreeBSD$

PORTNAME=   gmusicbrowser
PORTVERSION=    1.1.9
PORTREVISION=   1
CATEGORIES= audio
MASTER_SITES=   http://gmusicbrowser.org/download/

MAINTAINER= lichray@gmail.com
COMMENT=    Jukebox for large collections of mp3/ogg/flac/mpc files

RUN_DEPENDS=    p5-Gtk2>=1.0:${PORTSDIR}/x11-toolkits/p5-Gtk2

NO_BUILD=   yes

MAN1=   gmusicbrowser.1
PORTDOCS=   AUTHORS COPYING README NEWS INSTALL layout_doc.html
PORTDATA=   *

OPTIONS_DEFINE= GSTREAMER MPLAYER DBUS WEBKIT NLS
OPTIONS_DEFAULT=    MPLAYER

WEBKIT_DESC=    Enable embedded web browser

.include <bsd.port.options.mk>

.if ${PORT_OPTIONS:MGSTREAMER}
RUN_DEPENDS+=   p5-GStreamer>=0:${PORTSDIR}/multimedia/p5-GStreamer
.endif

.if ${PORT_OPTIONS:MMPLAYER}
RUN_DEPENDS+=   mplayer:${PORTSDIR}/multimedia/mplayer
.endif

.if ${PORT_OPTIONS:MDBUS}
RUN_DEPENDS+=   p5-Net-DBus>=1.0:${PORTSDIR}/devel/p5-Net-DBus
.endif

.if ${PORT_OPTIONS:MWEBKIT}
RUN_DEPENDS+=   p5-Gtk2-WebKit>=0:${PORTSDIR}/www/p5-Gtk2-WebKit
.endif

.if defined(NOPORTDATA)
IGNORE=     port data contain code, undefine NOPORTDATA
.endif

do-install:
    ${INSTALL_SCRIPT} ${WRKSRC}/${PORTNAME}.pl ${PREFIX}/bin/${PORTNAME}
    ${INSTALL_MAN} ${WRKSRC}/${PORTNAME}.man ${MANPREFIX}/man/man1/${MAN1}
    @${MKDIR} ${DESKTOPDIR}
    ${INSTALL_DATA} ${WRKSRC}/${PORTNAME}.desktop ${DESKTOPDIR}
    @${MKDIR} ${DATADIR}
    (cd ${WRKSRC} && (for d in layouts pix plugins; do \
        ${COPYTREE_SHARE} $$d ${DATADIR}; done) && \
        ${INSTALL_DATA} *.pm ${DATADIR} && \
        ${INSTALL_SCRIPT} iceserver.pl ${DATADIR})
.if ${PORT_OPTIONS:MDOCS}
    @${MKDIR} ${DOCSDIR}
    (cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${DOCSDIR})
.endif
.if ${PORT_OPTIONS:MNLS}
    (cd ${WRKSRC}/locale && \
        ${COPYTREE_SHARE} \* ${PREFIX}/share/locale)
    (cd ${WRKSRC} && \
        ${FIND} locale -type f | ${SED} "s|^|share/|g" >> ${TMPPLIST})
.endif

.include <bsd.port.mk>