commit | author | age
|
c43ae4
|
1 |
# |
VM |
2 |
# CDDL HEADER START |
|
3 |
# |
|
4 |
# The contents of this file are subject to the terms of the |
|
5 |
# Common Development and Distribution License (the "License"). |
|
6 |
# You may not use this file except in compliance with the License. |
|
7 |
# |
|
8 |
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE |
|
9 |
# or http://www.opensolaris.org/os/licensing. |
|
10 |
# See the License for the specific language governing permissions |
|
11 |
# and limitations under the License. |
|
12 |
# |
|
13 |
# When distributing Covered Code, include this CDDL HEADER in each |
|
14 |
# file and include the License file at usr/src/OPENSOLARIS.LICENSE. |
|
15 |
# If applicable, add the following below this CDDL HEADER, with the |
|
16 |
# fields enclosed by brackets "[]" replaced with your own identifying |
|
17 |
# information: Portions Copyright [yyyy] [name of copyright owner] |
|
18 |
# |
|
19 |
# CDDL HEADER END |
|
20 |
# |
6ade7c
|
21 |
# Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved. |
c43ae4
|
22 |
# |
VM |
23 |
|
|
24 |
include ../../make-rules/shared-macros.mk |
|
25 |
|
e24028
|
26 |
COMPONENT_NAME= wxwidgets |
5a9b14
|
27 |
COMPONENT_VERSION= 2.8.12 |
e24028
|
28 |
COMPONENT_SRC_NAME= wxGTK |
RB |
29 |
COMPONENT_SRC= $(COMPONENT_SRC_NAME)-$(COMPONENT_VERSION) |
c43ae4
|
30 |
COMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz |
35e110
|
31 |
COMPONENT_ARCHIVE_HASH= \ |
MS |
32 |
sha256:13cf89f2c29bcb90bb56a31ac1af10f23003d3d43c3e4b24991518f5dc4e5abe |
c43ae4
|
33 |
COMPONENT_ARCHIVE_URL= http://prdownloads.sourceforge.net/wxwindows/$(COMPONENT_ARCHIVE) |
60e6e0
|
34 |
COMPONENT_PROJECT_URL= http://www.wxwidgets.org/ |
c43ae4
|
35 |
|
VM |
36 |
include ../../make-rules/prep.mk |
|
37 |
include ../../make-rules/configure.mk |
|
38 |
include ../../make-rules/ips.mk |
|
39 |
|
|
40 |
PKG_PROTO_DIRS += $(COMPONENT_DIR)/man |
|
41 |
|
|
42 |
# We need to compile with /usr/lib/$(MACH64)/glib-2.0 |
|
43 |
# https://defect.opensolaris.org/bz/show_bug.cgi?id=9957 |
|
44 |
$(BUILD_64): CONFIGURE_OPTIONS += PKG_CONFIG_PATH=/usr/lib/$(MACH64)/pkgconfig |
|
45 |
|
|
46 |
# get rid of compiler path set in RUNPATH |
|
47 |
LDFLAGS += $(studio_NORUNPATH) |
|
48 |
LDFLAGS += $(CC_BITS) |
6ade7c
|
49 |
LDFLAGS += $(studio_CXXLIB_CSTD) |
c43ae4
|
50 |
|
15d3df
|
51 |
CXXFLAGS += $(studio_XREGS) |
MS |
52 |
|
c43ae4
|
53 |
CONFIGURE_OPTIONS += --with-gtk |
VM |
54 |
CONFIGURE_OPTIONS += --enable-gtk2 |
|
55 |
CONFIGURE_OPTIONS += --enable-unicode |
|
56 |
CONFIGURE_OPTIONS += --enable-mimetype |
|
57 |
CONFIGURE_OPTIONS += --enable-gui |
|
58 |
CONFIGURE_OPTIONS += --enable-xrc |
|
59 |
CONFIGURE_OPTIONS += --with-subdirs |
|
60 |
CONFIGURE_OPTIONS += --with-expat |
|
61 |
CONFIGURE_OPTIONS += --with-sdl |
|
62 |
CONFIGURE_OPTIONS += --without-gnomeprint |
|
63 |
CONFIGURE_OPTIONS += --without-gnomevfs |
|
64 |
CONFIGURE_OPTIONS += --with-opengl |
|
65 |
CONFIGURE_OPTIONS += --without-libmpack |
|
66 |
CONFIGURE_OPTIONS += CFLAGS="$(CFLAGS)" |
|
67 |
CONFIGURE_OPTIONS += CXXFLAGS="$(CXXFLAGS)" |
|
68 |
CONFIGURE_OPTIONS += LDFLAGS="$(LDFLAGS)" |
|
69 |
|
|
70 |
include ../../make-rules/shared-targets.mk |
|
71 |
|
|
72 |
# I want to use userland's "build" target in contrib subdirectory, but I need |
|
73 |
# to skip the configure phase |
|
74 |
$(BUILD_DIR_32)/contrib/.configured \ |
|
75 |
$(BUILD_DIR_64)/contrib/.configured: |
|
76 |
$(TOUCH) $@ |
|
77 |
|
|
78 |
# common targets |
|
79 |
build: $(BUILD_32_and_64) \ |
|
80 |
$(BUILD_DIR_32)/contrib/.built \ |
|
81 |
$(BUILD_DIR_64)/contrib/.built |
|
82 |
|
|
83 |
install: $(INSTALL_32_and_64) \ |
|
84 |
$(BUILD_DIR_32)/contrib/.installed \ |
|
85 |
$(BUILD_DIR_64)/contrib/.installed |
|
86 |
|
|
87 |
test: $(NO_TESTS) |
|
88 |
|
|
89 |
BUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS) |
|
90 |
|
|
91 |
include ../../make-rules/depend.mk |