Makefile 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637
  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:= libevent
  5. PKG_VERSION:= 1.4.14b
  6. PKG_RELEASE:= 1
  7. PKG_MD5SUM:= a00e037e4d3f9e4fe9893e8a2d27918c
  8. PKG_DESCR:= Event notification library for event-driven network servers
  9. PKG_SECTION:= libs
  10. PKG_URL:= http://www.monkey.org/~provos/
  11. PKG_SITES:= http://www.monkey.org/~provos/
  12. DISTFILES:= $(PKG_NAME)-$(PKG_VERSION)-stable.tar.gz
  13. WRKDIST= $(WRKDIR)/$(PKG_NAME)-$(PKG_VERSION)-stable
  14. PKG_SUBPKGS:= LIBEVENT LIBEVENT_DEV
  15. PKGSD_LIBEVENT_DEV:= development files for libevent
  16. PKGSC_LIBEVENT_DEV:= devel
  17. include $(TOPDIR)/mk/package.mk
  18. $(eval $(call PKG_template,LIBEVENT,libevent,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  19. $(eval $(call PKG_template,LIBEVENT_DEV,libevent-dev,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKGSD_LIBEVENT_DEV},${PKGSC_LIBEVENT_DEV}))
  20. TARGET_CFLAGS:= $(filter-out -flto,$(TARGET_CFLAGS))
  21. libevent-install:
  22. $(INSTALL_DIR) $(IDIR_LIBEVENT)/usr/lib
  23. $(CP) $(WRKINST)/usr/lib/libevent*.so* $(IDIR_LIBEVENT)/usr/lib
  24. libevent-dev-install:
  25. ${INSTALL_DIR} ${IDIR_LIBEVENT_DEV}/usr/include
  26. ${CP} ${WRKINST}/usr/include/*.h ${IDIR_LIBEVENT_DEV}/usr/include
  27. include ${TOPDIR}/mk/pkg-bottom.mk