Makefile revision 1716
d2ec54f7875f7e05edd56195adbeb593c947763fphitran#
d2ec54f7875f7e05edd56195adbeb593c947763fphitran# CDDL HEADER START
d2ec54f7875f7e05edd56195adbeb593c947763fphitran#
d2ec54f7875f7e05edd56195adbeb593c947763fphitran# The contents of this file are subject to the terms of the
d2ec54f7875f7e05edd56195adbeb593c947763fphitran# Common Development and Distribution License (the "License").
d2ec54f7875f7e05edd56195adbeb593c947763fphitran# You may not use this file except in compliance with the License.
d2ec54f7875f7e05edd56195adbeb593c947763fphitran#
d2ec54f7875f7e05edd56195adbeb593c947763fphitran# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
d2ec54f7875f7e05edd56195adbeb593c947763fphitran# or http://www.opensolaris.org/os/licensing.
d2ec54f7875f7e05edd56195adbeb593c947763fphitran# See the License for the specific language governing permissions
d2ec54f7875f7e05edd56195adbeb593c947763fphitran# and limitations under the License.
d2ec54f7875f7e05edd56195adbeb593c947763fphitran#
d2ec54f7875f7e05edd56195adbeb593c947763fphitran# When distributing Covered Code, include this CDDL HEADER in each
d2ec54f7875f7e05edd56195adbeb593c947763fphitran# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
d2ec54f7875f7e05edd56195adbeb593c947763fphitran# If applicable, add the following below this CDDL HEADER, with the
d2ec54f7875f7e05edd56195adbeb593c947763fphitran# fields enclosed by brackets "[]" replaced with your own identifying
d2ec54f7875f7e05edd56195adbeb593c947763fphitran# information: Portions Copyright [yyyy] [name of copyright owner]
d2ec54f7875f7e05edd56195adbeb593c947763fphitran#
d2ec54f7875f7e05edd56195adbeb593c947763fphitran# CDDL HEADER END
d2ec54f7875f7e05edd56195adbeb593c947763fphitran#
d2ec54f7875f7e05edd56195adbeb593c947763fphitran# Copyright (c) 2013, Oracle and/or its affiliates. All rights reserved.
d2ec54f7875f7e05edd56195adbeb593c947763fphitran#
d2ec54f7875f7e05edd56195adbeb593c947763fphitraninclude ../../../make-rules/shared-macros.mk
d2ec54f7875f7e05edd56195adbeb593c947763fphitran
d2ec54f7875f7e05edd56195adbeb593c947763fphitranCOMPONENT_NAME= netaddr
d2ec54f7875f7e05edd56195adbeb593c947763fphitranCOMPONENT_VERSION= 0.7.10
d2ec54f7875f7e05edd56195adbeb593c947763fphitranCOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
d2ec54f7875f7e05edd56195adbeb593c947763fphitranCOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
d2ec54f7875f7e05edd56195adbeb593c947763fphitranCOMPONENT_ARCHIVE_HASH= \
d2ec54f7875f7e05edd56195adbeb593c947763fphitran sha256:9b79763141a855079b0589717696a4ccb5c56c0b807b6e584bfe12333399e0b7
d2ec54f7875f7e05edd56195adbeb593c947763fphitranCOMPONENT_PROJECT_URL= http://github.com/drkjam/netaddr/
d2ec54f7875f7e05edd56195adbeb593c947763fphitranCOMPONENT_ARCHIVE_URL= http://github.com/downloads/drkjam/$(COMPONENT_NAME)/$(COMPONENT_ARCHIVE)
d2ec54f7875f7e05edd56195adbeb593c947763fphitranCOMPONENT_BUGDB= python-mod/netaddr
d2ec54f7875f7e05edd56195adbeb593c947763fphitran
d2ec54f7875f7e05edd56195adbeb593c947763fphitraninclude $(WS_TOP)/make-rules/prep.mk
d2ec54f7875f7e05edd56195adbeb593c947763fphitraninclude $(WS_TOP)/make-rules/setup.py.mk
d2ec54f7875f7e05edd56195adbeb593c947763fphitraninclude $(WS_TOP)/make-rules/ips.mk
d2ec54f7875f7e05edd56195adbeb593c947763fphitran
COMPONENT_POST_INSTALL_ACTION = \
(cd $(PROTOUSRBINDIR) ; $(MV) netaddr netaddr-$(PYTHON_VERSION))
# common targets
build: $(BUILD_NO_ARCH)
install: $(INSTALL_NO_ARCH)
COMPONENT_TEST_DIR= $(@D)/lib/netaddr
COMPONENT_TEST_ARGS= tests/__init__.py
COMPONENT_PRE_TEST_ACTION= \
( cd $(COMPONENT_TEST_DIR)/tests ; \
ln -s $(SOURCE_DIR)/netaddr/tests/2.x ; \
ln -s $(SOURCE_DIR)/netaddr/tests/3.x )
test: $(TEST_NO_ARCH)
BUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS)
include $(WS_TOP)/make-rules/depend.mk