diff options
-rw-r--r-- | core/kconfig/packages.kconfig | 6 | ||||
-rw-r--r-- | core/mk/packages.mk | 3 | ||||
-rw-r--r-- | packages/java/classpath/classpath.kconfig | 56 | ||||
-rw-r--r-- | packages/java/classpath/classpath.mk | 93 | ||||
-rw-r--r-- | packages/java/java.kconfig | 27 | ||||
-rw-r--r-- | packages/java/java.mk | 29 |
6 files changed, 213 insertions, 1 deletions
diff --git a/core/kconfig/packages.kconfig b/core/kconfig/packages.kconfig index cb47b5f..6c475ba 100644 --- a/core/kconfig/packages.kconfig +++ b/core/kconfig/packages.kconfig @@ -1,6 +1,6 @@ ################################################################################ # Embtoolkit -# Copyright(C) 2009-2014 Abdoulaye Walsimou GAYE. +# 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 @@ -60,6 +60,10 @@ menu "Graphics packages" source packages/graphics/graphics.kconfig endmenu +menu "Java packages" +source packages/java/java.kconfig +endmenu + menu "Mathematics packages" source packages/math/math.kconfig endmenu diff --git a/core/mk/packages.mk b/core/mk/packages.mk index d063254..766c8f9 100644 --- a/core/mk/packages.mk +++ b/core/mk/packages.mk @@ -57,6 +57,9 @@ include packages/development/development.mk # Graphics packages include packages/graphics/graphics.mk +# java packages +include packages/java/java.mk + # Mathematics packages include packages/math/math.mk 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 <http://www.gnu.org/licenses/>. +# +################################################################################ +# +# \file classpath.kconfig +# \brief classpath.kconfig of Embtoolkit +# \author Abdoulaye Walsimou GAYE <awg@embtoolkit.org> +# \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 <http://www.gnu.org/licenses/>. +# +################################################################################ +# +# \file classpath.mk +# \brief classpath.mk of Embtoolkit +# \author Abdoulaye Walsimou GAYE <awg@embtoolkit.org> +# \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 <http://www.gnu.org/licenses/>. +# +################################################################################ +# +# \file java.mk +# \brief java.mk of Embtoolkit +# \author Abdoulaye Walsimou GAYE <awg@embtoolkit.org> +# \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 <http://www.gnu.org/licenses/>. +# +################################################################################ +# +# \file java.mk +# \brief java.mk of Embtoolkit +# \author Abdoulaye Walsimou GAYE <awg@embtoolkit.org> +# \date October 2014 +################################################################################ + +embtk_pkgincdir := packages/java + +# gnu classpath +$(call embtk_include_pkg,classpath) |