aboutsummaryrefslogtreecommitdiffstats
path: root/multimedia/qmmp-plugin-pack/Makefile
blob: 0f0336c27687b9f2a31e72331ff41257d0e4ed7f (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
# $FreeBSD$

PORTNAME=   qmmp-plugin-pack
PORTVERSION=    0.8.0
PORTREVISION=   1
CATEGORIES= multimedia
MASTER_SITES=   http://qmmp.ylsoftware.com/files/plugins/

MAINTAINER= liangtai.s16@gmail.com
COMMENT=    Additional plug-ins for QMMP

LICENSE=    GPLv2

LIB_DEPENDS=    libqmmpui.so:${PORTSDIR}/multimedia/qmmp
BUILD_DEPENDS=  qmmp>=0.8.0:${PORTSDIR}/multimedia/qmmp

USES=       cmake:outsource pkgconfig tar:bzip2
USE_QT4=    corelib gui qmake_build rcc_build moc_build linguist_build
USE_LDCONFIG=   yes

OPTIONS_SUB=    yes

OPTIONS_MULTI=  PLUGINS
OPTIONS_MULTI_PLUGINS=  FFAP MPG123 QSUI

OPTIONS_DEFAULT=    FFAP MPG123 QSUI

FFAP_DESC=      Support APE sound file
FFAP_LIB_DEPENDS=   libtag.so:${PORTSDIR}/audio/taglib
FFAP_CMAKE_ON=  -DUSE_FFAP:BOOL=TRUE
FFAP_CMAKE_OFF= -DUSE_FFAP:BOOL=FALSE
OPTIONS_DEFINE_i386=    FFAPASM
OPTIONS_DEFAULT_i386=   FFAPASM
OPTIONS_DEFINE_amd64=   FFAPASM
OPTIONS_DEFAULT_amd64=  FFAPASM
FFAPASM_DESC=   Optimize FFap decoder using devel/yasm
FFAPASM_BUILD_DEPENDS=  yasm:${PORTSDIR}/devel/yasm
FFAPASM_CMAKE_ON=   -DUSE_ASM:BOOL=TRUE
FFAPASM_CMAKE_OFF=  -DUSE_ASM:BOOL=FALSE

MPG123_LIB_DEPENDS= libmpg123.so:${PORTSDIR}/audio/mpg123
MPG123_USE= QT4=uic_build
MPG123_CMAKE_ON=    -DUSE_MPG123:BOOL=TRUE
MPG123_CMAKE_OFF=   -DUSE_MPG123:BOOL=FALSE

QSUI_DESC=      Simple UI based on standard widgets set
QSUI_USE=   QT4=network,uic_build
QSUI_CMAKE_ON=  -DUSE_QSUI:BOOL=TRUE
QSUI_CMAKE_OFF= -DUSE_QSUI:BOOL=FALSE

CMAKE_ARGS+=    -DCMAKE_REQUIRED_INCLUDES:PATH=${LOCALBASE}/include
CFLAGS+=    -I${LOCALBASE}/include
LDFLAGS+=   -L${LOCALBASE}/lib

.include <bsd.port.options.mk>

.if ${PORT_OPTIONS:MFFAP} || ${PORT_OPTIONS:MMPG123}
PLIST_SUB+= INPUT=""
.else
PLIST_SUB+= INPUT="@comment "
.endif

pre-configure:
    @${RM} -f ${BUILD_WRKSRC}/CMakeCache.txt

.include <bsd.port.mk>