aboutsummaryrefslogtreecommitdiffstats
path: root/audio/gogglesmm/Makefile
blob: 027efadc3aecdee29046885a38f909e0d985f313 (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
# Created by: Sascha Klauder <sklauder@trimind.de>
# $FreeBSD$

PORTNAME=   gogglesmm
PORTVERSION=    0.12.7
PORTREVISION=   6
CATEGORIES= audio
MASTER_SITES=   GOOGLE_CODE

MAINTAINER= ports@FreeBSD.org
COMMENT=    Music collection manager and player

LICENSE=    GPLv3

LIB_DEPENDS=    libxine.so:${PORTSDIR}/multimedia/libxine \
        libtag.so:${PORTSDIR}/audio/taglib  \
        libsqlite3.so:${PORTSDIR}/databases/sqlite3

OPTIONS_DEFINE= DBUS CURL NLS NEWREMOTE GCRYPT DOCS
OPTIONS_SINGLE= FOX
OPTIONS_SINGLE_FOX= FOX16 FOX17
OPTIONS_DEFAULT=    DBUS CURL NEWREMOTE FOX16

FOX16_DESC= Use stable branch of FOX
FOX17_DESC= Use development branch of FOX
NEWREMOTE_DESC= Use new remote player
GCRYPT_DESC=    Use libgcrypt for md5 calculation

OPTIONS_SUB=    yes

HAS_CONFIGURE=  yes
CONFIGURE_ARGS+=    --mandir=${PREFIX}/man --prefix=${PREFIX}

USES=       tar:xz pkgconfig gmake desktop-file-utils
MAKE_ARGS=  CXX="${CXX}" LINK="${CXX}"
INSTALLS_ICONS= yes

PORTDOCS=   README AUTHORS

FOX16_LIB_DEPENDS=  libFOX-1.6.so:${PORTSDIR}/x11-toolkits/fox16
FOX17_LIB_DEPENDS=  libFOX-1.7.so:${PORTSDIR}/x11-toolkits/fox17

GCRYPT_LIB_DEPENDS= libgcrypt.so:${PORTSDIR}/security/libgcrypt
GCRYPT_CONFIGURE_ON=    --with-md5=gcrypt
GCRYPT_CONFIGURE_OFF=   --with-md5=internal

DBUS_LIB_DEPENDS=   libdbus-1.so:${PORTSDIR}/devel/dbus
DBUS_CONFIGURE_OFF= --with-dbus

CURL_LIB_DEPENDS=   libcurl.so:${PORTSDIR}/ftp/curl
CURL_CONFIGURE_OFF= --without-curl

NLS_USES=       gettext
NLS_LDFLAGS=        -lintl
NLS_CONFIGURE_OFF=  --disable-nls

NEWREMOTE_CONFIGURE_OFF=    --without-new-remote

post-install:
    ${MKDIR} ${STAGEDIR}${DOCSDIR}
    cd ${WRKSRC}; ${INSTALL_DATA} ${PORTDOCS} ${STAGEDIR}${DOCSDIR}
    ${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/${PORTNAME}

.include <bsd.port.mk>