author | Alan Coopersmith <Alan.Coopersmith@Oracle.COM> |
Sun, 09 Apr 2017 12:16:36 -0700 | |
changeset 7862 | 875bb3f441a5 |
parent 7829 | 2de4f4ace09c |
permissions | -rw-r--r-- |
7327
9c5f2a8218bc
23245338 Move libproxy to Userland and update to 0.4.11.1
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff
changeset
|
1 |
# |
9c5f2a8218bc
23245338 Move libproxy to Userland and update to 0.4.11.1
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff
changeset
|
2 |
# CDDL HEADER START |
9c5f2a8218bc
23245338 Move libproxy to Userland and update to 0.4.11.1
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff
changeset
|
3 |
# |
9c5f2a8218bc
23245338 Move libproxy to Userland and update to 0.4.11.1
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff
changeset
|
4 |
# The contents of this file are subject to the terms of the |
9c5f2a8218bc
23245338 Move libproxy to Userland and update to 0.4.11.1
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff
changeset
|
5 |
# Common Development and Distribution License (the "License"). |
9c5f2a8218bc
23245338 Move libproxy to Userland and update to 0.4.11.1
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff
changeset
|
6 |
# You may not use this file except in compliance with the License. |
9c5f2a8218bc
23245338 Move libproxy to Userland and update to 0.4.11.1
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff
changeset
|
7 |
# |
9c5f2a8218bc
23245338 Move libproxy to Userland and update to 0.4.11.1
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff
changeset
|
8 |
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE |
9c5f2a8218bc
23245338 Move libproxy to Userland and update to 0.4.11.1
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff
changeset
|
9 |
# or http://www.opensolaris.org/os/licensing. |
9c5f2a8218bc
23245338 Move libproxy to Userland and update to 0.4.11.1
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff
changeset
|
10 |
# See the License for the specific language governing permissions |
9c5f2a8218bc
23245338 Move libproxy to Userland and update to 0.4.11.1
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff
changeset
|
11 |
# and limitations under the License. |
9c5f2a8218bc
23245338 Move libproxy to Userland and update to 0.4.11.1
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff
changeset
|
12 |
# |
9c5f2a8218bc
23245338 Move libproxy to Userland and update to 0.4.11.1
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff
changeset
|
13 |
# When distributing Covered Code, include this CDDL HEADER in each |
9c5f2a8218bc
23245338 Move libproxy to Userland and update to 0.4.11.1
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff
changeset
|
14 |
# file and include the License file at usr/src/OPENSOLARIS.LICENSE. |
9c5f2a8218bc
23245338 Move libproxy to Userland and update to 0.4.11.1
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff
changeset
|
15 |
# If applicable, add the following below this CDDL HEADER, with the |
9c5f2a8218bc
23245338 Move libproxy to Userland and update to 0.4.11.1
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff
changeset
|
16 |
# fields enclosed by brackets "[]" replaced with your own identifying |
9c5f2a8218bc
23245338 Move libproxy to Userland and update to 0.4.11.1
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff
changeset
|
17 |
# information: Portions Copyright [yyyy] [name of copyright owner] |
9c5f2a8218bc
23245338 Move libproxy to Userland and update to 0.4.11.1
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff
changeset
|
18 |
# |
9c5f2a8218bc
23245338 Move libproxy to Userland and update to 0.4.11.1
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff
changeset
|
19 |
# CDDL HEADER END |
9c5f2a8218bc
23245338 Move libproxy to Userland and update to 0.4.11.1
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff
changeset
|
20 |
# |
9c5f2a8218bc
23245338 Move libproxy to Userland and update to 0.4.11.1
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff
changeset
|
21 |
|
9c5f2a8218bc
23245338 Move libproxy to Userland and update to 0.4.11.1
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff
changeset
|
22 |
# |
7687
1093e2a9adbd
25590368 Userland components should include "upstream" release tracking information
Rich Burridge <rich.burridge@oracle.com>
parents:
7347
diff
changeset
|
23 |
# Copyright (c) 2015, 2017, Oracle and/or its affiliates. All rights reserved. |
7327
9c5f2a8218bc
23245338 Move libproxy to Userland and update to 0.4.11.1
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff
changeset
|
24 |
# |
9c5f2a8218bc
23245338 Move libproxy to Userland and update to 0.4.11.1
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff
changeset
|
25 |
BUILD_BITS= 32_and_64 |
9c5f2a8218bc
23245338 Move libproxy to Userland and update to 0.4.11.1
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff
changeset
|
26 |
COMPILER= gcc |
9c5f2a8218bc
23245338 Move libproxy to Userland and update to 0.4.11.1
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff
changeset
|
27 |
include ../../../make-rules/shared-macros.mk |
9c5f2a8218bc
23245338 Move libproxy to Userland and update to 0.4.11.1
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff
changeset
|
28 |
|
9c5f2a8218bc
23245338 Move libproxy to Userland and update to 0.4.11.1
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff
changeset
|
29 |
COMPONENT_NAME= libproxy |
9c5f2a8218bc
23245338 Move libproxy to Userland and update to 0.4.11.1
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff
changeset
|
30 |
COMPONENT_VERSION= 0.4.11.1 |
7862
875bb3f441a5
25879439 Migrate remaining desktop man pages to Userland gate
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
7829
diff
changeset
|
31 |
COMPONENT_PROJECT_URL= https://libproxy.github.io/libproxy/ |
7327
9c5f2a8218bc
23245338 Move libproxy to Userland and update to 0.4.11.1
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff
changeset
|
32 |
COMPONENT_SRC= $(COMPONENT_NAME)-master |
9c5f2a8218bc
23245338 Move libproxy to Userland and update to 0.4.11.1
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff
changeset
|
33 |
COMPONENT_ARCHIVE= master.zip |
9c5f2a8218bc
23245338 Move libproxy to Userland and update to 0.4.11.1
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff
changeset
|
34 |
COMPONENT_ARCHIVE_URL= https://github.com/binarycrusader/$(COMPONENT_NAME)/archive/master.zip |
9c5f2a8218bc
23245338 Move libproxy to Userland and update to 0.4.11.1
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff
changeset
|
35 |
COMPONENT_BUGDB= library/libproxy |
7687
1093e2a9adbd
25590368 Userland components should include "upstream" release tracking information
Rich Burridge <rich.burridge@oracle.com>
parents:
7347
diff
changeset
|
36 |
COMPONENT_ANITYA_ID= 12742 |
7327
9c5f2a8218bc
23245338 Move libproxy to Userland and update to 0.4.11.1
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff
changeset
|
37 |
|
9c5f2a8218bc
23245338 Move libproxy to Userland and update to 0.4.11.1
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff
changeset
|
38 |
TPNO= 24459 |
9c5f2a8218bc
23245338 Move libproxy to Userland and update to 0.4.11.1
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff
changeset
|
39 |
|
9c5f2a8218bc
23245338 Move libproxy to Userland and update to 0.4.11.1
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff
changeset
|
40 |
BUILD_STYLE= cmake |
9c5f2a8218bc
23245338 Move libproxy to Userland and update to 0.4.11.1
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff
changeset
|
41 |
include $(WS_MAKE_RULES)/common.mk |
9c5f2a8218bc
23245338 Move libproxy to Userland and update to 0.4.11.1
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff
changeset
|
42 |
|
9c5f2a8218bc
23245338 Move libproxy to Userland and update to 0.4.11.1
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff
changeset
|
43 |
CXXFLAGS += -std=c++11 |
9c5f2a8218bc
23245338 Move libproxy to Userland and update to 0.4.11.1
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff
changeset
|
44 |
|
9c5f2a8218bc
23245338 Move libproxy to Userland and update to 0.4.11.1
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff
changeset
|
45 |
# Only compatible with Python 2.x. |
9c5f2a8218bc
23245338 Move libproxy to Userland and update to 0.4.11.1
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff
changeset
|
46 |
PYTHON_VERSION=2.7 |
9c5f2a8218bc
23245338 Move libproxy to Userland and update to 0.4.11.1
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff
changeset
|
47 |
PYTHON_VERSIONS=2.7 |
9c5f2a8218bc
23245338 Move libproxy to Userland and update to 0.4.11.1
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff
changeset
|
48 |
|
9c5f2a8218bc
23245338 Move libproxy to Userland and update to 0.4.11.1
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff
changeset
|
49 |
# Our Perl 5.22 is 64-bit, so don't deliver Perl bindings for 32-bit build. |
9c5f2a8218bc
23245338 Move libproxy to Userland and update to 0.4.11.1
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff
changeset
|
50 |
CMAKE_OPTIONS.32 = -DWITH_PERL=OFF |
9c5f2a8218bc
23245338 Move libproxy to Userland and update to 0.4.11.1
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff
changeset
|
51 |
CMAKE_OPTIONS.64 = -DWITH_PERL=ON |
9c5f2a8218bc
23245338 Move libproxy to Userland and update to 0.4.11.1
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff
changeset
|
52 |
|
9c5f2a8218bc
23245338 Move libproxy to Userland and update to 0.4.11.1
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff
changeset
|
53 |
CMAKE_OPTIONS += -DINCLUDE_INSTALL_DIR="$(USRINCDIR)/$(COMPONENT_NAME)" |
9c5f2a8218bc
23245338 Move libproxy to Userland and update to 0.4.11.1
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff
changeset
|
54 |
CMAKE_OPTIONS += -DPERL_VENDORINSTALL=ON |
9c5f2a8218bc
23245338 Move libproxy to Userland and update to 0.4.11.1
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff
changeset
|
55 |
CMAKE_OPTIONS += -DPYTHON_EXECUTABLE="$(PYTHON)" |
9c5f2a8218bc
23245338 Move libproxy to Userland and update to 0.4.11.1
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff
changeset
|
56 |
CMAKE_OPTIONS += -DPYTHON_SITEPKG_DIR=$(PYTHON_LIB) |
9c5f2a8218bc
23245338 Move libproxy to Userland and update to 0.4.11.1
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff
changeset
|
57 |
# Required for other components. |
9c5f2a8218bc
23245338 Move libproxy to Userland and update to 0.4.11.1
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff
changeset
|
58 |
CMAKE_OPTIONS += -DWITH_GNOME3=ON |
9c5f2a8218bc
23245338 Move libproxy to Userland and update to 0.4.11.1
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff
changeset
|
59 |
CMAKE_OPTIONS += -DWITH_PYTHON=ON |
9c5f2a8218bc
23245338 Move libproxy to Userland and update to 0.4.11.1
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff
changeset
|
60 |
# Required for other components. |
9c5f2a8218bc
23245338 Move libproxy to Userland and update to 0.4.11.1
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff
changeset
|
61 |
CMAKE_OPTIONS += -DWITH_VALA=ON |
9c5f2a8218bc
23245338 Move libproxy to Userland and update to 0.4.11.1
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff
changeset
|
62 |
# Always build pacrunner as a module. |
9c5f2a8218bc
23245338 Move libproxy to Userland and update to 0.4.11.1
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff
changeset
|
63 |
CMAKE_OPTIONS += -DBIPR=ON |
9c5f2a8218bc
23245338 Move libproxy to Userland and update to 0.4.11.1
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff
changeset
|
64 |
|
7829
2de4f4ace09c
25766761 prepare Userland for 11.4
John Beck <John.Beck@Oracle.COM>
parents:
7687
diff
changeset
|
65 |
LDFLAGS += $(LIBSOCKET) $(LIBNSL) $(LIBXNET) |
2de4f4ace09c
25766761 prepare Userland for 11.4
John Beck <John.Beck@Oracle.COM>
parents:
7687
diff
changeset
|
66 |
|
2de4f4ace09c
25766761 prepare Userland for 11.4
John Beck <John.Beck@Oracle.COM>
parents:
7687
diff
changeset
|
67 |
ifeq ($(OS_VERSION),11.3) |
7347
9b7ef35cd44d
25114020 libproxy needs tweaks to build on S11
John Beck <John.Beck@Oracle.COM>
parents:
7327
diff
changeset
|
68 |
CMAKE_OPTIONS += -DCMAKE_SHARED_LINKER_FLAGS="$(LDFLAGS)" |
9b7ef35cd44d
25114020 libproxy needs tweaks to build on S11
John Beck <John.Beck@Oracle.COM>
parents:
7327
diff
changeset
|
69 |
CMAKE_OPTIONS += -DPERL_EXECUTABLE="$(PERL)" |
9b7ef35cd44d
25114020 libproxy needs tweaks to build on S11
John Beck <John.Beck@Oracle.COM>
parents:
7327
diff
changeset
|
70 |
endif |
9b7ef35cd44d
25114020 libproxy needs tweaks to build on S11
John Beck <John.Beck@Oracle.COM>
parents:
7327
diff
changeset
|
71 |
|
7327
9c5f2a8218bc
23245338 Move libproxy to Userland and update to 0.4.11.1
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff
changeset
|
72 |
# Assumes "make" is GNU make, turns into fork bomb if it finds Solaris make |
9c5f2a8218bc
23245338 Move libproxy to Userland and update to 0.4.11.1
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff
changeset
|
73 |
COMPONENT_BUILD_ENV += PATH="/usr/gnu/bin:$(PATH)" |
9c5f2a8218bc
23245338 Move libproxy to Userland and update to 0.4.11.1
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff
changeset
|
74 |
|
9c5f2a8218bc
23245338 Move libproxy to Userland and update to 0.4.11.1
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff
changeset
|
75 |
COMPONENT_POST_INSTALL_ACTION= \ |
9c5f2a8218bc
23245338 Move libproxy to Userland and update to 0.4.11.1
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff
changeset
|
76 |
$(PYTHON) -m py_compile $(PROTO_DIR)/$(PYTHON_LIB)/libproxy.py |
9c5f2a8218bc
23245338 Move libproxy to Userland and update to 0.4.11.1
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff
changeset
|
77 |
|
9c5f2a8218bc
23245338 Move libproxy to Userland and update to 0.4.11.1
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff
changeset
|
78 |
REQUIRED_PACKAGES += developer/build/autoconf |
9c5f2a8218bc
23245338 Move libproxy to Userland and update to 0.4.11.1
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff
changeset
|
79 |
REQUIRED_PACKAGES += developer/build/automake |
9c5f2a8218bc
23245338 Move libproxy to Userland and update to 0.4.11.1
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff
changeset
|
80 |
REQUIRED_PACKAGES += developer/build/cmake |
9c5f2a8218bc
23245338 Move libproxy to Userland and update to 0.4.11.1
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff
changeset
|
81 |
REQUIRED_PACKAGES += developer/build/gnu-make |
9c5f2a8218bc
23245338 Move libproxy to Userland and update to 0.4.11.1
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff
changeset
|
82 |
REQUIRED_PACKAGES += developer/build/pkg-config |
9c5f2a8218bc
23245338 Move libproxy to Userland and update to 0.4.11.1
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff
changeset
|
83 |
REQUIRED_PACKAGES += library/glib2 |
9c5f2a8218bc
23245338 Move libproxy to Userland and update to 0.4.11.1
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff
changeset
|
84 |
REQUIRED_PACKAGES += $(PERL_PKG) |
9c5f2a8218bc
23245338 Move libproxy to Userland and update to 0.4.11.1
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff
changeset
|
85 |
REQUIRED_PACKAGES += runtime/python-27 |
9c5f2a8218bc
23245338 Move libproxy to Userland and update to 0.4.11.1
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff
changeset
|
86 |
REQUIRED_PACKAGES += system/library/gcc/gcc-c-runtime |
9c5f2a8218bc
23245338 Move libproxy to Userland and update to 0.4.11.1
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff
changeset
|
87 |
REQUIRED_PACKAGES += system/library/gcc/gcc-c++-runtime |