Makefile 1.1 KB

1234567891011121314151617181920212223242526272829303132333435
  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:= 1.1
  6. PKG_RELEASE:= 1
  7. PKG_MD5SUM:= ae970ccd9144e132b68664f98e7ceeb1
  8. PKG_DESCR:= Netlink library
  9. PKG_SECTION:= libs
  10. PKG_SITES:= http://downloads.openwrt.org/sources/
  11. PKG_SUBPKGS:= LIBNL LIBNL_DEV
  12. PKGSD_LIBNL_DEV:= header files for netlink library
  13. PKGSC_LIBNL_DEV:= devel
  14. include ${TOPDIR}/mk/package.mk
  15. $(eval $(call PKG_template,LIBNL,${PKG_NAME},${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  16. $(eval $(call PKG_template,LIBNL_DEV,${PKG_NAME}-dev,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKGSD_LIBNL_DEV},${PKGSC_LIBNL_DEV}))
  17. SUB_INSTALLS-y:=
  18. SUB_INSTALLS-m:=
  19. SUB_INSTALLS-${ADK_PACKAGE_LIBNL_DEV}+= libnl-dev-install
  20. post-install: ${SUB_INSTALLS-m} ${SUB_INSTALLS-y}
  21. ${INSTALL_DIR} ${IDIR_LIBNL}/usr/lib
  22. ${CP} ${WRKINST}/usr/lib/libnl.so* ${IDIR_LIBNL}/usr/lib
  23. libnl-dev-install:
  24. ${INSTALL_DIR} ${IDIR_LIBNL_DEV}/usr/include
  25. ${CP} ${WRKINST}/usr/include/* ${IDIR_LIBNL_DEV}/usr/include
  26. include ${TOPDIR}/mk/pkg-bottom.mk