Makefile revision 5680
4803N/A#
4803N/A# CDDL HEADER START
4803N/A#
4803N/A# The contents of this file are subject to the terms of the
4803N/A# Common Development and Distribution License (the "License").
4803N/A# You may not use this file except in compliance with the License.
4803N/A#
4803N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
4803N/A# or http://www.opensolaris.org/os/licensing.
4803N/A# See the License for the specific language governing permissions
4803N/A# and limitations under the License.
4803N/A#
4803N/A# When distributing Covered Code, include this CDDL HEADER in each
4803N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
4803N/A# If applicable, add the following below this CDDL HEADER, with the
4803N/A# fields enclosed by brackets "[]" replaced with your own identifying
4803N/A# information: Portions Copyright [yyyy] [name of copyright owner]
4803N/A#
4803N/A# CDDL HEADER END
4803N/A#
4803N/A
4803N/A#
4803N/A# Copyright (c) 2015, 2016, Oracle and/or its affiliates. All rights reserved.
4803N/A#
4803N/ABUILD_BITS= 64_and_32
4803N/Ainclude ../../make-rules/shared-macros.mk
4803N/A
4803N/ACOMPONENT_NAME = gamin
4803N/ACOMPONENT_VERSION = 0.1.10
4803N/ACOMPONENT_PROJECT_URL = http://www.gnome.org/~veillard/gamin/
4803N/ACOMPONENT_ARCHIVE_HASH = \
4803N/A sha256:28085f0ae8be10eab582ff186af4fb0be92cc6c62b5cc19cd09b295c7c2899a1
4803N/ACOMPONENT_ARCHIVE_URL = https://people.gnome.org/~veillard/gamin/sources/gamin-0.1.10.tar.gz
4803N/ACOMPONENT_BUGDB = library/gamin
4803N/A
4803N/ATPNO = 9483
4803N/A
4803N/Ainclude $(WS_MAKE_RULES)/common.mk
4803N/A
4803N/ACOMPONENT_PREP_ACTION = (cd $(@D) ; autoreconf -if; bzip2 NEWS; bzip2 ChangeLog; bzip2 COPYING)
4803N/A
4803N/A# The tests can leave a socket behind, which makes the tests fail next time
4803N/ACOMPONENT_PRE_TEST_ACTION += rm -f /tmp/fam-$$LOGNAME/fam-test
4803N/A
4803N/A# The test suite sets permission on the temp dir to 000 and 'gmake clean' is
4803N/A# not able to remove it afterwards
4803N/APRE_CLEAN_ACTION = chmod 777 $(BUILD_DIR)/*/python/tests/temp_dir &> /dev/null || :
4803N/A
4803N/A# Remove times from the test output
4803N/ACOMPONENT_TEST_TRANSFORMS += '-e "s/^\(--- result\.[0-9][0-9]*\).*/\1/" '
4803N/A
4803N/A# Since the tests don't pass, remove mostly all output of the tests
4803N/ACOMPONENT_TEST_TRANSFORMS += '-e "/^ /d"'
4803N/ACOMPONENT_TEST_TRANSFORMS += '-e "/^Error/d"'
4803N/ACOMPONENT_TEST_TRANSFORMS += '-e "/^error/d"'
4803N/ACOMPONENT_TEST_TRANSFORMS += '-e "/^Traceback/d"'
4803N/ACOMPONENT_TEST_TRANSFORMS += '-e "/^IndexError/d"'
4803N/ACOMPONENT_TEST_TRANSFORMS += '-e "/^Got callback/d"'
4803N/ACOMPONENT_TEST_TRANSFORMS += '-e "/^No differences encountered/d"'
4803N/ACOMPONENT_TEST_TRANSFORMS += '-e "/^+/d"'
4803N/ACOMPONENT_TEST_TRANSFORMS += '-e "/^\-/d"'
4803N/ACOMPONENT_TEST_TRANSFORMS += '-e "/^\*/d"'
4803N/ACOMPONENT_TEST_TRANSFORMS += '-e "/^!/d"'
4803N/A
4803N/A# Where the gam_server will be located
4803N/ACONFIGURE_OPTIONS += --libexecdir="$(USRLIBDIR)"
4803N/A
4803N/A# Direct the python packages to vendor-packages dir instead of site-packages
4803N/ACOMPONENT_BUILD_ARGS += PYTHON_SITE_PACKAGES=$(PYTHON_VENDOR_PACKAGES)
4803N/A
4803N/A# Use 64 bit python for 64 bit build
4803N/ACONFIGURE_OPTIONS += --with-python=$(PYTHON)
4803N/A
4803N/A# Use 64 bit install path for 64 bit python
4803N/ACOMPONENT_INSTALL_ARGS += pythondir=$(PYTHON_VENDOR_PACKAGES)
4803N/A
4803N/A# The 64 bit compilation puts the .so module into .libs directory, but python
4803N/A# expects it in .libs/64
4803N/A$(BUILD_DIR_64)/.built: COMPONENT_POST_BUILD_ACTION = ( \
4803N/A cd $(@D)/python/.libs ; \
4803N/A mkdir -p 64 ; \
cp _gamin.so 64 \
)
REQUIRED_PACKAGES += library/glib2
REQUIRED_PACKAGES += runtime/python-27