components/gamin/Makefile
author Shawn Walker-Salas <shawn.walker@oracle.com>
Wed, 30 Mar 2016 13:33:31 -0700
changeset 5682 94c0ca64c022
parent 4981 2da2d7a85ba2
child 5748 e80cda8309df
permissions -rw-r--r--
15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh 22228656 remove redundant declarations and additions from makefiles 22252545 simplify build rules for components from common upstream 22378457 tclConfig.sh compiler settings are too specific 22727315 httping curses gui missing 22750630 procmail ignores userland cflags and may use private strstr function 22758725 wdiff uses diff from PATH instead of /usr/gnu/bin/diff 22926847 cloog Makefile typo when setting ASLR_MODE 22935090 tk config script has wrong linker flags
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
4805
ad8cc19e4aec 21036504 Move libgamin from Desktop to Userland consolidation
Vladimir Marek <Vladimir.Marek@oracle.com>
parents:
diff changeset
     1
#
ad8cc19e4aec 21036504 Move libgamin from Desktop to Userland consolidation
Vladimir Marek <Vladimir.Marek@oracle.com>
parents:
diff changeset
     2
# CDDL HEADER START
ad8cc19e4aec 21036504 Move libgamin from Desktop to Userland consolidation
Vladimir Marek <Vladimir.Marek@oracle.com>
parents:
diff changeset
     3
#
ad8cc19e4aec 21036504 Move libgamin from Desktop to Userland consolidation
Vladimir Marek <Vladimir.Marek@oracle.com>
parents:
diff changeset
     4
# The contents of this file are subject to the terms of the
ad8cc19e4aec 21036504 Move libgamin from Desktop to Userland consolidation
Vladimir Marek <Vladimir.Marek@oracle.com>
parents:
diff changeset
     5
# Common Development and Distribution License (the "License").
ad8cc19e4aec 21036504 Move libgamin from Desktop to Userland consolidation
Vladimir Marek <Vladimir.Marek@oracle.com>
parents:
diff changeset
     6
# You may not use this file except in compliance with the License.
ad8cc19e4aec 21036504 Move libgamin from Desktop to Userland consolidation
Vladimir Marek <Vladimir.Marek@oracle.com>
parents:
diff changeset
     7
#
ad8cc19e4aec 21036504 Move libgamin from Desktop to Userland consolidation
Vladimir Marek <Vladimir.Marek@oracle.com>
parents:
diff changeset
     8
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
ad8cc19e4aec 21036504 Move libgamin from Desktop to Userland consolidation
Vladimir Marek <Vladimir.Marek@oracle.com>
parents:
diff changeset
     9
# or http://www.opensolaris.org/os/licensing.
ad8cc19e4aec 21036504 Move libgamin from Desktop to Userland consolidation
Vladimir Marek <Vladimir.Marek@oracle.com>
parents:
diff changeset
    10
# See the License for the specific language governing permissions
ad8cc19e4aec 21036504 Move libgamin from Desktop to Userland consolidation
Vladimir Marek <Vladimir.Marek@oracle.com>
parents:
diff changeset
    11
# and limitations under the License.
ad8cc19e4aec 21036504 Move libgamin from Desktop to Userland consolidation
Vladimir Marek <Vladimir.Marek@oracle.com>
parents:
diff changeset
    12
#
ad8cc19e4aec 21036504 Move libgamin from Desktop to Userland consolidation
Vladimir Marek <Vladimir.Marek@oracle.com>
parents:
diff changeset
    13
# When distributing Covered Code, include this CDDL HEADER in each
ad8cc19e4aec 21036504 Move libgamin from Desktop to Userland consolidation
Vladimir Marek <Vladimir.Marek@oracle.com>
parents:
diff changeset
    14
# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
ad8cc19e4aec 21036504 Move libgamin from Desktop to Userland consolidation
Vladimir Marek <Vladimir.Marek@oracle.com>
parents:
diff changeset
    15
# If applicable, add the following below this CDDL HEADER, with the
ad8cc19e4aec 21036504 Move libgamin from Desktop to Userland consolidation
Vladimir Marek <Vladimir.Marek@oracle.com>
parents:
diff changeset
    16
