Makefile 1.2 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:= lzo
  5. PKG_VERSION:= 2.04
  6. PKG_RELEASE:= 1
  7. PKG_MD5SUM:= a383c7055a310e2a71b9ecd19cfea238
  8. PKG_DESCR:= a real-time data compression library
  9. PKG_SECTION:= libs
  10. PKG_URL:= http://www.oberhumer.com/opensource/lzo
  11. PKG_SITES:= http://www.oberhumer.com/opensource/lzo/download/
  12. PKG_SUBPKGS:= LIBLZO LIBLZO_DEV
  13. PKGSD_LIBLZO_DEV:= lzo library headers
  14. PKGSC_LIBLZO_DEV:= devel
  15. ifeq ($(ADK_STATIC),y)
  16. PKG_OPTS:= libonly
  17. endif
  18. include ${TOPDIR}/mk/package.mk
  19. $(eval $(call PKG_template,LIBLZO,liblzo,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION},$(PKG_OPTS)))
  20. $(eval $(call PKG_template,LIBLZO_DEV,liblzo-dev,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKGSD_LIBLZO_DEV},${PKGSC_LIBLZO_DEV},$(PKG_OPTS)))
  21. CONFIGURE_ARGS+= --enable-static
  22. MAKE_FLAGS+= CFLAGS_O="${TARGET_CFLAGS}"
  23. post-install:
  24. ${INSTALL_DIR} ${IDIR_LIBLZO}/usr/lib
  25. ${CP} ${WRKINST}/usr/lib/liblzo2.so* ${IDIR_LIBLZO}/usr/lib
  26. liblzo-dev-install:
  27. ${INSTALL_DIR} ${IDIR_LIBLZO_DEV}/usr/include/lzo
  28. ${CP} ${WRKINST}/usr/include/lzo/*.h ${IDIR_LIBLZO_DEV}/usr/include/lzo
  29. include ${TOPDIR}/mk/pkg-bottom.mk