2014-03-25 07:18:46 -04:00
|
|
|
# $OpenBSD: Makefile,v 1.42 2014/03/25 11:18:46 ajacoutot 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-webkit= pacrunner libproxy plugin for webkit-based browsers
|
2009-04-04 06:07:31 -04:00
|
|
|
|
2013-04-14 04:31:00 -04:00
|
|
|
VERSION= 0.4.11
|
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-webkit= libproxy-webkit-${VERSION}
|
|
|
|
|
2013-08-10 08:46:22 -04:00
|
|
|
REVISION-main= 3
|
2014-03-25 07:18:46 -04:00
|
|
|
REVISION-webkit= 3
|
2013-05-08 12:14:34 -04:00
|
|
|
|
2011-03-24 02:50:09 -04:00
|
|
|
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
|
|
|
|
2013-08-07 17:31:12 -04:00
|
|
|
HOMEPAGE= https://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 \
|
2013-04-14 04:31:00 -04:00
|
|
|
devel/gettext \
|
|
|
|
lang/python
|
2009-04-04 06:07:31 -04:00
|
|
|
|
2012-10-14 16:01:38 -04:00
|
|
|
SUBST_VARS+= VERSION
|
|
|
|
|
2014-03-25 07:18:46 -04:00
|
|
|
# cyclic dependency: libproxy,-webkit -> webkit -> gtk+3|libsoup -> glib2-networking -> libproxy
|
|
|
|
PSEUDO_FLAVORS= no_webkit bootstrap
|
|
|
|
FLAVOR?= no_webkit bootstrap
|
2009-04-04 06:07:31 -04:00
|
|
|
|
2014-03-25 07:18:46 -04:00
|
|
|
MULTI_PACKAGES= -main -webkit
|
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-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
|
|
|
|
2013-08-10 08:46:22 -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}
|
2013-08-10 08:46:22 -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-webkit += ${cWANTLIB} ${MODGETTEXT_WANTLIB}
|
2013-04-14 04:31:00 -04:00
|
|
|
WANTLIB-webkit += glib-2.0 javascriptcoregtk-3.0 proxy
|
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 \
|
2014-03-25 07:18:46 -04:00
|
|
|
-DWITH_MOZJS:BOOL=OFF \
|
2012-10-12 09:01:15 -04:00
|
|
|
-DBIPR:BOOL=OFF
|
2009-04-04 06:07:31 -04:00
|
|
|
|
2013-04-14 04:31:00 -04:00
|
|
|
.include <bsd.port.arch.mk>
|
|
|
|
.if ${BUILD_PACKAGES:M-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>
|