# fields enclosed by brackets "[]" replaced with your own identifying
ad8cc19e4aec 21036504 Move libgamin from Desktop to Userland consolidation
Vladimir Marek <Vladimir.Marek@oracle.com>
parents:
diff changeset
    17
# information: Portions Copyright [yyyy] [name of copyright owner]
ad8cc19e4aec 21036504 Move libgamin from Desktop to Userland consolidation
Vladimir Marek <Vladimir.Marek@oracle.com>
parents:
diff changeset
    18
#
ad8cc19e4aec 21036504 Move libgamin from Desktop to Userland consolidation
Vladimir Marek <Vladimir.Marek@oracle.com>
parents:
diff changeset
    19
# CDDL HEADER END
ad8cc19e4aec 21036504 Move libgamin from Desktop to Userland consolidation
Vladimir Marek <Vladimir.Marek@oracle.com>
parents:
diff changeset
    20
#
ad8cc19e4aec 21036504 Move libgamin from Desktop to Userland consolidation
Vladimir Marek <Vladimir.Marek@oracle.com>
parents:
diff changeset
    21
ad8cc19e4aec 21036504 Move libgamin from Desktop to Userland consolidation
Vladimir Marek <Vladimir.Marek@oracle.com>
parents:
diff changeset
    22
#
5682
94c0ca64c022 15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 4981
diff changeset
    23
# Copyright (c) 2015, 2016, Oracle and/or its affiliates. All rights reserved.
4805
ad8cc19e4aec 21036504 Move libgamin from Desktop to Userland consolidation
Vladimir Marek <Vladimir.Marek@oracle.com>
parents:
diff changeset
    24
#
5682
94c0ca64c022 15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 4981
diff changeset
    25
BUILD_BITS= 64_and_32
4805
ad8cc19e4aec 21036504 Move libgamin from Desktop to Userland consolidation
Vladimir Marek <Vladimir.Marek@oracle.com>
parents:
diff changeset
    26
include ../../make-rules/shared-macros.mk
ad8cc19e4aec 21036504 Move libgamin from Desktop to Userland consolidation
Vladimir Marek <Vladimir.Marek@oracle.com>
parents:
diff changeset
    27
ad8cc19e4aec 21036504 Move libgamin from Desktop to Userland consolidation
Vladimir Marek <Vladimir.Marek@oracle.com>
parents:
diff changeset
    28
COMPONENT_NAME         = gamin
ad8cc19e4aec 21036504 Move libgamin from Desktop to Userland consolidation
Vladimir Marek <Vladimir.Marek@oracle.com>
parents:
diff changeset
    29
COMPONENT_VERSION      = 0.1.10
ad8cc19e4aec 21036504 Move libgamin from Desktop to Userland consolidation
Vladimir Marek <Vladimir.Marek@oracle.com>
parents:
diff changeset
    30
COMPONENT_PROJECT_URL  = http://www.gnome.org/~veillard/gamin/
ad8cc19e4aec 21036504 Move libgamin from Desktop to Userland consolidation
Vladimir Marek <Vladimir.Marek@oracle.com>
parents:
diff changeset
    31
COMPONENT_ARCHIVE_HASH = \
ad8cc19e4aec 21036504 Move libgamin from Desktop to Userland consolidation
Vladimir Marek <Vladimir.Marek@oracle.com>
parents:
diff changeset
    32
    sha256:28085f0ae8be10eab582ff186af4fb0be92cc6c62b5cc19cd09b295c7c2899a1
ad8cc19e4aec 21036504 Move libgamin from Desktop to Userland consolidation
Vladimir Marek <Vladimir.Marek@oracle.com>
parents:
diff changeset
    33
COMPONENT_ARCHIVE_URL  = https://people.gnome.org/~veillard/gamin/sources/gamin-0.1.10.tar.gz
ad8cc19e4aec 21036504 Move libgamin from Desktop to Userland consolidation
Vladimir Marek <Vladimir.Marek@oracle.com>
parents:
diff changeset
    34
COMPONENT_BUGDB        = library/gamin
ad8cc19e4aec 21036504 Move libgamin from Desktop to Userland consolidation
Vladimir Marek <Vladimir.Marek@oracle.com>
parents:
diff changeset
    35
