Makefile 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839
  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:= libnl
  5. PKG_VERSION:= 2.0
  6. PKG_RELEASE:= 2
  7. PKG_MD5SUM:= 6aaf1e9802a17a7d702bb0638044ffa7
  8. PKG_DESCR:= Netlink library
  9. PKG_SECTION:= libs
  10. PKG_URL:= http://www.infradead.org/~tgr/libnl/
  11. PKG_SITES:= http://www.infradead.org/~tgr/libnl/files/
  12. PKG_NOPARALLEL:= 1
  13. PKG_SUBPKGS:= LIBNL LIBNL_DEV
  14. PKGSD_LIBNL_DEV:= header files for netlink library
  15. PKGSC_LIBNL_DEV:= devel
  16. include ${TOPDIR}/mk/package.mk
  17. $(eval $(call PKG_template,LIBNL,libnl,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  18. $(eval $(call PKG_template,LIBNL_DEV,libnl-dev,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKGSD_LIBNL_DEV},${PKGSC_LIBNL_DEV}))
  19. libnl-install:
  20. ${INSTALL_DIR} ${IDIR_LIBNL}/usr/lib
  21. ${CP} ${WRKINST}/usr/lib/libnl.so* ${IDIR_LIBNL}/usr/lib
  22. ${CP} ${WRKINST}/usr/lib/libnl-genl.so* ${IDIR_LIBNL}/usr/lib
  23. ${CP} ${WRKINST}/usr/lib/libnl-cli.so* ${IDIR_LIBNL}/usr/lib
  24. ${CP} ${WRKINST}/usr/lib/libnl-route.so* ${IDIR_LIBNL}/usr/lib
  25. libnl-dev-install:
  26. ${INSTALL_DIR} ${IDIR_LIBNL_DEV}/usr/include
  27. ${CP} ${WRKINST}/usr/include/* ${IDIR_LIBNL_DEV}/usr/include
  28. ${INSTALL_DIR} ${IDIR_LIBNL_DEV}/usr/lib/pkgconfig
  29. ${INSTALL_DATA} ${WRKINST}/usr/lib/pkgconfig/*.pc \
  30. ${IDIR_LIBNL_DEV}/usr/lib/pkgconfig
  31. include ${TOPDIR}/mk/pkg-bottom.mk