Makefile 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  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:= libtool
  5. PKG_VERSION:= 2.4.2
  6. PKG_RELEASE:= 3
  7. PKG_MD5SUM:= 2ec8997e0c07249eb4cbd072417d70fe
  8. PKG_DESCR:= generic dynamic object loading library
  9. PKG_SECTION:= dev/tools
  10. PKG_BUILDDEP:= m4-host libtool-host
  11. PKG_URL:= http://www.gnu.org/software/libtool/
  12. PKG_SITES:= ${MASTER_SITE_GNU:=libtool/}
  13. PKG_LIBNAME:= libltdl
  14. PKG_OPTS:= dev
  15. PKG_SUBPKGS:= LIBTOOL LIBLTDL
  16. PKGSC_LIBLTDL:= libs/misc
  17. include ${ADK_TOPDIR}/mk/host.mk
  18. include ${ADK_TOPDIR}/mk/package.mk
  19. $(eval $(call HOST_template,LIBTOOL,libtool,${PKG_VERSION}-${PKG_RELEASE}))
  20. $(eval $(call PKG_template,LIBTOOL,libtool,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  21. $(eval $(call PKG_template,LIBLTDL,libltdl,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKGSC_LIBLTDL},${PKG_OPTS}))
  22. ifeq (${ADK_HOST_OPENBSD},y)
  23. XAKE_FLAGS+= AUTOCONF_VERSION=2.62
  24. endif
  25. CONFIGURE_ARGS+= --enable-ltdl-install
  26. XAKE_FLAGS+= HELP2MAN=/bin/echo
  27. HOST_XAKE_FLAGS+= HELP2MAN=/bin/echo
  28. libtool-install:
  29. ${INSTALL_DIR} ${IDIR_LIBTOOL}/usr/bin
  30. ${INSTALL_BIN} ${WRKINST}/usr/bin/libtool ${IDIR_LIBTOOL}/usr/bin
  31. ${INSTALL_BIN} ${WRKINST}/usr/bin/libtoolize ${IDIR_LIBTOOL}/usr/bin
  32. libltdl-install:
  33. ${INSTALL_DIR} ${IDIR_LIBLTDL}/usr/lib
  34. ${CP} ${WRKINST}/usr/lib/libltdl.so* ${IDIR_LIBLTDL}/usr/lib/
  35. include ${ADK_TOPDIR}/mk/host-bottom.mk
  36. include ${ADK_TOPDIR}/mk/pkg-bottom.mk