components/desktop/harfbuzz/Makefile
changeset 5417 bcb70575c62a
child 5426 095b7eacbee6
equal deleted inserted replaced
5416:2115621f91ed 5417:bcb70575c62a
       
     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, 2016 Oracle and/or its affiliates. All rights reserved.
       
    24 #
       
    25 
       
    26 include ../../../make-rules/shared-macros.mk
       
    27 
       
    28 COMPONENT_NAME=		harfbuzz
       
    29 COMPONENT_VERSION=	1.0.6
       
    30 COMPONENT_PROJECT_URL=	http://www.freedesktop.org/wiki/Software/HarfBuzz/
       
    31 COMPONENT_SRC=		$(COMPONENT_NAME)-$(COMPONENT_VERSION)
       
    32 COMPONENT_ARCHIVE=	$(COMPONENT_SRC).tar.bz2
       
    33 COMPONENT_ARCHIVE_HASH=	\
       
    34     sha256:f616a7fbdc78a627043f9029000bf08c0c71df59cde4143fc92a014f6a993b26
       
    35 COMPONENT_ARCHIVE_URL=	http://www.freedesktop.org/software/harfbuzz/release/$(COMPONENT_ARCHIVE)
       
    36 COMPONENT_BUGDB=	library/harfbuzz
       
    37 
       
    38 TPNO=			25623
       
    39 
       
    40 include $(WS_MAKE_RULES)/prep.mk
       
    41 include $(WS_MAKE_RULES)/configure-32_and_64.mk
       
    42 include $(WS_MAKE_RULES)/common-32_and_64.mk
       
    43 
       
    44 # For now, all things built for C++11 require gcc.
       
    45 COMPILER = gcc
       
    46 CXXFLAGS += -std=c++11
       
    47 
       
    48 CONFIGURE_ENV += CC="$(CC) $(CC_BITS)"
       
    49 CONFIGURE_ENV += CFLAGS="$(CFLAGS)"
       
    50 CONFIGURE_ENV += CPPFLAGS="$(CPPFLAGS)"
       
    51 CONFIGURE_ENV += CXXFLAGS="$(CXXFLAGS)"
       
    52 # Required by other components.
       
    53 CONFIGURE_OPTIONS += --enable-introspection
       
    54 # Required by other components.
       
    55 CONFIGURE_OPTIONS += --with-glib
       
    56 # Required by other components.
       
    57 CONFIGURE_OPTIONS += --with-gobject
       
    58 # Requires GNU-ABI compatible build of ICU.
       
    59 CONFIGURE_OPTIONS += --with-icu
       
    60 # build the API documentation
       
    61 CONFIGURE_OPTIONS += --enable-gtk-doc
       
    62 
       
    63 COMPONENT_TEST_MASTER = $(COMPONENT_TEST_RESULTS_DIR)/results-all.master
       
    64 COMPONENT_TEST_ARGS =   -k -i
       
    65 COMPONENT_TEST_TRANSFORMS += \
       
    66         '-n ' \
       
    67         '-e "/TOTAL:/p" ' \
       
    68         '-e "/SKIP:/p" ' \
       
    69         '-e "/PASS:/p" ' \
       
    70         '-e "/FAIL:/p" ' \
       
    71         '-e "/XFAIL:/p" ' \
       
    72         '-e "/XERROR:/p" ' \
       
    73         '-e "/ERROR:/p" '
       
    74 
       
    75 configure:      $(CONFIGURE_32_and_64)
       
    76 
       
    77 build:          $(BUILD_32_and_64)
       
    78 
       
    79 install:        $(INSTALL_32_and_64)
       
    80 
       
    81 test:           $(TEST_32_and_64)
       
    82 
       
    83 system-test:    $(SYSTEM_TESTS_NOT_IMPLEMENTED)
       
    84 
       
    85 REQUIRED_PACKAGES += developer/build/autoconf
       
    86 REQUIRED_PACKAGES += developer/build/automake
       
    87 REQUIRED_PACKAGES += developer/build/gnu-make
       
    88 REQUIRED_PACKAGES += developer/build/pkg-config
       
    89 REQUIRED_PACKAGES += developer/icu
       
    90 REQUIRED_PACKAGES += library/desktop/cairo
       
    91 REQUIRED_PACKAGES += library/glib2
       
    92 REQUIRED_PACKAGES += library/icu
       
    93 REQUIRED_PACKAGES += system/library
       
    94 REQUIRED_PACKAGES += system/library/freetype-2
       
    95 REQUIRED_PACKAGES += system/library/gcc/gcc-c-runtime
       
    96 REQUIRED_PACKAGES += system/library/gcc/gcc-c++-runtime
       
    97 REQUIRED_PACKAGES += system/library/math