classpath: fix multiple compile issues
authornbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Sun, 8 Jan 2012 15:39:27 +0000 (15:39 +0000)
committernbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Sun, 8 Jan 2012 15:39:27 +0000 (15:39 +0000)
git-svn-id: svn://svn.openwrt.org/openwrt/packages@29691 3c298f89-4303-0410-b956-a3cf2f4a3e73

libs/classpath/Makefile

index 084fbde..5815bf4 100644 (file)
@@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
 
 PKG_NAME:=classpath
 PKG_VERSION:=0.98
-PKG_RELEASE:=3
+PKG_RELEASE:=4
 
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
 PKG_SOURCE_URL:=@GNU/classpath
@@ -26,7 +26,6 @@ define Package/classpath
   TITLE:=GNU Classpath
   URL:=http://www.gnu.org/software/classpath/
   MAINTAINER:=Roberto Riggio <roberto.riggio@create-net.org>
-  DEPENDS:=@BROKEN
 endef
 
 define Package/classpath/Description
@@ -35,21 +34,37 @@ define Package/classpath/Description
        machines and compilers for the java programming language.
 endef
 
-define Build/Configure
-       $(call Build/Configure/Default, \
-               --with-javac \
-               --enable-jni \
-               --disable-gtk-peer \
-               --disable-gconf-peer \
-               --disable-plugin \
-       )
+define Download/antlr
+  URL:=http://www.antlr.org/download
+  FILE:=antlr-3.4-complete.jar
+  MD5SUM:=1b91dea1c7d480b3223f7c8a9aa0e172
 endef
+$(eval $(call Download,antlr))
+
+CONFIGURE_ARGS += \
+       --without-x \
+       --disable-gtk-peer \
+       --disable-qt-peer \
+       --disable-dssi \
+       --disable-plugin \
+       --disable-gconf-peer \
+       --disable-gjdoc \
+       --with-antlr-jar=$(DL_DIR)/antlr-3.4-complete.jar
 
 define Package/classpath/install
-       $(INSTALL_DIR) $(1)/usr/share/classpath
-       $(INSTALL_DIR) $(1)/usr/lib/classpath
-       $(CP) $(PKG_INSTALL_DIR)/usr/share/classpath/glibj.zip $(1)/usr/share/classpath/
-       $(CP) $(PKG_INSTALL_DIR)/usr/lib/classpath/* $(1)/usr/lib/classpath/
+       $(INSTALL_DIR) \
+               $(1)/usr/lib/classpath \
+               $(1)/usr/share/classpath
+       $(CP) \
+               $(PKG_INSTALL_DIR)/usr/lib/security \
+               $(PKG_INSTALL_DIR)/usr/lib/logging.properties \
+               $(1)/usr/lib/
+       $(CP) $(PKG_INSTALL_DIR)/usr/lib/classpath/*.so* $(1)/usr/lib/classpath/
+       $(CP) $(PKG_INSTALL_DIR)/usr/share/classpath/*.zip $(1)/usr/share/classpath/
+endef
+
+define Build/InstallDev
+       $(CP) $(PKG_INSTALL_DIR)/* $(1)/
 endef
 
 $(eval $(call BuildPackage,classpath))