Makefile revision 844
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington#
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington# CDDL HEADER START
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington#
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington# The contents of this file are subject to the terms of the
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington# Common Development and Distribution License (the "License").
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington# You may not use this file except in compliance with the License.
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington#
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington# or http://www.opensolaris.org/os/licensing.
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington# See the License for the specific language governing permissions
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington# and limitations under the License.
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington#
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington# When distributing Covered Code, include this CDDL HEADER in each
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
09ab886382ad9e7149d9b72b4cf9a03ae4a1cddfDavid Lawrence# If applicable, add the following below this CDDL HEADER, with the
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington# fields enclosed by brackets "[]" replaced with your own identifying
d4ef65050feac78554addf6e16a06c6e2e0bd331Brian Wellington# information: Portions Copyright [yyyy] [name of copyright owner]
09ab886382ad9e7149d9b72b4cf9a03ae4a1cddfDavid Lawrence#
09ab886382ad9e7149d9b72b4cf9a03ae4a1cddfDavid Lawrence# CDDL HEADER END
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington#
d4ef65050feac78554addf6e16a06c6e2e0bd331Brian Wellington# Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
09ab886382ad9e7149d9b72b4cf9a03ae4a1cddfDavid Lawrence#
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafsson
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafssoninclude ../../make-rules/shared-macros.mk
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafsson
91216cff91b34c9ff6e846dc23f248219cafe660Andreas GustafssonCOMPONENT_NAME= wxGTK
91216cff91b34c9ff6e846dc23f248219cafe660Andreas GustafssonCOMPONENT_VERSION= 2.8.12
91216cff91b34c9ff6e846dc23f248219cafe660Andreas GustafssonCOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian WellingtonCOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian WellingtonCOMPONENT_ARCHIVE_HASH= \
e4757e3dafe50ae59f693eec828f68c42c197a70Andreas Gustafsson sha256:13cf89f2c29bcb90bb56a31ac1af10f23003d3d43c3e4b24991518f5dc4e5abe
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian WellingtonCOMPONENT_ARCHIVE_URL= http://prdownloads.sourceforge.net/wxwindows/$(COMPONENT_ARCHIVE)
f9d068745ddfeb513db6184d9dddde835bed42d4Andreas GustafssonCOMPONENT_PROJECT_URL= http://www.wxwidgets.org/
e4757e3dafe50ae59f693eec828f68c42c197a70Andreas Gustafsson
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellingtoninclude ../../make-rules/prep.mk
e4757e3dafe50ae59f693eec828f68c42c197a70Andreas Gustafssoninclude ../../make-rules/configure.mk
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellingtoninclude ../../make-rules/ips.mk
f9d068745ddfeb513db6184d9dddde835bed42d4Andreas Gustafsson
e4757e3dafe50ae59f693eec828f68c42c197a70Andreas GustafssonPKG_PROTO_DIRS += $(COMPONENT_DIR)/man
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington# We need to compile with /usr/lib/$(MACH64)/glib-2.0
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafsson# https://defect.opensolaris.org/bz/show_bug.cgi?id=9957
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafsson$(BUILD_64): CONFIGURE_OPTIONS += PKG_CONFIG_PATH=/usr/lib/$(MACH64)/pkgconfig
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafsson
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafsson# get rid of compiler path set in RUNPATH
91216cff91b34c9ff6e846dc23f248219cafe660Andreas GustafssonLDFLAGS += $(studio_NORUNPATH)
91216cff91b34c9ff6e846dc23f248219cafe660Andreas GustafssonLDFLAGS += $(CC_BITS)
91216cff91b34c9ff6e846dc23f248219cafe660Andreas GustafssonLDFLAGS += $(studio_CXXLIB_CSTD)
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafsson
91216cff91b34c9ff6e846dc23f248219cafe660Andreas GustafssonCXXFLAGS += $(studio_XREGS)
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian WellingtonCONFIGURE_OPTIONS += --with-gtk
09ab886382ad9e7149d9b72b4cf9a03ae4a1cddfDavid LawrenceCONFIGURE_OPTIONS += --enable-gtk2
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian WellingtonCONFIGURE_OPTIONS += --enable-unicode
d4ef65050feac78554addf6e16a06c6e2e0bd331Brian WellingtonCONFIGURE_OPTIONS += --enable-mimetype
09ab886382ad9e7149d9b72b4cf9a03ae4a1cddfDavid LawrenceCONFIGURE_OPTIONS += --enable-gui
09ab886382ad9e7149d9b72b4cf9a03ae4a1cddfDavid LawrenceCONFIGURE_OPTIONS += --enable-xrc
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian WellingtonCONFIGURE_OPTIONS += --with-subdirs
d4ef65050feac78554addf6e16a06c6e2e0bd331Brian WellingtonCONFIGURE_OPTIONS += --with-expat
09ab886382ad9e7149d9b72b4cf9a03ae4a1cddfDavid LawrenceCONFIGURE_OPTIONS += --with-sdl
09ab886382ad9e7149d9b72b4cf9a03ae4a1cddfDavid LawrenceCONFIGURE_OPTIONS += --without-gnomeprint
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian WellingtonCONFIGURE_OPTIONS += --without-gnomevfs
d4ef65050feac78554addf6e16a06c6e2e0bd331Brian WellingtonCONFIGURE_OPTIONS += --with-opengl
09ab886382ad9e7149d9b72b4cf9a03ae4a1cddfDavid LawrenceCONFIGURE_OPTIONS += --without-libmpack
09ab886382ad9e7149d9b72b4cf9a03ae4a1cddfDavid LawrenceCONFIGURE_OPTIONS += CFLAGS="$(CFLAGS)"
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian WellingtonCONFIGURE_OPTIONS += CXXFLAGS="$(CXXFLAGS)"
d4ef65050feac78554addf6e16a06c6e2e0bd331Brian WellingtonCONFIGURE_OPTIONS += LDFLAGS="$(LDFLAGS)"
09ab886382ad9e7149d9b72b4cf9a03ae4a1cddfDavid Lawrence
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellingtoninclude ../../make-rules/shared-targets.mk
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafsson# I want to use userland's "build" target in contrib subdirectory, but I need
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafsson# to skip the configure phase
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafsson$(BUILD_DIR_32)/contrib/.configured \
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafsson$(BUILD_DIR_64)/contrib/.configured:
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafsson $(TOUCH) $@
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafsson
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafsson# common targets
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafssonbuild: $(BUILD_32_and_64) \
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafsson $(BUILD_DIR_32)/contrib/.built \
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafsson $(BUILD_DIR_64)/contrib/.built
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafsson
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafssoninstall: $(INSTALL_32_and_64) \
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafsson $(BUILD_DIR_32)/contrib/.installed \
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafsson $(BUILD_DIR_64)/contrib/.installed
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellingtontest: $(NO_TESTS)
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian WellingtonBUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS)
90c099e88e9f16bfee9edee3ac1a51fc98843772Brian Wellington
d4ef65050feac78554addf6e16a06c6e2e0bd331Brian Wellingtoninclude ../../make-rules/depend.mk
d4ef65050feac78554addf6e16a06c6e2e0bd331Brian Wellington