summaryrefslogtreecommitdiffstats
path: root/rules/wxWindows.make
diff options
context:
space:
mode:
authorMarc Kleine-Budde <mkl@pengutronix.de>2003-10-23 15:01:19 +0000
committerMarc Kleine-Budde <mkl@pengutronix.de>2003-10-23 15:01:19 +0000
commita8ad8f5b6429e82b659f2f11548f68bcb353b00a (patch)
tree2dbd95fd14619c038a721d6414ada33a256caeb9 /rules/wxWindows.make
parent091ef762efcd334a15a7785fbf82e2c393d665ec (diff)
downloadptxdist-a8ad8f5b6429e82b659f2f11548f68bcb353b00a.tar.gz
ptxdist-a8ad8f5b6429e82b659f2f11548f68bcb353b00a.tar.xz
* merge with testing-branch
git-svn-id: https://svn.pengutronix.de/svn/ptxdist/trunk@608 33e552b5-05e3-0310-8538-816dae2090ed
Diffstat (limited to 'rules/wxWindows.make')
-rw-r--r--rules/wxWindows.make149
1 files changed, 149 insertions, 0 deletions
diff --git a/rules/wxWindows.make b/rules/wxWindows.make
new file mode 100644
index 000000000..8a1c3ea8a
--- /dev/null
+++ b/rules/wxWindows.make
@@ -0,0 +1,149 @@
+# -*-makefile-*-
+# $Id: wxWindows.make,v 1.2 2003/10/23 15:01:19 mkl Exp $
+#
+# Copyright (C) 08/10/2003 by Marco Cavallini <m.cavallini@koansoftware.com>
+#
+# See CREDITS for details about who has contributed to this project.
+#
+# For further information about the PTXdist project and license conditions
+# see the README file.
+#
+
+#
+# We provide this package
+#
+ifdef PTXCONF_WXWINDOWS_X11
+PACKAGES += wxWindows
+endif
+
+#
+# Paths and names
+#
+WXWINDOWS_VERSION = 2.4.2
+WXWINDOWS = wxX11-$(WXWINDOWS_VERSION)
+WXWINDOWS_SUFFIX = tar.gz
+WXWINDOWS_URL = http://heanet.dl.sourceforge.net/sourceforge/wxwindows/$(WXWINDOWS).$(WXWINDOWS_SUFFIX)
+WXWINDOWS_SOURCE = $(SRCDIR)/$(WXWINDOWS).$(WXWINDOWS_SUFFIX)
+WXWINDOWS_DIR = $(BUILDDIR)/$(WXWINDOWS)
+
+
+# ----------------------------------------------------------------------------
+# Get
+# ----------------------------------------------------------------------------
+
+wxWindows_get: $(STATEDIR)/wxWindows.get
+
+wxWindows_get_deps = $(WXWINDOWS_SOURCE)
+
+$(STATEDIR)/wxWindows.get: $(wxWindows_get_deps)
+ @$(call targetinfo, $@)
+ touch $@
+
+$(WXWINDOWS_SOURCE):
+ @$(call targetinfo, $@)
+ @$(call get, $(WXWINDOWS_URL))
+
+# ----------------------------------------------------------------------------
+# Extract
+# ----------------------------------------------------------------------------
+
+wxWindows_extract: $(STATEDIR)/wxWindows.extract
+
+wxWindows_extract_deps = $(STATEDIR)/wxWindows.get
+
+$(STATEDIR)/wxWindows.extract: $(wxWindows_extract_deps)
+ @$(call targetinfo, $@)
+ @$(call clean, $(WXWINDOWS_DIR))
+ @$(call extract, $(WXWINDOWS_SOURCE))
+ touch $@
+
+# ----------------------------------------------------------------------------
+# Prepare
+# ----------------------------------------------------------------------------
+
+wxWindows_prepare: $(STATEDIR)/wxWindows.prepare
+
+#
+# dependencies
+#
+wxWindows_prepare_deps = \
+ $(STATEDIR)/wxWindows.extract \
+ $(STATEDIR)/virtual-xchain.install
+
+WXWINDOWS_PATH = PATH=$(PTXCONF_PREFIX)/$(PTXCONF_GNU_TARGET)/bin:$(CROSS_PATH)
+WXWINDOWS_ENV = $(CROSS_ENV)
+#WXWINDOWS_ENV +=
+
+
+#
+# autoconf
+#
+WXWINDOWS_AUTOCONF = --prefix=$(PTXCONF_PREFIX)/$(PTXCONF_GNU_TARGET)
+WXWINDOWS_AUTOCONF += --build=$(GNU_HOST)
+WXWINDOWS_AUTOCONF += --host=$(PTXCONF_GNU_TARGET)
+WXWINDOWS_AUTOCONF += --x-includes=$(PTXCONF_PREFIX)/$(PTXCONF_GNU_TARGET)/include/X11
+WXWINDOWS_AUTOCONF += --x-libraries=$(PTXCONF_PREFIX)/$(PTXCONF_GNU_TARGET)/lib
+WXWINDOWS_AUTOCONF += --disable-shared
+
+# WARNING : HERE WORK IS STILL IN PROGRESS !
+
+WXWINDOWS_AUTOCONF += --with-x11 --without-gtk \
+--disable-no_rtti --disable-no_exceptions \
+--disable-mdi --disable-printarch --disable-postscript --disable-resources \
+--disable-prologio --with-zlib=builtin --with-libpng=builtin \
+--disable-joystick --with-libjpeg=builtin --with-libtiff=builtin
+
+
+$(STATEDIR)/wxWindows.prepare: $(wxWindows_prepare_deps)
+ @$(call targetinfo, $@)
+ @$(call clean, $(WXWINDOWS_BUILDDIR))
+ cd $(WXWINDOWS_DIR) && \
+ $(WXWINDOWS_PATH) $(WXWINDOWS_ENV) \
+ ./configure $(WXWINDOWS_AUTOCONF)
+ touch $@
+
+# ----------------------------------------------------------------------------
+# Compile
+# ----------------------------------------------------------------------------
+
+wxWindows_compile: $(STATEDIR)/wxWindows.compile
+
+wxWindows_compile_deps = $(STATEDIR)/wxWindows.prepare
+
+$(STATEDIR)/wxWindows.compile: $(wxWindows_compile_deps)
+ @$(call targetinfo, $@)
+ $(WXWINDOWS_PATH) $(WXWINDOWS_ENV) make -C $(WXWINDOWS_DIR)
+ touch $@
+
+
+# ----------------------------------------------------------------------------
+# Install
+# ----------------------------------------------------------------------------
+
+wxWindows_install: $(STATEDIR)/wxWindows.install
+
+$(STATEDIR)/wxWindows.install: $(STATEDIR)/wxWindows.compile
+ @$(call targetinfo, $@)
+ touch $@
+
+# ----------------------------------------------------------------------------
+# Target-Install
+# ----------------------------------------------------------------------------
+
+wxWindows_targetinstall: $(STATEDIR)/wxWindows.targetinstall
+
+wxWindows_targetinstall_deps = $(STATEDIR)/wxWindows.compile
+
+$(STATEDIR)/wxWindows.targetinstall: $(wxWindows_targetinstall_deps)
+ @$(call targetinfo, $@)
+ touch $@
+
+# ----------------------------------------------------------------------------
+# Clean
+# ----------------------------------------------------------------------------
+
+wxWindows_clean:
+ rm -rf $(STATEDIR)/wxWindows.*
+ rm -rf $(WXWINDOWS_DIR)
+
+# vim: syntax=make