Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- NAME = libpcap
- TITLE = libpcap
- SRC_VER = 1.1.1
- VERSION = 1.1.1-1
- APP_ID = org.webosinternals.${EXTRAID}${NAME}
- HOMEPAGE = http://www.tcpdump.org
- MAINTAINER = WebOS Internals <support@webos-internals.org>
- DESCRIPTION = A system-independent interface for user-level packet capture
- TYPE = Linux Application
- CATEGORY = Utilities
- ICON = http://www.webos-internals.org/images/a/ae/Icon_WebOSInternals_Base_Patch.png
- LICENSE = GPL v2 Open Source
- DEPEND = libnl
- SRC_TGZ = http://www.tcpdump.org/release/libpcap-${SRC_VER}.tar.gz
- .PHONY: package
- package: ipkgs/${APP_ID}_${VERSION}_arm.ipk ipkgs/${APP_ID}_${VERSION}_i686.ipk
- include ../../support/package.mk
- include ../../support/download.mk
- .PHONY: unpack
- unpack: build/.unpacked-${VERSION}
- PHONY: post-unpack
- post-unpack: build/.unpacked-${VERSION}
- build/.unpacked-${VERSION}: ${DL_DIR}/${NAME}-${VERSION}.tar.gz
- rm -rf build
- mkdir -p build/src
- tar -C build/src -xf ${DL_DIR}/${NAME}-${VERSION}.tar.gz
- touch $@
- .PHONY: build
- build: build/.built-${VERSION}
- build/.built-${VERSION}: build/armv7.built-${VERSION} build/armv6.built-${VERSION}
- touch $@
- include ../../support/cross-compile.mk
- build/%.built-${VERSION}: build/.unpacked-${VERSION}
- ( cd build/src/${NAME}-${SRC_VER} ; \
- CC=${CROSS_COMPILE_$*}gcc \
- CFLAGS="${CFLAGS_arm7}"\
- ./configure --prefix=/opt --host=${CONFIGURE_HOST_armv7} ; \
- ${MAKE} clean all )
- mkdir -p build/$*/opt/include/pcap
- install -m 644 build/src/${NAME}-${SRC_VER}/pcap/*.h build/$*/opt/include/pcap
- mkdir -p build/$*/opt/lib
- touch $@
- clobber::
- rm -rf build
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement