From da32ce1f4b92dcabd2539832a07fec30cd0f09af Mon Sep 17 00:00:00 2001 From: Abdoulaye Walsimou Gaye Date: Sat, 3 Jan 2015 00:49:09 +0100 Subject: Packages: New classpath: add v0.99 Signed-off-by: Abdoulaye Walsimou Gaye --- packages/java/classpath/classpath.kconfig | 56 +++++++++++++++++++ packages/java/classpath/classpath.mk | 93 +++++++++++++++++++++++++++++++ packages/java/java.kconfig | 27 +++++++++ packages/java/java.mk | 29 ++++++++++ 4 files changed, 205 insertions(+) create mode 100644 packages/java/classpath/classpath.kconfig create mode 100644 packages/java/classpath/classpath.mk create mode 100644 packages/java/java.kconfig create mode 100644 packages/java/java.mk (limited to 'packages') diff --git a/packages/java/classpath/classpath.kconfig b/packages/java/classpath/classpath.kconfig new file mode 100644 index 0000000..75b98f7 --- /dev/null +++ b/packages/java/classpath/classpath.kconfig @@ -0,0 +1,56 @@ +################################################################################ +# Embtoolkit +# Copyright(C) 2009-2015 Abdoulaye Walsimou GAYE. +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation, either version 2 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see . +# +################################################################################ +# +# \file classpath.kconfig +# \brief classpath.kconfig of Embtoolkit +# \author Abdoulaye Walsimou GAYE +# \date October 2014 +################################################################################ + +config EMBTK_HAVE_CLASSPATH + bool "Have classpath" + select EMBTK_HAVE_ZLIB + select KEMBTK_EGLIBC_OPTION_EGLIBC_INET if EMBTK_CLIB_EGLIBC + select KEMBTK_UCLIBC_UCLIBC_HAS_NETWORK_SUPPORT if EMBTK_CLIB_UCLIBC + select KEMBTK_UCLIBC_UCLIBC_HAS_IPV4 if EMBTK_CLIB_UCLIBC + select KEMBTK_UCLIBC_UCLIBC_HAS_IPV6 if EMBTK_CLIB_UCLIBC + help + GNU Classpath, Essential Libraries for Java, is a GNU project to create + free core class libraries for use with virtual machines and compilers + for the java programming language. + +choice + prompt "classpath version you wish" + depends on EMBTK_HAVE_CLASSPATH + help + Here you can choose which version of classpath you want to use. + + config EMBTK_CLASSPATH_VERSION_0_99 + bool "classpath-0.99" + select EMBTK_CLASSPATH_NEED_PATCH +endchoice + +config EMBTK_CLASSPATH_VERSION_STRING + string + default "0.99" if EMBTK_CLASSPATH_VERSION_0_99 + +config EMBTK_CLASSPATH_NEED_PATCH + bool +config EMBTK_CLASSPATH_NEED_AUTORECONF + bool diff --git a/packages/java/classpath/classpath.mk b/packages/java/classpath/classpath.mk new file mode 100644 index 0000000..5685824 --- /dev/null +++ b/packages/java/classpath/classpath.mk @@ -0,0 +1,93 @@ +################################################################################ +# Embtoolkit +# Copyright(C) 2009-2015 Abdoulaye Walsimou GAYE. +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation, either version 2 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see . +# +################################################################################ +# +# \file classpath.mk +# \brief classpath.mk of Embtoolkit +# \author Abdoulaye Walsimou GAYE +# \date October 2014 +################################################################################ + +CLASSPATH_NAME := classpath +CLASSPATH_VERSION := $(call embtk_pkg_version,classpath) +CLASSPATH_SITE := ftp://ftp.gnu.org/gnu/classpath +CLASSPATH_PACKAGE := classpath-$(CLASSPATH_VERSION).tar.gz +CLASSPATH_SRC_DIR := $(embtk_pkgb)/classpath-$(CLASSPATH_VERSION) +CLASSPATH_BUILD_DIR := $(embtk_pkgb)/classpath-$(CLASSPATH_VERSION)-build + +CLASSPATH_INCLUDES := jawt.h jawt_md.h jni.h jni_md.h +CLASSPATH_LIBS := classpath logging.properties security + +CLASSPATH_SHARES := classpath +CLASSPATH_SHARES += info/cp-hacking.info +CLASSPATH_SHARES += info/cp-tools.info +CLASSPATH_SHARES += info/cp-vmintegration.info +CLASSPATH_SHARES += info/dir +CLASSPATH_SHARES += man/man1/gappletviewer.1 +CLASSPATH_SHARES += man/man1/gcjh.1 +CLASSPATH_SHARES += man/man1/gjar.1 +CLASSPATH_SHARES += man/man1/gjarsigner.1 +CLASSPATH_SHARES += man/man1/gjavah.1 +CLASSPATH_SHARES += man/man1/gjdoc.1 +CLASSPATH_SHARES += man/man1/gkeytool.1 +CLASSPATH_SHARES += man/man1/gnative2ascii.1 +CLASSPATH_SHARES += man/man1/gorbd.1 +CLASSPATH_SHARES += man/man1/grmid.1 +CLASSPATH_SHARES += man/man1/grmiregistry.1 +CLASSPATH_SHARES += man/man1/gserialver.1 +CLASSPATH_SHARES += man/man1/gtnameserv.1 + +CLASSPATH_CONFIGURE_ENV := JAVA="$(HOSTJAVA)" +CLASSPATH_CONFIGURE_ENV += JAVAC="$(HOSTJAVAC)" + +CLASSPATH_CONFIGURE_OPTS := --program-transform-name='s;$(STRICT_GNU_TARGET)-;;' +CLASSPATH_CONFIGURE_OPTS += --enable-jni +CLASSPATH_CONFIGURE_OPTS += --disable-alsa +CLASSPATH_CONFIGURE_OPTS += --disable-dssi +CLASSPATH_CONFIGURE_OPTS += --disable-examples +CLASSPATH_CONFIGURE_OPTS += --disable-gconf-peer +CLASSPATH_CONFIGURE_OPTS += --disable-gmp +CLASSPATH_CONFIGURE_OPTS += --disable-gstreamer-peer +CLASSPATH_CONFIGURE_OPTS += --disable-gtk-peer +CLASSPATH_CONFIGURE_OPTS += --disable-plugin +CLASSPATH_CONFIGURE_OPTS += --disable-qt-peer +CLASSPATH_CONFIGURE_OPTS += --disable-tools +CLASSPATH_CONFIGURE_OPTS += --disable-Werror +CLASSPATH_CONFIGURE_OPTS += --without-x +CLASSPATH_CONFIGURE_OPTS += --disable-xmlj +CLASSPATH_CONFIGURE_OPTS += --with-jar="$(HOSTJAR)" + +CLASSPATH_DEPS := zlib_install + +define embtk_postinstall_classpath + rm -rf $(embtk_rootfs)/usr/$(LIBDIR)/classpath + rm -rf $(embtk_rootfs)/usr/$(LIBDIR)/logging.properties + rm -rf $(embtk_rootfs)/usr/$(LIBDIR)/security + rm -rf $(embtk_rootfs)/usr/share/classpath + [ -e $(embtk_rootfs)/usr/$(LIBDIR) ] || \ + install -d $(embtk_rootfs)/usr/$(LIBDIR) + [ -e $(embtk_rootfs)/usr/share ] || \ + install -d $(embtk_rootfs)/usr/share + for f in $(LIBDIR)/classpath \ + $(LIBDIR)/logging.properties \ + $(LIBDIR)/security share/classpath; \ + do \ + cp -R $(embtk_sysroot)/usr/$$f $(embtk_rootfs)/usr/$$f; \ + done + rm -rf $(embtk_rootfs)/usr/$(LIBDIR)/classpath/*.la +endef diff --git a/packages/java/java.kconfig b/packages/java/java.kconfig new file mode 100644 index 0000000..b7abdc4 --- /dev/null +++ b/packages/java/java.kconfig @@ -0,0 +1,27 @@ +################################################################################ +# Embtoolkit +# Copyright(C) 2009-2015 Abdoulaye Walsimou GAYE. +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation, either version 2 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see . +# +################################################################################ +# +# \file java.mk +# \brief java.mk of Embtoolkit +# \author Abdoulaye Walsimou GAYE +# \date October 2014 +################################################################################ + +# gnu classpath +source packages/java/classpath/classpath.kconfig diff --git a/packages/java/java.mk b/packages/java/java.mk new file mode 100644 index 0000000..d816418 --- /dev/null +++ b/packages/java/java.mk @@ -0,0 +1,29 @@ +################################################################################ +# Embtoolkit +# Copyright(C) 2009-2015 Abdoulaye Walsimou GAYE. +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation, either version 2 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see . +# +################################################################################ +# +# \file java.mk +# \brief java.mk of Embtoolkit +# \author Abdoulaye Walsimou GAYE +# \date October 2014 +################################################################################ + +embtk_pkgincdir := packages/java + +# gnu classpath +$(call embtk_include_pkg,classpath) -- cgit v1.2.3