components/desktop/libgtkspell/Makefile
author Rich Burridge <rich.burridge@oracle.com>
Fri, 11 Mar 2016 05:40:58 -0800
changeset 5589 35e7f040df70
parent 5528 f2f5af510081
child 5682 94c0ca64c022
permissions -rw-r--r--
22886441 Update re2c to version 0.16
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
5235
067b04ef352f 22354433 Move gtkspell from Desktop to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
     1
#
067b04ef352f 22354433 Move gtkspell from Desktop to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
     2
# CDDL HEADER START
067b04ef352f 22354433 Move gtkspell from Desktop to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
     3
#
067b04ef352f 22354433 Move gtkspell from Desktop to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
     4
# The contents of this file are subject to the terms of the
067b04ef352f 22354433 Move gtkspell from Desktop to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
     5
# Common Development and Distribution License (the "License").
067b04ef352f 22354433 Move gtkspell from Desktop to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
     6
# You may not use this file except in compliance with the License.
067b04ef352f 22354433 Move gtkspell from Desktop to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
     7
#
067b04ef352f 22354433 Move gtkspell from Desktop to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
     8
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
067b04ef352f 22354433 Move gtkspell from Desktop to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
     9
# or http://www.opensolaris.org/os/licensing.
067b04ef352f 22354433 Move gtkspell from Desktop to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    10
# See the License for the specific language governing permissions
067b04ef352f 22354433 Move gtkspell from Desktop to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    11
# and limitations under the License.
067b04ef352f 22354433 Move gtkspell from Desktop to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    12
#
067b04ef352f 22354433 Move gtkspell from Desktop to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    13
# When distributing Covered Code, include this CDDL HEADER in each
067b04ef352f 22354433 Move gtkspell from Desktop to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    14
# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
067b04ef352f 22354433 Move gtkspell from Desktop to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    15
# If applicable, add the following below this CDDL HEADER, with the
067b04ef352f 22354433 Move gtkspell from Desktop to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    16
# fields enclosed by brackets "[]" replaced with your own identifying
067b04ef352f 22354433 Move gtkspell from Desktop to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    17
# information: Portions Copyright [yyyy] [name of copyright owner]
067b04ef352f 22354433 Move gtkspell from Desktop to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    18
#
067b04ef352f 22354433 Move gtkspell from Desktop to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    19
# CDDL HEADER END
067b04ef352f 22354433 Move gtkspell from Desktop to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    20
#
5528
f2f5af510081 22846381 do not publish libgtkspell when BUILD_TYPE=evaluation
John Beck <John.Beck@Oracle.COM>
parents: 5235
diff changeset
    21
# Copyright (c) 2015, 2016, Oracle and/or its affiliates. All rights reserved.
5235
067b04ef352f 22354433 Move gtkspell from Desktop to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    22
#
067b04ef352f 22354433 Move gtkspell from Desktop to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    23
067b04ef352f 22354433 Move gtkspell from Desktop to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    24
include ../../../make-rules/shared-macros.mk
067b04ef352f 22354433 Move gtkspell from Desktop to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    25
067b04ef352f 22354433 Move gtkspell from Desktop to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    26
COMPONENT_NAME=		gtkspell
067b04ef352f 22354433 Move gtkspell from Desktop to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    27
COMPONENT_VERSION=	2.0.16
067b04ef352f 22354433 Move gtkspell from Desktop to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    28
COMPONENT_PROJECT_URL=	http://gtkspell.sourceforge.net/
067b04ef352f 22354433 Move gtkspell from Desktop to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    29
COMPONENT_SRC=		$(COMPONENT_NAME)-$(COMPONENT_VERSION)
067b04ef352f 22354433 Move gtkspell from Desktop to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    30
COMPONENT_ARCHIVE=	$(COMPONENT_SRC).tar.gz
067b04ef352f 22354433 Move gtkspell from Desktop to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    31
COMPONENT_ARCHIVE_HASH= \
067b04ef352f 22354433 Move gtkspell from Desktop to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    32
    sha256:8fc7dc560167b2cb7193e76aca625a152dc19b0ebf49816b78539cbb90d80d02
067b04ef352f 22354433 Move gtkspell from Desktop to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    33
COMPONENT_ARCHIVE_URL=	$(COMPONENT_PROJECT_URL)/download/$(COMPONENT_ARCHIVE)
067b04ef352f 22354433 Move gtkspell from Desktop to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    34
COMPONENT_BUGDB=	library/gtkspell
067b04ef352f 22354433 Move gtkspell from Desktop to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    35
067b04ef352f 22354433 Move gtkspell from Desktop to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    36
TPNO=			11953
067b04ef352f 22354433 Move gtkspell from Desktop to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    37
067b04ef352f 22354433 Move gtkspell from Desktop to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    38
include $(WS_MAKE_RULES)/prep.mk
067b04ef352f 22354433 Move gtkspell from Desktop to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    39
include $(WS_MAKE_RULES)/configure.mk
5528
f2f5af510081 22846381 do not publish libgtkspell when BUILD_TYPE=evaluation
John Beck <John.Beck@Oracle.COM>
parents: 5235
diff changeset
    40
