Makefile revision 299
1N/A#
1N/A# CDDL HEADER START
1N/A#
1N/A# The contents of this file are subject to the terms of the
1N/A# Common Development and Distribution License (the "License").
1N/A# You may not use this file except in compliance with the License.
1N/A#
1N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
1N/A# or http://www.opensolaris.org/os/licensing.
1N/A# See the License for the specific language governing permissions
1N/A# and limitations under the License.
1N/A#
1N/A# When distributing Covered Code, include this CDDL HEADER in each
1N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
1N/A# If applicable, add the following below this CDDL HEADER, with the
1N/A# fields enclosed by brackets "[]" replaced with your own identifying
1N/A# information: Portions Copyright [yyyy] [name of copyright owner]
1N/A#
1N/A# CDDL HEADER END
1N/A#
1N/A# Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved.
1N/A#
1N/A
1N/Ainclude ../../make-rules/shared-macros.mk
1N/A
1N/ACOMPONENT_NAME= wxGTK
1N/ACOMPONENT_VERSION= 2.8.12
1N/ACOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
1N/ACOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
1N/ACOMPONENT_ARCHIVE_HASH= sha1:56cc7f6622dd6f2fecd43fc210dc1c6cb155b37f
1N/ACOMPONENT_ARCHIVE_URL= http://prdownloads.sourceforge.net/wxwindows/$(COMPONENT_ARCHIVE)
1N/ACOMPONENT_PROJECT_URL= http://www.wxwidgets.org
1N/A
1N/Ainclude ../../make-rules/prep.mk
1N/Ainclude ../../make-rules/configure.mk
1N/Ainclude ../../make-rules/ips.mk
1N/A
1N/APKG_PROTO_DIRS += $(COMPONENT_DIR)/man
1N/A
1N/A# We need to compile with /usr/lib/$(MACH64)/glib-2.0
1N/A# https://defect.opensolaris.org/bz/show_bug.cgi?id=9957
1N/A$(BUILD_64): CONFIGURE_OPTIONS += PKG_CONFIG_PATH=/usr/lib/$(MACH64)/pkgconfig
1N/A
1N/A# get rid of compiler path set in RUNPATH
1N/ALDFLAGS += $(studio_NORUNPATH)
1N/ALDFLAGS += $(CC_BITS)
1N/A
1N/ACONFIGURE_OPTIONS += --with-gtk
1N/ACONFIGURE_OPTIONS += --enable-gtk2
1N/ACONFIGURE_OPTIONS += --enable-unicode
1N/ACONFIGURE_OPTIONS += --enable-mimetype
1N/ACONFIGURE_OPTIONS += --enable-gui
1N/ACONFIGURE_OPTIONS += --enable-xrc
1N/ACONFIGURE_OPTIONS += --with-subdirs
1N/ACONFIGURE_OPTIONS += --with-expat
1N/ACONFIGURE_OPTIONS += --with-sdl
1N/ACONFIGURE_OPTIONS += --without-gnomeprint
1N/ACONFIGURE_OPTIONS += --without-gnomevfs
1N/ACONFIGURE_OPTIONS += --with-opengl
1N/ACONFIGURE_OPTIONS += --without-libmpack
1N/ACONFIGURE_OPTIONS += CFLAGS="$(CFLAGS)"
1N/ACONFIGURE_OPTIONS += CXXFLAGS="$(CXXFLAGS)"
1N/ACONFIGURE_OPTIONS += LDFLAGS="$(LDFLAGS)"
1N/A
1N/Ainclude ../../make-rules/shared-targets.mk
1N/A
1N/A# I want to use userland's "build" target in contrib subdirectory, but I need
1N/A# to skip the configure phase
1N/A$(BUILD_DIR_32)/contrib/.configured \
1N/A$(BUILD_DIR_64)/contrib/.configured:
1N/A $(TOUCH) $@
1N/A
1N/A# common targets
1N/Abuild: $(BUILD_32_and_64) \
1N/A $(BUILD_DIR_32)/contrib/.built \
1N/A $(BUILD_DIR_64)/contrib/.built
install: $(INSTALL_32_and_64) \
$(BUILD_DIR_32)/contrib/.installed \
$(BUILD_DIR_64)/contrib/.installed
test: $(NO_TESTS)
BUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS)
include ../../make-rules/depend.mk