aboutsummaryrefslogtreecommitdiffstats
path: root/multimedia/phonon-vlc/Makefile
blob: 7cbedab8ca2a06598cfd2b8ac04eff7f1a3430e0 (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
# $FreeBSD$

PORTNAME=   phonon
DISTVERSION=    0.10.1
PORTREVISION=   1
CATEGORIES= multimedia kde
MASTER_SITES=   KDE/stable/${PORTNAME}/${PORTNAME}-backend-${PHONON_PLUGIN}/${DISTVERSION}
PKGNAMESUFFIX=  -${PHONON_PLUGIN}-${FLAVOR}
DISTNAME=   ${PORTNAME}-backend-${PHONON_PLUGIN}-${DISTVERSION}
DIST_SUBDIR=    KDE/phonon

MAINTAINER= kde@FreeBSD.org
COMMENT=    VLC backend for Phonon

LICENSE=    LGPL21+
LICENSE_FILE=   ${WRKSRC}/COPYING.LIB

FLAVORS=    qt4 qt5
FLAVOR?=    ${FLAVORS:[1]}

qt4_LIB_DEPENDS=    libvlc.so:multimedia/vlc-qt4
qt5_LIB_DEPENDS=    libvlc.so:multimedia/vlc

USES=       cmake:outsource pkgconfig tar:xz

.  if ${FLAVOR} == qt4
USES+=      kde:4
USE_KDE=    automoc4
USE_QT4=    corelib gui phonon \
        qmake_build moc_build rcc_build uic_build
PLIST_FILES=    lib/kde4/plugins/phonon_backend/phonon_vlc.so \
        share/kde4/services/phononbackends/vlc.desktop \
        ${QT_PLUGINDIR}/phonon_backend/libphonon_vlc.so
.  else
USES+=      kde:5
USE_KDE=    ecm
USE_QT5=    core gui widgets phonon4 \
        buildtools_build qmake_build
CMAKE_ON=   PHONON_BUILD_PHONON4QT5
PLIST_FILES=    ${QT_PLUGINDIR_REL}/phonon4qt5_backend/phonon_vlc.so
.  endif

PHONON_PLUGIN=  vlc
WRKSRC=     ${WRKDIR}/${PORTNAME}-${PHONON_PLUGIN}-${DISTVERSION}

.  if ${FLAVOR} == qt4
post-install:
    ${MKDIR} ${STAGEDIR}${QT_PLUGINDIR}/phonon_backend
    ${RLN} ${STAGEDIR}${PREFIX}/lib/kde4/plugins/phonon_backend/phonon_vlc.so \
        ${STAGEDIR}${QT_PLUGINDIR}/phonon_backend/libphonon_vlc.so
.  endif

.include <bsd.port.mk>