f2f5af510081 22846381 do not publish libgtkspell when BUILD_TYPE=evaluation
John Beck <John.Beck@Oracle.COM>
parents: 5235
diff changeset
    41
# Was not version-lock'd in Desktop, so cannot be upgraded to.
f2f5af510081 22846381 do not publish libgtkspell when BUILD_TYPE=evaluation
John Beck <John.Beck@Oracle.COM>
parents: 5235
diff changeset
    42
ifeq ($(BUILD_TYPE), evaluation)
f2f5af510081 22846381 do not publish libgtkspell when BUILD_TYPE=evaluation
John Beck <John.Beck@Oracle.COM>
parents: 5235
diff changeset
    43
BUILD_32_and_64=
f2f5af510081 22846381 do not publish libgtkspell when BUILD_TYPE=evaluation
John Beck <John.Beck@Oracle.COM>
parents: 5235
diff changeset
    44
INSTALL_32_and_64=
f2f5af510081 22846381 do not publish libgtkspell when BUILD_TYPE=evaluation
John Beck <John.Beck@Oracle.COM>
parents: 5235
diff changeset
    45
PUBLISH_STAMP=
f2f5af510081 22846381 do not publish libgtkspell when BUILD_TYPE=evaluation
John Beck <John.Beck@Oracle.COM>
parents: 5235
diff changeset
    46
endif
f2f5af510081 22846381 do not publish libgtkspell when BUILD_TYPE=evaluation
John Beck <John.Beck@Oracle.COM>
parents: 5235
diff changeset
    47
5235
067b04ef352f 22354433 Move gtkspell from Desktop to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    48
include $(WS_MAKE_RULES)/ips.mk
067b04ef352f 22354433 Move gtkspell from Desktop to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    49
067b04ef352f 22354433 Move gtkspell from Desktop to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    50
# Needed to pick up the GNU version of xgettext.
067b04ef352f 22354433 Move gtkspell from Desktop to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    51
PATH =		/usr/gnu/bin:/usr/bin
067b04ef352f 22354433 Move gtkspell from Desktop to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    52
067b04ef352f 22354433 Move gtkspell from Desktop to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    53
COMPONENT_PREP_ACTION = \
067b04ef352f 22354433 Move gtkspell from Desktop to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    54
	(cd $(@D) ; \
067b04ef352f 22354433 Move gtkspell from Desktop to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    55
	libtoolize --force --copy ; \
067b04ef352f 22354433 Move gtkspell from Desktop to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    56
	aclocal -I . ; \
067b04ef352f 22354433 Move gtkspell from Desktop to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    57
	libtoolize --force ; \
067b04ef352f 22354433 Move gtkspell from Desktop to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    58
	autoheader ; \
067b04ef352f 22354433 Move gtkspell from Desktop to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    59
	automake -a -c -f ; \
067b04ef352f 22354433 Move gtkspell from Desktop to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    60
	autoconf )
067b04ef352f 22354433 Move gtkspell from Desktop to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    61
067b04ef352f 22354433 Move gtkspell from Desktop to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    62
CONFIGURE_OPTIONS +=	CFLAGS="$(CFLAGS)"
067b04ef352f 22354433 Move gtkspell from Desktop to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    63
067b04ef352f 22354433 Move gtkspell from Desktop to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    64
ASLR_MODE =	$(ASLR_ENABLE)
067b04ef352f 22354433 Move gtkspell from Desktop to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    65
067b04ef352f 22354433 Move gtkspell from Desktop to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    66
configure:	$(CONFIGURE_32_and_64)
067b04ef352f 22354433 Move gtkspell from Desktop to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    67
067b04ef352f 22354433 Move gtkspell from Desktop to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    68
build:          $(BUILD_32_and_64)
067b04ef352f 22354433 Move gtkspell from Desktop to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    69
067b04ef352f 22354433 Move gtkspell from Desktop to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    70
install:        $(INSTALL_32_and_64)
067b04ef352f 22354433 Move gtkspell from Desktop to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    71
067b04ef352f 22354433 Move gtkspell from Desktop to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    72
test:           $(NO_TESTS)
067b04ef352f 22354433 Move gtkspell from Desktop to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    73
067b04ef352f 22354433 Move gtkspell from Desktop to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    74
system-test:	$(NO_TESTS)
067b04ef352f 22354433 Move gtkspell from Desktop to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    75
067b04ef352f 22354433 Move gtkspell from Desktop to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    76
REQUIRED_PACKAGES += library/desktop/gtk2
067b04ef352f 22354433 Move gtkspell from Desktop to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    77
REQUIRED_PACKAGES += library/glib2
067b04ef352f 22354433 Move gtkspell from Desktop to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    78
REQUIRED_PACKAGES += library/spell-checking/enchant
067b04ef352f 22354433 Move gtkspell from Desktop to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    79
REQUIRED_PACKAGES += system/library