components/desktop/libproxy/Makefile
author John Beck <John.Beck@Oracle.COM>
Thu, 17 Nov 2016 11:58:11 -0800
changeset 7347 9b7ef35cd44d
parent 7327 9c5f2a8218bc
child 7687 1093e2a9adbd
permissions -rw-r--r--
25114020 libproxy needs tweaks to build on S11
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
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
#
9c5f2a8218bc 23245338 Move libproxy to Userland and update to 0.4.11.1
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    23
# Copyright (c) 2015, 2016, Oracle and/or its affiliates. All rights reserved.
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
9c5f2a8218bc 23245338 Move libproxy to Userland and update to 0.4.11.1
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    31
COMPONENT_PROJECT_URL=	https://code.google.com/p/libproxy
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
9c5f2a8218bc 23245338 Move libproxy to Userland and update to 0.4.11.1
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    36
9c5f2a8218bc 23245338 Move libproxy to Userland and update to 0.4.11.1
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    37
TPNO=			24459
9c5f2a8218bc 23245338 Move libproxy to Userland and update to 0.4.11.1
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    38
9c5f2a8218bc 23245338 Move libproxy to Userland and update to 0.4.11.1
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    39
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
    40
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
    41
9c5f2a8218bc 23245338 Move libproxy to Userland and update to 0.4.11.1
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    42
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
    43
9c5f2a8218bc 23245338 Move libproxy to Userland and update to 0.4.11.1
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    44
# 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
    45
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
    46
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
    47
9c5f2a8218bc 23245338 Move libproxy to Userland and update to 0.4.11.1
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    48
# 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
    49
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
    50
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
    51
9c5f2a8218bc 23245338 Move libproxy to Userland and update to 0.4.11.1
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    52
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
    53
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
    54
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
    55
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
    56
# 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
    57
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
    58
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
    59
# 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
    60
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
    61
# 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
    62
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
    63
7347
9b7ef35cd44d 25114020 libproxy needs tweaks to build on S11
John Beck <John.Beck@Oracle.COM>
parents: 7327
diff changeset
    64
ifeq ($(OS_VERSION),5.11)
9b7ef35cd44d 25114020 libproxy needs tweaks to build on S11
John Beck <John.Beck@Oracle.COM>
parents: 7327
diff changeset
    65
LDFLAGS +=       -lsocket -lnsl -lxnet
9b7ef35cd44d 25114020 libproxy needs tweaks to build on S11
John Beck <John.Beck@Oracle.COM>
parents: 7327
diff changeset
    66
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
    67
CMAKE_OPTIONS += -DPERL_EXECUTABLE="$(PERL)"
9b7ef35cd44d 25114020 libproxy needs tweaks to build on S11
John Beck <John.Beck@Oracle.COM>
parents: 7327
diff changeset
    68
endif
9b7ef35cd44d 25114020 libproxy needs tweaks to build on S11
John Beck <John.Beck@Oracle.COM>
parents: 7327
diff changeset
    69
7327
9c5f2a8218bc 23245338 Move libproxy to Userland and update to 0.4.11.1
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    70
# 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
    71
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
    72
9c5f2a8218bc 23245338 Move libproxy to Userland and update to 0.4.11.1
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    73
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
    74
	$(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
    75
9c5f2a8218bc 23245338 Move libproxy to Userland and update to 0.4.11.1
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    76
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
    77
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
    78
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
    79
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
    80
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
    81
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
    82
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
    83
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
    84
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
    85
REQUIRED_PACKAGES += system/library/gcc/gcc-c++-runtime