Makefile 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  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:= 12.1
  6. PKG_RELEASE:= 1
  7. PKG_HASH:= 0e1793bf8f2b54d53f46dea84ccfd446f48f81b297b28c4f7fc017b818d69fed
  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. --without-uiout \
  23. --disable-tui \
  24. --disable-gdbtk \
  25. --disable-gdbserver \
  26. --without-x \
  27. --with-expat \
  28. --disable-sim \
  29. --disable-plugins \
  30. --disable-werror \
  31. --without-python \
  32. --without-included-gettext \
  33. --without-auto-load-safe-path \
  34. --disable-install-libiberty \
  35. --disable-install-libbfd \
  36. --with-system-zlib \
  37. --with-system-readline \
  38. --with-curses \
  39. --with-libexpat-prefix="${STAGING_TARGET_DIR}/usr" \
  40. --with-gmp="${STAGING_TARGET_DIR}/usr" \
  41. --enable-gdbmi
  42. gdb-install:
  43. ${INSTALL_DIR} ${IDIR_GDB}/usr/bin
  44. ${INSTALL_BIN} ${WRKINST}/usr/bin/gdb \
  45. ${IDIR_GDB}/usr/bin/
  46. include ${ADK_TOPDIR}/mk/pkg-bottom.mk