Makefile 1.0 KB

123456789101112131415161718192021222324252627282930313233343536
  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:= libpcap
  5. PKG_VERSION:= 1.0.0
  6. PKG_RELEASE:= 1
  7. PKG_MD5SUM:= 9ad1358c5dec48456405eac197a46d3d
  8. PKG_DESCR:= a low-level packet capture library
  9. PKG_SECTION:= libs
  10. PKG_URL:= http://www.tcpdump.org
  11. PKG_SITES:= http://www.tcpdump.org/release/
  12. include $(TOPDIR)/mk/package.mk
  13. $(eval $(call PKG_template,LIBPCAP,libpcap,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  14. CONFIGURE_STYLE= gnu
  15. CONFIGURE_ENV+= ac_cv_linux_vers=26
  16. CONFIGURE_ARGS+= --disable-yydebug \
  17. --with-build-cc=$(HOSTCC) \
  18. --with-pcap=linux
  19. BUILD_STYLE= auto
  20. TCFLAGS+= ${TCPPFLAGS}
  21. INSTALL_STYLE= auto
  22. INSTALL_TARGET= install install-shared
  23. pre-install:
  24. ${INSTALL_DIR} ${WRKINST}/usr/bin
  25. post-install:
  26. ${INSTALL_DIR} ${IDIR_LIBPCAP}/usr/lib/
  27. ${CP} ${WRKINST}/usr/lib/libpcap.so.* ${IDIR_LIBPCAP}/usr/lib/
  28. include ${TOPDIR}/mk/pkg-bottom.mk