Makefile 893 B

1234567891011121314151617181920212223242526272829303132333435
  1. # $Id$
  2. #-
  3. # This file is part of the OpenADK project. OpenADK is copyrighted
  4. # material, please see the LICENCE file in the top-level directory.
  5. include $(TOPDIR)/rules.mk
  6. PKG_NAME:= libpcap
  7. PKG_VERSION:= 1.0.0
  8. PKG_RELEASE:= 1
  9. PKG_MD5SUM:= 9ad1358c5dec48456405eac197a46d3d
  10. MASTER_SITES:= http://www.tcpdump.org/release/
  11. include $(TOPDIR)/mk/package.mk
  12. $(eval $(call PKG_template,LIBPCAP,libpcap,$(PKG_VERSION)-$(PKG_RELEASE)))
  13. CONFIGURE_STYLE= gnu
  14. CONFIGURE_ENV+= ac_cv_linux_vers=26
  15. CONFIGURE_ARGS+= --disable-yydebug \
  16. --with-build-cc=$(HOSTCC) \
  17. --with-pcap=linux
  18. BUILD_STYLE= auto
  19. TCFLAGS+= ${TCPPFLAGS}
  20. INSTALL_STYLE= auto
  21. INSTALL_TARGET= install install-shared
  22. pre-install:
  23. ${INSTALL_DIR} ${WRKINST}/usr/bin
  24. post-install:
  25. ${INSTALL_DIR} ${IDIR_LIBPCAP}/usr/lib/
  26. ${CP} ${WRKINST}/usr/lib/libpcap.so.* ${IDIR_LIBPCAP}/usr/lib/
  27. include ${TOPDIR}/mk/pkg-bottom.mk