Makefile revision 294
d657c51f14601d0235434ffb78cf6ac0f27cc83cLennart Poettering#
31cee6f634ce07aa2c3514a506f93830f91f14a5Lennart Poettering# CDDL HEADER START
31cee6f634ce07aa2c3514a506f93830f91f14a5Lennart Poettering#
31cee6f634ce07aa2c3514a506f93830f91f14a5Lennart Poettering# The contents of this file are subject to the terms of the
31cee6f634ce07aa2c3514a506f93830f91f14a5Lennart Poettering# Common Development and Distribution License (the "License").
31cee6f634ce07aa2c3514a506f93830f91f14a5Lennart Poettering# You may not use this file except in compliance with the License.
31cee6f634ce07aa2c3514a506f93830f91f14a5Lennart Poettering#
31cee6f634ce07aa2c3514a506f93830f91f14a5Lennart Poettering# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
31cee6f634ce07aa2c3514a506f93830f91f14a5Lennart Poettering# or http://www.opensolaris.org/os/licensing.
eb0914fc85812570538c37287dd3cfa377289418Jonathan Boulle# See the License for the specific language governing permissions
eb0914fc85812570538c37287dd3cfa377289418Jonathan Boulle# and limitations under the License.
31cee6f634ce07aa2c3514a506f93830f91f14a5Lennart Poettering#
31cee6f634ce07aa2c3514a506f93830f91f14a5Lennart Poettering# When distributing Covered Code, include this CDDL HEADER in each
eb0914fc85812570538c37287dd3cfa377289418Jonathan Boulle# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
31cee6f634ce07aa2c3514a506f93830f91f14a5Lennart Poettering# If applicable, add the following below this CDDL HEADER, with the
31cee6f634ce07aa2c3514a506f93830f91f14a5Lennart Poettering# fields enclosed by brackets "[]" replaced with your own identifying
31cee6f634ce07aa2c3514a506f93830f91f14a5Lennart Poettering# information: Portions Copyright [yyyy] [name of copyright owner]
31cee6f634ce07aa2c3514a506f93830f91f14a5Lennart Poettering#
31cee6f634ce07aa2c3514a506f93830f91f14a5Lennart Poettering# CDDL HEADER END
31cee6f634ce07aa2c3514a506f93830f91f14a5Lennart Poettering#
31cee6f634ce07aa2c3514a506f93830f91f14a5Lennart Poettering# Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved.
31cee6f634ce07aa2c3514a506f93830f91f14a5Lennart Poettering#
eb0914fc85812570538c37287dd3cfa377289418Jonathan Boulle
31cee6f634ce07aa2c3514a506f93830f91f14a5Lennart Poetteringinclude ../../make-rules/shared-macros.mk
31cee6f634ce07aa2c3514a506f93830f91f14a5Lennart Poettering
5430f7f2bc7330f3088b894166bf3524a067e3d8Lennart PoetteringCOMPONENT_NAME= wxGTK
5430f7f2bc7330f3088b894166bf3524a067e3d8Lennart PoetteringCOMPONENT_VERSION= 2.8.12
5430f7f2bc7330f3088b894166bf3524a067e3d8Lennart PoetteringCOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
31cee6f634ce07aa2c3514a506f93830f91f14a5Lennart PoetteringCOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
673eab9bf0d2d79a72f3d7c430807b8786de7ee3Lennart PoetteringCOMPONENT_ARCHIVE_HASH= sha1:56cc7f6622dd6f2fecd43fc210dc1c6cb155b37f
5430f7f2bc7330f3088b894166bf3524a067e3d8Lennart PoetteringCOMPONENT_ARCHIVE_URL= http://prdownloads.sourceforge.net/wxwindows/$(COMPONENT_ARCHIVE)
a095315b3c31f7a419baceac82c26c3c5ac0cd12Kay SieversCOMPONENT_PROJECT_URL= http://www.wxwidgets.org
a095315b3c31f7a419baceac82c26c3c5ac0cd12Kay Sievers
85424725d1870e2c218e3e2d53971f7e5dc3f0aeKay Sieversinclude ../../make-rules/prep.mk
85424725d1870e2c218e3e2d53971f7e5dc3f0aeKay Sieversinclude ../../make-rules/configure.mk
673eab9bf0d2d79a72f3d7c430807b8786de7ee3Lennart Poetteringinclude ../../make-rules/ips.mk
31cee6f634ce07aa2c3514a506f93830f91f14a5Lennart Poettering
a0c3e16b7bce78c7ce42e18050106f61cfe7a94aLennart PoetteringPKG_PROTO_DIRS += $(COMPONENT_DIR)/man
a0c3e16b7bce78c7ce42e18050106f61cfe7a94aLennart Poettering
23aedd029452b65c11b6eb838e44f60be1c66814Kay Sievers# We need to compile with /usr/lib/$(MACH64)/glib-2.0
23aedd029452b65c11b6eb838e44f60be1c66814Kay Sievers# https://defect.opensolaris.org/bz/show_bug.cgi?id=9957
713bc0cfa477ca1df8769041cb3dbc83c10eace2Kay Sievers$(BUILD_64): CONFIGURE_OPTIONS += PKG_CONFIG_PATH=/usr/lib/$(MACH64)/pkgconfig
d28315e4aff91560ed4c2fc9f876ec8bfc559f2dJan Engelhardt
713bc0cfa477ca1df8769041cb3dbc83c10eace2Kay Sievers# get rid of compiler path set in RUNPATH
713bc0cfa477ca1df8769041cb3dbc83c10eace2Kay SieversLDFLAGS += $(studio_NORUNPATH)
713bc0cfa477ca1df8769041cb3dbc83c10eace2Kay SieversLDFLAGS += $(CC_BITS)
713bc0cfa477ca1df8769041cb3dbc83c10eace2Kay Sievers
41938693e76c32161d2b3b83253ce996468cbf9bKay SieversCONFIGURE_OPTIONS += --with-gtk
713bc0cfa477ca1df8769041cb3dbc83c10eace2Kay SieversCONFIGURE_OPTIONS += --enable-gtk2
06d461ee6f3da6650e6d023d7828455752d70b0bShawn LanddenCONFIGURE_OPTIONS += --enable-unicode
5d31974e44b8fa163f859d8467a3667ed52056d0Kay SieversCONFIGURE_OPTIONS += --enable-mimetype
713bc0cfa477ca1df8769041cb3dbc83c10eace2Kay SieversCONFIGURE_OPTIONS += --enable-gui
be2ea723b1d023b3d385d3b791ee4607cbfb20caKay SieversCONFIGURE_OPTIONS += --enable-xrc
f28cbd0382ca53baa99803bbc907a469fbf68128Kay SieversCONFIGURE_OPTIONS += --with-subdirs
713bc0cfa477ca1df8769041cb3dbc83c10eace2Kay SieversCONFIGURE_OPTIONS += --with-expat
713bc0cfa477ca1df8769041cb3dbc83c10eace2Kay SieversCONFIGURE_OPTIONS += --with-sdl
713bc0cfa477ca1df8769041cb3dbc83c10eace2Kay SieversCONFIGURE_OPTIONS += --without-gnomeprint
713bc0cfa477ca1df8769041cb3dbc83c10eace2Kay SieversCONFIGURE_OPTIONS += --without-gnomevfs
be2ea723b1d023b3d385d3b791ee4607cbfb20caKay SieversCONFIGURE_OPTIONS += --with-opengl
be2ea723b1d023b3d385d3b791ee4607cbfb20caKay SieversCONFIGURE_OPTIONS += --without-libmpack
713bc0cfa477ca1df8769041cb3dbc83c10eace2Kay SieversCONFIGURE_OPTIONS += CFLAGS="$(CFLAGS)"
713bc0cfa477ca1df8769041cb3dbc83c10eace2Kay SieversCONFIGURE_OPTIONS += CXXFLAGS="$(CXXFLAGS)"
713bc0cfa477ca1df8769041cb3dbc83c10eace2Kay SieversCONFIGURE_OPTIONS += LDFLAGS="$(LDFLAGS)"
713bc0cfa477ca1df8769041cb3dbc83c10eace2Kay Sievers
713bc0cfa477ca1df8769041cb3dbc83c10eace2Kay Sieversinclude ../../make-rules/shared-targets.mk
a5c724b25b2930ecb4a64bb4d9b8619a1354afedKay Sievers
a5c724b25b2930ecb4a64bb4d9b8619a1354afedKay Sievers# I want to use userland's "build" target in contrib subdirectory, but I need
a5c724b25b2930ecb4a64bb4d9b8619a1354afedKay Sievers# to skip the configure phase
a5c724b25b2930ecb4a64bb4d9b8619a1354afedKay Sievers$(BUILD_DIR_32)/contrib/.configured \
b52a4a3b05a2a0d69868d57fd54f6e4b8fa0e7caZbigniew Jędrzejewski-Szmek$(BUILD_DIR_64)/contrib/.configured:
13468826f2457cae45a79649e122deadb9dc9774Mike Gilbert $(TOUCH) $@
b52a4a3b05a2a0d69868d57fd54f6e4b8fa0e7caZbigniew Jędrzejewski-Szmek
b52a4a3b05a2a0d69868d57fd54f6e4b8fa0e7caZbigniew Jędrzejewski-Szmek# common targets
b52a4a3b05a2a0d69868d57fd54f6e4b8fa0e7caZbigniew Jędrzejewski-Szmekbuild: $(BUILD_32_and_64) \
13468826f2457cae45a79649e122deadb9dc9774Mike Gilbert $(BUILD_DIR_32)/contrib/.built \
713bc0cfa477ca1df8769041cb3dbc83c10eace2Kay Sievers $(BUILD_DIR_64)/contrib/.built
713bc0cfa477ca1df8769041cb3dbc83c10eace2Kay Sievers
713bc0cfa477ca1df8769041cb3dbc83c10eace2Kay Sieversinstall: $(INSTALL_32_and_64) \
713bc0cfa477ca1df8769041cb3dbc83c10eace2Kay Sievers $(BUILD_DIR_32)/contrib/.installed \
a6cccd8f580fc1e062dba3895e232007acd38781Zbigniew Jędrzejewski-Szmek $(BUILD_DIR_64)/contrib/.installed
f28cbd0382ca53baa99803bbc907a469fbf68128Kay Sievers
3b920d78b4a58dd054917821734cf0aefc6232d0Lennart Poetteringtest: $(NO_TESTS)
713bc0cfa477ca1df8769041cb3dbc83c10eace2Kay Sievers
f4e74be1856b3ac058acbf1be321c31d5299f69fLennart PoetteringBUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS)
a21b4670d404ca4e55fef921f94a4259075882a9Umut Tezduyar Lindskog
a21b4670d404ca4e55fef921f94a4259075882a9Umut Tezduyar Lindskoginclude ../../make-rules/depend.mk
a21b4670d404ca4e55fef921f94a4259075882a9Umut Tezduyar Lindskog