Makefile revision 1258
cc003103e52ff9d5fe9bed567ef9438613ab4fbfrse#
cc003103e52ff9d5fe9bed567ef9438613ab4fbfrse# CDDL HEADER START
cc003103e52ff9d5fe9bed567ef9438613ab4fbfrse#
cc003103e52ff9d5fe9bed567ef9438613ab4fbfrse# The contents of this file are subject to the terms of the
cc003103e52ff9d5fe9bed567ef9438613ab4fbfrse# Common Development and Distribution License (the "License").
cc003103e52ff9d5fe9bed567ef9438613ab4fbfrse# You may not use this file except in compliance with the License.
cc003103e52ff9d5fe9bed567ef9438613ab4fbfrse#
cc003103e52ff9d5fe9bed567ef9438613ab4fbfrse# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
cc003103e52ff9d5fe9bed567ef9438613ab4fbfrse# or http://www.opensolaris.org/os/licensing.
cc003103e52ff9d5fe9bed567ef9438613ab4fbfrse# See the License for the specific language governing permissions
cc003103e52ff9d5fe9bed567ef9438613ab4fbfrse# and limitations under the License.
d86ef5503dcbc38e87c0e03cd3e1f16458cb6323rse#
d86ef5503dcbc38e87c0e03cd3e1f16458cb6323rse# When distributing Covered Code, include this CDDL HEADER in each
bc8fd1b0b1afdf89b8d28eefa8cd74e26ba97986fielding# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
d86ef5503dcbc38e87c0e03cd3e1f16458cb6323rse# If applicable, add the following below this CDDL HEADER, with the
cc003103e52ff9d5fe9bed567ef9438613ab4fbfrse# fields enclosed by brackets "[]" replaced with your own identifying
cc003103e52ff9d5fe9bed567ef9438613ab4fbfrse# information: Portions Copyright [yyyy] [name of copyright owner]
cc003103e52ff9d5fe9bed567ef9438613ab4fbfrse#
cc003103e52ff9d5fe9bed567ef9438613ab4fbfrse# CDDL HEADER END
cc003103e52ff9d5fe9bed567ef9438613ab4fbfrse#
cc003103e52ff9d5fe9bed567ef9438613ab4fbfrse# Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
cc003103e52ff9d5fe9bed567ef9438613ab4fbfrse#
cc003103e52ff9d5fe9bed567ef9438613ab4fbfrse
cc003103e52ff9d5fe9bed567ef9438613ab4fbfrseinclude ../../make-rules/shared-macros.mk
d86ef5503dcbc38e87c0e03cd3e1f16458cb6323rse
d86ef5503dcbc38e87c0e03cd3e1f16458cb6323rseCOMPONENT_NAME= wxwidgets
d86ef5503dcbc38e87c0e03cd3e1f16458cb6323rseCOMPONENT_VERSION= 2.8.12
cc003103e52ff9d5fe9bed567ef9438613ab4fbfrseCOMPONENT_SRC_NAME= wxGTK
d86ef5503dcbc38e87c0e03cd3e1f16458cb6323rseCOMPONENT_SRC= $(COMPONENT_SRC_NAME)-$(COMPONENT_VERSION)
d86ef5503dcbc38e87c0e03cd3e1f16458cb6323rseCOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
d86ef5503dcbc38e87c0e03cd3e1f16458cb6323rseCOMPONENT_ARCHIVE_HASH= \
d86ef5503dcbc38e87c0e03cd3e1f16458cb6323rse sha256:13cf89f2c29bcb90bb56a31ac1af10f23003d3d43c3e4b24991518f5dc4e5abe
d86ef5503dcbc38e87c0e03cd3e1f16458cb6323rseCOMPONENT_ARCHIVE_URL= http://prdownloads.sourceforge.net/wxwindows/$(COMPONENT_ARCHIVE)
d86ef5503dcbc38e87c0e03cd3e1f16458cb6323rseCOMPONENT_PROJECT_URL= http://www.wxwidgets.org/
cc003103e52ff9d5fe9bed567ef9438613ab4fbfrseCOMPONENT_BUGDB= library/wxwidgets
d86ef5503dcbc38e87c0e03cd3e1f16458cb6323rse
d86ef5503dcbc38e87c0e03cd3e1f16458cb6323rseinclude ../../make-rules/prep.mk
d86ef5503dcbc38e87c0e03cd3e1f16458cb6323rseinclude ../../make-rules/configure.mk
d86ef5503dcbc38e87c0e03cd3e1f16458cb6323rseinclude ../../make-rules/ips.mk
cc003103e52ff9d5fe9bed567ef9438613ab4fbfrse
d86ef5503dcbc38e87c0e03cd3e1f16458cb6323rsePKG_PROTO_DIRS += $(COMPONENT_DIR)/man
d86ef5503dcbc38e87c0e03cd3e1f16458cb6323rse
d86ef5503dcbc38e87c0e03cd3e1f16458cb6323rse# We need to compile with /usr/lib/$(MACH64)/glib-2.0
cc003103e52ff9d5fe9bed567ef9438613ab4fbfrse# https://defect.opensolaris.org/bz/show_bug.cgi?id=9957
d86ef5503dcbc38e87c0e03cd3e1f16458cb6323rse$(BUILD_64): CONFIGURE_OPTIONS += PKG_CONFIG_PATH=/usr/lib/$(MACH64)/pkgconfig
d86ef5503dcbc38e87c0e03cd3e1f16458cb6323rse
d86ef5503dcbc38e87c0e03cd3e1f16458cb6323rse# get rid of compiler path set in RUNPATH
d86ef5503dcbc38e87c0e03cd3e1f16458cb6323rseLDFLAGS += $(studio_NORUNPATH)
d86ef5503dcbc38e87c0e03cd3e1f16458cb6323rseLDFLAGS += $(CC_BITS)
d86ef5503dcbc38e87c0e03cd3e1f16458cb6323rseLDFLAGS += $(studio_CXXLIB_CSTD)
d86ef5503dcbc38e87c0e03cd3e1f16458cb6323rse
d86ef5503dcbc38e87c0e03cd3e1f16458cb6323rseCXXFLAGS += $(studio_XREGS)
d86ef5503dcbc38e87c0e03cd3e1f16458cb6323rse
d86ef5503dcbc38e87c0e03cd3e1f16458cb6323rseCONFIGURE_OPTIONS += --with-gtk
d86ef5503dcbc38e87c0e03cd3e1f16458cb6323rseCONFIGURE_OPTIONS += --enable-gtk2
d86ef5503dcbc38e87c0e03cd3e1f16458cb6323rseCONFIGURE_OPTIONS += --enable-unicode
cc003103e52ff9d5fe9bed567ef9438613ab4fbfrseCONFIGURE_OPTIONS += --enable-mimetype
cc003103e52ff9d5fe9bed567ef9438613ab4fbfrseCONFIGURE_OPTIONS += --enable-gui
cc003103e52ff9d5fe9bed567ef9438613ab4fbfrseCONFIGURE_OPTIONS += --enable-xrc
cc003103e52ff9d5fe9bed567ef9438613ab4fbfrseCONFIGURE_OPTIONS += --with-subdirs
cc003103e52ff9d5fe9bed567ef9438613ab4fbfrseCONFIGURE_OPTIONS += --with-expat
cc003103e52ff9d5fe9bed567ef9438613ab4fbfrseCONFIGURE_OPTIONS += --with-sdl
6ace32dacb8313226eb9019275d0e4fa45a15148rseCONFIGURE_OPTIONS += --without-gnomeprint
cc003103e52ff9d5fe9bed567ef9438613ab4fbfrseCONFIGURE_OPTIONS += --without-gnomevfs
cc003103e52ff9d5fe9bed567ef9438613ab4fbfrseCONFIGURE_OPTIONS += --with-opengl
cc003103e52ff9d5fe9bed567ef9438613ab4fbfrseCONFIGURE_OPTIONS += --without-libmpack
cc003103e52ff9d5fe9bed567ef9438613ab4fbfrseCONFIGURE_OPTIONS += CFLAGS="$(CFLAGS)"
cc003103e52ff9d5fe9bed567ef9438613ab4fbfrseCONFIGURE_OPTIONS += CXXFLAGS="$(CXXFLAGS)"
cc003103e52ff9d5fe9bed567ef9438613ab4fbfrseCONFIGURE_OPTIONS += LDFLAGS="$(LDFLAGS)"
cc003103e52ff9d5fe9bed567ef9438613ab4fbfrse
36dbb76eaf57ba9bc273970cc43d838b3e9582ffdougminclude ../../make-rules/shared-targets.mk
36dbb76eaf57ba9bc273970cc43d838b3e9582ffdougm
36dbb76eaf57ba9bc273970cc43d838b3e9582ffdougm# I want to use userland's "build" target in contrib subdirectory, but I need
cc003103e52ff9d5fe9bed567ef9438613ab4fbfrse# to skip the configure phase
bfd35b329124266ebdab96567241bea57f2e8481dougm$(BUILD_DIR_32)/contrib/.configured \
36dbb76eaf57ba9bc273970cc43d838b3e9582ffdougm$(BUILD_DIR_64)/contrib/.configured:
36dbb76eaf57ba9bc273970cc43d838b3e9582ffdougm $(TOUCH) $@
36dbb76eaf57ba9bc273970cc43d838b3e9582ffdougm
bfd35b329124266ebdab96567241bea57f2e8481dougm# common targets
cc003103e52ff9d5fe9bed567ef9438613ab4fbfrsebuild: $(BUILD_32_and_64) \
efa08028291cb1021426d24da2768e110fd16299dougm $(BUILD_DIR_32)/contrib/.built \
efa08028291cb1021426d24da2768e110fd16299dougm $(BUILD_DIR_64)/contrib/.built
efa08028291cb1021426d24da2768e110fd16299dougm
efa08028291cb1021426d24da2768e110fd16299dougminstall: $(INSTALL_32_and_64) \
efa08028291cb1021426d24da2768e110fd16299dougm $(BUILD_DIR_32)/contrib/.installed \
efa08028291cb1021426d24da2768e110fd16299dougm $(BUILD_DIR_64)/contrib/.installed
efa08028291cb1021426d24da2768e110fd16299dougm
bfd35b329124266ebdab96567241bea57f2e8481dougmtest: $(NO_TESTS)
bfd35b329124266ebdab96567241bea57f2e8481dougm
efa08028291cb1021426d24da2768e110fd16299dougmBUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS)
efa08028291cb1021426d24da2768e110fd16299dougm
efa08028291cb1021426d24da2768e110fd16299dougminclude ../../make-rules/depend.mk
efa08028291cb1021426d24da2768e110fd16299dougm