blob: a0219a6c53236daac15dd646d5066bab18c853e6 (
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
|
PORTNAME= audacious
PORTVERSION= 4.2
CATEGORIES= multimedia audio
MASTER_SITES= https://distfiles.audacious-media-player.org/
MAINTAINER= madpilot@FreeBSD.org
COMMENT= Lightweight and versatile audio player
WWW= https://audacious-media-player.org/
LICENSE= BSD2CLAUSE BSD3CLAUSE
LICENSE_COMB= multi
LICENSE_FILE= ${WRKSRC}/COPYING
LIB_DEPENDS= libfreetype.so:print/freetype2 \
libfontconfig.so:x11-fonts/fontconfig
FLAVORS= qt5 gtk2
FLAVOR?= ${FLAVORS:[1]}
USES= compiler:c++11-lib desktop-file-utils gettext-tools gmake \
gnome iconv localbase pkgconfig tar:bzip2 xorg
USE_GNOME= glib20
USE_XORG= x11 sm
USE_LDCONFIG= yes
qt5_CONFLICTS_INSTALL= audacious-gtk2
gtk2_LIB_DEPENDS+= libharfbuzz.so:print/harfbuzz
gtk2_PKGNAMESUFFIX= -gtk2
gtk2_CONFLICTS_INSTALL= audacious
GNU_CONFIGURE= yes
SUB_FILES= pkg-message
CONFIGURE_ARGS= --with-pkgconfigdir=${PREFIX}/libdata/pkgconfig \
--without-buildstamp
.if ${FLAVOR} == qt5
CONFIGURE_ARGS+= --enable-qt --disable-gtk
USES+= qt:5
USE_QT= buildtools_build core gui widgets
PLIST_SUB= QT5="" GTK2="@comment "
.elif ${FLAVOR} == gtk2
CONFIGURE_ARGS+= --disable-qt --enable-gtk
USE_GNOME+= cairo gdkpixbuf2 gtk20
PLIST_SUB= QT5="@comment " GTK2=""
.endif
OPTIONS_DEFINE= NLS EXECINFO
OPTIONS_DEFAULT=EXECINFO
OPTIONS_SUB= yes
EXECINFO_DESC= Build with libexecinfo support
NLS_USES= gettext-runtime
NLS_CONFIGURE_ENABLE= nls
post-patch-NLS-off:
${REINPLACE_CMD} -e 's,po,,' ${WRKSRC}/Makefile
post-patch-EXECINFO-on:
@${REINPLACE_CMD} 's|-lm |-lm -lexecinfo |' \
${WRKSRC}/src/audacious/Makefile
@${REINPLACE_CMD} 's|-laudcore|-laudcore -lexecinfo|' \
${WRKSRC}/audacious.pc.in
post-install:
@${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/aud*
@${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/lib*
.include <bsd.port.mk>
|