components/graphviz/Makefile
author Rich Burridge <rich.burridge@oracle.com>
Tue, 20 Nov 2012 15:20:49 -0800
changeset 1058 34d7aaa03423
parent 938 2c2880af6a0b
child 1482 7a1f84fbc2d7
permissions -rw-r--r--
15886624 Auto-generation of Userland gate list - Phase 3
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
457
aa27b836c528 PSARC/2011/269 Graphviz
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
     1
#
aa27b836c528 PSARC/2011/269 Graphviz
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
     2
# CDDL HEADER START
aa27b836c528 PSARC/2011/269 Graphviz
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
     3
#
aa27b836c528 PSARC/2011/269 Graphviz
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
     4
# The contents of this file are subject to the terms of the
aa27b836c528 PSARC/2011/269 Graphviz
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
     5
# Common Development and Distribution License (the "License").
aa27b836c528 PSARC/2011/269 Graphviz
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
     6
# You may not use this file except in compliance with the License.
aa27b836c528 PSARC/2011/269 Graphviz
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
     7
#
aa27b836c528 PSARC/2011/269 Graphviz
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
     8
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
aa27b836c528 PSARC/2011/269 Graphviz
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
     9
# or http://www.opensolaris.org/os/licensing.
aa27b836c528 PSARC/2011/269 Graphviz
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    10
# See the License for the specific language governing permissions
aa27b836c528 PSARC/2011/269 Graphviz
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    11
# and limitations under the License.
aa27b836c528 PSARC/2011/269 Graphviz
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    12
#
aa27b836c528 PSARC/2011/269 Graphviz
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    13
# When distributing Covered Code, include this CDDL HEADER in each
aa27b836c528 PSARC/2011/269 Graphviz
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    14
# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
aa27b836c528 PSARC/2011/269 Graphviz
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    15
# If applicable, add the following below this CDDL HEADER, with the
aa27b836c528 PSARC/2011/269 Graphviz
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    16
# fields enclosed by brackets "[]" replaced with your own identifying
aa27b836c528 PSARC/2011/269 Graphviz
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    17
# information: Portions Copyright [yyyy] [name of copyright owner]
aa27b836c528 PSARC/2011/269 Graphviz
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    18
#
aa27b836c528 PSARC/2011/269 Graphviz
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    19
# CDDL HEADER END
aa27b836c528 PSARC/2011/269 Graphviz
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    20
#
aa27b836c528 PSARC/2011/269 Graphviz
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    21
aa27b836c528 PSARC/2011/269 Graphviz
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    22
#
683
c613b3449c36 7079363 gcc-3.p5m package manifest file shouldn't deliver .la files
Rich Burridge <rich.burridge@oracle.com>
parents: 623
diff changeset
    23
# Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
457
aa27b836c528 PSARC/2011/269 Graphviz
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    24
#
aa27b836c528 PSARC/2011/269 Graphviz
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    25
aa27b836c528 PSARC/2011/269 Graphviz
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    26
include ../../make-rules/shared-macros.mk
aa27b836c528 PSARC/2011/269 Graphviz
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    27
aa27b836c528 PSARC/2011/269 Graphviz
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    28
COMPONENT_NAME=		graphviz
aa27b836c528 PSARC/2011/269 Graphviz
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    29
COMPONENT_VERSION=	2.28.0
609
775168282b2f 7037821 Userland migration of data from Makefile to manifest may have been a little overzealous
Rich Burridge <rich.burridge@oracle.com>
parents: 457
diff changeset
    30
COMPONENT_PROJECT_URL=	http://www.graphviz.org/
457
aa27b836c528 PSARC/2011/269 Graphviz
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    31
COMPONENT_SRC=		$(COMPONENT_NAME)-$(COMPONENT_VERSION)
aa27b836c528 PSARC/2011/269 Graphviz
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    32
COMPONENT_ARCHIVE=	$(COMPONENT_SRC).tar.gz
800
2ad056ed89ec 7163771 sha1 should not be used in userland-fetch and userland component/*/Makefile
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents: 706
diff changeset
    33
COMPONENT_ARCHIVE_HASH=	\
2ad056ed89ec 7163771 sha1 should not be used in userland-fetch and userland component/*/Makefile
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents: 706
diff changeset
    34
    sha256:d3aa7973c578cae4cc26d9d6498c57ed06680cab9a4e940d0357a3c6527afc76
609
775168282b2f 7037821 Userland migration of data from Makefile to manifest may have been a little overzealous
Rich Burridge <rich.burridge@oracle.com>
parents: 457
diff changeset
    35
COMPONENT_ARCHIVE_URL=	$(COMPONENT_PROJECT_URL)pub/graphviz/stable/SOURCES/$(COMPONENT_ARCHIVE)
1058
34d7aaa03423 15886624 Auto-generation of Userland gate list - Phase 3
Rich Burridge <rich.burridge@oracle.com>
parents: 938
diff changeset
    36