ad8cc19e4aec 21036504 Move libgamin from Desktop to Userland consolidation
Vladimir Marek <Vladimir.Marek@oracle.com>
parents:
diff changeset
    36
TPNO                   = 9483
ad8cc19e4aec 21036504 Move libgamin from Desktop to Userland consolidation
Vladimir Marek <Vladimir.Marek@oracle.com>
parents:
diff changeset
    37
5682
94c0ca64c022 15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 4981
diff changeset
    38
include $(WS_MAKE_RULES)/common.mk
4805
ad8cc19e4aec 21036504 Move libgamin from Desktop to Userland consolidation
Vladimir Marek <Vladimir.Marek@oracle.com>
parents:
diff changeset
    39
ad8cc19e4aec 21036504 Move libgamin from Desktop to Userland consolidation
Vladimir Marek <Vladimir.Marek@oracle.com>
parents:
diff changeset
    40
COMPONENT_PREP_ACTION = (cd $(@D) ; autoreconf -if; bzip2 NEWS; bzip2 ChangeLog; bzip2 COPYING)
ad8cc19e4aec 21036504 Move libgamin from Desktop to Userland consolidation
Vladimir Marek <Vladimir.Marek@oracle.com>
parents:
diff changeset
    41
ad8cc19e4aec 21036504 Move libgamin from Desktop to Userland consolidation
Vladimir Marek <Vladimir.Marek@oracle.com>
parents:
diff changeset
    42
# The tests can leave a socket behind, which makes the tests fail next time
ad8cc19e4aec 21036504 Move libgamin from Desktop to Userland consolidation
Vladimir Marek <Vladimir.Marek@oracle.com>
parents:
diff changeset
    43
COMPONENT_PRE_TEST_ACTION += rm -f /tmp/fam-$$LOGNAME/fam-test
ad8cc19e4aec 21036504 Move libgamin from Desktop to Userland consolidation
Vladimir Marek <Vladimir.Marek@oracle.com>
parents:
diff changeset
    44
ad8cc19e4aec 21036504 Move libgamin from Desktop to Userland consolidation
Vladimir Marek <Vladimir.Marek@oracle.com>
parents:
diff changeset
    45
# The test suite sets permission on the temp dir to 000 and 'gmake clean' is
ad8cc19e4aec 21036504 Move libgamin from Desktop to Userland consolidation
Vladimir Marek <Vladimir.Marek@oracle.com>
parents:
diff changeset
    46
# not able to remove it afterwards
ad8cc19e4aec 21036504 Move libgamin from Desktop to Userland consolidation
Vladimir Marek <Vladimir.Marek@oracle.com>
parents:
diff changeset
    47
PRE_CLEAN_ACTION = chmod 777 $(BUILD_DIR)/*/python/tests/temp_dir &> /dev/null || :
ad8cc19e4aec 21036504 Move libgamin from Desktop to Userland consolidation
Vladimir Marek <Vladimir.Marek@oracle.com>
parents:
diff changeset
    48
ad8cc19e4aec 21036504 Move libgamin from Desktop to Userland consolidation
Vladimir Marek <Vladimir.Marek@oracle.com>
parents:
diff changeset
    49
# Remove times from the test output
ad8cc19e4aec 21036504 Move libgamin from Desktop to Userland consolidation
Vladimir Marek <Vladimir.Marek@oracle.com>
parents:
diff changeset
    50
COMPONENT_TEST_TRANSFORMS += '-e "s/^\(--- result\.[0-9][0-9]*\).*/\1/" '
ad8cc19e4aec 21036504 Move libgamin from Desktop to Userland consolidation
Vladimir Marek <Vladimir.Marek@oracle.com>
parents:
diff changeset
    51
ad8cc19e4aec 21036504 Move libgamin from Desktop to Userland consolidation
Vladimir Marek <Vladimir.Marek@oracle.com>
parents:
diff changeset
    52
# Since the tests don't pass, remove mostly all output of the tests
ad8cc19e4aec 21036504 Move libgamin from Desktop to Userland consolidation
Vladimir Marek <Vladimir.Marek@oracle.com>
parents:
diff changeset
    53
