Makefile 1.0 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:= libdnet
  5. PKG_VERSION:= 1.11
  6. PKG_RELEASE:= 3
  7. PKG_MD5SUM:= 04c394ed8e1e7fc455456e79e908916d
  8. PKG_DESCR:= low-level networking library
  9. PKG_SECTION:= libs
  10. PKG_BUILDDEP:= autotool
  11. PKG_URL:= http://libdnet.sourceforge.net/
  12. PKG_SITES:= ${MASTER_SITE_SOURCEFORGE:=$(PKG_NAME)/}
  13. PKG_OPTS:= dev
  14. DISTFILES:= ${PKG_NAME}-${PKG_VERSION}.tar.gz
  15. include $(TOPDIR)/mk/package.mk
  16. $(eval $(call PKG_template,LIBDNET,libdnet,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION},${PKG_OPTS}))
  17. AUTOTOOL_STYLE:= autoreconf
  18. TARGET_CFLAGS:= $(filter-out -flto,$(TARGET_CFLAGS))
  19. CONFIGURE_ENV+= ac_cv_dnet_bsd_bpf=no
  20. CONFIGURE_ARGS+= --without-check
  21. post-patch:
  22. mv $(WRKBUILD)/config/acinclude.m4 $(WRKBUILD)
  23. libdnet-install:
  24. $(INSTALL_DIR) $(IDIR_LIBDNET)/usr/lib
  25. $(CP) $(WRKINST)/usr/lib/libdnet.so* $(IDIR_LIBDNET)/usr/lib
  26. include ${TOPDIR}/mk/pkg-bottom.mk