Makefile 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  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. SUB_INSTALLS-y:=
  23. SUB_INSTALLS-m:=
  24. SUB_INSTALLS-${ADK_PACKAGE_LIBUSB_DEV}+= libusb-dev-install
  25. post-install: ${SUB_INSTALLS-m} ${SUB_INSTALLS-y}
  26. ${INSTALL_DIR} ${IDIR_LIBUSB}/usr/lib
  27. ${CP} ${WRKINST}/usr/lib/libusb*.so* ${IDIR_LIBUSB}/usr/lib/
  28. libusb-dev-install:
  29. ${INSTALL_DIR} ${IDIR_LIBUSB_DEV}/usr/include
  30. ${CP} ${WRKINST}/usr/include/* ${IDIR_LIBUSB_DEV}/usr/include
  31. include ${TOPDIR}/mk/pkg-bottom.mk