COMPONENT_BUGDB=	utility/graphviz
457
aa27b836c528 PSARC/2011/269 Graphviz
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    37
aa27b836c528 PSARC/2011/269 Graphviz
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    38
include ../../make-rules/prep.mk
aa27b836c528 PSARC/2011/269 Graphviz
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    39
include ../../make-rules/configure.mk
aa27b836c528 PSARC/2011/269 Graphviz
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    40
include ../../make-rules/ips.mk
aa27b836c528 PSARC/2011/269 Graphviz
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    41
aa27b836c528 PSARC/2011/269 Graphviz
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    42
PATH =		/usr/bin:/usr/gnu/bin:/usr/php/5.2/bin
aa27b836c528 PSARC/2011/269 Graphviz
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    43
aa27b836c528 PSARC/2011/269 Graphviz
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    44
# GMP header files for the guile extension (no --with- flag)
aa27b836c528 PSARC/2011/269 Graphviz
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    45
# The guile build is broken with studio (7073649), so we disable this for now.
aa27b836c528 PSARC/2011/269 Graphviz
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    46
# CPPFLAGS +=	-I/usr/include/gmp
aa27b836c528 PSARC/2011/269 Graphviz
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    47
# Java header files (--with-javaincludedir allows for only one directory)
938
2c2880af6a0b 7187873 graphviz isn't using the right java header files
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents: 800
diff changeset
    48
CPPFLAGS +=	-I$(JAVA_HOME)/include -I$(JAVA_HOME)/include/solaris
457
aa27b836c528 PSARC/2011/269 Graphviz
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    49
# PHP header files (no --with- flag)
aa27b836c528 PSARC/2011/269 Graphviz
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    50
CPPFLAGS +=	$(shell PATH=$(PATH) php-config --includes)
aa27b836c528 PSARC/2011/269 Graphviz
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    51
CXX +=		$(studio_NORUNPATH)
aa27b836c528 PSARC/2011/269 Graphviz
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    52
aa27b836c528 PSARC/2011/269 Graphviz
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    53
CONFIGURE_ENV +=	CPPFLAGS="$(CPPFLAGS)"
aa27b836c528 PSARC/2011/269 Graphviz
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    54
CONFIGURE_ENV +=	PERL=$(PERL)
aa27b836c528 PSARC/2011/269 Graphviz
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    55
CONFIGURE_OPTIONS +=	--without-included-ltdl
aa27b836c528 PSARC/2011/269 Graphviz
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    56
CONFIGURE_OPTIONS +=	--enable-python=no
aa27b836c528 PSARC/2011/269 Graphviz
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    57
CONFIGURE_OPTIONS +=	--enable-python26=yes
706
6e61f0012046 7108059 Userland should have python2.7 version of its python modules
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents: 683
diff changeset
    58
CONFIGURE_OPTIONS +=	--enable-python27=yes
623
15f87c23a86e 7109831 userland pkglint should audit runpaths
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents: 609
diff changeset
    59
CONFIGURE_OPTIONS +=	--x-libraries=$(CONFIGURE_LIBDIR.$(BITS))
457
aa27b836c528 PSARC/2011/269 Graphviz
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    60
aa27b836c528 PSARC/2011/269 Graphviz
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    61
COMPONENT_BUILD_ARGS += 	GREP=/usr/bin/ggrep
aa27b836c528 PSARC/2011/269 Graphviz
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    62
aa27b836c528 PSARC/2011/269 Graphviz
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    63
# common targets
aa27b836c528 PSARC/2011/269 Graphviz
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    64
build:		$(BUILD_32)
aa27b836c528 PSARC/2011/269 Graphviz
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    65
aa27b836c528 PSARC/2011/269 Graphviz
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    66
install:	$(INSTALL_32)
aa27b836c528 PSARC/2011/269 Graphviz
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    67
	env LD_LIBRARY_PATH=$(PROTO_DIR)/usr/lib GVBINDIR=$(PROTO_DIR)/usr/lib/graphviz $(PROTO_DIR)/usr/bin/dot -c
aa27b836c528 PSARC/2011/269 Graphviz
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    68
	$(PYTHON.2.6.32) -m compileall $(PROTO_DIR)/usr/lib/graphviz/python26
706
6e61f0012046 7108059 Userland should have python2.7 version of its python modules
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents: 683
diff changeset
    69
	$(PYTHON.2.7.32) -m compileall $(PROTO_DIR)/usr/lib/graphviz/python27
457
aa27b836c528 PSARC/2011/269 Graphviz
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    70
aa27b836c528 PSARC/2011/269 Graphviz
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    71
# The test infrastructure doesn't run in a VPATHed environment.
aa27b836c528 PSARC/2011/269 Graphviz
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    72
COMPONENT_PRE_TEST_ACTION = \
aa27b836c528 PSARC/2011/269 Graphviz
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    73
	(cd $(@D)/rtest; ln -s $(SOURCE_DIR)/rtest/* .)
aa27b836c528 PSARC/2011/269 Graphviz
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    74
aa27b836c528 PSARC/2011/269 Graphviz
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    75
# There are tests, but they fail consistently because the test samples are out
aa27b836c528 PSARC/2011/269 Graphviz
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    76
# of date and not generated with a known configuration.  See
aa27b836c528 PSARC/2011/269 Graphviz
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    77
# http://graphviz.org/bugs/b2063.html
aa27b836c528 PSARC/2011/269 Graphviz
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    78
test:		$(NO_TESTS)
aa27b836c528 PSARC/2011/269 Graphviz
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    79
aa27b836c528 PSARC/2011/269 Graphviz
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    80
BUILD_PKG_DEPENDENCIES =	$(BUILD_TOOLS)