Makefile revision 3778
bcb4e51a409d94ae670de96afb8483a4f7855294Stephan Bosch#
51ed197520dd9ea534fbc3bc1790ebe3cb5421e2Michael M Slusarz# CDDL HEADER START
51ed197520dd9ea534fbc3bc1790ebe3cb5421e2Michael M Slusarz#
51ed197520dd9ea534fbc3bc1790ebe3cb5421e2Michael M Slusarz# The contents of this file are subject to the terms of the
51ed197520dd9ea534fbc3bc1790ebe3cb5421e2Michael M Slusarz# Common Development and Distribution License (the "License").
51ed197520dd9ea534fbc3bc1790ebe3cb5421e2Michael M Slusarz# You may not use this file except in compliance with the License.
51ed197520dd9ea534fbc3bc1790ebe3cb5421e2Michael M Slusarz#
51ed197520dd9ea534fbc3bc1790ebe3cb5421e2Michael M Slusarz# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
51ed197520dd9ea534fbc3bc1790ebe3cb5421e2Michael M Slusarz# or http://www.opensolaris.org/os/licensing.
51ed197520dd9ea534fbc3bc1790ebe3cb5421e2Michael M Slusarz# See the License for the specific language governing permissions
51ed197520dd9ea534fbc3bc1790ebe3cb5421e2Michael M Slusarz# and limitations under the License.
51ed197520dd9ea534fbc3bc1790ebe3cb5421e2Michael M Slusarz#
51ed197520dd9ea534fbc3bc1790ebe3cb5421e2Michael M Slusarz# When distributing Covered Code, include this CDDL HEADER in each
51ed197520dd9ea534fbc3bc1790ebe3cb5421e2Michael M Slusarz# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
51ed197520dd9ea534fbc3bc1790ebe3cb5421e2Michael M Slusarz# If applicable, add the following below this CDDL HEADER, with the
51ed197520dd9ea534fbc3bc1790ebe3cb5421e2Michael M Slusarz# fields enclosed by brackets "[]" replaced with your own identifying
51ed197520dd9ea534fbc3bc1790ebe3cb5421e2Michael M Slusarz# information: Portions Copyright [yyyy] [name of copyright owner]
51ed197520dd9ea534fbc3bc1790ebe3cb5421e2Michael M Slusarz#
51ed197520dd9ea534fbc3bc1790ebe3cb5421e2Michael M Slusarz# CDDL HEADER END
51ed197520dd9ea534fbc3bc1790ebe3cb5421e2Michael M Slusarz#
51ed197520dd9ea534fbc3bc1790ebe3cb5421e2Michael M Slusarz# Copyright (c) 2013, 2014, Oracle and/or its affiliates. All rights reserved.
51ed197520dd9ea534fbc3bc1790ebe3cb5421e2Michael M Slusarz#
51ed197520dd9ea534fbc3bc1790ebe3cb5421e2Michael M Slusarzinclude ../../../make-rules/shared-macros.mk
51ed197520dd9ea534fbc3bc1790ebe3cb5421e2Michael M Slusarz
51ed197520dd9ea534fbc3bc1790ebe3cb5421e2Michael M SlusarzCOMPONENT_NAME= lesscpy
51ed197520dd9ea534fbc3bc1790ebe3cb5421e2Michael M SlusarzCOMPONENT_VERSION= 0.9j
51ed197520dd9ea534fbc3bc1790ebe3cb5421e2Michael M SlusarzCOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
51ed197520dd9ea534fbc3bc1790ebe3cb5421e2Michael M SlusarzCOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
51ed197520dd9ea534fbc3bc1790ebe3cb5421e2Michael M SlusarzCOMPONENT_ARCHIVE_HASH= \
51ed197520dd9ea534fbc3bc1790ebe3cb5421e2Michael M Slusarz sha256:fa01d435a1ab3abafba683519bdc7aca5e19399e96225e1a8bc1d660b566364d
51ed197520dd9ea534fbc3bc1790ebe3cb5421e2Michael M SlusarzCOMPONENT_ARCHIVE_URL= $(call pypi_url)
51ed197520dd9ea534fbc3bc1790ebe3cb5421e2Michael M SlusarzCOMPONENT_PROJECT_URL= https://github.com/robotis/Lesscpy
51ed197520dd9ea534fbc3bc1790ebe3cb5421e2Michael M SlusarzCOMPONENT_BUGDB= python-mod/lesscpy
51ed197520dd9ea534fbc3bc1790ebe3cb5421e2Michael M Slusarz
51ed197520dd9ea534fbc3bc1790ebe3cb5421e2Michael M SlusarzTPNO= 16108
51ed197520dd9ea534fbc3bc1790ebe3cb5421e2Michael M Slusarz
51ed197520dd9ea534fbc3bc1790ebe3cb5421e2Michael M Slusarz# Depends on ply which is not Python 3 ready.
51ed197520dd9ea534fbc3bc1790ebe3cb5421e2Michael M SlusarzPYTHON_VERSIONS= 2.7 2.6
51ed197520dd9ea534fbc3bc1790ebe3cb5421e2Michael M Slusarz
51ed197520dd9ea534fbc3bc1790ebe3cb5421e2Michael M Slusarz# convert the 'j' in COMPONENT_VERSION to 10
51ed197520dd9ea534fbc3bc1790ebe3cb5421e2Michael M SlusarzIPS_COMPONENT_VERSION = 0.9.10
51ed197520dd9ea534fbc3bc1790ebe3cb5421e2Michael M Slusarz
51ed197520dd9ea534fbc3bc1790ebe3cb5421e2Michael M Slusarzinclude $(WS_TOP)/make-rules/prep.mk
51ed197520dd9ea534fbc3bc1790ebe3cb5421e2Michael M Slusarzinclude $(WS_TOP)/make-rules/setup.py.mk
51ed197520dd9ea534fbc3bc1790ebe3cb5421e2Michael M Slusarzinclude $(WS_TOP)/make-rules/ips.mk
51ed197520dd9ea534fbc3bc1790ebe3cb5421e2Michael M Slusarz
51ed197520dd9ea534fbc3bc1790ebe3cb5421e2Michael M SlusarzASLR_MODE = $(ASLR_NOT_APPLICABLE)
51ed197520dd9ea534fbc3bc1790ebe3cb5421e2Michael M Slusarz
51ed197520dd9ea534fbc3bc1790ebe3cb5421e2Michael M Slusarz# Author's name has non-ASCII characters.
51ed197520dd9ea534fbc3bc1790ebe3cb5421e2Michael M SlusarzCOMPONENT_BUILD_ENV += LC_ALL=en_US.UTF-8
51ed197520dd9ea534fbc3bc1790ebe3cb5421e2Michael M SlusarzCOMPONENT_INSTALL_ENV += LC_ALL=en_US.UTF-8
51ed197520dd9ea534fbc3bc1790ebe3cb5421e2Michael M Slusarz
51ed197520dd9ea534fbc3bc1790ebe3cb5421e2Michael M SlusarzCOMPONENT_POST_INSTALL_ACTION = \
51ed197520dd9ea534fbc3bc1790ebe3cb5421e2Michael M Slusarz (cd $(PROTO_DIR)/usr/bin ; $(MV) -f lesscpy lesscpy-$(PYTHON_VERSION))
51ed197520dd9ea534fbc3bc1790ebe3cb5421e2Michael M Slusarz
51ed197520dd9ea534fbc3bc1790ebe3cb5421e2Michael M Slusarz# common targets
51ed197520dd9ea534fbc3bc1790ebe3cb5421e2Michael M Slusarzbuild: $(BUILD_NO_ARCH)
51ed197520dd9ea534fbc3bc1790ebe3cb5421e2Michael M Slusarz
51ed197520dd9ea534fbc3bc1790ebe3cb5421e2Michael M Slusarzinstall: $(INSTALL_NO_ARCH)
51ed197520dd9ea534fbc3bc1790ebe3cb5421e2Michael M Slusarz
51ed197520dd9ea534fbc3bc1790ebe3cb5421e2Michael M Slusarztest: $(NO_TESTS)
51ed197520dd9ea534fbc3bc1790ebe3cb5421e2Michael M Slusarz
51ed197520dd9ea534fbc3bc1790ebe3cb5421e2Michael M SlusarzBUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS)
51ed197520dd9ea534fbc3bc1790ebe3cb5421e2Michael M Slusarz
51ed197520dd9ea534fbc3bc1790ebe3cb5421e2Michael M Slusarzinclude $(WS_TOP)/make-rules/depend.mk
51ed197520dd9ea534fbc3bc1790ebe3cb5421e2Michael M Slusarz