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 ${TOPDIR}/rules.mk
  4. PKG_NAME:= libtool
  5. PKG_VERSION:= 2.4
  6. PKG_RELEASE:= 1
  7. PKG_MD5SUM:= b32b04148ecdd7344abc6fe8bd1bb021
  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_NEED_CXX:= 1
  13. PKG_SUBPKGS:= LIBTOOL LIBLTDL LIBLTDL_DEV
  14. PKGSC_LIBLTDL:= libs
  15. PKGSD_LIBLTDL_DEV:= libltdl header files
  16. PKGSC_LIBLTDL_DEV:= devel
  17. include ${TOPDIR}/mk/package.mk
  18. $(eval $(call PKG_template,LIBTOOL,${PKG_NAME},${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  19. $(eval $(call PKG_template,LIBLTDL,libltdl,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKGSC_LIBLTDL}))
  20. $(eval $(call PKG_template,LIBLTDL_DEV,libltdl-dev,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKGSC_LIBLTDL_DEV}))
  21. ifeq (${ADK_HOST_OPENBSD},y)
  22. XAKE_FLAGS+= AUTOCONF_VERSION=2.62
  23. endif
  24. CONFIGURE_ARGS+= --enable-ltdl-install
  25. post-install:
  26. ${INSTALL_DIR} ${IDIR_LIBTOOL}/usr/bin
  27. ${INSTALL_BIN} ${WRKINST}/usr/bin/libtool ${IDIR_LIBTOOL}/usr/bin
  28. ${INSTALL_BIN} ${WRKINST}/usr/bin/libtoolize ${IDIR_LIBTOOL}/usr/bin
  29. libltdl-install:
  30. ${INSTALL_DIR} ${IDIR_LIBLTDL}/usr/lib
  31. ${CP} ${WRKINST}/usr/lib/libltdl.so* ${IDIR_LIBLTDL}/usr/lib/
  32. libltdl-dev-install:
  33. ${INSTALL_DIR} ${IDIR_LIBLTDL_DEV}/usr/include
  34. ${CP} ${WRKINST}/usr/include/* ${IDIR_LIBLTDL_DEV}/usr/include
  35. include ${TOPDIR}/mk/pkg-bottom.mk