components/gamin/Makefile
changeset 4805 ad8cc19e4aec
child 4981 2da2d7a85ba2
equal deleted inserted replaced
4802:62e47da66002 4805:ad8cc19e4aec
       
     1 #
       
     2 # CDDL HEADER START
       
     3 #
       
     4 # The contents of this file are subject to the terms of the
       
     5 # Common Development and Distribution License (the "License").
       
     6 # You may not use this file except in compliance with the License.
       
     7 #
       
     8 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
       
     9 # or http://www.opensolaris.org/os/licensing.
       
    10 # See the License for the specific language governing permissions
       
    11 # and limitations under the License.
       
    12 #
       
    13 # When distributing Covered Code, include this CDDL HEADER in each
       
    14 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
       
    15 # If applicable, add the following below this CDDL HEADER, with the
       
    16 # fields enclosed by brackets "[]" replaced with your own identifying
       
    17 # information: Portions Copyright [yyyy] [name of copyright owner]
       
    18 #
       
    19 # CDDL HEADER END
       
    20 #
       
    21 
       
    22 #
       
    23 # Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
       
    24 #
       
    25 
       
    26 include ../../make-rules/shared-macros.mk
       
    27 
       
    28 COMPONENT_NAME         = gamin
       
    29 COMPONENT_VERSION      = 0.1.10
       
    30 COMPONENT_PROJECT_URL  = http://www.gnome.org/~veillard/gamin/
       
    31 COMPONENT_SRC          = $(COMPONENT_NAME)-$(COMPONENT_VERSION)
       
    32 COMPONENT_ARCHIVE      = $(COMPONENT_SRC).tar.gz
       
    33 COMPONENT_ARCHIVE_HASH = \
       
    34     sha256:28085f0ae8be10eab582ff186af4fb0be92cc6c62b5cc19cd09b295c7c2899a1
       
    35 COMPONENT_ARCHIVE_URL  = https://people.gnome.org/~veillard/gamin/sources/gamin-0.1.10.tar.gz
       
    36 COMPONENT_BUGDB        = library/gamin
       
    37 
       
    38 TPNO                   = 9483
       
    39 
       
    40 include $(WS_MAKE_RULES)/prep.mk
       
    41 include $(WS_MAKE_RULES)/configure.mk
       
    42 include $(WS_MAKE_RULES)/ips.mk
       
    43 
       
    44 ASLR_MODE = $(ASLR_ENABLE)
       
    45 
       
    46 COMPONENT_PREP_ACTION = (cd $(@D) ; autoreconf -if; bzip2 NEWS; bzip2 ChangeLog; bzip2 COPYING)
       
    47 
       
    48 # The tests can leave a socket behind, which makes the tests fail next time
       
    49 COMPONENT_PRE_TEST_ACTION += rm -f /tmp/fam-$$LOGNAME/fam-test
       
    50 
       
    51 # The test suite sets permission on the temp dir to 000 and 'gmake clean' is
       
    52 # not able to remove it afterwards
       
    53 PRE_CLEAN_ACTION = chmod 777 $(BUILD_DIR)/*/python/tests/temp_dir &> /dev/null || :
       
    54 
       
    55 # Remove times from the test output
       
    56 COMPONENT_TEST_TRANSFORMS += '-e "s/^\(--- result\.[0-9][0-9]*\).*/\1/" '
       
    57 
       
    58 # Since the tests don't pass, remove mostly all output of the tests
       
    59 COMPONENT_TEST_TRANSFORMS += '-e "/^ /d"'
       
    60 COMPONENT_TEST_TRANSFORMS += '-e "/^Error/d"'
       
    61 COMPONENT_TEST_TRANSFORMS += '-e "/^error/d"'
       
    62 COMPONENT_TEST_TRANSFORMS += '-e "/^Traceback/d"'
       
    63 COMPONENT_TEST_TRANSFORMS += '-e "/^IndexError/d"'
       
    64 COMPONENT_TEST_TRANSFORMS += '-e "/^Got callback/d"'
       
    65 COMPONENT_TEST_TRANSFORMS += '-e "/^No differences encountered/d"'
       
    66 COMPONENT_TEST_TRANSFORMS += '-e "/^+/d"'
       
    67 COMPONENT_TEST_TRANSFORMS += '-e "/^\-/d"'
       
    68 COMPONENT_TEST_TRANSFORMS += '-e "/^\*/d"'
       
    69 COMPONENT_TEST_TRANSFORMS += '-e "/^!/d"'
       
    70 
       
    71 configure:	$(CONFIGURE_32)
       
    72 
       
    73 build:          $(BUILD_32)
       
    74 
       
    75 install:        $(INSTALL_32)
       
    76 
       
    77 test:           $(TEST_32)
       
    78 
       
    79 REQUIRED_PACKAGES += library/glib2
       
    80 REQUIRED_PACKAGES += runtime/python-27
       
    81 REQUIRED_PACKAGES += system/library