| 1 | # |
| 2 | # Copyright (C) 2009 OpenWrt.org |
| 3 | # |
| 4 | # This is free software, licensed under the GNU General Public License v2. |
| 5 | # See /LICENSE for more information. |
| 6 | # |
| 7 | include $(TOPDIR)/rules.mk |
| 8 | |
| 9 | PKG_NAME:=upslug2 |
| 10 | PKG_VERSION:=20071227 |
| 11 | |
| 12 | PKG_SOURCE_URL:=http://svn.nslu2-linux.org/svnroot/upslug2/trunk |
| 13 | PKG_SOURCE_PROTO:=svn |
| 14 | PKG_SOURCE_SUBDIR:=upslug2-$(PKG_VERSION) |
| 15 | PKG_SOURCE_VERSION:=41 |
| 16 | PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2 |
| 17 | |
| 18 | include $(INCLUDE_DIR)/host-build.mk |
| 19 | |
| 20 | unexport CFLAGS |
| 21 | |
| 22 | define Host/Configure |
| 23 | (cd $(HOST_BUILD_DIR); \ |
| 24 | aclocal && autoconf && \ |
| 25 | autoheader && \ |
| 26 | automake --add-missing; \ |
| 27 | ) |
| 28 | $(Host/Configure/Default) |
| 29 | endef |
| 30 | |
| 31 | ifneq ($(HOST_OS),Linux) |
| 32 | HOST_CONFIGURE_ARGS += --with-libpcap |
| 33 | endif |
| 34 | |
| 35 | $(eval $(call HostBuild)) |
| 36 | |