2013-09-21 00:10:23 +02:00
|
|
|
# Created by: Joe Marcus Clarke <marcus@FreeBSD.org>
|
2009-02-27 06:26:27 +01:00
|
|
|
# $FreeBSD$
|
2011-08-23 20:29:54 +02:00
|
|
|
# $MCom: ports/net/libproxy/Makefile,v 1.1 2011/01/12 13:10:52 kwm Exp $
|
2009-02-27 06:26:27 +01:00
|
|
|
|
|
|
|
PORTNAME= libproxy
|
2011-08-23 20:29:54 +02:00
|
|
|
PORTVERSION= 0.4.6
|
|
|
|
PORTREVISION?= 0
|
2009-02-27 06:26:27 +01:00
|
|
|
CATEGORIES?= net devel
|
|
|
|
MASTER_SITES= ${MASTER_SITE_GOOGLE_CODE}
|
|
|
|
|
|
|
|
MAINTAINER= gnome@FreeBSD.org
|
|
|
|
COMMENT?= Library that provides automatic proxy configuration management
|
|
|
|
|
2013-09-06 09:24:27 +02:00
|
|
|
USES+= cmake
|
2009-02-27 06:26:27 +01:00
|
|
|
|
|
|
|
PLIST_SUB+= VERSION=${PORTVERSION}
|
|
|
|
|
|
|
|
.if !defined(LIBPROXY_SLAVE)
|
|
|
|
USE_LDCONFIG= yes
|
2011-08-23 20:29:54 +02:00
|
|
|
CMAKE_ARGS+= -DWITH_PYTHON:BOOL=OFF -DWITH_PERL:BOOL=OFF \
|
|
|
|
-DWITH_GNOME:BOOL=OFF -DWITH_KDE4:BOOL=OFF \
|
|
|
|
-DWITH_WEBKIT:BOOL=OFF -DWITH_MOZJS:BOOL=OFF \
|
|
|
|
-DWITH_NETWORKMANAGER:BOOL=OFF -DWITH_VALA:BOOL=ON
|
|
|
|
.else
|
2010-05-16 23:00:04 +02:00
|
|
|
|
2011-08-23 20:29:54 +02:00
|
|
|
# Libproxy is build for the slave ports, since I haven't been able to find
|
|
|
|
# out how to only build optional code with cmake.
|
|
|
|
# Patches for this problem are welcome.
|
2010-05-16 23:00:04 +02:00
|
|
|
|
2011-08-23 20:29:54 +02:00
|
|
|
. if ${LIBPROXY_SLAVE}=="python"
|
|
|
|
CMAKE_ARGS+= -DWITH_PYTHON:BOOL=ON
|
|
|
|
. else
|
|
|
|
CMAKE_ARGS+= -DWITH_PYTHON:BOOL=OFF
|
|
|
|
. endif
|
|
|
|
|
|
|
|
. if ${LIBPROXY_SLAVE}=="perl"
|
|
|
|
CMAKE_ARGS+= -DWITH_PERL:BOOL=ON
|
|
|
|
. else
|
|
|
|
CMAKE_ARGS+= -DWITH_PERL:BOOL=OFF
|
|
|
|
. endif
|
|
|
|
|
|
|
|
. if ${LIBPROXY_SLAVE}=="gnome"
|
|
|
|
CMAKE_ARGS+= -DWITH_GNOME:BOOL=ON
|
|
|
|
. else
|
|
|
|
CMAKE_ARGS+= -DWITH_GNOME:BOOL=OFF
|
|
|
|
. endif
|
|
|
|
|
|
|
|
. if ${LIBPROXY_SLAVE}=="kde"
|
|
|
|
CMAKE_ARGS+= -DWITH_KDE4:BOOL=ON
|
|
|
|
. else
|
|
|
|
CMAKE_ARGS+= -DWITH_KDE4:BOOL=OFF
|
|
|
|
. endif
|
|
|
|
|
|
|
|
. if ${LIBPROXY_SLAVE}=="webkit"
|
|
|
|
CMAKE_ARGS+= -DWITH_WEBKIT:BOOL=ON
|
|
|
|
. else
|
|
|
|
CMAKE_ARGS+= -DWITH_WEBKIT:BOOL=OFF
|
|
|
|
. endif
|
|
|
|
|
|
|
|
. if ${LIBPROXY_SLAVE}=="mozjs"
|
|
|
|
CMAKE_ARGS+= -DWITH_MOZJS:BOOL=ON
|
|
|
|
. else
|
|
|
|
CMAKE_ARGS+= -DWITH_MOZJS:BOOL=OFF
|
|
|
|
. endif
|
2009-02-27 06:26:27 +01:00
|
|
|
.endif
|
|
|
|
|
2011-08-23 20:29:54 +02:00
|
|
|
post-install:
|
2014-02-21 02:59:00 +01:00
|
|
|
@${MKDIR} ${STAGEDIR}${PREFIX}/lib/libproxy/${PORTVERSION}/modules/
|
2011-08-23 20:29:54 +02:00
|
|
|
|
2009-02-27 06:26:27 +01:00
|
|
|
.include <bsd.port.mk>
|