Makefile 918 B

123456789101112131415161718192021222324252627282930
  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,${PKG_NAME},$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  14. CONFIGURE_ENV+= ac_cv_linux_vers=26
  15. CONFIGURE_ARGS+= --disable-yydebug \
  16. --with-build-cc=$(HOSTCC) \
  17. --with-pcap=linux
  18. TCFLAGS+= ${TCPPFLAGS}
  19. INSTALL_TARGET= install install-shared
  20. post-install:
  21. ${INSTALL_DIR} ${IDIR_LIBPCAP}/usr/lib/
  22. ${CP} ${WRKINST}/usr/lib/libpcap.so* ${IDIR_LIBPCAP}/usr/lib/
  23. include ${TOPDIR}/mk/pkg-bottom.mk