COMPONENT_TEST_TRANSFORMS += '-e "/^ /d"'
ad8cc19e4aec 21036504 Move libgamin from Desktop to Userland consolidation
Vladimir Marek <Vladimir.Marek@oracle.com>
parents:
diff changeset
    54
COMPONENT_TEST_TRANSFORMS += '-e "/^Error/d"'
ad8cc19e4aec 21036504 Move libgamin from Desktop to Userland consolidation
Vladimir Marek <Vladimir.Marek@oracle.com>
parents:
diff changeset
    55
COMPONENT_TEST_TRANSFORMS += '-e "/^error/d"'
ad8cc19e4aec 21036504 Move libgamin from Desktop to Userland consolidation
Vladimir Marek <Vladimir.Marek@oracle.com>
parents:
diff changeset
    56
COMPONENT_TEST_TRANSFORMS += '-e "/^Traceback/d"'
ad8cc19e4aec 21036504 Move libgamin from Desktop to Userland consolidation
Vladimir Marek <Vladimir.Marek@oracle.com>
parents:
diff changeset
    57
COMPONENT_TEST_TRANSFORMS += '-e "/^IndexError/d"'
ad8cc19e4aec 21036504 Move libgamin from Desktop to Userland consolidation
Vladimir Marek <Vladimir.Marek@oracle.com>
parents:
diff changeset
    58
COMPONENT_TEST_TRANSFORMS += '-e "/^Got callback/d"'
ad8cc19e4aec 21036504 Move libgamin from Desktop to Userland consolidation
Vladimir Marek <Vladimir.Marek@oracle.com>
parents:
diff changeset
    59
COMPONENT_TEST_TRANSFORMS += '-e "/^No differences encountered/d"'
ad8cc19e4aec 21036504 Move libgamin from Desktop to Userland consolidation
Vladimir Marek <Vladimir.Marek@oracle.com>
parents:
diff changeset
    60
COMPONENT_TEST_TRANSFORMS += '-e "/^+/d"'
ad8cc19e4aec 21036504 Move libgamin from Desktop to Userland consolidation
Vladimir Marek <Vladimir.Marek@oracle.com>
parents:
diff changeset
    61
COMPONENT_TEST_TRANSFORMS += '-e "/^\-/d"'
ad8cc19e4aec 21036504 Move libgamin from Desktop to Userland consolidation
Vladimir Marek <Vladimir.Marek@oracle.com>
parents:
diff changeset
    62
COMPONENT_TEST_TRANSFORMS += '-e "/^\*/d"'
ad8cc19e4aec 21036504 Move libgamin from Desktop to Userland consolidation
Vladimir Marek <Vladimir.Marek@oracle.com>
parents:
diff changeset
    63
COMPONENT_TEST_TRANSFORMS += '-e "/^!/d"'
ad8cc19e4aec 21036504 Move libgamin from Desktop to Userland consolidation
Vladimir Marek <Vladimir.Marek@oracle.com>
parents:
diff changeset
    64
4981
2da2d7a85ba2 15783180 SUNBT7158647 gamin does not provide 64bit libraries
Vladimir Marek <Vladimir.Marek@oracle.com>
parents: 4805
diff changeset
    65
# Where the gam_server will be located
2da2d7a85ba2 15783180 SUNBT7158647 gamin does not provide 64bit libraries
Vladimir Marek <Vladimir.Marek@oracle.com>
parents: 4805
diff changeset
    66
CONFIGURE_OPTIONS    +=      --libexecdir="$(USRLIBDIR)"
2da2d7a85ba2 15783180 SUNBT7158647 gamin does not provide 64bit libraries
Vladimir Marek <Vladimir.Marek@oracle.com>
parents: 4805
diff changeset
    67
2da2d7a85ba2 15783180 SUNBT7158647 gamin does not provide 64bit libraries
Vladimir Marek <Vladimir.Marek@oracle.com>
parents: 4805
diff changeset
    68
# Direct the python packages to vendor-packages dir instead of site-packages
2da2d7a85ba2 15783180 SUNBT7158647 gamin does not provide 64bit libraries
Vladimir Marek <Vladimir.Marek@oracle.com>
parents: 4805
diff changeset
    69
