bison: change to new library paths
[unleashed-userland.git] / components / developer / bison / Makefile
blob7ed75f9c876a9cd496c768ddab4dd13a4bda48e6
2 # CDDL HEADER START
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.
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.
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]
19 # CDDL HEADER END
23 # Copyright (c) 2011, 2013, Oracle and/or its affiliates. All rights reserved.
26 include ../../../make-rules/shared-macros.mk
28 COMPONENT_NAME= bison
29 COMPONENT_VERSION= 3.0.4
30 COMPONENT_PROJECT_URL= http://www.gnu.org/software/bison/
31 COMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
32 COMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
33 COMPONENT_ARCHIVE_HASH= \
34 sha256:b67fd2daae7a64b5ba862c66c07c1addb9e6b1b05c5f2049392cfd8a2172952e
35 COMPONENT_ARCHIVE_URL= http://ftp.gnu.org/gnu/bison/$(COMPONENT_ARCHIVE)
36 COMPONENT_BUGDB= utility/bison
38 include $(WS_TOP)/make-rules/prep.mk
39 include $(WS_TOP)/make-rules/configure.mk
40 include $(WS_TOP)/make-rules/ips.mk
42 CONFIGURE_LIBDIR.32 = $(GNULIB)/$(MACH32)
43 CONFIGURE_LIBDIR.64 = $(GNULIB)
45 CONFIGURE_OPTIONS += --infodir=$(CONFIGURE_INFODIR)
46 CONFIGURE_OPTIONS += --disable-silent-rules
48 # the shared library we create needs to be built pic
49 COMPONENT_BUILD_ARGS += CC_PIC="$(CC_PIC)"
51 # this is cheesy but the tests don't seem to
52 # get compiled with the CFLAGS we built bison
53 # with, so they are 32-bit otherwise.
54 CONFIGURE_OPTIONS += WARN_CXXFLAGS_TEST="$(CFLAGS)"
56 CONFIGURE_ENV += M4="/usr/gnu/bin/m4"
58 COMPONENT_TEST_MASTER = $(COMPONENT_TEST_RESULTS_DIR)/results-all.master
60 # Strip compilation lines from test output
61 # and strange backslash lines. and random output,
62 # including rm complaints over nfs
63 COMPONENT_TEST_TRANSFORMS += \
64 '-e "s|^.*$(CC).*$$|XXX_CC_XXX|g" ' \
65 '-e "s|^.*$(CXX).*$$|XXX_CC_XXX|g" ' \
66 '-e "s|^.*source=.*libtool=no.*$$|XXX_CC_XXX|g" ' \
67 '-e "s|^.*DEPDIR=.deps.*$$|XXX_CC_XXX|g" ' \
68 '-e "s|^config.status: .*$$|XXX_CC_XXX|g" ' \
69 '-e "s|^make.*: Leaving directory.*$$|XXX_CC_XXX|g" ' \
70 '-e "s|^make.*: Entering directory.*$$|XXX_CC_XXX|g" ' \
71 '-e "s|^make.*: Nothing to be done for.*$$|XXX_CC_XXX|g" ' \
72 '-e "s|^make.*: .*is up to date.*$$|XXX_CC_XXX|g" ' \
73 '-e "s|^mv -f.*$$|XXX_CC_XXX|g" ' \
74 '-e "s|^.$$|XXX_CC_XXX|g" ' \
75 '-e "s|^updating examples.*$$|XXX_CC_XXX|g" ' \
76 '-e "s|.*build-aux/ylwrap.*$$|XXX_CC_XXX|g" ' \
77 '-e "s|.*examples/calc++/calc++-parser.stamp.*$$|XXX_CC_XXX|g" ' \
78 '-e "s|.*tests/bison -o y.tab.c.*$$|XXX_CC_XXX|g" ' \
79 '-e "s|^rm:.*directory renamed.*$$|XXX_CC_XXX|g" ' \
80 '-e "/^XXX_CC_XXX$$/d" '
82 $(INSTALL_32): $(INSTALL_64)
84 # common targets
85 build: $(BUILD_32_and_64)
87 install: $(INSTALL_32_and_64)
89 test: $(TEST_32_and_64)
91 REQUIRED_PACKAGES += developer/macro/gnu-m4
92 REQUIRED_PACKAGES += system/library