blob: 8386e58c673ec4e9f08b1a777826c6251d75b532 (
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
|
# Created by: SimaMoto,RyoTa <liangtai.s4@gmail.com>
# $FreeBSD$
PORTNAME= qmmp-plugin-pack
PORTVERSION= 0.6.2
CATEGORIES= multimedia
MASTER_SITES= http://qmmp.ylsoftware.com/files/plugins/ \
http://qmmp.googlecode.com/files/
MAINTAINER= liangtai.s4@gmail.com
COMMENT= Additional plug-ins for QMMP
LICENSE= GPLv2
LIB_DEPENDS= qmmpui:${PORTSDIR}/multimedia/qmmp
BUILD_DEPENDS= qmmp>=0.6.0:${PORTSDIR}/multimedia/qmmp
USE_BZIP2= yes
USES= cmake:outsource pkgconfig
USE_QT4= corelib gui qmake_build rcc_build moc_build linguist_build
USE_LDCONFIG= yes
OPTIONS_DEFINE= FFAP MPG123 QSUI
OPTIONS_DEFAULT= FFAP MPG123 QSUI
FFAP_DESC= Support APE sound file
MPG123_DESC= Support libmpg123 (MPEG v1/2 layer1/2/3)
QSUI_DESC= Simple UI based on standard widgets set
OPTIONS_DEFINE_i386= FFAPASM
OPTIONS_DEFAULT_i386= FFAPASM
OPTIONS_DEFINE_amd64= FFAPASM
OPTIONS_DEFAULT_amd64= FFAPASM
FFAPASM_DESC= Optimize FFap decoder using devel/yasm
NO_STAGE= yes
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MQSUI}
USE_QT4+= network
PLIST_SUB+= QSUI=""
PLUGIN_OPTIONS_CMAKE+= -DUSE_QSUI:BOOL=TRUE
.else
PLIST_SUB+= QSUI="@comment "
PLUGIN_OPTIONS_CMAKE+= -DUSE_QSUI:BOOL=FALSE
.endif
.if ${PORT_OPTIONS:MMPG123}
PLIST_SUB+= MPG123=""
LIB_DEPENDS+= mpg123:${PORTSDIR}/audio/mpg123
PLUGIN_OPTIONS_CMAKE+= -DUSE_MPG123:BOOL=TRUE
.else
PLIST_SUB+= MPG123="@comment "
PLUGIN_OPTIONS_CMAKE+= -DUSE_MPG123:BOOL=FALSE
.endif
.include <bsd.port.pre.mk>
.if ${PORT_OPTIONS:MFFAP}
PLIST_SUB+= FFAP=""
. if (${ARCH} == i386 || ${ARCH} == amd64) && ${PORT_OPTIONS:MFFAPASM}
BUILD_DEPENDS+= yasm:${PORTSDIR}/devel/yasm
PLUGIN_OPTIONS_CMAKE+= -DUSE_ASM:BOOL=TRUE
. else
PLUGIN_OPTIONS_CMAKE+= -DUSE_ASM:BOOL=FALSE
. endif
LIB_DEPENDS+= tag:${PORTSDIR}/audio/taglib
PLUGIN_OPTIONS_CMAKE+= -DUSE_FFAP:BOOL=TRUE
.else
PLIST_SUB+= FFAP="@comment "
PLUGIN_OPTIONS_CMAKE+= -DUSE_FFAP:BOOL=FALSE
.endif
.if ${PORT_OPTIONS:MQSUI} || ${PORT_OPTIONS:MMPG123}
USE_QT4+= uic_build
.endif
CMAKE_ARGS+= ${PLUGIN_OPTIONS_CMAKE} \
-DCMAKE_REQUIRED_INCLUDES:PATH=${LOCALBASE}/include
CFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib
pre-configure:
${RM} -f ${BUILD_WRKSRC}/CMakeCache.txt
.include <bsd.port.post.mk>
|