aboutsummaryrefslogtreecommitdiff
path: root/audio/gogglesmm/Makefile
blob: 3d4cdc28446e5289897f7e6488e158cafcb04fe1 (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
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
# Created by: Sascha Klauder <sklauder@trimind.de>
# $FreeBSD$

PORTNAME=	gogglesmm
PORTVERSION=	1.2.1
PORTREVISION=	4
CATEGORIES=	audio

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

LICENSE=	GPLv3+
LICENSE_FILE=	${WRKSRC}/COPYING

BROKEN_powerpc64=	fails to compile: ap_mad.cpp:358:2: \#error fixme

LIB_DEPENDS=	libtag.so:audio/taglib \
		libexpat.so:textproc/expat2 \
		libFOX-1.7.so:x11-toolkits/fox17

USES=		cmake compiler:c++11-lib desktop-file-utils \
		localbase:ldflags pkgconfig shebangfix sqlite
USE_GITHUB=	yes
USE_XORG=	ice sm x11

CMAKE_OFF=	WITH_CFOX
INSTALLS_ICONS=	yes
SHEBANG_FILES=	extra/*.py

PORTDOCS=	AUTHORS ChangeLog README

OPTIONS_DEFINE=		A52 ALSA DBUS DCA DOCS FAAD FLAC IMPORT MAD NLS \
			OGG OPENGL OPUS PULSEAUDIO ZLIB
OPTIONS_RADIO=		SSL VORBISDEC
OPTIONS_RADIO_SSL=	GCRYPT GNUTLS OPENSSL
VORBISDEC_DESC=		Vorbis decoder library
OPTIONS_RADIO_VORBISDEC=	TREMOR VORBIS
OPTIONS_DEFAULT=	DBUS FAAD FLAC MAD OGG OPENGL OPENSSL OPUS VORBIS ZLIB
OPTIONS_SUB=		yes

A52_LIB_DEPENDS=	liba52.so:audio/liba52
A52_CMAKE_BOOL=		WITH_A52

ALSA_LIB_DEPENDS=	libasound.so:audio/alsa-lib
ALSA_CMAKE_BOOL=	WITH_ALSA

DBUS_LIB_DEPENDS=	libdbus-1.so:devel/dbus
DBUS_CMAKE_BOOL=	WITH_DBUS

DCA_LIB_DEPENDS=	libdca.so:multimedia/libdca
DCA_CMAKE_BOOL=		WITH_DCA

FAAD_LIB_DEPENDS=	libfaad.so:audio/faad
FAAD_CMAKE_BOOL=	WITH_FAAD

FLAC_LIB_DEPENDS=	libFLAC.so:audio/flac
FLAC_CMAKE_BOOL=	WITH_FLAC
FLAC_IMPLIES=		OGG

GCRYPT_DESC=		MD5 calculation via libgcrypt (no https)
GCRYPT_LIB_DEPENDS=	libgcrypt.so:security/libgcrypt
GCRYPT_CMAKE_BOOL=	WITH_GCRYPT

GNUTLS_LIB_DEPENDS=	libgnutls.so:security/gnutls
GNUTLS_CMAKE_BOOL=	WITH_GNUTLS

IMPORT_DESC=		Install scripts to import old databases
IMPORT_USES=		python:2.7
IMPORT_CMAKE_BOOL=	WITH_IMPORT

MAD_LIB_DEPENDS=	libmad.so:audio/libmad
MAD_CMAKE_BOOL=		WITH_MAD

NLS_USES=		gettext
NLS_CMAKE_BOOL=		WITH_NLS

OGG_LIB_DEPENDS=	libogg.so:audio/libogg
OGG_CMAKE_BOOL=		WITH_OGG

OPENGL_LIB_DEPENDS=	libepoxy.so:graphics/libepoxy
OPENGL_USE=		GL=gl,glu
OPENGL_CMAKE_BOOL=	WITH_OPENGL

OPENSSL_USES=		ssl
OPENSSL_CMAKE_BOOL=	WITH_OPENSSL

OPUS_LIB_DEPENDS=	libopus.so:audio/opus
OPUS_CMAKE_BOOL=	WITH_OPUS
OPUS_IMPLIES=		OGG

PULSEAUDIO_LIB_DEPENDS=	libpulse.so:audio/pulseaudio
PULSEAUDIO_CMAKE_BOOL=	WITH_PULSE

TREMOR_LIB_DEPENDS=	libvorbisidec.so:audio/libtremor
TREMOR_CMAKE_BOOL=	WITH_TREMOR
TREMOR_IMPLIES=		OGG

VORBIS_LIB_DEPENDS=	libvorbis.so:audio/libvorbis
VORBIS_CMAKE_BOOL=	WITH_VORBIS
VORBIS_IMPLIES=		OGG

ZLIB_CMAKE_BOOL=	WITH_ZLIB

.include <bsd.port.options.mk>

.if ${PORT_OPTIONS:MOGG} && !${PORT_OPTIONS:MTREMOR} && !${PORT_OPTIONS:MVORBIS}
IGNORE=	you have selected an option that requires a Vorbis decoder. Run 'make config' and select one
.endif

post-install-DOCS-on:
	@${MKDIR} ${STAGEDIR}${DOCSDIR}
	${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}

.include <bsd.port.mk>