Makefile revision 1124
59dfe8e19f0909aa31ff10f1f003344fc620c1c5sascha#
59dfe8e19f0909aa31ff10f1f003344fc620c1c5sascha# CDDL HEADER START
59dfe8e19f0909aa31ff10f1f003344fc620c1c5sascha#
59dfe8e19f0909aa31ff10f1f003344fc620c1c5sascha# The contents of this file are subject to the terms of the
59dfe8e19f0909aa31ff10f1f003344fc620c1c5sascha# Common Development and Distribution License (the "License").
59dfe8e19f0909aa31ff10f1f003344fc620c1c5sascha# You may not use this file except in compliance with the License.
59dfe8e19f0909aa31ff10f1f003344fc620c1c5sascha#
59dfe8e19f0909aa31ff10f1f003344fc620c1c5sascha# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
59dfe8e19f0909aa31ff10f1f003344fc620c1c5sascha# or http://www.opensolaris.org/os/licensing.
59dfe8e19f0909aa31ff10f1f003344fc620c1c5sascha# See the License for the specific language governing permissions
59dfe8e19f0909aa31ff10f1f003344fc620c1c5sascha# and limitations under the License.
59dfe8e19f0909aa31ff10f1f003344fc620c1c5sascha#
59dfe8e19f0909aa31ff10f1f003344fc620c1c5sascha# When distributing Covered Code, include this CDDL HEADER in each
59dfe8e19f0909aa31ff10f1f003344fc620c1c5sascha# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
59dfe8e19f0909aa31ff10f1f003344fc620c1c5sascha# If applicable, add the following below this CDDL HEADER, with the
59dfe8e19f0909aa31ff10f1f003344fc620c1c5sascha# fields enclosed by brackets "[]" replaced with your own identifying
6ca0e6973c8176100f4a426444823ae5e777e28fsascha# information: Portions Copyright [yyyy] [name of copyright owner]
6ca0e6973c8176100f4a426444823ae5e777e28fsascha#
6ca0e6973c8176100f4a426444823ae5e777e28fsascha# CDDL HEADER END
6ca0e6973c8176100f4a426444823ae5e777e28fsascha#
6ca0e6973c8176100f4a426444823ae5e777e28fsascha# Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
6ca0e6973c8176100f4a426444823ae5e777e28fsascha#
6ca0e6973c8176100f4a426444823ae5e777e28fsascha
6ca0e6973c8176100f4a426444823ae5e777e28fsaschainclude ../../make-rules/shared-macros.mk
6ca0e6973c8176100f4a426444823ae5e777e28fsascha
6ca0e6973c8176100f4a426444823ae5e777e28fsaschaCOMPONENT_NAME= wxGTK
6ca0e6973c8176100f4a426444823ae5e777e28fsaschaCOMPONENT_VERSION= 2.8.12
6ca0e6973c8176100f4a426444823ae5e777e28fsaschaCOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
6ca0e6973c8176100f4a426444823ae5e777e28fsaschaCOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
6ca0e6973c8176100f4a426444823ae5e777e28fsaschaCOMPONENT_ARCHIVE_HASH= \
6ca0e6973c8176100f4a426444823ae5e777e28fsascha sha256:13cf89f2c29bcb90bb56a31ac1af10f23003d3d43c3e4b24991518f5dc4e5abe
6ca0e6973c8176100f4a426444823ae5e777e28fsaschaCOMPONENT_ARCHIVE_URL= http://prdownloads.sourceforge.net/wxwindows/$(COMPONENT_ARCHIVE)
6ca0e6973c8176100f4a426444823ae5e777e28fsaschaCOMPONENT_PROJECT_URL= http://www.wxwidgets.org/
6ca0e6973c8176100f4a426444823ae5e777e28fsascha
6ca0e6973c8176100f4a426444823ae5e777e28fsaschainclude ../../make-rules/prep.mk
6ca0e6973c8176100f4a426444823ae5e777e28fsaschainclude ../../make-rules/configure.mk
6ca0e6973c8176100f4a426444823ae5e777e28fsaschainclude ../../make-rules/ips.mk
6ca0e6973c8176100f4a426444823ae5e777e28fsascha
6ca0e6973c8176100f4a426444823ae5e777e28fsaschaPKG_PROTO_DIRS += $(COMPONENT_DIR)/man
6ca0e6973c8176100f4a426444823ae5e777e28fsascha
6ca0e6973c8176100f4a426444823ae5e777e28fsascha# We need to compile with /usr/lib/$(MACH64)/glib-2.0
6ca0e6973c8176100f4a426444823ae5e777e28fsascha# https://defect.opensolaris.org/bz/show_bug.cgi?id=9957
6ca0e6973c8176100f4a426444823ae5e777e28fsascha$(BUILD_64): CONFIGURE_OPTIONS += PKG_CONFIG_PATH=/usr/lib/$(MACH64)/pkgconfig
6ca0e6973c8176100f4a426444823ae5e777e28fsascha
22ad84685642948ad15cc1e881ecbc4ac8cbf98cmanoj# get rid of compiler path set in RUNPATH
6ca0e6973c8176100f4a426444823ae5e777e28fsaschaLDFLAGS += $(studio_NORUNPATH)
22ad84685642948ad15cc1e881ecbc4ac8cbf98cmanojLDFLAGS += $(CC_BITS)
6ca0e6973c8176100f4a426444823ae5e777e28fsaschaLDFLAGS += $(studio_CXXLIB_CSTD)
6ca0e6973c8176100f4a426444823ae5e777e28fsascha
6ca0e6973c8176100f4a426444823ae5e777e28fsaschaCXXFLAGS += $(studio_XREGS)
6ca0e6973c8176100f4a426444823ae5e777e28fsascha
3a47c2ef905c3b6483279637fb8054ca67c5b6ddsaschaCONFIGURE_OPTIONS += --with-gtk
3a47c2ef905c3b6483279637fb8054ca67c5b6ddsaschaCONFIGURE_OPTIONS += --enable-gtk2
3a47c2ef905c3b6483279637fb8054ca67c5b6ddsaschaCONFIGURE_OPTIONS += --enable-unicode
6ca0e6973c8176100f4a426444823ae5e777e28fsaschaCONFIGURE_OPTIONS += --enable-mimetype
6ca0e6973c8176100f4a426444823ae5e777e28fsaschaCONFIGURE_OPTIONS += --enable-gui
6ca0e6973c8176100f4a426444823ae5e777e28fsaschaCONFIGURE_OPTIONS += --enable-xrc
6ca0e6973c8176100f4a426444823ae5e777e28fsaschaCONFIGURE_OPTIONS += --with-subdirs
6ca0e6973c8176100f4a426444823ae5e777e28fsaschaCONFIGURE_OPTIONS += --with-expat
6ca0e6973c8176100f4a426444823ae5e777e28fsaschaCONFIGURE_OPTIONS += --with-sdl
6ca0e6973c8176100f4a426444823ae5e777e28fsaschaCONFIGURE_OPTIONS += --without-gnomeprint
6ca0e6973c8176100f4a426444823ae5e777e28fsaschaCONFIGURE_OPTIONS += --without-gnomevfs
6ca0e6973c8176100f4a426444823ae5e777e28fsaschaCONFIGURE_OPTIONS += --with-opengl
6ca0e6973c8176100f4a426444823ae5e777e28fsaschaCONFIGURE_OPTIONS += --without-libmpack
12b0070d002520b81a273ae892b9ea08e810b123rbbCONFIGURE_OPTIONS += CFLAGS="$(CFLAGS)"
6ca0e6973c8176100f4a426444823ae5e777e28fsaschaCONFIGURE_OPTIONS += CXXFLAGS="$(CXXFLAGS)"
6ca0e6973c8176100f4a426444823ae5e777e28fsaschaCONFIGURE_OPTIONS += LDFLAGS="$(LDFLAGS)"
6ca0e6973c8176100f4a426444823ae5e777e28fsascha
6ca0e6973c8176100f4a426444823ae5e777e28fsaschainclude ../../make-rules/shared-targets.mk
7bfe076b680e6e591add6cdc754ce9a6910682a2sascha
7bfe076b680e6e591add6cdc754ce9a6910682a2sascha# I want to use userland's "build" target in contrib subdirectory, but I need
f07a80771bc5d30b1e0cfcb7256c1a302da77675rbb# to skip the configure phase
6ca0e6973c8176100f4a426444823ae5e777e28fsascha$(BUILD_DIR_32)/contrib/.configured \
6ca0e6973c8176100f4a426444823ae5e777e28fsascha$(BUILD_DIR_64)/contrib/.configured:
6ca0e6973c8176100f4a426444823ae5e777e28fsascha $(TOUCH) $@
6ca0e6973c8176100f4a426444823ae5e777e28fsascha
6ca0e6973c8176100f4a426444823ae5e777e28fsascha# common targets
6ca0e6973c8176100f4a426444823ae5e777e28fsaschabuild: $(BUILD_32_and_64) \
6ca0e6973c8176100f4a426444823ae5e777e28fsascha $(BUILD_DIR_32)/contrib/.built \
6ca0e6973c8176100f4a426444823ae5e777e28fsascha $(BUILD_DIR_64)/contrib/.built
6ca0e6973c8176100f4a426444823ae5e777e28fsascha
6ca0e6973c8176100f4a426444823ae5e777e28fsaschainstall: $(INSTALL_32_and_64) \
6ca0e6973c8176100f4a426444823ae5e777e28fsascha $(BUILD_DIR_32)/contrib/.installed \
6ca0e6973c8176100f4a426444823ae5e777e28fsascha $(BUILD_DIR_64)/contrib/.installed
6ca0e6973c8176100f4a426444823ae5e777e28fsascha
6ca0e6973c8176100f4a426444823ae5e777e28fsaschatest: $(NO_TESTS)
3a47c2ef905c3b6483279637fb8054ca67c5b6ddsascha
3a47c2ef905c3b6483279637fb8054ca67c5b6ddsaschaBUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS)
3a47c2ef905c3b6483279637fb8054ca67c5b6ddsascha
3a47c2ef905c3b6483279637fb8054ca67c5b6ddsaschainclude ../../make-rules/depend.mk
3a47c2ef905c3b6483279637fb8054ca67c5b6ddsascha