blob: eb9a4e9be1514748e0da3fe31439262ed968d6f6 (
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
|
# Created by: Ashish Shukla <wahjava@gmail.com>
# $FreeBSD$
PORTNAME= google-gadgets
PORTVERSION= 0.11.2
PORTREVISION= 7
CATEGORIES= deskutils
MASTER_SITES= http://google-gadgets-for-linux.googlecode.com/files/
DISTNAME= ${PORTNAME}-for-linux-${PORTVERSION}
MAINTAINER= ashish@FreeBSD.org
COMMENT= Google Desktop Gadgets
BUILD_DEPENDS= ${LOCALBASE}/libdata/pkgconfig/dbus-1.pc:${PORTSDIR}/devel/dbus \
${LOCALBASE}/libdata/pkgconfig/libcurl.pc:${PORTSDIR}/ftp/curl \
${LOCALBASE}/libdata/pkgconfig/libxml-2.0.pc:${PORTSDIR}/textproc/libxml2 \
${LOCALBASE}/libdata/pkgconfig/cairo.pc:${PORTSDIR}/graphics/cairo \
${LOCALBASE}/libdata/pkgconfig/librsvg-2.0.pc:${PORTSDIR}/graphics/librsvg2 \
${LOCALBASE}/libdata/pkgconfig/libstartup-notification-1.0.pc:${PORTSDIR}/x11/startup-notification \
zip:${PORTSDIR}/archivers/zip
LIB_DEPENDS= cairo.2:${PORTSDIR}/graphics/cairo \
xml2.5:${PORTSDIR}/textproc/libxml2 \
dbus-1.3:${PORTSDIR}/devel/dbus \
curl.6:${PORTSDIR}/ftp/curl \
rsvg-2.2:${PORTSDIR}/graphics/librsvg2 \
startup-notification-1.0:${PORTSDIR}/x11/startup-notification
RUN_DEPENDS= ${LOCALBASE}/bin/update-mime-database:${PORTSDIR}/misc/shared-mime-info
BROKEN= does not link
USE_BZIP2= yes
USE_LDCONFIG= yes
USE_GMAKE= yes
USE_GCC= 4.2+
USE_GSTREAMER= yes
GNU_CONFIGURE= yes
LDFLAGS+= -L${LOCALBASE}/lib
CFLAGS+= -I${LOCALBASE}/include -Wno-deprecated-declarations
CONFIGURE_ARGS= --disable-werror --enable-ltdl-install=no --with-browser-plugins-dir=${LOCALBASE}/lib/browser_plugins
USE_AUTOTOOLS= libtool:env autoconf:env automake:env aclocal:env libltdl
WANT_GNOME= yes
USES= pathfix
INSTALLS_ICONS= yes
OPTIONS_DEFINE= DEBUGGING GTKWEBKIT MOZILLA
OPTIONS_DEFAULT= DEBUGGING GTK QT GTKWEBKIT MOZILLA
OPTIONS_MULTI= UI
OPTIONS_MULTI_UI= GTK QT
UI_DESC= Host toolkit
DEBUGGING_DESC= debug output on runtime
GTK_DESC= Build GTK Host
QT_DESC= Build Qt Host
GTKWEBKIT_DESC= Build with GTK Webkit support
MOZILLA_DESC= Build with Mozilla support
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MQT}
USE_QT4= webkit opengl gui corelib script network moc_build
.endif
.if ${PORT_OPTIONS:MGTKWEBKIT}
BUILD_DEPENDS+= ${LOCALBASE}/libdata/pkgconfig/webkit-1.0.pc:${PORTSDIR}/www/webkit-gtk2
LIB_DEPENDS+= webkitgtk-1.0.0:${PORTSDIR}/www/webkit-gtk2
.endif
.if ${PORT_OPTIONS:MMOZILLA}
USE_GECKO= libxul
.endif
.if ${PORT_OPTIONS:MGTKWEBKIT} && ! ${PORT_OPTIONS:MGTK}
PORT_OPTIONS+= GTK
pre-everything::
@${ECHO_MSG} "==> GTK Webkit or/and Mozilla support is enabled."
@${ECHO_MSG} "==> Enabling GTK support. If this is not desired,"
@${ECHO_MSG} "==> please rerun 'make config'."
.endif
.include <bsd.port.pre.mk>
CPPFLAGS+= -I${LOCALBASE}/include -Wno-deprecated-declarations
.if ${PORT_OPTIONS:MDEBUGGING}
CONFIGURE_ARGS+= --enable-debug
.endif
.if ${PORT_OPTIONS:MGTK}
USE_GNOME= gtk20
PLIST_SUB+= GTK=""
CONFIGURE_ARGS+= --enable-gtk-host
BUILD_DEPENDS+= ${LOCALBASE}/libdata/pkgconfig/libsoup-2.4.pc:${PORTSDIR}/devel/libsoup
LIB_DEPENDS+= soup-2.4.1:${PORTSDIR}/devel/libsoup
RUN_DEPENDS+= ${LOCALBASE}/share/certs/ca-root-nss.crt:${PORTSDIR}/security/ca_root_nss
CONFIGURE_ARGS+= --with-ssl-ca-file=${LOCALBASE}/share/certs/ca-root-nss.crt
.else
PLIST_SUB+= GTK="@comment "
CONFIGURE_ARGS+= --disable-gtk-host \
--disable-libggadget-gtk \
--disable-gtkmoz-browser-element \
--disable-gtk-system-framework \
--disable-webkit-script-runtime \
--disable-gtkwebkit-browser-element \
--disable-soup-xml-http-request
.endif
.if ${PORT_OPTIONS:MGTKWEBKIT}
PLIST_SUB+= GTKWEBKIT=""
PLIST_SUB+= GTKWEBKIT="@comment "
.else
CONFIGURE_ARGS+= --disable-webkit-script-runtime --disable-gtkwebkit-browser-element
.endif
.if ${PORT_OPTIONS:MMOZILLA}
PLIST_SUB+= MOZILLA=""
.else
PLIST_SUB+= MOZILLA="@comment "
CONFIGURE_ARGS+= --disable-smjs-script-runtime --disable-gtkmoz-browser-element
.endif
.if ${PORT_OPTIONS:MQT}
PLIST_SUB+= QT=""
CONFIGURE_ARGS+= --enable-qt-host
.else
PLIST_SUB+= QT="@comment "
CONFIGURE_ARGS+= --disable-qt-host --disable-libggadget-qt --disable-qt-system-framework\
--disable-qtwebkit-browser-element --disable-qt-script-runtime --disable-qt-xml-http-request
.endif
post-patch:
@${FIND} ${WRKSRC} -type f -name Makefile.am -exec ${GREP} -l pkgconfig {} \; | ${XARGS} ${REINPLACE_CMD} -e 's|^\(pkgconfigdir[[:space:]]*=\).*|\1 $$(prefix)/libdata/pkgconfig|'
pre-configure:
@cd ${WRKSRC} && ${SH} autotools/bootstrap.sh && ${CP} ${AUTOMAKE_DIR}/mkinstalldirs libltdl/
@cd ${WRKSRC} && ${CHMOD} +x autotools/install-sh
post-install:
@-update-desktop-database
.include <bsd.port.post.mk>
|