cleanup Makefile and enable DRI/DRM
[openwrt/svn-archive/archive.git] / net / veth / Makefile
1 #
2 # Copyright (C) 2008 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7 # $Id: $
8
9 include $(TOPDIR)/rules.mk
10
11 PKG_NAME:=veth
12 PKG_VERSION:=1.0
13 PKG_RELEASE:=1
14
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
16 PKG_SOURCE_URL:=http://www.geocities.com/nestorjpg/veth/
17 PKG_MD5SUM:=11536388d9c76552a4b736638a458361
18
19 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
20
21 include $(INCLUDE_DIR)/package.mk
22
23 define Package/veth
24 SECTION:=net
25 CATEGORY:=Network
26 DEPENDS:=+kmod-tun
27 TITLE:=Virtual Ethernet Device for Linux
28 URL:=http://www.geocities.com/nestorjpg/veth/
29 endef
30
31 define Package/veth/description
32 VETH is a daemon that virtualizes a ethernet card in Linux.
33 The virtualization is done via Universal TUN/TAP Driver.
34 endef
35
36 define Build/Compile
37 $(MAKE) -C $(PKG_BUILD_DIR)/veth \
38 CC="$(TARGET_CC)" \
39 CFLAGS="$(TARGET_CFLAGS) $(TARGET_CPPFLAGS)" \
40 LDFLAGS="$(TARGET_LDFLAGS)"
41 endef
42
43 define Package/veth/install
44 $(INSTALL_DIR) $(1)/usr/sbin
45 $(INSTALL_BIN) $(PKG_BUILD_DIR)/veth/vethd $(1)/usr/sbin/
46 endef
47
48 $(eval $(call BuildPackage,veth))