1
0

Makefile 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  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_RELEASE:= 1
  6. PKG_VERSION:= 4.7.3
  7. PKG_MD5SUM:= 86f428a30379bdee0224e353ee2f999e
  8. PKG_SITES:= ${MASTER_SITE_GNU:=gcc/gcc-${PKG_VERSION}/}
  9. DISTFILES:= gcc-$(PKG_VERSION).tar.bz2
  10. WRKDIST= ${WRKDIR}/gcc-${PKG_VERSION}
  11. include ../rules.mk
  12. GCJ_ENV+= "JAR=no LDFLAGS=-liconv"
  13. install: ${STAGING_JAVA_HOST_DIR}/usr/bin/gcj
  14. $(WRKBUILD)/.configured: ${WRKDIST}/.prepared
  15. (cd $(WRKBUILD); \
  16. wget -O ecj.jar ftp://sourceware.org/pub/java/ecj-latest.jar; \
  17. env ${GCJ_ENV} ./configure \
  18. --prefix=/usr \
  19. --enable-java-home \
  20. --enable-languages=java \
  21. --enable-shared \
  22. --with-ffi \
  23. --with-mpc=$(STAGING_HOST_DIR) \
  24. --with-mpfr=$(STAGING_HOST_DIR) \
  25. --with-gmp=$(STAGING_HOST_DIR) \
  26. --disable-nls \
  27. --without-libiconv-prefix \
  28. --disable-libmudflap \
  29. --disable-libgomp \
  30. --disable-biarch \
  31. --disable-decimal-float \
  32. --disable-multilib \
  33. --disable-bootstrap \
  34. );
  35. touch $@
  36. $(WRKBUILD)/.compiled: ${WRKDIST}/.configured
  37. env ${GCJ_ENV} ${MAKE} -C ${WRKBUILD} $(MAKE_TRACE)
  38. touch $@
  39. ${STAGING_JAVA_HOST_DIR}/usr/bin/gcj: $(WRKBUILD)/.compiled
  40. $(INSTALL_DIR) ${STAGING_JAVA_HOST_DIR}
  41. env ${GCJ_ENV} ${MAKE} -C ${WRKBUILD} \
  42. DESTDIR=$(STAGING_JAVA_HOST_DIR) install $(MAKE_TRACE)
  43. include $(TOPDIR)/mk/tools.mk