Advertisement
Guest User

Untitled

a guest
Aug 31st, 2011
111
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.59 KB | None | 0 0
  1. NAME = libpcap
  2. TITLE = libpcap
  3. SRC_VER = 1.1.1
  4. VERSION = 1.1.1-1
  5. APP_ID = org.webosinternals.${EXTRAID}${NAME}
  6. HOMEPAGE = http://www.tcpdump.org
  7. MAINTAINER = WebOS Internals <support@webos-internals.org>
  8. DESCRIPTION = A system-independent interface for user-level packet capture
  9. TYPE = Linux Application
  10. CATEGORY = Utilities
  11. ICON = http://www.webos-internals.org/images/a/ae/Icon_WebOSInternals_Base_Patch.png
  12. LICENSE = GPL v2 Open Source
  13. DEPEND = libnl
  14.  
  15. SRC_TGZ = http://www.tcpdump.org/release/libpcap-${SRC_VER}.tar.gz
  16.  
  17. .PHONY: package
  18. package: ipkgs/${APP_ID}_${VERSION}_arm.ipk ipkgs/${APP_ID}_${VERSION}_i686.ipk
  19.  
  20. include ../../support/package.mk
  21.  
  22. include ../../support/download.mk
  23.  
  24. .PHONY: unpack
  25. unpack: build/.unpacked-${VERSION}
  26.  
  27. PHONY: post-unpack
  28. post-unpack: build/.unpacked-${VERSION}
  29.  
  30. build/.unpacked-${VERSION}: ${DL_DIR}/${NAME}-${VERSION}.tar.gz
  31. rm -rf build
  32. mkdir -p build/src
  33. tar -C build/src -xf ${DL_DIR}/${NAME}-${VERSION}.tar.gz
  34. touch $@
  35.  
  36. .PHONY: build
  37. build: build/.built-${VERSION}
  38.  
  39. build/.built-${VERSION}: build/armv7.built-${VERSION} build/armv6.built-${VERSION}
  40. touch $@
  41.  
  42. include ../../support/cross-compile.mk
  43.  
  44. build/%.built-${VERSION}: build/.unpacked-${VERSION}
  45. ( cd build/src/${NAME}-${SRC_VER} ; \
  46. CC=${CROSS_COMPILE_$*}gcc \
  47. CFLAGS="${CFLAGS_arm7}"\
  48. ./configure --prefix=/opt --host=${CONFIGURE_HOST_armv7} ; \
  49. ${MAKE} clean all )
  50. mkdir -p build/$*/opt/include/pcap
  51. install -m 644 build/src/${NAME}-${SRC_VER}/pcap/*.h build/$*/opt/include/pcap
  52. mkdir -p build/$*/opt/lib
  53. touch $@
  54.  
  55. clobber::
  56. rm -rf build
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement