Makefile 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  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 ${ADK_TOPDIR}/rules.mk
  4. PKG_NAME:= gdb
  5. PKG_VERSION:= 13.1
  6. PKG_RELEASE:= 1
  7. PKG_HASH:= 115ad5c18d69a6be2ab15882d365dda2a2211c14f480b3502c6eba576e2e95a0
  8. PKG_DESCR:= program debugger
  9. PKG_SECTION:= app/debug
  10. PKG_SITES:= ${MASTER_SITE_GNU:=gdb/}
  11. PKG_DEPENDS:= libncurses libreadline zlib libexpat libthread-db libgmp
  12. PKG_BUILDDEP:= ncurses readline expat zlib gmp
  13. PKG_NEEDS:= c++
  14. PKG_ARCH_DEPENDS:= !cris !avr32 !microblaze
  15. include ${ADK_TOPDIR}/mk/package.mk
  16. $(eval $(call PKG_template,GDB,gdb,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  17. XAKE_FLAGS+= MAKEINFO=true
  18. WRKBUILD= $(WRKDIR)/$(PKG_NAME)-obj
  19. CONFIGURE_ENV+= host_configargs='--with-libgmp-prefix="${STAGING_TARGET_DIR}/usr"'
  20. # --enable-static is required to build libbfd.a
  21. CONFIGURE_ARGS+= --enable-static \
  22. --disable-shared \
  23. --without-uiout \
  24. --disable-tui \
  25. --disable-gdbtk \
  26. --disable-gdbserver \
  27. --without-x \
  28. --with-expat \
  29. --disable-sim \
  30. --disable-plugins \
  31. --disable-werror \
  32. --without-python \
  33. --without-included-gettext \
  34. --without-auto-load-safe-path \
  35. --disable-install-libiberty \
  36. --disable-install-libbfd \
  37. --with-system-zlib \
  38. --with-system-readline \
  39. --with-curses \
  40. --with-libexpat-prefix="${STAGING_TARGET_DIR}/usr" \
  41. --with-gmp="${STAGING_TARGET_DIR}/usr" \
  42. --enable-gdbmi
  43. gdb-install:
  44. ${INSTALL_DIR} ${IDIR_GDB}/usr/bin
  45. ${INSTALL_BIN} ${WRKINST}/usr/bin/gdb \
  46. ${IDIR_GDB}/usr/bin/
  47. include ${ADK_TOPDIR}/mk/pkg-bottom.mk