wing: Attempt to fix cross compile issues.
[openwrt/svn-archive/archive.git] / net / serialoverip / Makefile
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
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=serialoverip
11 PKG_VERSION:=1.0
12 PKG_RELEASE:=1
13
14 PKG_SOURCE:=$(PKG_NAME).tgz
15 PKG_SOURCE_URL:=@SF/serialoverip
16 PKG_MD5SUM:=0931cca65b8f9d32079fa3e55130ee1e
17
18 include $(INCLUDE_DIR)/package.mk
19
20 define Package/serialoverip
21 SECTION:=net
22 CATEGORY:=Network
23 TITLE:=SerialOverIP
24 URL:=http://sourceforge.net/projects/serialoverip/
25 endef
26
27 define Package/serialoverip/description
28 Tool for transport of serial interfaces over UDP/IP.
29 Usefull for accessing a distant serial device by a local program.
30 endef
31
32 define Build/Configure
33 endef
34
35 define Build/Compile
36 $(TARGET_CC) $(TARGET_CFLAGS) \
37 -o $(PKG_BUILD_DIR)/serialoverip $(PKG_BUILD_DIR)/serialoverip.c
38 endef
39
40 define Package/serialoverip/install
41 $(INSTALL_DIR) $(1)/usr/sbin
42 $(INSTALL_BIN) $(PKG_BUILD_DIR)/serialoverip $(1)/usr/sbin/
43 endef
44
45 $(eval $(call BuildPackage,serialoverip))