aboutsummaryrefslogtreecommitdiffstats
path: root/net/libproxy/Makefile
blob: 55749b9c4d59a2627245d08ef24c8b20c32fd89e (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
# Created by: Joe Marcus Clarke <marcus@FreeBSD.org>
# $FreeBSD$
#    $MCom: ports/net/libproxy/Makefile,v 1.1 2011/01/12 13:10:52 kwm Exp $

PORTNAME=   libproxy
PORTVERSION=    0.4.6
PORTREVISION?=  0
CATEGORIES?=    net devel
MASTER_SITES=   GOOGLE_CODE

MAINTAINER= gnome@FreeBSD.org
COMMENT?=   Library that provides automatic proxy configuration management

USES+=      cmake cpe
CPE_VENDOR= libproxy_project

PLIST_SUB+= VERSION=${PORTVERSION}

.if !defined(LIBPROXY_SLAVE)
USE_LDCONFIG=   yes
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
PORTSCOUT=  ignore:1

# 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.

. 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
.endif

post-install:
    @${MKDIR} ${STAGEDIR}${PREFIX}/lib/libproxy/${PORTVERSION}/modules/

.include <bsd.port.mk>