1
0

Makefile 1.7 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
  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_SUBPKGS:= LIBTOOL LIBLTDL LIBLTDL_DEV
  13. PKGSC_LIBLTDL:= libs
  14. PKGSD_LIBLTDL_DEV:= libltdl header files
  15. PKGSC_LIBLTDL_DEV:= devel
  16. include ${TOPDIR}/mk/package.mk
  17. $(eval $(call PKG_template,LIBTOOL,${PKG_NAME},${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  18. $(eval $(call PKG_template,LIBLTDL,libltdl,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKGSC_LIBLTDL}))
  19. $(eval $(call PKG_template,LIBLTDL_DEV,libltdl-dev,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKGSC_LIBLTDL_DEV}))
  20. ifeq (${ADK_HOST_OPENBSD},y)
  21. XAKE_FLAGS+= AUTOCONF_VERSION=2.62
  22. endif
  23. CONFIGURE_ARGS+= --enable-ltdl-install
  24. SUB_INSTALLS-y:=
  25. SUB_INSTALLS-m:=
  26. SUB_INSTALLS-${ADK_PACKAGE_LIBLTDL}+= libltdl-install
  27. SUB_INSTALLS-${ADK_PACKAGE_LIBLTDL_DEV}+= libltdl-dev-install
  28. post-install: ${SUB_INSTALLS-m} ${SUB_INSTALLS-y}
  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. libltdl-dev-install:
  36. ${INSTALL_DIR} ${IDIR_LIBLTDL_DEV}/usr/include
  37. ${CP} ${WRKINST}/usr/include/* ${IDIR_LIBLTDL_DEV}/usr/include
  38. include ${TOPDIR}/mk/pkg-bottom.mk