2
0

Makefile 816 B

123456789101112131415161718192021222324252627282930313233343536
  1. #
  2. # Copyright (C) 2009-2012 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. PKG_NAME:=upslug2
  9. PKG_VERSION:=20071227
  10. PKG_SOURCE_URL:=http://svn.nslu2-linux.org/svnroot/upslug2/trunk
  11. PKG_SOURCE_PROTO:=svn
  12. PKG_SOURCE_SUBDIR:=upslug2-$(PKG_VERSION)
  13. PKG_SOURCE_VERSION:=41
  14. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
  15. PKG_MIRROR_HASH:=5c69eae3a2affef8f4f7194cfedfdb9175b04ca433f9ae046c85309b42bdb21e
  16. include $(INCLUDE_DIR)/host-build.mk
  17. unexport CFLAGS
  18. define Host/Configure
  19. (cd $(HOST_BUILD_DIR); \
  20. aclocal && autoconf && \
  21. autoheader && \
  22. automake --add-missing; \
  23. )
  24. $(Host/Configure/Default)
  25. endef
  26. ifneq ($(HOST_OS),Linux)
  27. HOST_CONFIGURE_ARGS += --with-libpcap
  28. endif
  29. $(eval $(call HostBuild))