[packages] flashrom: update source url, use PKG_INSTALL & MAKE_FLAGS, refresh patches
[openwrt/svn-archive/archive.git] / utils / tcpser / Makefile
1 #
2 # Copyright (C) 2009 Marek Drapal <marek.drapal@touchware.cz>
3 # Copyright (C) 2009 OpenWrt.org
4 #
5 # This is free software, licensed under the GNU General Public License v2.
6 # See /LICENSE for more information.
7 #
8
9 include $(TOPDIR)/rules.mk
10
11 PKG_NAME:=tcpser
12 PKG_VERSION:=1.0rc12
13 PKG_RELEASE:=1
14
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
16 PKG_SOURCE_URL:=http://www.jbrain.com/pub/linux/serial/
17 PKG_MD5SUM:=e712ae9fe6893bc825026b6dee6da9c0
18
19
20 include $(INCLUDE_DIR)/package.mk
21
22 define Package/tcpser
23 SECTION:=utils
24 CATEGORY:=Utilities
25 TITLE:=Hayes compatible modem emulator
26 URL:=http://www.jbrain.com/pub/linux/serial/
27 DEPENDS:=libpthread
28 endef
29
30 define Package/tcpser/description
31 TCPSER turns a PC serial port into an emulated Hayes compatible modem
32 that uses TCP/IP for incoming and outgoing connections. It can be used
33 to allow older applications and systems designed for modem use
34 to operate on the Internet. TCPSER supports all standard Hayes commands,
35 and understands extended and vendor proprietary commands (though it does
36 not implement many of them). TCPSER can be used for both inbound and
37 outbound connections.
38 endef
39
40 define Build/Prepare
41 $(call Build/Prepare/Default)
42 $(CP) $(PKG_BUILD_DIR)/../$(PKG_NAME)/* $(PKG_BUILD_DIR)/
43 endef
44
45 define Build/Compile
46 $(MAKE) -C $(PKG_BUILD_DIR) \
47 $(TARGET_CONFIGURE_OPTS) CFLAGS="$(TARGET_CFLAGS) -I$(LINUX_DIR)/include"
48 endef
49
50 define Package/tcpser/install
51 $(INSTALL_DIR) $(1)/usr/bin
52 $(INSTALL_BIN) $(PKG_BUILD_DIR)/tcpser $(1)/usr/bin/
53 endef
54
55
56 $(eval $(call BuildPackage,tcpser))