Makefile 1.5 KB

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