diff options
author | Waldemar Brodkorb <wbx@openadk.org> | 2011-03-28 03:06:55 +0200 |
---|---|---|
committer | Waldemar Brodkorb <wbx@openadk.org> | 2011-03-28 03:06:55 +0200 |
commit | 0c9fca670b86871f111e1cda82ac8f70605992be (patch) | |
tree | b879cb81743c4bdf576bbcf69c494681a6e7b50f | |
parent | 6692b15f8bd7ffc742cce5b67b963b458f87f8b6 (diff) |
add first step to get java working
-rw-r--r-- | package/cacaovm/Makefile | 50 | ||||
-rw-r--r-- | package/cacaovm/patches/patch-src_cacaoh_headers_c | 14 | ||||
-rw-r--r-- | package/cacaovm/patches/patch-src_threads_posix_thread-posix_h | 14 | ||||
-rw-r--r-- | package/classpath/Makefile | 37 | ||||
-rw-r--r-- | package/gconf/Makefile | 29 | ||||
-rw-r--r-- | package/glib/patches/patch-gmodule-2_0_pc_in | 10 | ||||
-rw-r--r-- | package/glib/patches/patch-gmodule-export-2_0_pc_in | 10 | ||||
-rw-r--r-- | package/icedtea6/Makefile | 54 | ||||
-rw-r--r-- | package/icedtea6/patches/patch-Makefile_in | 20 | ||||
-rw-r--r-- | package/icedtea6/patches/patch-configure | 479 | ||||
-rw-r--r-- | package/orbit2/Makefile | 45 | ||||
-rw-r--r-- | package/orbit2/patches/patch-ORBit-2_0_pc_in | 11 | ||||
-rw-r--r-- | package/orbit2/patches/patch-configure | 11 | ||||
-rw-r--r-- | package/orbit2/patches/patch-src_idl-compiler_Makefile_in | 54 | ||||
-rwxr-xr-x | scripts/sha256sum | 7 |
15 files changed, 845 insertions, 0 deletions
diff --git a/package/cacaovm/Makefile b/package/cacaovm/Makefile new file mode 100644 index 000000000..1d85a420a --- /dev/null +++ b/package/cacaovm/Makefile @@ -0,0 +1,50 @@ +# This file is part of the OpenADK project. OpenADK is copyrighted +# material, please see the LICENCE file in the top-level directory. + +include $(TOPDIR)/rules.mk + +PKG_NAME:= cacaovm +PKG_VERSION:= 0.99.4 +PKG_RELEASE:= 1 +PKG_MD5SUM:= 63220327925ace13756ae334c55a3baa +PKG_DESCR:= Java VM +PKG_SECTION:= lang +PKG_BUILDDEP:= classpath zlib +PKG_DEPENDS:= classpath zlib +PKG_URL:= http://www.cacaovm.org/ +PKG_SITES:= http://www.complang.tuwien.ac.at/cacaojvm/download/cacao-0.99.4/ + +WRKDIST= ${WRKDIR}/cacao-${PKG_VERSION} +DISTFILES:= cacao-${PKG_VERSION}.tar.bz2 + +include $(TOPDIR)/mk/package.mk + +$(eval $(call PKG_template,CACAOVM,cacaovm,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION})) + +CONFIGURE_ARGS+= --with-jni_md_h=${STAGING_TARGET_DIR}/usr/include \ + --with-java-runtime-library-prefix=${STAGING_TARGET_DIR}/usr \ + --with-cacaoh=${STAGING_TARGET_DIR}/bin/cacaoh + +post-patch: + (cd ${WRKBUILD}; ./configure \ + --enable-jit \ + --with-java-runtime-library-prefix=/opt/local \ + --enable-gc=none \ + ); + $(MAKE) -C ${WRKBUILD}/src/vmcore + $(MAKE) -C ${WRKBUILD}/src/toolbox + $(MAKE) -C ${WRKBUILD}/src/cacaoh + $(CP) $(WRKBUILD)/src/cacaoh/cacaoh $(STAGING_TARGET_DIR)/bin + $(MAKE) -C ${WRKBUILD} clean + +cacaovm-install: + $(INSTALL_DIR) $(IDIR_CACAOVM)/usr/lib + $(CP) $(WRKINST)/usr/lib/libjvm.so $(IDIR_CACAOVM)/usr/lib + $(INSTALL_DIR) $(IDIR_CACAOVM)/usr/bin + $(INSTALL_BIN) $(WRKINST)/usr/bin/cacao $(IDIR_CACAOVM)/usr/bin + $(INSTALL_BIN) $(WRKINST)/usr/bin/java $(IDIR_CACAOVM)/usr/bin + $(INSTALL_DIR) $(IDIR_CACAOVM)/usr/share/cacao + $(CP) $(WRKINST)/usr/share/cacao/vm.zip \ + $(IDIR_CACAOVM)/usr/share/cacao + +include ${TOPDIR}/mk/pkg-bottom.mk diff --git a/package/cacaovm/patches/patch-src_cacaoh_headers_c b/package/cacaovm/patches/patch-src_cacaoh_headers_c new file mode 100644 index 000000000..0e1ca0923 --- /dev/null +++ b/package/cacaovm/patches/patch-src_cacaoh_headers_c @@ -0,0 +1,14 @@ +--- cacao-0.99.4.orig/src/cacaoh/headers.c 2008-08-04 18:51:28.000000000 +0200 ++++ cacao-0.99.4/src/cacaoh/headers.c 2011-03-26 20:11:11.000000000 +0100 +@@ -35,8 +35,10 @@ + #if defined(ENABLE_THREADS) + # if defined(__DARWIN__) + # include <signal.h> ++# include <sys/ucontext.h> ++# else ++# include <ucontext.h> + # endif +-# include <ucontext.h> + #endif + + #include "mm/gc-common.h" diff --git a/package/cacaovm/patches/patch-src_threads_posix_thread-posix_h b/package/cacaovm/patches/patch-src_threads_posix_thread-posix_h new file mode 100644 index 000000000..fc43526fb --- /dev/null +++ b/package/cacaovm/patches/patch-src_threads_posix_thread-posix_h @@ -0,0 +1,14 @@ +--- cacao-0.99.4.orig/src/threads/posix/thread-posix.h 2008-08-04 18:51:28.000000000 +0200 ++++ cacao-0.99.4/src/threads/posix/thread-posix.h 2011-03-26 20:12:13.000000000 +0100 +@@ -34,7 +34,11 @@ typedef struct threadobject threadobject + #include "config.h" + + #include <pthread.h> ++#if defined(__DARWIN__) ++#include <sys/ucontext.h> ++#else + #include <ucontext.h> ++#endif + + #include "vm/types.h" + diff --git a/package/classpath/Makefile b/package/classpath/Makefile new file mode 100644 index 000000000..3292232c1 --- /dev/null +++ b/package/classpath/Makefile @@ -0,0 +1,37 @@ +# This file is part of the OpenADK project. OpenADK is copyrighted +# material, please see the LICENCE file in the top-level directory. + +include $(TOPDIR)/rules.mk + +PKG_NAME:= classpath +PKG_VERSION:= 0.98 +PKG_RELEASE:= 1 +PKG_MD5SUM:= 90c6571b8b0309e372faa0f9f6255ea9 +PKG_DESCR:= GNU Classpath +PKG_SECTION:= lang +PKG_BUILDDEP:= gtk+ gdk-pixbuf orbit2 gconf +PKG_DEPENDS:= libgtk gdk-pixbuf orbit2 gconf +PKG_URL:= http://www.gnu.org/software/classpath/home.html +PKG_SITES:= ${MASTER_SITE_GNU:=classpath/} + +include $(TOPDIR)/mk/package.mk + +$(eval $(call PKG_template,CLASSPATH,classpath,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION})) + +CONFIGURE_ARGS+= --disable-plugin \ + --disable-tools \ + --disable-examples + +classpath-install: + $(INSTALL_DIR) $(IDIR_CLASSPATH)/usr/share/classpath + $(CP) $(WRKINST)/usr/share/classpath/glibj.zip \ + $(IDIR_CLASSPATH)/usr/share/classpath + $(INSTALL_DIR) $(IDIR_CLASSPATH)/usr/lib/classpath + $(CP) $(WRKINST)/usr/lib/classpath/lib*so.* \ + $(IDIR_CLASSPATH)/usr/lib/classpath + # install to staging directory + $(INSTALL_DIR) $(STAGING_DIR)/usr/share/classpath + $(CP) $(WRKINST)/usr/share/classpath/glibj.zip \ + $(STAGING_DIR)/usr/share/classpath + +include ${TOPDIR}/mk/pkg-bottom.mk diff --git a/package/gconf/Makefile b/package/gconf/Makefile new file mode 100644 index 000000000..dd47682c2 --- /dev/null +++ b/package/gconf/Makefile @@ -0,0 +1,29 @@ +# This file is part of the OpenADK project. OpenADK is copyrighted +# material, please see the LICENCE file in the top-level directory. + +include $(TOPDIR)/rules.mk + +PKG_NAME:= GConf +PKG_VERSION:= 2.32.1 +PKG_EXTRAVER:= 2.32 +PKG_RELEASE:= 1 +PKG_MD5SUM:= de83e70453910ac62f9ee2a86444bdab +PKG_DESCR:= a system for storing application preferences +PKG_SECTION:= libs +PKG_BUILDDEP:= dbus dbus-glib +PKG_DEPENDS:= dbus dbus-glib +PKG_URL:= http://projects.gnome.org/gconf/ +PKG_SITES:= ftp://ftp.gnome.org//pub/GNOME/sources/GConf/${PKG_EXTRAVER}/ + +include $(TOPDIR)/mk/package.mk + +$(eval $(call PKG_template,GCONF,gconf,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION})) + +gconf-install: + $(INSTALL_DIR) $(IDIR_GCONF)/usr/bin + $(INSTALL_BIN) $(WRKINST)/usr/bin/* $(IDIR_GCONF)/usr/bin + $(INSTALL_DIR) $(IDIR_GCONF)/usr/lib + $(INSTALL_BIN) $(WRKINST)/usr/lib/libgconf*.so* \ + $(IDIR_GCONF)/usr/lib + +include ${TOPDIR}/mk/pkg-bottom.mk diff --git a/package/glib/patches/patch-gmodule-2_0_pc_in b/package/glib/patches/patch-gmodule-2_0_pc_in new file mode 100644 index 000000000..db8446fed --- /dev/null +++ b/package/glib/patches/patch-gmodule-2_0_pc_in @@ -0,0 +1,10 @@ +--- glib-2.28.1.orig/gmodule-2.0.pc.in 2010-04-13 15:33:16.000000000 +0200 ++++ glib-2.28.1/gmodule-2.0.pc.in 2011-03-25 19:49:39.000000000 +0100 +@@ -9,6 +9,6 @@ Name: GModule + Description: Dynamic module loader for GLib + Requires: glib-2.0 + Version: @VERSION@ +-Libs: -L${libdir} @G_MODULE_LDFLAGS@ -lgmodule-2.0 @G_THREAD_LIBS@ ++Libs: -L${libdir} -lgmodule-2.0 @G_THREAD_LIBS@ + Libs.private: @G_MODULE_LIBS@ + Cflags: @G_THREAD_CFLAGS@ diff --git a/package/glib/patches/patch-gmodule-export-2_0_pc_in b/package/glib/patches/patch-gmodule-export-2_0_pc_in new file mode 100644 index 000000000..bf61551fd --- /dev/null +++ b/package/glib/patches/patch-gmodule-export-2_0_pc_in @@ -0,0 +1,10 @@ +--- glib-2.28.1.orig/gmodule-export-2.0.pc.in 2010-04-13 15:33:16.000000000 +0200 ++++ glib-2.28.1/gmodule-export-2.0.pc.in 2011-03-25 19:49:59.000000000 +0100 +@@ -9,6 +9,6 @@ Name: GModule + Description: Dynamic module loader for GLib + Requires: glib-2.0 + Version: @VERSION@ +-Libs: -L${libdir} @G_MODULE_LDFLAGS@ -lgmodule-2.0 @G_THREAD_LIBS@ ++Libs: -L${libdir} -lgmodule-2.0 @G_THREAD_LIBS@ + Libs.private: @G_MODULE_LIBS@ + Cflags: @G_THREAD_CFLAGS@ diff --git a/package/icedtea6/Makefile b/package/icedtea6/Makefile new file mode 100644 index 000000000..39bdea2b9 --- /dev/null +++ b/package/icedtea6/Makefile @@ -0,0 +1,54 @@ +# This file is part of the OpenADK project. OpenADK is copyrighted +# material, please see the LICENCE file in the top-level directory. + +include $(TOPDIR)/rules.mk + +PKG_NAME:= icedtea6 +PKG_VERSION:= 1.10 +PKG_RELEASE:= 1 +PKG_MD5SUM:= fd3f35e8a8a2ef9a64c035ed66cea06d 2d2bbbb0f9b81f1fec41ec730da8a933 +PKG_DESCR:= OpenJDK Java VM +PKG_SECTION:= lang +PKG_URL:= http://icedtea.classpath.org/ +PKG_SITES:= http://icedtea.classpath.org/download/source/ \ + http://download.java.net/openjdk/jdk6/promoted/b22/ + +DISTFILES:= $(PKG_NAME)-$(PKG_VERSION).tar.gz openjdk-6-src-b22-28_feb_2011.tar.gz + +PKG_SUBPKGS:= OPENJDK + +PKG_CHOICES_OPENJDK:= ZERO SHARK CACAO JAMVM +PKGCD_ZERO:= zero-assembly backend +PKGCD_SHARK:= JIT backend +PKGCD_CACAO:= Cacao JIT backend +PKGCD_JAMVM:= JamVM backend + +include $(TOPDIR)/mk/package.mk + +$(eval $(call PKG_template,OPENJDK,openjdk,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION})) + +ifeq ($(ADK_PACKAGE_OPENJDK_ZERO),y) +CONFIGURE_ARGS+= --enable-zero +endif +ifeq ($(ADK_PACKAGE_OPENJDK_SHARK),y) +CONFIGURE_ARGS+= --enable-shark +endif + + +CONFIGURE_ARGS+= --disable-docs \ + --enable-bootstrap \ + --with-jdk-home=$(STAGING_HOST_DIR)/lib/jvm \ + --with-xalan2-jar=/opt/local/share/java/xalan.jar \ + --with-xalan2-serializer-jar=/opt/local/share/java/serializer.jar \ + --with-xerces2-jar=/opt/local/share/java/xercesImpl.jar \ + --with-openjdk-src-zip=$(TOPDIR)/dl/openjdk-6-src-b22-28_feb_2011.tar.gz \ + --with-ecj-jar=$(TOPDIR)/dl/ecj.jar \ + --with-gcj \ + --without-rhino \ + --disable-xrender \ + --disable-nss + +openjdk-install: + $(INSTALL_DIR) $(IDIR_OPENJDK)/usr/bin + +include ${TOPDIR}/mk/pkg-bottom.mk diff --git a/package/icedtea6/patches/patch-Makefile_in b/package/icedtea6/patches/patch-Makefile_in new file mode 100644 index 000000000..652a4bc8e --- /dev/null +++ b/package/icedtea6/patches/patch-Makefile_in @@ -0,0 +1,20 @@ +--- icedtea6-1.10.orig/Makefile.in 2011-03-02 20:48:45.000000000 +0100 ++++ icedtea6-1.10/Makefile.in 2011-03-27 23:52:31.000000000 +0200 +@@ -1329,7 +1317,7 @@ stamps/extract-openjdk.stamp: stamps/dow + @OPENJDK_SRC_DIR_FOUND_TRUE@ cp -pPR $(OPENJDK_SRC_DIR_LINK) $(OPENJDK_SRC_DIR) openjdk ; \ + @OPENJDK_SRC_DIR_FOUND_TRUE@ fi + @OPENJDK_SRC_DIR_FOUND_FALSE@@USE_HG_TRUE@ if ! test -d openjdk ; then \ +-@OPENJDK_SRC_DIR_FOUND_FALSE@@USE_HG_TRUE@ cp -pPRl openjdk.hg openjdk ; \ ++@OPENJDK_SRC_DIR_FOUND_FALSE@@USE_HG_TRUE@ cp -pPR openjdk.hg openjdk ; \ + @OPENJDK_SRC_DIR_FOUND_FALSE@@USE_HG_TRUE@ fi + @OPENJDK_SRC_DIR_FOUND_FALSE@@USE_HG_FALSE@ set -e ; \ + @OPENJDK_SRC_DIR_FOUND_FALSE@@USE_HG_FALSE@ if ! test -d openjdk ; \ +@@ -1576,7 +1564,7 @@ clean-overlay: + # FIXME (missing): Rename to clone-ecj. + stamps/extract-ecj.stamp: $(OPENJDK_TREE) + if ! test -d openjdk-ecj ; then \ +- cp -pPRl openjdk openjdk-ecj ; \ ++ cp -pPR openjdk openjdk-ecj ; \ + fi + mkdir -p stamps + touch stamps/extract-ecj.stamp diff --git a/package/icedtea6/patches/patch-configure b/package/icedtea6/patches/patch-configure new file mode 100644 index 000000000..28ad4a0dc --- /dev/null +++ b/package/icedtea6/patches/patch-configure @@ -0,0 +1,479 @@ +--- icedtea6-1.10.orig/configure 2011-03-02 20:48:44.000000000 +0100 ++++ icedtea6-1.10/configure 2011-03-27 22:27:06.000000000 +0200 +@@ -10805,22 +10805,6 @@ fi + + + +-for ac_header in cups/cups.h cups/ppd.h +-do : +- as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` +-ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" +-if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : +- cat >>confdefs.h <<_ACEOF +-#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 +-_ACEOF +- +- +-else +- as_fn_error $? "\"CUPS headers were not found - +- try installing cups-devel.\"" "$LINENO" 5 +-fi +- +-done + + for ac_header in X11/X.h + do : +@@ -10879,46 +10863,6 @@ else + as_fn_error $? "\"libjpeg not found - try installing libjpeg-devel\"" "$LINENO" 5 + fi + +-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lgif" >&5 +-$as_echo_n "checking for main in -lgif... " >&6; } +-if ${ac_cv_lib_gif_main+:} false; then : +- $as_echo_n "(cached) " >&6 +-else +- ac_check_lib_save_LIBS=$LIBS +-LIBS="-lgif $LIBS" +-cat confdefs.h - <<_ACEOF >conftest.$ac_ext +-/* end confdefs.h. */ +- +- +-int +-main () +-{ +-return main (); +- ; +- return 0; +-} +-_ACEOF +-if ac_fn_c_try_link "$LINENO"; then : +- ac_cv_lib_gif_main=yes +-else +- ac_cv_lib_gif_main=no +-fi +-rm -f core conftest.err conftest.$ac_objext \ +- conftest$ac_exeext conftest.$ac_ext +-LIBS=$ac_check_lib_save_LIBS +-fi +-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gif_main" >&5 +-$as_echo "$ac_cv_lib_gif_main" >&6; } +-if test "x$ac_cv_lib_gif_main" = xyes; then : +- cat >>confdefs.h <<_ACEOF +-#define HAVE_LIBGIF 1 +-_ACEOF +- +- LIBS="-lgif $LIBS" +- +-else +- as_fn_error $? "\"giflib not found - try installing giflib-devel\"" "$LINENO" 5 +-fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lz" >&5 + $as_echo_n "checking for main in -lz... " >&6; } +@@ -11040,156 +10984,9 @@ fi + + + +-pkg_failed=no +-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XT" >&5 +-$as_echo_n "checking for XT... " >&6; } +- +-if test -n "$XT_CFLAGS"; then +- pkg_cv_XT_CFLAGS="$XT_CFLAGS" +- elif test -n "$PKG_CONFIG"; then +- if test -n "$PKG_CONFIG" && \ +- { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xt\""; } >&5 +- ($PKG_CONFIG --exists --print-errors "xt") 2>&5 +- ac_status=$? +- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 +- test $ac_status = 0; }; then +- pkg_cv_XT_CFLAGS=`$PKG_CONFIG --cflags "xt" 2>/dev/null` +-else +- pkg_failed=yes +-fi +- else +- pkg_failed=untried +-fi +-if test -n "$XT_LIBS"; then +- pkg_cv_XT_LIBS="$XT_LIBS" +- elif test -n "$PKG_CONFIG"; then +- if test -n "$PKG_CONFIG" && \ +- { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xt\""; } >&5 +- ($PKG_CONFIG --exists --print-errors "xt") 2>&5 +- ac_status=$? +- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 +- test $ac_status = 0; }; then +- pkg_cv_XT_LIBS=`$PKG_CONFIG --libs "xt" 2>/dev/null` +-else +- pkg_failed=yes +-fi +- else +- pkg_failed=untried +-fi +- +- +- +-if test $pkg_failed = yes; then +- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +-$as_echo "no" >&6; } +- +-if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then +- _pkg_short_errors_supported=yes +-else +- _pkg_short_errors_supported=no +-fi +- if test $_pkg_short_errors_supported = yes; then +- XT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xt" 2>&1` +- else +- XT_PKG_ERRORS=`$PKG_CONFIG --print-errors "xt" 2>&1` +- fi +- # Put the nasty error message in config.log where it belongs +- echo "$XT_PKG_ERRORS" >&5 +- +- XT_FOUND=no +-elif test $pkg_failed = untried; then +- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +-$as_echo "no" >&6; } +- XT_FOUND=no +-else +- XT_CFLAGS=$pkg_cv_XT_CFLAGS +- XT_LIBS=$pkg_cv_XT_LIBS +- { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +-$as_echo "yes" >&6; } +- XT_FOUND=yes +-fi +-if test "x${XT_FOUND}" = xno +-then +- as_fn_error $? "Could not find Xt - \ +- Try installing libXt-devel." "$LINENO" 5 +-fi +- +- +- +- +-pkg_failed=no +-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XP" >&5 +-$as_echo_n "checking for XP... " >&6; } +- +-if test -n "$XP_CFLAGS"; then +- pkg_cv_XP_CFLAGS="$XP_CFLAGS" +- elif test -n "$PKG_CONFIG"; then +- if test -n "$PKG_CONFIG" && \ +- { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xp\""; } >&5 +- ($PKG_CONFIG --exists --print-errors "xp") 2>&5 +- ac_status=$? +- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 +- test $ac_status = 0; }; then +- pkg_cv_XP_CFLAGS=`$PKG_CONFIG --cflags "xp" 2>/dev/null` +-else +- pkg_failed=yes +-fi +- else +- pkg_failed=untried +-fi +-if test -n "$XP_LIBS"; then +- pkg_cv_XP_LIBS="$XP_LIBS" +- elif test -n "$PKG_CONFIG"; then +- if test -n "$PKG_CONFIG" && \ +- { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xp\""; } >&5 +- ($PKG_CONFIG --exists --print-errors "xp") 2>&5 +- ac_status=$? +- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 +- test $ac_status = 0; }; then +- pkg_cv_XP_LIBS=`$PKG_CONFIG --libs "xp" 2>/dev/null` +-else +- pkg_failed=yes +-fi +- else +- pkg_failed=untried +-fi +- +- + +-if test $pkg_failed = yes; then +- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +-$as_echo "no" >&6; } + +-if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then +- _pkg_short_errors_supported=yes +-else +- _pkg_short_errors_supported=no +-fi +- if test $_pkg_short_errors_supported = yes; then +- XP_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xp" 2>&1` +- else +- XP_PKG_ERRORS=`$PKG_CONFIG --print-errors "xp" 2>&1` +- fi +- # Put the nasty error message in config.log where it belongs +- echo "$XP_PKG_ERRORS" >&5 + +- XP_FOUND=no +-elif test $pkg_failed = untried; then +- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +-$as_echo "no" >&6; } +- XP_FOUND=no +-else +- XP_CFLAGS=$pkg_cv_XP_CFLAGS +- XP_LIBS=$pkg_cv_XP_LIBS +- { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +-$as_echo "yes" >&6; } +- XP_FOUND=yes +-fi +-if test "x${XP_FOUND}" = xno +-then +- as_fn_error $? "Could not find Xp - \ +- Try installing libXp-devel." "$LINENO" 5 +-fi + + + +@@ -11271,83 +11068,6 @@ fi + + + +-pkg_failed=no +-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XINERAMA" >&5 +-$as_echo_n "checking for XINERAMA... " >&6; } +- +-if test -n "$XINERAMA_CFLAGS"; then +- pkg_cv_XINERAMA_CFLAGS="$XINERAMA_CFLAGS" +- elif test -n "$PKG_CONFIG"; then +- if test -n "$PKG_CONFIG" && \ +- { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xinerama\""; } >&5 +- ($PKG_CONFIG --exists --print-errors "xinerama") 2>&5 +- ac_status=$? +- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 +- test $ac_status = 0; }; then +- pkg_cv_XINERAMA_CFLAGS=`$PKG_CONFIG --cflags "xinerama" 2>/dev/null` +-else +- pkg_failed=yes +-fi +- else +- pkg_failed=untried +-fi +-if test -n "$XINERAMA_LIBS"; then +- pkg_cv_XINERAMA_LIBS="$XINERAMA_LIBS" +- elif test -n "$PKG_CONFIG"; then +- if test -n "$PKG_CONFIG" && \ +- { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xinerama\""; } >&5 +- ($PKG_CONFIG --exists --print-errors "xinerama") 2>&5 +- ac_status=$? +- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 +- test $ac_status = 0; }; then +- pkg_cv_XINERAMA_LIBS=`$PKG_CONFIG --libs "xinerama" 2>/dev/null` +-else +- pkg_failed=yes +-fi +- else +- pkg_failed=untried +-fi +- +- +- +-if test $pkg_failed = yes; then +- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +-$as_echo "no" >&6; } +- +-if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then +- _pkg_short_errors_supported=yes +-else +- _pkg_short_errors_supported=no +-fi +- if test $_pkg_short_errors_supported = yes; then +- XINERAMA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xinerama" 2>&1` +- else +- XINERAMA_PKG_ERRORS=`$PKG_CONFIG --print-errors "xinerama" 2>&1` +- fi +- # Put the nasty error message in config.log where it belongs +- echo "$XINERAMA_PKG_ERRORS" >&5 +- +- XINERAMA_FOUND=no +-elif test $pkg_failed = untried; then +- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +-$as_echo "no" >&6; } +- XINERAMA_FOUND=no +-else +- XINERAMA_CFLAGS=$pkg_cv_XINERAMA_CFLAGS +- XINERAMA_LIBS=$pkg_cv_XINERAMA_LIBS +- { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +-$as_echo "yes" >&6; } +- XINERAMA_FOUND=yes +- +-fi +-if test "x${XINERAMA_FOUND}" = xno +-then +- as_fn_error $? "Could not find Xinerama - \ +- Try installing libXinerama-devel." "$LINENO" 5 +-fi +- +- +- + if test "x${ENABLE_XRENDER}" = "xyes" + then + +@@ -11610,79 +11330,6 @@ fi + + + +-pkg_failed=no +-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XTST" >&5 +-$as_echo_n "checking for XTST... " >&6; } +- +-if test -n "$XTST_CFLAGS"; then +- pkg_cv_XTST_CFLAGS="$XTST_CFLAGS" +- elif test -n "$PKG_CONFIG"; then +- if test -n "$PKG_CONFIG" && \ +- { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xtst\""; } >&5 +- ($PKG_CONFIG --exists --print-errors "xtst") 2>&5 +- ac_status=$? +- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 +- test $ac_status = 0; }; then +- pkg_cv_XTST_CFLAGS=`$PKG_CONFIG --cflags "xtst" 2>/dev/null` +-else +- pkg_failed=yes +-fi +- else +- pkg_failed=untried +-fi +-if test -n "$XTST_LIBS"; then +- pkg_cv_XTST_LIBS="$XTST_LIBS" +- elif test -n "$PKG_CONFIG"; then +- if test -n "$PKG_CONFIG" && \ +- { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xtst\""; } >&5 +- ($PKG_CONFIG --exists --print-errors "xtst") 2>&5 +- ac_status=$? +- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 +- test $ac_status = 0; }; then +- pkg_cv_XTST_LIBS=`$PKG_CONFIG --libs "xtst" 2>/dev/null` +-else +- pkg_failed=yes +-fi +- else +- pkg_failed=untried +-fi +- +- +- +-if test $pkg_failed = yes; then +- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +-$as_echo "no" >&6; } +- +-if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then +- _pkg_short_errors_supported=yes +-else +- _pkg_short_errors_supported=no +-fi +- if test $_pkg_short_errors_supported = yes; then +- XTST_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xtst" 2>&1` +- else +- XTST_PKG_ERRORS=`$PKG_CONFIG --print-errors "xtst" 2>&1` +- fi +- # Put the nasty error message in config.log where it belongs +- echo "$XTST_PKG_ERRORS" >&5 +- +- XTST_FOUND=no +-elif test $pkg_failed = untried; then +- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +-$as_echo "no" >&6; } +- XTST_FOUND=no +-else +- XTST_CFLAGS=$pkg_cv_XTST_CFLAGS +- XTST_LIBS=$pkg_cv_XTST_LIBS +- { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +-$as_echo "yes" >&6; } +- XTST_FOUND=yes +-fi +-if test "x${XTST_FOUND}" = xno +-then +- as_fn_error $? "Could not find Xtst - \ +- Try installing libXtst-devel." "$LINENO" 5 +-fi + + + +@@ -11764,85 +11411,6 @@ fi + + + +-if test "x${BUILD_OS_DIR}" = "xlinux" +-then +- +-pkg_failed=no +-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ALSA" >&5 +-$as_echo_n "checking for ALSA... " >&6; } +- +-if test -n "$ALSA_CFLAGS"; then +- pkg_cv_ALSA_CFLAGS="$ALSA_CFLAGS" +- elif test -n "$PKG_CONFIG"; then +- if test -n "$PKG_CONFIG" && \ +- { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"alsa\""; } >&5 +- ($PKG_CONFIG --exists --print-errors "alsa") 2>&5 +- ac_status=$? +- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 +- test $ac_status = 0; }; then +- pkg_cv_ALSA_CFLAGS=`$PKG_CONFIG --cflags "alsa" 2>/dev/null` +-else +- pkg_failed=yes +-fi +- else +- pkg_failed=untried +-fi +-if test -n "$ALSA_LIBS"; then +- pkg_cv_ALSA_LIBS="$ALSA_LIBS" +- elif test -n "$PKG_CONFIG"; then +- if test -n "$PKG_CONFIG" && \ +- { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"alsa\""; } >&5 +- ($PKG_CONFIG --exists --print-errors "alsa") 2>&5 +- ac_status=$? +- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 +- test $ac_status = 0; }; then +- pkg_cv_ALSA_LIBS=`$PKG_CONFIG --libs "alsa" 2>/dev/null` +-else +- pkg_failed=yes +-fi +- else +- pkg_failed=untried +-fi +- +- +- +-if test $pkg_failed = yes; then +- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +-$as_echo "no" >&6; } +- +-if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then +- _pkg_short_errors_supported=yes +-else +- _pkg_short_errors_supported=no +-fi +- if test $_pkg_short_errors_supported = yes; then +- ALSA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "alsa" 2>&1` +- else +- ALSA_PKG_ERRORS=`$PKG_CONFIG --print-errors "alsa" 2>&1` +- fi +- # Put the nasty error message in config.log where it belongs +- echo "$ALSA_PKG_ERRORS" >&5 +- +- ALSA_FOUND=no +-elif test $pkg_failed = untried; then +- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +-$as_echo "no" >&6; } +- ALSA_FOUND=no +-else +- ALSA_CFLAGS=$pkg_cv_ALSA_CFLAGS +- ALSA_LIBS=$pkg_cv_ALSA_LIBS +- { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +-$as_echo "yes" >&6; } +- ALSA_FOUND=yes +-fi +- if test "x${ALSA_FOUND}" = xno +- then +- as_fn_error $? "Could not find alsa - \ +- Try installing alsa-lib-devel." "$LINENO" 5 +- fi +- +- +-fi + + if test "x${enable_pulse_java}" = "xyes" + then diff --git a/package/orbit2/Makefile b/package/orbit2/Makefile new file mode 100644 index 000000000..db64efe10 --- /dev/null +++ b/package/orbit2/Makefile @@ -0,0 +1,45 @@ +# This file is part of the OpenADK project. OpenADK is copyrighted +# material, please see the LICENCE file in the top-level directory. + +include $(TOPDIR)/rules.mk + +PKG_NAME:= ORBit2 +PKG_VERSION:= 2.14.19 +PKG_EXTRAVER:= 2.14 +PKG_RELEASE:= 1 +PKG_MD5SUM:= 87c69c56c6d0bdafa4de5e18ae115cc9 +PKG_DESCR:= a CORBA 2.4-compliant Object Request Broker +PKG_SECTION:= libs +PKG_BUILDDEP:= libIDL +PKG_URL:= http://projects.gnome.org/ORBit2/ +PKG_SITES:= ftp://ftp.gnome.org//pub/gnome/sources/ORBit2/${PKG_EXTRAVER}/ + +include $(TOPDIR)/mk/package.mk + +$(eval $(call PKG_template,ORBIT2,orbit2,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION})) + +CFLAGS_FOR_BUILD+= $(shell ${BUILD_LIBIDL_CONFIG} --cflags) +LDFLAGS_FOR_BUILD+= $(shell ${BUILD_LIBIDL_CONFIG} --libs) +LDFLAGS_FOR_BUILD+= -lgmodule-2.0 +CONFIGURE_ENV+= ac_cv_alignof_CORBA_octet=1 \ + ac_cv_alignof_CORBA_boolean=1 \ + ac_cv_alignof_CORBA_char=1 \ + ac_cv_alignof_CORBA_wchar=2 \ + ac_cv_alignof_CORBA_short=2 \ + ac_cv_alignof_CORBA_long=4 \ + ac_cv_alignof_CORBA_long_long=4 \ + ac_cv_alignof_CORBA_float=4 \ + ac_cv_alignof_CORBA_double=4 \ + ac_cv_alignof_CORBA_long_double=4 \ + ac_cv_alignof_CORBA_struct=1 \ + ac_cv_alignof_CORBA_pointer=4 + +orbit2-install: + $(INSTALL_DIR) $(IDIR_ORBIT2)/usr/lib + $(INSTALL_BIN) $(WRKINST)/usr/lib/libORBit*.so* \ + $(IDIR_ORBIT2)/usr/lib + $(INSTALL_DIR) $(STAGING_DIR)/usr/bin + $(CP) $(WRKINST)/usr/bin/orbit-idl-2 \ + $(STAGING_DIR)/usr/bin + +include ${TOPDIR}/mk/pkg-bottom.mk diff --git a/package/orbit2/patches/patch-ORBit-2_0_pc_in b/package/orbit2/patches/patch-ORBit-2_0_pc_in new file mode 100644 index 000000000..394e62a0c --- /dev/null +++ b/package/orbit2/patches/patch-ORBit-2_0_pc_in @@ -0,0 +1,11 @@ +--- ORBit2-2.14.19.orig/ORBit-2.0.pc.in 2010-02-09 13:05:35.000000000 +0100 ++++ ORBit2-2.14.19/ORBit-2.0.pc.in 2011-03-25 21:11:02.000000000 +0100 +@@ -2,7 +2,7 @@ prefix=@prefix@ + exec_prefix=@exec_prefix@ + libdir=@libdir@ + includedir=@includedir@ +-orbit_idl=@bindir@/orbit-idl-2@EXEEXT@ ++orbit_idl=${prefix}/../@bindir@/orbit-idl-2@EXEEXT@ + + + Name: ORBit-2.0 diff --git a/package/orbit2/patches/patch-configure b/package/orbit2/patches/patch-configure new file mode 100644 index 000000000..e2a4d02c9 --- /dev/null +++ b/package/orbit2/patches/patch-configure @@ -0,0 +1,11 @@ +--- ORBit2-2.14.19.orig/configure 2010-09-28 11:39:37.000000000 +0200 ++++ ORBit2-2.14.19/configure 2011-03-25 19:39:53.000000000 +0100 +@@ -8373,7 +8373,7 @@ $as_echo_n "checking whether the $compil + # here allows them to be overridden if necessary. + runpath_var=LD_RUN_PATH + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' +- export_dynamic_flag_spec='${wl}--export-dynamic' ++ #export_dynamic_flag_spec='${wl}--export-dynamic' + # ancient GNU ld didn't support --whole-archive et. al. + if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then + whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' diff --git a/package/orbit2/patches/patch-src_idl-compiler_Makefile_in b/package/orbit2/patches/patch-src_idl-compiler_Makefile_in new file mode 100644 index 000000000..2053d9f29 --- /dev/null +++ b/package/orbit2/patches/patch-src_idl-compiler_Makefile_in @@ -0,0 +1,54 @@ +--- ORBit2-2.14.19.orig/src/idl-compiler/Makefile.in 2010-09-28 11:39:39.000000000 +0200 ++++ ORBit2-2.14.19/src/idl-compiler/Makefile.in 2011-03-25 20:28:46.000000000 +0100 +@@ -66,15 +66,13 @@ DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top + depcomp = $(SHELL) $(top_srcdir)/depcomp + am__depfiles_maybe = depfiles + am__mv = mv -f +-COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ +- $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) ++COMPILE = $(CC_FOR_BUILD) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ ++ $(CPPFLAGS_FOR_BUILD) $(CFLAGS_FOR_BUILD) + LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ +- --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ +- $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) +-CCLD = $(CC) +-LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ +- --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \ +- $(LDFLAGS) -o $@ ++ --mode=compile $(CC_FOR_BUILD) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ ++ $(CPPFLAGS_FOR_BUILD) $(CFLAGS_FOR_BUILD) ++CCLD = $(CC_FOR_BUILD) ++LINK = $(CCLD) $(CFLAGS_FOR_BUILD) $(LDFLAGS_FOR_BUILD) -o $@ + SOURCES = $(orbit_idl_2_SOURCES) + DIST_SOURCES = $(orbit_idl_2_SOURCES) + am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; +@@ -178,8 +176,8 @@ ORBIT_ALIGNOF_CORBA_SHORT = @ORBIT_ALIGN + ORBIT_ALIGNOF_CORBA_STRUCT = @ORBIT_ALIGNOF_CORBA_STRUCT@ + ORBIT_ALIGNOF_CORBA_WCHAR = @ORBIT_ALIGNOF_CORBA_WCHAR@ + ORBIT_CFLAGS = @ORBIT_CFLAGS@ +-ORBIT_IDL_CFLAGS = @ORBIT_IDL_CFLAGS@ +-ORBIT_IDL_LIBS = @ORBIT_IDL_LIBS@ ++ORBIT_IDL_CFLAGS = ++ORBIT_IDL_LIBS = + ORBIT_LIBS = @ORBIT_LIBS@ + ORBIT_MAJOR_VERSION = @ORBIT_MAJOR_VERSION@ + ORBIT_MICRO_VERSION = @ORBIT_MICRO_VERSION@ +@@ -199,7 +197,7 @@ PACKAGE_URL = @PACKAGE_URL@ + PACKAGE_VERSION = @PACKAGE_VERSION@ + PATH_SEPARATOR = @PATH_SEPARATOR@ + PKG_CONFIG = @PKG_CONFIG@ +-PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@ ++PKG_CONFIG_LIBDIR = $(PKG_HOSTLIB_DIR) + PKG_CONFIG_PATH = @PKG_CONFIG_PATH@ + RANLIB = @RANLIB@ + SED = @SED@ +@@ -270,8 +268,7 @@ INCLUDES = \ + -DVERSION=\"$(ORBIT_VERSION)\" \ + -DORBIT2_INTERNAL_API \ + $(WARN_CFLAGS) \ +- $(DISABLE_DEPRECATED_CFLAGS) \ +- $(ORBIT_IDL_CFLAGS) ++ $(DISABLE_DEPRECATED_CFLAGS) + + orbit_idl_2_LDADD = \ + $(ORBIT_IDL_LIBS) \ diff --git a/scripts/sha256sum b/scripts/sha256sum new file mode 100755 index 000000000..3c0a706c7 --- /dev/null +++ b/scripts/sha256sum @@ -0,0 +1,7 @@ +#!/usr/bin/env bash +# This file is part of the OpenADK project. OpenADK is copyrighted +# material, please see the LICENCE file in the top-level directory. + +tmp=$(mktemp -t yyy) +cat - > $tmp +shasum -a 256 "$@" $tmp |