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