blob: f0ae476bd6b3ce32cef6464de7882c5681179020 (
plain)
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
115
116
|
PORTNAME= kid3
PORTVERSION= 3.9.3
PORTREVISION= 4
CATEGORIES= audio kde
MASTER_SITES= KDE/stable/${PORTNAME}/${PORTVERSION}
PKGNAMESUFFIX= -${FLAVOR}
MAINTAINER= jhale@FreeBSD.org
COMMENT= Audio file tag editor
WWW= https://kid3.kde.org/
LICENSE= GPLv2+
LICENSE_FILE= ${WRKSRC}/LICENSE
BUILD_DEPENDS= ${LOCALBASE}/share/xsl/docbook/html/docbook.xsl:textproc/docbook-xsl
LIB_DEPENDS= libtag.so:audio/taglib
FLAVORS= qt5 qt6 kf5
FLAVOR?= ${FLAVORS:[1]}
USES= cmake compiler:c++11-lang desktop-file-utils gnome pkgconfig \
tar:xz
USE_GNOME= libxslt:build
USE_LDCONFIG= yes
CMAKE_ARGS= -DWITH_DOCBOOKDIR="${LOCALBASE}/share/xsl/docbook" \
-DWITH_LIBDIR=lib \
-DWITH_MANDIR=man \
-DWITH_PLUGINSDIR=lib/kid3 \
-DFFMPEG_ROOT="${LOCALBASE}" \
-DWITH_APPS="${KID3_APPS:S/ /;/gW}"
CMAKE_OFF= WITH_ID3LIB \
WITH_MP4V2 \
WITH_QML
CMAKE_ON= WITH_TAGLIB
PLIST_SUB+= SHLIB_VER=${PORTVERSION}
.if ${FLAVOR} == qt5
USES+= qt:5
USE_QT= core dbus gui multimedia network xml widgets \
buildtools:build linguisttools:build qmake:build
CMAKE_ON+= WITH_QT5
PLIST_SUB+= KF5="@comment " \
QT="" \
QT_SUFX="-qt"
KID3_APPS+= QT
.elif ${FLAVOR} == qt6
USES+= gl qt:6
USE_GL= opengl
USE_QT= base multimedia tools:build
CMAKE_OFF+= WITH_QT5
PLIST_SUB+= KF5="@comment " \
QT="" \
QT_SUFX="-qt"
KID3_APPS+= QT
.elif ${FLAVOR} == kf5
USES+= kde:5 qt:5
USE_KDE= auth codecs config configwidgets coreaddons kio \
service widgetsaddons xmlgui doctools:build ecm:build
USE_QT= concurrent core dbus gui multimedia network xml widgets \
buildtools:build linguisttools:build qmake:build
CMAKE_ON+= WITH_QT5
PLIST_SUB+= KF5="" \
QT="@comment " \
QT_SUFX=""
KID3_APPS+= KDE
.endif
.for f in ${FLAVORS}
. if ${FLAVOR} != ${f}
CONFLICTS_INSTALL+= kid3-${f}
. endif
.endfor
OPTIONS_DEFINE= CLI ACOUSTID FLAC VORBIS TEST
OPTIONS_DEFAULT= CLI ACOUSTID FLAC VORBIS
OPTIONS_SUB= yes
NO_OPTIONS_SORT= yes
ACOUSTID_LIB_DEPENDS= libchromaprint.so:audio/chromaprint \
libavcodec.so:multimedia/ffmpeg
ACOUSTID_CMAKE_BOOL= WITH_CHROMAPRINT WITH_FFMPEG
CLI_DESC= Build and install command line utility
CLI_USES= python:test readline
CLI_VARS= KID3_APPS+=CLI
FLAC_LIB_DEPENDS= libFLAC.so:audio/flac
FLAC_CMAKE_BOOL= WITH_FLAC
FLAC_IMPLIES= VORBIS
TEST_USE= LOCALE=en_US.UTF-8
.if ${FLAVOR} == qt5 || ${FLAVOR} == kf5
TEST_USE+= QT=testlib:build
.endif
TEST_CMAKE_BOOL= BUILD_TESTING
TEST_TARGET= # define to override CMAKE_ARGS from Uses/kde.mk
TEST_WRKSRC= ${BUILD_WRKSRC}/src/test
TEST_VARS= KID3_APPS+=TEST
VORBIS_LIB_DEPENDS= libvorbis.so:audio/libvorbis \
libogg.so:audio/libogg
VORBIS_CMAKE_BOOL= WITH_VORBIS
.include <bsd.port.options.mk>
pre-test:
@${CP} ${WRKSRC}/src/test/*.py ${TEST_WRKSRC}
do-test:
-@(cd ${TEST_WRKSRC}; ${SETENV} ${TEST_ENV} ./kid3-test)
do-test-CLI-on:
-@(cd ${TEST_WRKSRC}; ${SETENV} ${TEST_ENV} ${PYTHON_CMD} test_cli_functions.py)
.include <bsd.port.mk>
|