7325N/A#
7325N/A# CDDL HEADER START
7325N/A#
7325N/A# The contents of this file are subject to the terms of the
7325N/A# Common Development and Distribution License (the "License").
7325N/A# You may not use this file except in compliance with the License.
7325N/A#
7325N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
7325N/A# or http://www.opensolaris.org/os/licensing.
7325N/A# See the License for the specific language governing permissions
7325N/A# and limitations under the License.
7325N/A#
7325N/A# When distributing Covered Code, include this CDDL HEADER in each
7325N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
7325N/A# If applicable, add the following below this CDDL HEADER, with the
7325N/A# fields enclosed by brackets "[]" replaced with your own identifying
7325N/A# information: Portions Copyright [yyyy] [name of copyright owner]
7325N/A#
7325N/A# CDDL HEADER END
7325N/A#
7325N/A
7325N/A#
7325N/A# Copyright (c) 2015, 2016, Oracle and/or its affiliates. All rights reserved.
7325N/A#
7325N/ABUILD_BITS= 32_and_64
7325N/ACOMPILER= gcc
7325N/Ainclude ../../../make-rules/shared-macros.mk
7325N/A
7325N/ACOMPONENT_NAME= libproxy
7325N/ACOMPONENT_VERSION= 0.4.11.1
7325N/ACOMPONENT_PROJECT_URL= https://code.google.com/p/libproxy
7325N/ACOMPONENT_SRC= $(COMPONENT_NAME)-master
7325N/ACOMPONENT_ARCHIVE= master.zip
7325N/ACOMPONENT_ARCHIVE_URL= https://github.com/binarycrusader/$(COMPONENT_NAME)/archive/master.zip
7325N/ACOMPONENT_BUGDB= library/libproxy
7325N/A
7325N/ATPNO= 24459
7325N/A
7325N/ABUILD_STYLE= cmake
7325N/Ainclude $(WS_MAKE_RULES)/common.mk
7325N/A
7325N/ACXXFLAGS += -std=c++11
7325N/A
7325N/A# Only compatible with Python 2.x.
7325N/APYTHON_VERSION=2.7
7325N/APYTHON_VERSIONS=2.7
7325N/A
7325N/A# Our Perl 5.22 is 64-bit, so don't deliver Perl bindings for 32-bit build.
7325N/ACMAKE_OPTIONS.32 = -DWITH_PERL=OFF
7325N/ACMAKE_OPTIONS.64 = -DWITH_PERL=ON
7325N/A
7325N/ACMAKE_OPTIONS += -DINCLUDE_INSTALL_DIR="$(USRINCDIR)/$(COMPONENT_NAME)"
7325N/ACMAKE_OPTIONS += -DPERL_VENDORINSTALL=ON
7325N/ACMAKE_OPTIONS += -DPYTHON_EXECUTABLE="$(PYTHON)"
7325N/ACMAKE_OPTIONS += -DPYTHON_SITEPKG_DIR=$(PYTHON_LIB)
7325N/A# Required for other components.
7325N/ACMAKE_OPTIONS += -DWITH_GNOME3=ON
7325N/ACMAKE_OPTIONS += -DWITH_PYTHON=ON
7325N/A# Required for other components.
7325N/ACMAKE_OPTIONS += -DWITH_VALA=ON
7325N/A# Always build pacrunner as a module.
7325N/ACMAKE_OPTIONS += -DBIPR=ON
7325N/A
7345N/Aifeq ($(OS_VERSION),5.11)
7345N/ALDFLAGS += -lsocket -lnsl -lxnet
7345N/ACMAKE_OPTIONS += -DCMAKE_SHARED_LINKER_FLAGS="$(LDFLAGS)"
7345N/ACMAKE_OPTIONS += -DPERL_EXECUTABLE="$(PERL)"
7345N/Aendif
7345N/A
7325N/A# Assumes "make" is GNU make, turns into fork bomb if it finds Solaris make
7325N/ACOMPONENT_BUILD_ENV += PATH="/usr/gnu/bin:$(PATH)"
7325N/A
7325N/ACOMPONENT_POST_INSTALL_ACTION= \
7325N/A $(PYTHON) -m py_compile $(PROTO_DIR)/$(PYTHON_LIB)/libproxy.py
7325N/A
7325N/AREQUIRED_PACKAGES += developer/build/autoconf
7325N/AREQUIRED_PACKAGES += developer/build/automake
7325N/AREQUIRED_PACKAGES += developer/build/cmake
7325N/AREQUIRED_PACKAGES += developer/build/gnu-make
7325N/AREQUIRED_PACKAGES += developer/build/pkg-config
7325N/AREQUIRED_PACKAGES += library/glib2
7325N/AREQUIRED_PACKAGES += $(PERL_PKG)
7325N/AREQUIRED_PACKAGES += runtime/python-27
7325N/AREQUIRED_PACKAGES += system/library/gcc/gcc-c-runtime
7325N/AREQUIRED_PACKAGES += system/library/gcc/gcc-c++-runtime