Lines 6-13
Link Here
|
6 |
# |
6 |
# |
7 |
|
7 |
|
8 |
PORTNAME= google-gadgets |
8 |
PORTNAME= google-gadgets |
9 |
PORTVERSION= 0.10.5 |
9 |
PORTVERSION= 0.11.1 |
10 |
PORTREVISION= 2 |
|
|
11 |
CATEGORIES= deskutils |
10 |
CATEGORIES= deskutils |
12 |
MASTER_SITES= http://google-gadgets-for-linux.googlecode.com/files/ |
11 |
MASTER_SITES= http://google-gadgets-for-linux.googlecode.com/files/ |
13 |
DISTNAME= ${PORTNAME}-for-linux-${PORTVERSION} |
12 |
DISTNAME= ${PORTNAME}-for-linux-${PORTVERSION} |
Lines 16-35
Link Here
|
16 |
COMMENT= Google Desktop Gadgets |
15 |
COMMENT= Google Desktop Gadgets |
17 |
|
16 |
|
18 |
BUILD_DEPENDS= ${LOCALBASE}/libdata/pkgconfig/dbus-1.pc:${PORTSDIR}/devel/dbus \ |
17 |
BUILD_DEPENDS= ${LOCALBASE}/libdata/pkgconfig/dbus-1.pc:${PORTSDIR}/devel/dbus \ |
19 |
${LOCALBASE}/libdata/pkgconfig/firefox-js.pc:${PORTSDIR}/www/firefox \ |
|
|
20 |
${LOCALBASE}/libdata/pkgconfig/libcurl.pc:${PORTSDIR}/ftp/curl \ |
18 |
${LOCALBASE}/libdata/pkgconfig/libcurl.pc:${PORTSDIR}/ftp/curl \ |
21 |
${LOCALBASE}/libdata/pkgconfig/libxml-2.0.pc:${PORTSDIR}/textproc/libxml2 \ |
19 |
${LOCALBASE}/libdata/pkgconfig/libxml-2.0.pc:${PORTSDIR}/textproc/libxml2 \ |
22 |
${LOCALBASE}/libdata/pkgconfig/firefox-gtkmozembed.pc:${PORTSDIR}/www/firefox \ |
|
|
23 |
${LOCALBASE}/libdata/pkgconfig/cairo.pc:${PORTSDIR}/graphics/cairo \ |
20 |
${LOCALBASE}/libdata/pkgconfig/cairo.pc:${PORTSDIR}/graphics/cairo \ |
24 |
${LOCALBASE}/libdata/pkgconfig/librsvg-2.0.pc:${PORTSDIR}/graphics/librsvg2 \ |
21 |
${LOCALBASE}/libdata/pkgconfig/librsvg-2.0.pc:${PORTSDIR}/graphics/librsvg2 \ |
|
|
22 |
${LOCALBASE}/libdata/pkgconfig/libstartup-notification-1.0.pc:${PORTSDIR}/x11/startup-notification \ |
25 |
zip:${PORTSDIR}/archivers/zip |
23 |
zip:${PORTSDIR}/archivers/zip |
26 |
LIB_DEPENDS= cairo.2:${PORTSDIR}/graphics/cairo \ |
24 |
LIB_DEPENDS= cairo.2:${PORTSDIR}/graphics/cairo \ |
27 |
xml2.5:${PORTSDIR}/textproc/libxml2 \ |
25 |
xml2.5:${PORTSDIR}/textproc/libxml2 \ |
28 |
dbus-1.3:${PORTSDIR}/devel/dbus \ |
26 |
dbus-1.3:${PORTSDIR}/devel/dbus \ |
29 |
curl.5:${PORTSDIR}/ftp/curl \ |
27 |
curl.5:${PORTSDIR}/ftp/curl \ |
30 |
rsvg-2.2:${PORTSDIR}/graphics/librsvg2 |
28 |
rsvg-2.2:${PORTSDIR}/graphics/librsvg2 \ |
31 |
RUN_DEPENDS= ${LOCALBASE}/libdata/pkgconfig/firefox-js.pc:${PORTSDIR}/www/firefox \ |
29 |
startup-notification-1.0:${PORTSDIR}/x11/startup-notification |
32 |
${LOCALBASE}/bin/update-mime-database:${PORTSDIR}/misc/shared-mime-info |
30 |
RUN_DEPENDS= ${LOCALBASE}/bin/update-mime-database:${PORTSDIR}/misc/shared-mime-info |
33 |
|
31 |
|
34 |
USE_BZIP2= yes |
32 |
USE_BZIP2= yes |
35 |
USE_LDCONFIG= yes |
33 |
USE_LDCONFIG= yes |
Lines 37-44
Link Here
|
37 |
USE_GCC= 4.2+ |
35 |
USE_GCC= 4.2+ |
38 |
USE_GSTREAMER= yes |
36 |
USE_GSTREAMER= yes |
39 |
GNU_CONFIGURE= yes |
37 |
GNU_CONFIGURE= yes |
40 |
CONFIGURE_ENV= CFLAGS="-I${LOCALBASE}/include -Wno-deprecated-declarations" CPPFLAGS="-I${LOCALBASE}/include -Wno-deprecated-declarations" LDFLAGS="-L${LOCALBASE}/lib" |
38 |
CONFIGURE_ENV= CFLAGS="${CFLAGS} -I${LOCALBASE}/include -Wno-deprecated-declarations" LDFLAGS="-L${LOCALBASE}/lib" |
41 |
CONFIGURE_ARGS= --enable-ltdl-install=no |
39 |
CONFIGURE_ARGS= --enable-ltdl-install=no --with-browser-plugins-dir=${LOCALBASE}/lib/browser_plugins |
42 |
USE_AUTOTOOLS= libtool:22:env autoconf:262:env automake:110:env aclocal:110:env libltdl:22 |
40 |
USE_AUTOTOOLS= libtool:22:env autoconf:262:env automake:110:env aclocal:110:env libltdl:22 |
43 |
WANT_GNOME= yes |
41 |
WANT_GNOME= yes |
44 |
USE_GNOME= gnomehack |
42 |
USE_GNOME= gnomehack |
Lines 46-57
Link Here
|
46 |
|
44 |
|
47 |
OPTIONS= DEBUGGING "Enable debug output on runtime" on\ |
45 |
OPTIONS= DEBUGGING "Enable debug output on runtime" on\ |
48 |
GTK "Build GTK Host" on\ |
46 |
GTK "Build GTK Host" on\ |
49 |
QT "Build Qt Host" on |
47 |
QT "Build Qt Host" on\ |
|
|
48 |
GTKWEBKIT "Build with GTK Webkit support" on\ |
49 |
MOZILLA "Build with Mozilla support" on |
50 |
|
51 |
.include <bsd.port.options.mk> |
52 |
|
53 |
.if defined(WITH_QT) |
54 |
USE_QT_VER= 4 |
55 |
QT_COMPONENTS= webkit opengl gui corelib script network moc_build |
56 |
.endif |
57 |
|
58 |
.if defined(WITH_GTKWEBKIT) |
59 |
BUILD_DEPENDS+= ${LOCALBASE}/libdata/pkgconfig/webkit-1.0.pc:${PORTSDIR}/www/webkit-gtk2 |
60 |
LIB_DEPENDS+= webkit-1.0.13:${PORTSDIR}/www/webkit-gtk2 |
61 |
.endif |
62 |
|
63 |
.if defined(WITH_MOZILLA) |
64 |
USE_GECKO= libxul firefox mozilla seamonkey xulrunner |
65 |
.endif |
66 |
|
67 |
.if defined(WITHOUT_GTKWEBKIT) && defined(WITHOUT_MOZILLA) && defined(WITH_GTK) |
68 |
IGNORE= gtk host requires GTK Webkit or/and Mozilla support to be enabled. Please, rerun 'make config' |
69 |
.elif defined(WITH_GTKWEBKIT) && defined(WITHOUT_GTK) |
70 |
.undef WITHOUT_GTK |
71 |
WITH_GTK=yes |
72 |
|
73 |
pre-everything:: |
74 |
@${ECHO_MSG} "==> GTK Webkit or/and Mozilla support is enabled." |
75 |
@${ECHO_MSG} "==> Enabling GTK support. If this is not desired," |
76 |
@${ECHO_MSG} "==> please rerun 'make config'." |
77 |
.endif |
50 |
|
78 |
|
51 |
.include <bsd.port.pre.mk> |
79 |
.include <bsd.port.pre.mk> |
52 |
|
80 |
|
|
|
81 |
CONFIGURE_ENV+= CPPFLAGS="${CPPFLAGS} -I${LOCALBASE}/include -Wno-deprecated-declarations" |
82 |
|
53 |
.if ${OSVERSION} < 700000 |
83 |
.if ${OSVERSION} < 700000 |
54 |
IGNORE=This port needs 7.X or higher |
84 |
IGNORE= needs 7.X or higher |
55 |
.endif |
85 |
.endif |
56 |
|
86 |
|
57 |
.if defined(WITH_DEBUGGING) |
87 |
.if defined(WITH_DEBUGGING) |
Lines 60-72
Link Here
|
60 |
|
90 |
|
61 |
.if defined(WITHOUT_GTK) |
91 |
.if defined(WITHOUT_GTK) |
62 |
PLIST_SUB+= GTK="@comment " |
92 |
PLIST_SUB+= GTK="@comment " |
63 |
CONFIGURE_ARGS+= --disable-gtk-host --disable-libggadget-gtk --disable-gtkmoz-browser-element --disable-gtk-system-framework |
93 |
CONFIGURE_ARGS+= --disable-gtk-host \ |
|
|
94 |
--disable-libggadget-gtk \ |
95 |
--disable-gtkmoz-browser-element \ |
96 |
--disable-gtk-system-framework \ |
97 |
--disable-webkit-script-runtime \ |
98 |
--disable-gtkwebkit-browser-element \ |
99 |
--disable-soup-xml-http-request |
64 |
.elif defined(WITH_GTK) |
100 |
.elif defined(WITH_GTK) |
65 |
USE_GNOME= gtk20 |
101 |
USE_GNOME= gtk20 |
66 |
PLIST_SUB+= GTK="" |
102 |
PLIST_SUB+= GTK="" |
67 |
CONFIGURE_ARGS+= --enable-gtk-host --with-gtkmozembed=firefox-gtkmozembed |
103 |
CONFIGURE_ARGS+= --enable-gtk-host |
68 |
BUILD_DEPENDS+= ${LOCALBASE}/libdata/pkgconfig/libstartup-notification-1.0.pc:${PORTSDIR}/x11/startup-notification |
104 |
BUILD_DEPENDS+= ${LOCALBASE}/libdata/pkgconfig/libsoup-2.4.pc:${PORTSDIR}/devel/libsoup |
69 |
LIB_DEPENDS+= startup-notification-1.0:${PORTSDIR}/x11/startup-notification |
105 |
LIB_DEPENDS+= soup-2.4.1:${PORTSDIR}/devel/libsoup |
|
|
106 |
RUN_DEPENDS+= ${LOCALBASE}/share/certs/ca-root-nss.crt:${PORTSDIR}/security/ca_root_nss |
107 |
CONFIGURE_ARGS+= --with-ssl-ca-file=${LOCALBASE}/share/certs/ca-root-nss.crt |
108 |
|
109 |
.endif |
110 |
|
111 |
.if defined(WITHOUT_GTKWEBKIT) |
112 |
PLIST_SUB+= GTKWEBKIT="@comment " |
113 |
CONFIGURE_ARGS+= --disable-webkit-script-runtime --disable-gtkwebkit-browser-element |
114 |
.elif defined(WITH_GTKWEBKIT) |
115 |
PLIST_SUB+= GTKWEBKIT="" |
116 |
.endif |
117 |
|
118 |
.if defined(WITHOUT_MOZILLA) |
119 |
PLIST_SUB+= MOZILLA="@comment " |
120 |
CONFIGURE_ARGS+= --disable-smjs-script-runtime --disable-gtkmoz-browser-element |
121 |
.elif defined(WITH_MOZILLA) |
122 |
PLIST_SUB+= MOZILLA="" |
70 |
.endif |
123 |
.endif |
71 |
|
124 |
|
72 |
.if defined(WITHOUT_QT) |
125 |
.if defined(WITHOUT_QT) |
Lines 74-87
Link Here
|
74 |
CONFIGURE_ARGS+= --disable-qt-host --disable-libggadget-qt --disable-qt-system-framework\ |
127 |
CONFIGURE_ARGS+= --disable-qt-host --disable-libggadget-qt --disable-qt-system-framework\ |
75 |
--disable-qtwebkit-browser-element --disable-qt-script-runtime --disable-qt-xml-http-request |
128 |
--disable-qtwebkit-browser-element --disable-qt-script-runtime --disable-qt-xml-http-request |
76 |
.else |
129 |
.else |
77 |
USE_QT_VER= 4 |
|
|
78 |
QT_COMPONENTS= webkit opengl gui corelib script network moc |
79 |
PLIST_SUB+= QT="" |
130 |
PLIST_SUB+= QT="" |
80 |
CONFIGURE_ARGS+= --enable-qt-host |
131 |
CONFIGURE_ARGS+= --enable-qt-host |
81 |
.endif |
132 |
.endif |
82 |
|
133 |
|
83 |
.if defined(WITHOUT_QT) && defined(WITHOUT_GTK) |
134 |
.if defined(WITHOUT_QT) && defined(WITHOUT_GTK) |
84 |
IGNORE=This port requires GTK or Qt host to be enabled |
135 |
IGNORE= requires GTK or/and Qt host to be enabled. Please, rerun 'make config' |
85 |
.endif |
136 |
.endif |
86 |
|
137 |
|
87 |
post-patch: |
138 |
post-patch: |