Makefile 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. # This file is part of the OpenADK project. OpenADK is copyrighted
  2. # material, please see the LICENCE file in the top-level directory.
  3. include $(TOPDIR)/rules.mk
  4. PKG_NAME:= gcj
  5. PKG_VERSION:= 4.8.2
  6. PKG_RELEASE:= 1
  7. PKG_MD5SUM:= a3d7d63b9cb6b6ea049469a0c4a43c9d
  8. PKG_DESCR:= GNU java compiler
  9. PKG_SECTION:= lang
  10. PKG_SITES:= ${MASTER_SITE_GNU:=gcc/gcc-${PKG_VERSION}/}
  11. DISTFILES:= gcc-$(PKG_VERSION).tar.bz2
  12. WRKDIST= ${WRKDIR}/gcc-${PKG_VERSION}
  13. include $(TOPDIR)/mk/host.mk
  14. include $(TOPDIR)/mk/package.mk
  15. $(eval $(call HOST_template,GCJ,gcj,$(PKG_VERSION)-${PKG_RELEASE}))
  16. HOST_STYLE:= auto
  17. HOST_MAKE_ENV+= "JAR=no LDFLAGS=-liconv"
  18. # http://gcc.gnu.org/bugzilla/attachment.cgi?id=30880&action=diff
  19. HOST_CONFIGURE_ARGS:= --enable-dependency-tracking \
  20. --enable-java-home \
  21. --enable-languages=java \
  22. --enable-shared \
  23. --with-ffi \
  24. --with-mpc=$(STAGING_HOST_DIR) \
  25. --with-mpfr=$(STAGING_HOST_DIR) \
  26. --with-gmp=$(STAGING_HOST_DIR) \
  27. --disable-nls \
  28. --without-libiconv-prefix \
  29. --disable-libmudflap \
  30. --disable-libgomp \
  31. --disable-biarch \
  32. --disable-decimal-float \
  33. --disable-multilib \
  34. --disable-bootstrap
  35. post-extract:
  36. (cd $(DISTDIR); wget -O ecj.jar ftp://sourceware.org/pub/java/ecj-4.9.jar)
  37. (cd $(WRKBUILD); $(CP) $(DISTDIR)/ecj.jar .)
  38. include ${TOPDIR}/mk/host-bottom.mk
  39. include ${TOPDIR}/mk/pkg-bottom.mk