COMPONENT_BUILD_ARGS +=      PYTHON_SITE_PACKAGES=$(PYTHON_VENDOR_PACKAGES)
2da2d7a85ba2 15783180 SUNBT7158647 gamin does not provide 64bit libraries
Vladimir Marek <Vladimir.Marek@oracle.com>
parents: 4805
diff changeset
    70
2da2d7a85ba2 15783180 SUNBT7158647 gamin does not provide 64bit libraries
Vladimir Marek <Vladimir.Marek@oracle.com>
parents: 4805
diff changeset
    71
# Use 64 bit python for 64 bit build
2da2d7a85ba2 15783180 SUNBT7158647 gamin does not provide 64bit libraries
Vladimir Marek <Vladimir.Marek@oracle.com>
parents: 4805
diff changeset
    72
CONFIGURE_OPTIONS +=      --with-python=$(PYTHON)
2da2d7a85ba2 15783180 SUNBT7158647 gamin does not provide 64bit libraries
Vladimir Marek <Vladimir.Marek@oracle.com>
parents: 4805
diff changeset
    73
2da2d7a85ba2 15783180 SUNBT7158647 gamin does not provide 64bit libraries
Vladimir Marek <Vladimir.Marek@oracle.com>
parents: 4805
diff changeset
    74
# Use 64 bit install path for 64 bit python
2da2d7a85ba2 15783180 SUNBT7158647 gamin does not provide 64bit libraries
Vladimir Marek <Vladimir.Marek@oracle.com>
parents: 4805
diff changeset
    75
COMPONENT_INSTALL_ARGS += pythondir=$(PYTHON_VENDOR_PACKAGES)
4805
ad8cc19e4aec 21036504 Move libgamin from Desktop to Userland consolidation
Vladimir Marek <Vladimir.Marek@oracle.com>
parents:
diff changeset
    76
4981
2da2d7a85ba2 15783180 SUNBT7158647 gamin does not provide 64bit libraries
Vladimir Marek <Vladimir.Marek@oracle.com>
parents: 4805
diff changeset
    77
# The 64 bit compilation puts the .so module into .libs directory, but python
2da2d7a85ba2 15783180 SUNBT7158647 gamin does not provide 64bit libraries
Vladimir Marek <Vladimir.Marek@oracle.com>
parents: 4805
diff changeset
    78
# expects it in .libs/64
2da2d7a85ba2 15783180 SUNBT7158647 gamin does not provide 64bit libraries
Vladimir Marek <Vladimir.Marek@oracle.com>
parents: 4805
diff changeset
    79
$(BUILD_DIR_64)/.built: COMPONENT_POST_BUILD_ACTION = ( \
2da2d7a85ba2 15783180 SUNBT7158647 gamin does not provide 64bit libraries
Vladimir Marek <Vladimir.Marek@oracle.com>
parents: 4805
diff changeset
    80
	cd $(@D)/python/.libs ; \
2da2d7a85ba2 15783180 SUNBT7158647 gamin does not provide 64bit libraries
Vladimir Marek <Vladimir.Marek@oracle.com>
parents: 4805
diff changeset
    81
	mkdir -p 64 ; \
2da2d7a85ba2 15783180 SUNBT7158647 gamin does not provide 64bit libraries
Vladimir Marek <Vladimir.Marek@oracle.com>
parents: 4805
diff changeset
    82
	cp _gamin.so 64 \
2da2d7a85ba2 15783180 SUNBT7158647 gamin does not provide 64bit libraries
Vladimir Marek <Vladimir.Marek@oracle.com>
parents: 4805
diff changeset
    83
)
4805
ad8cc19e4aec 21036504 Move libgamin from Desktop to Userland consolidation
Vladimir Marek <Vladimir.Marek@oracle.com>
parents:
diff changeset
    84
ad8cc19e4aec 21036504 Move libgamin from Desktop to Userland consolidation
Vladimir Marek <Vladimir.Marek@oracle.com>
parents:
diff changeset
    85
REQUIRED_PACKAGES += library/glib2
ad8cc19e4aec 21036504 Move libgamin from Desktop to Userland consolidation
Vladimir Marek <Vladimir.Marek@oracle.com>
parents:
diff changeset
    86
REQUIRED_PACKAGES += runtime/python-27