2013-03-11 07:35:43 -04:00
|
|
|
# $OpenBSD: Makefile,v 1.33 2013/03/11 11:35:48 espie Exp $
|
2009-04-04 06:07:31 -04:00
|
|
|
|
2011-03-24 02:50:09 -04:00
|
|
|
SHARED_ONLY= Yes
|
2009-04-04 06:07:31 -04:00
|
|
|
|
2011-03-24 02:50:09 -04:00
|
|
|
COMMENT-main= library handling all the details of proxy configuration
|
2011-05-15 05:34:06 -04:00
|
|
|
COMMENT-mozilla= pacrunner libproxy plugin for mozilla-based (gecko) browsers
|
|
|
|
COMMENT-webkit= pacrunner libproxy plugin for webkit-based browsers
|
2009-04-04 06:07:31 -04:00
|
|
|
|
2012-11-27 07:16:07 -05:00
|
|
|
VERSION= 0.4.10
|
2011-03-24 02:50:09 -04:00
|
|
|
DISTNAME= libproxy-${VERSION}
|
2009-04-04 06:07:31 -04:00
|
|
|
|
2011-03-24 02:50:09 -04:00
|
|
|
PKGNAME-main= libproxy-${VERSION}
|
|
|
|
PKGNAME-mozilla= libproxy-mozilla-${VERSION}
|
|
|
|
PKGNAME-webkit= libproxy-webkit-${VERSION}
|
|
|
|
|
|
|
|
CATEGORIES= net
|
|
|
|
|
2012-10-12 09:01:15 -04:00
|
|
|
SHARED_LIBS += proxy 1.1 # 0.0
|
2011-03-24 02:50:09 -04:00
|
|
|
|
|
|
|
HOMEPAGE= http://libproxy.googlecode.com/
|
2009-04-04 06:07:31 -04:00
|
|
|
|
|
|
|
# LGPLv2.1
|
|
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
|
|
|
|
|
|
MASTER_SITES= ${HOMEPAGE}/files/
|
|
|
|
|
2011-03-24 02:50:09 -04:00
|
|
|
# order matters: cmake must come before python
|
|
|
|
MODULES= devel/cmake \
|
2011-04-26 04:06:41 -04:00
|
|
|
lang/python \
|
|
|
|
devel/gettext
|
2009-04-04 06:07:31 -04:00
|
|
|
|
2012-10-14 16:01:38 -04:00
|
|
|
SUBST_VARS+= VERSION
|
|
|
|
|
2011-03-24 02:50:09 -04:00
|
|
|
# do not enable webkit support by default because of cyclic dependency:
|
2011-05-10 12:17:47 -04:00
|
|
|
# libproxy,-webkit -> webkit -> libsoup -> libproxy
|
|
|
|
# do not enable mozilla support by default, xulrunner doesn't build on all arches
|
2012-03-29 10:58:24 -04:00
|
|
|
PSEUDO_FLAVORS= webkit
|
|
|
|
# XXX needs mozilla-js>=2.0b12; re-enable in net/Makefile when FLAVOR is back
|
|
|
|
#PSEUDO_FLAVORS += mozilla
|
2011-03-24 02:50:09 -04:00
|
|
|
FLAVOR?=
|
2009-04-04 06:07:31 -04:00
|
|
|
|
2011-05-15 05:34:06 -04:00
|
|
|
MULTI_PACKAGES= -main
|
2009-04-04 06:07:31 -04:00
|
|
|
|
2011-05-10 12:23:03 -04:00
|
|
|
BUILD_DEPENDS= lang/vala
|
2011-03-24 02:50:09 -04:00
|
|
|
|
2011-05-17 02:29:25 -04:00
|
|
|
RUN_DEPENDS-main= ${MODGETTEXT_RUN_DEPENDS} \
|
|
|
|
${MODPY_RUN_DEPENDS}
|
2011-05-15 05:34:06 -04:00
|
|
|
LIB_DEPENDS-main= ${LIB_DEPENDS} \
|
2012-03-29 10:58:24 -04:00
|
|
|
devel/glib2
|
2009-04-04 06:07:31 -04:00
|
|
|
|
2011-03-24 02:50:09 -04:00
|
|
|
RUN_DEPENDS-mozilla= # empty
|
|
|
|
LIB_DEPENDS-mozilla= ${BUILD_PKGPATH}>=${VERSION} \
|
2012-10-12 09:01:15 -04:00
|
|
|
devel/xulrunner/1.9 \
|
2011-03-24 02:50:09 -04:00
|
|
|
devel/nspr
|
|
|
|
|
|
|
|
RUN_DEPENDS-webkit= ${MODGETTEXT_RUN_DEPENDS}
|
|
|
|
LIB_DEPENDS-webkit= STEM->=${VERSION}:${BUILD_PKGPATH}, \
|
2012-03-29 10:58:24 -04:00
|
|
|
www/webkit,gtk3
|
2011-03-24 02:50:09 -04:00
|
|
|
|
2011-04-26 04:06:41 -04:00
|
|
|
cWANTLIB += m stdc++
|
2011-03-24 02:50:09 -04:00
|
|
|
|
2011-10-29 04:12:31 -04:00
|
|
|
WANTLIB-main += ${cWANTLIB} ${MODGETTEXT_WANTLIB}
|
2012-03-29 10:58:24 -04:00
|
|
|
WANTLIB-main += c gio-2.0 glib-2.0 gobject-2.0 perl pthread
|
2011-03-24 02:50:09 -04:00
|
|
|
|
|
|
|
WANTLIB-mozilla += ${cWANTLIB} c modman nspr4 plc4 plds4 proxy
|
2011-04-26 04:06:41 -04:00
|
|
|
WANTLIB-mozilla += xulrunner1.9/mozjs
|
2011-03-24 02:50:09 -04:00
|
|
|
|
|
|
|
WANTLIB-webkit += ${cWANTLIB} ${MODGETTEXT_WANTLIB}
|
2012-03-29 10:58:24 -04:00
|
|
|
WANTLIB-webkit += GL X11 Xrender atk-1.0 cairo cairo-gobject expat fontconfig
|
|
|
|
WANTLIB-webkit += freetype gdk-3 gdk_pixbuf-2.0 gio-2.0 glib-2.0 gobject-2.0
|
|
|
|
WANTLIB-webkit += gtk-3 javascriptcoregtk-3.0 pango-1.0 pangocairo-1.0
|
2011-03-24 02:50:09 -04:00
|
|
|
WANTLIB-webkit += pangoft2-1.0 pixman-1 png proxy pthread-stubs soup-2.4
|
2012-03-29 10:58:24 -04:00
|
|
|
WANTLIB-webkit += webkitgtk-3.0 xcb xcb-render xcb-shm z
|
2009-04-04 06:07:31 -04:00
|
|
|
|
2012-08-25 09:12:59 -04:00
|
|
|
CONFIGURE_ARGS= -DCMAKE_C_FLAGS="${CFLAGS}" \
|
|
|
|
-DCMAKE_CXX_FLAGS="${CXXFLAGS}" \
|
2012-09-27 04:01:04 -04:00
|
|
|
-DCMAKE_BUILD_TYPE:STRING=Release \
|
2011-03-24 02:50:09 -04:00
|
|
|
-DWITH_PYTHON:BOOL=ON \
|
|
|
|
-DWITH_PERL:BOOL=ON \
|
2012-03-29 10:58:24 -04:00
|
|
|
-DWITH_GNOME3:BOOL=ON \
|
2011-03-24 02:50:09 -04:00
|
|
|
-DWITH_VALA:BOOL=ON \
|
|
|
|
-DWITH_KDE4:BOOL=OFF \
|
|
|
|
-DWITH_DOTNET:BOOL=OFF \
|
2012-10-12 09:01:15 -04:00
|
|
|
-DWITH_NM:BOOL=OFF \
|
|
|
|
-DBIPR:BOOL=OFF
|
2009-04-04 06:07:31 -04:00
|
|
|
|
2013-02-09 09:49:50 -05:00
|
|
|
.if ${FLAVOR:Mmozilla}
|
2011-05-10 12:23:03 -04:00
|
|
|
BUILD_DEPENDS += devel/xulrunner/1.9,-devel>=1.9.1
|
2011-05-10 12:17:47 -04:00
|
|
|
MULTI_PACKAGES += -mozilla
|
|
|
|
CONFIGURE_ARGS += -DWITH_MOZJS:BOOL=ON
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS += -DWITH_MOZJS:BOOL=OFF
|
|
|
|
.endif
|
|
|
|
|
2013-02-09 09:49:50 -05:00
|
|
|
.if ${FLAVOR:Mwebkit}
|
2011-03-24 02:50:09 -04:00
|
|
|
MULTI_PACKAGES += -webkit
|
2012-03-29 10:58:24 -04:00
|
|
|
CONFIGURE_ARGS += -DWITH_WEBKIT3:BOOL=ON
|
2011-03-24 02:50:09 -04:00
|
|
|
.else
|
2012-03-30 12:28:58 -04:00
|
|
|
CONFIGURE_ARGS += -DWITH_WEBKIT:BOOL=OFF
|
2011-03-24 02:50:09 -04:00
|
|
|
.endif
|
2009-04-04 06:07:31 -04:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|