Makefile revision 1938
9acbbeaf2a1ffe5c14b244867d427714fab43c5cnn#
9acbbeaf2a1ffe5c14b244867d427714fab43c5cnn# CDDL HEADER START
9acbbeaf2a1ffe5c14b244867d427714fab43c5cnn#
9acbbeaf2a1ffe5c14b244867d427714fab43c5cnn# The contents of this file are subject to the terms of the
9acbbeaf2a1ffe5c14b244867d427714fab43c5cnn# Common Development and Distribution License (the "License").
9acbbeaf2a1ffe5c14b244867d427714fab43c5cnn# You may not use this file except in compliance with the License.
9acbbeaf2a1ffe5c14b244867d427714fab43c5cnn#
9acbbeaf2a1ffe5c14b244867d427714fab43c5cnn# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9acbbeaf2a1ffe5c14b244867d427714fab43c5cnn# or http://www.opensolaris.org/os/licensing.
9acbbeaf2a1ffe5c14b244867d427714fab43c5cnn# See the License for the specific language governing permissions
9acbbeaf2a1ffe5c14b244867d427714fab43c5cnn# and limitations under the License.
9acbbeaf2a1ffe5c14b244867d427714fab43c5cnn#
9acbbeaf2a1ffe5c14b244867d427714fab43c5cnn# When distributing Covered Code, include this CDDL HEADER in each
9acbbeaf2a1ffe5c14b244867d427714fab43c5cnn# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
9acbbeaf2a1ffe5c14b244867d427714fab43c5cnn# If applicable, add the following below this CDDL HEADER, with the
9acbbeaf2a1ffe5c14b244867d427714fab43c5cnn# fields enclosed by brackets "[]" replaced with your own identifying
9acbbeaf2a1ffe5c14b244867d427714fab43c5cnn# information: Portions Copyright [yyyy] [name of copyright owner]
9acbbeaf2a1ffe5c14b244867d427714fab43c5cnn#
9acbbeaf2a1ffe5c14b244867d427714fab43c5cnn# CDDL HEADER END
9acbbeaf2a1ffe5c14b244867d427714fab43c5cnn#
9acbbeaf2a1ffe5c14b244867d427714fab43c5cnn# Copyright (c) 2013, Oracle and/or its affiliates. All rights reserved.
a20ee4162885a4dc8273c6b6903dcb7e0e525704Glenn Faden#
bafd1f1462c49949e0251d74b4fbfa24d29bc79aJerry Jelinekinclude ../../../make-rules/shared-macros.mk
3c7284bd3243d42a710edac3a15f6019b4c849beAlexander Eremin
9acbbeaf2a1ffe5c14b244867d427714fab43c5cnnCOMPONENT_NAME= netaddr
9acbbeaf2a1ffe5c14b244867d427714fab43c5cnnCOMPONENT_VERSION= 0.7.10
bfed486ad8de8b8ebc6345a8e10accae08bf2f45Ali BahramiCOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
bfed486ad8de8b8ebc6345a8e10accae08bf2f45Ali BahramiCOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
bfed486ad8de8b8ebc6345a8e10accae08bf2f45Ali BahramiCOMPONENT_ARCHIVE_HASH= \
bfed486ad8de8b8ebc6345a8e10accae08bf2f45Ali Bahrami sha256:9b79763141a855079b0589717696a4ccb5c56c0b807b6e584bfe12333399e0b7
bfed486ad8de8b8ebc6345a8e10accae08bf2f45Ali BahramiCOMPONENT_PROJECT_URL= http://github.com/drkjam/netaddr/
bfed486ad8de8b8ebc6345a8e10accae08bf2f45Ali BahramiCOMPONENT_ARCHIVE_URL= http://github.com/downloads/drkjam/$(COMPONENT_NAME)/$(COMPONENT_ARCHIVE)
bfed486ad8de8b8ebc6345a8e10accae08bf2f45Ali BahramiCOMPONENT_BUGDB= python-mod/netaddr
bfed486ad8de8b8ebc6345a8e10accae08bf2f45Ali Bahrami
bfed486ad8de8b8ebc6345a8e10accae08bf2f45Ali Bahramiinclude $(WS_TOP)/make-rules/prep.mk
bfed486ad8de8b8ebc6345a8e10accae08bf2f45Ali Bahramiinclude $(WS_TOP)/make-rules/setup.py.mk
bfed486ad8de8b8ebc6345a8e10accae08bf2f45Ali Bahramiinclude $(WS_TOP)/make-rules/ips.mk
bfed486ad8de8b8ebc6345a8e10accae08bf2f45Ali Bahrami
bfed486ad8de8b8ebc6345a8e10accae08bf2f45Ali BahramiCOMPONENT_POST_INSTALL_ACTION = \
bfed486ad8de8b8ebc6345a8e10accae08bf2f45Ali Bahrami (cd $(PROTOUSRBINDIR) ; $(MV) netaddr netaddr-$(PYTHON_VERSION))
cd3e933325e68e23516a196a8fea7f49b1e497c3Ali Bahrami
cd3e933325e68e23516a196a8fea7f49b1e497c3Ali BahramiASLR_MODE = $(ASLR_NOT_APPLICABLE)
cd3e933325e68e23516a196a8fea7f49b1e497c3Ali Bahrami
9acbbeaf2a1ffe5c14b244867d427714fab43c5cnn# common targets
f4b3ec61df05330d25f55a36b975b4d7519fdeb1dhbuild: $(BUILD_NO_ARCH)
9acbbeaf2a1ffe5c14b244867d427714fab43c5cnn
9acbbeaf2a1ffe5c14b244867d427714fab43c5cnninstall: $(INSTALL_NO_ARCH)
ff17c8bf86c3e567734be83f90267edee20f580fgjelinek
9acbbeaf2a1ffe5c14b244867d427714fab43c5cnnCOMPONENT_TEST_DIR= $(@D)/lib/netaddr
9acbbeaf2a1ffe5c14b244867d427714fab43c5cnnCOMPONENT_TEST_ARGS= tests/__init__.py
ff17c8bf86c3e567734be83f90267edee20f580fgjelinekCOMPONENT_PRE_TEST_ACTION= \
ff17c8bf86c3e567734be83f90267edee20f580fgjelinek ( cd $(COMPONENT_TEST_DIR)/tests ; \
cb8a054b1ab30d5caa746e6c44f29d4c9d3071c1Glenn Faden ln -s $(SOURCE_DIR)/netaddr/tests/2.x ; \
9acbbeaf2a1ffe5c14b244867d427714fab43c5cnn ln -s $(SOURCE_DIR)/netaddr/tests/3.x )
9acbbeaf2a1ffe5c14b244867d427714fab43c5cnn
9acbbeaf2a1ffe5c14b244867d427714fab43c5cnntest: $(TEST_NO_ARCH)
9acbbeaf2a1ffe5c14b244867d427714fab43c5cnn
9acbbeaf2a1ffe5c14b244867d427714fab43c5cnnBUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS)
9acbbeaf2a1ffe5c14b244867d427714fab43c5cnn
37774979c2601819ef2cdb4ae1469d9111ccf52bgjelinekinclude $(WS_TOP)/make-rules/depend.mk
9acbbeaf2a1ffe5c14b244867d427714fab43c5cnn