1
0

Makefile 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  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:= libusb
  5. PKG_VERSION:= 1.0.8
  6. PKG_RELEASE:= 1
  7. PKG_MD5SUM:= 37d34e6eaa69a4b645a19ff4ca63ceef
  8. PKG_DESCR:= a library for accessing Linux USB devices
  9. PKG_SECTION:= libs
  10. PKG_URL:= http://libusb.wiki.sourceforge.net/
  11. PKG_SITES:= ${MASTER_SITE_SOURCEFORGE:=libusb/}
  12. PKG_SUBPKGS:= LIBUSB LIBUSB_DEV
  13. PKGSD_LIBUSB_DEV:= header files for libusb library
  14. PKGSC_LIBUSB_DEV:= devel
  15. ifeq ($(ADK_STATIC),y)
  16. PKG_OPTS:= libonly
  17. endif
  18. DISTFILES:= ${PKG_NAME}-${PKG_VERSION}.tar.bz2
  19. include ${TOPDIR}/mk/package.mk
  20. $(eval $(call PKG_template,LIBUSB,${PKG_NAME},${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION},${PKG_OPTS}))
  21. $(eval $(call PKG_template,LIBUSB_DEV,${PKG_NAME}-dev,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKGSD_LIBUSB_DEV},${PKGSC_LIBUSB_DEV},${PKG_OPTS}))
  22. libusb-install:
  23. ${INSTALL_DIR} ${IDIR_LIBUSB}/usr/lib
  24. ${CP} ${WRKINST}/usr/lib/libusb*.so* ${IDIR_LIBUSB}/usr/lib
  25. libusb-dev-install:
  26. ${INSTALL_DIR} ${IDIR_LIBUSB_DEV}/usr/include
  27. ${CP} ${WRKINST}/usr/include/* ${IDIR_LIBUSB_DEV}/usr/include
  28. ${INSTALL_DIR} ${IDIR_LIBUSB_DEV}/usr/lib/pkgconfig
  29. ${CP} ${WRKINST}/usr/lib/pkgconfig/*.pc \
  30. ${IDIR_LIBUSB_DEV}/usr/lib/pkgconfig
  31. include ${TOPDIR}/mk/pkg-bottom.mk