blob: 4640d7519cb342873ac8ba0764c945a75213824d (
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
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
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
|
# Created by: Veniamin Gvozdikov <vg@FreeBSD.org>
# $FreeBSD$
PORTNAME= mobility
PORTVERSION= 1.2.2
PORTREVISION= 1
CATEGORIES= multimedia
MASTER_SITES= http://dev.gentoo.org/~pesa/distfiles/ \
LOCAL/vg
PKGNAMEPREFIX= qt4-
DISTNAME= qt-${PORTNAME}-${PORTVERSION}_p${DATE}
MAINTAINER= vg@FreeBSD.org
COMMENT= Qt APIs for mobile devices and desktop platforms
LICENSE= LGPL21
LIB_DEPENDS= libblkid.so:${PORTSDIR}/misc/e2fsprogs-libblkid
DATE= 20130703
USES= pkgconfig qmake shebangfix tar:xz
SHEBANG_FILES= bin/pathhelper bin/syncheaders
USE_QT4=declarative corelib dbus gui linguist_build moc_build
USE_LDCONFIG= yes
MOBILITY_MODS=
OPTIONS_DEFINE= BEARER CONNECTIVITY CONTACTS FEEDBACK GALLERY LOCATION \
MESSAGING MULTIMEDIA ORGANIZER PUBLISHSUBSCRIBE SENSORS \
SERVICEFRAMEWORK SYSTEMINFO VERSIT
OPTIONS_SUB= yes
BEARER_DESC= Bearer module
CONNECTIVITY_DESC= Connectivity module
CONNECTIVITY_USE= qt4=rcc_build
CONTACTS_DESC= Contacts module
FEEDBACK_DESC= Feedback module
GALLERY_DESC= Gallery module
LOCATION_DESC= Location module
LOCATION_USE= qt4=rcc_build,sql
MESSAGING_DESC= Messaging module
MULTIMEDIA_DESC= Multimedia module
MULTIMEDIA_LIB_DEPENDS= libpulse.so:${PORTSDIR}/audio/pulseaudio
MULTIMEDIA_BUILD_DEPENDS= v4l_compat>=1.0.20120501:${PORTSDIR}/multimedia/v4l_compat
MULTIMEDIA_USE= qt4=opengl gstreamer=bad
ORGANIZER_DESC= Organizer module
PUBLISHSUBSCRIBE_DESC= Publishsubscribe module
SENSORS_DESC= (BROKEN) Sensors module
SERVICEFRAMEWORK_DESC= (BROKEN) ServiceFramework module
SERVICEFRAMEWORK_USE= qt4=sql
SYSTEMINFO_DESC= (BROKEN) Systeminfo module
SYSTEMINFO_USE= qt4=network
VERSIT_DESC= Versit module
VERSIT_USE= qt4=rcc_build
OPTIONS_DEFAULT=BEARER CONNECTIVITY CONTACTS FEEDBACK GALLERY LOCATION \
MESSAGING MULTIMEDIA ORGANIZER PUBLISHSUBSCRIBE VERSIT
pre-configure:
# Dirty hack because configure find paths and define empty if not found
@${MKDIR} ${STAGE}${PREFIX}/${QT_BINDIR_REL} \
${STAGE}${PREFIX}/${QT_INCDIR_REL} \
${STAGE}${PREFIX}/${QT_LIBDIR_REL} \
${STAEG}${PREFIX}/${QT_PLUGINDIR_REL}
cd ${WRKSRC} && ./configure \
-release \
-prefix ${STAGE}${PREFIX} \
-bindir ${STAGE}${PREFIX}/${QT_BINDIR_REL} \
-headerdir ${STAGE}${PREFIX}/${QT_INCDIR_REL} \
-libdir ${STAGE}${PREFIX}/${QT_LIBDIR_REL} \
-plugindir ${STAEG}${PREFIX}/${QT_PLUGINDIR_REL} \
-modules "${MOBILITY_MODS}"
post-configure:
${REINPLACE_CMD} -e 's|#include <linux/types.h>||g' \
${WRKSRC}/plugins/multimedia/gstreamer/qgstreamervideoinputdevicecontrol.cpp \
${WRKSRC}/plugins/multimedia/gstreamer/camerabin/camerabincontrol.cpp \
${WRKSRC}/plugins/multimedia/gstreamer/qgstreamerserviceplugin.cpp \
${WRKSRC}/plugins/multimedia/gstreamer/mediacapture/qgstreamerv4l2input.cpp \
${WRKSRC}/plugins/multimedia/v4l/radio/v4lradiocontrol.h
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MBEARER}
MOBILITY_MODS+= bearer
.endif
.if ${PORT_OPTIONS:MCONNECTIVITY}
MOBILITY_MODS+= connectivity
.endif
.if ${PORT_OPTIONS:MCONTACTS}
MOBILITY_MODS+= contacts
.endif
.if ${PORT_OPTIONS:MFEEDBACK}
MOBILITY_MODS+= feedback
.endif
.if ${PORT_OPTIONS:MGALLERY}
MOBILITY_MODS+= gallery
.endif
.if ${PORT_OPTIONS:MLOCATION}
MOBILITY_MODS+= location
.endif
.if ${PORT_OPTIONS:MMESSAGING}
MOBILITY_MODS+= messaging
.endif
.if ${PORT_OPTIONS:MMULTIMEDIA}
MOBILITY_MODS+= multimedia
.endif
.if ${PORT_OPTIONS:MORGANIZER}
MOBILITY_MODS+= organizer
.endif
.if ${PORT_OPTIONS:MPUBLISHSUBSCRIBE}
MOBILITY_MODS+= publishsubscribe
.endif
.if ${PORT_OPTIONS:MSENSORS}
MOBILITY_MODS+= sensors
BROKEN= Sensors has not worked yet
.endif
.if ${PORT_OPTIONS:MSERVICEFRAMEWORK}
MOBILITY_MODS+= serviceframework
BROKEN= Serviceframework has not worked yet
.endif
.if ${PORT_OPTIONS:MSYSTEMINFO}
MOBILITY_MODS+= systeminfo
BROKEN= Systeminfo has not worked yet
.endif
.if ${PORT_OPTIONS:MVERSIT}
MOBILITY_MODS+= versit
.endif
.if ${PORT_OPTIONS:MCONNECTIVITY} || ${PORT_OPTIONS:MFEEDBACK} || \
${PORT_OPTIONS:MGALLERY} || ${PORT_OPTIONS:MLOCATION} || \
${PORT_OPTIONS:MPUBLISHSUBSCRIBE} || ${PORT_OPTIONS:MVERSIT}
PLIST_SUB+= IDIR=""
.else
PLIST_SUB+= IDIR="@comment "
.endif
.if ${PORT_OPTIONS:MFEEDBACK} && ${PORT_OPTIONS:MMULTIMEDIA} && \
${PORT_OPTIONS:MVERSIT}
PLIST_SUB+= VERSITFEEDBACK=""
.else
PLIST_SUB+= VERSITFEEDBACK="@comment "
.endif
.if ${PORT_OPTIONS:MORGANIZER} && ${PORT_OPTIONS:MVERSIT}
PLIST_SUB+= VERSITORGANIZER=""
.else
PLIST_SUB+= VERSITORGANIZER="@comment "
.endif
.include <bsd.port.mk>
|