Port gdbserver to -ng
[openwrt/svn-archive/archive.git] / utils / setserial / Makefile
1 #
2 # Copyright (C) 2006 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:=setserial
12 PKG_VERSION:=2.17
13 PKG_RELEASE:=1
14
15 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
16 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
17 PKG_SOURCE_URL:=@SF/setserial
18 PKG_MD5SUM:=c4867d72c41564318e0107745eb7a0f2
19 PKG_CAT:=zcat
20
21 PKG_INIT_PRIO=15
22
23 include $(INCLUDE_DIR)/package.mk
24
25 define Package/setserial
26 SECTION:=utils
27 CATEGORY:=Utilities
28 TITLE:=Serial port configuration utility
29 DESCRIPTION:=Serial port configuration utility.\\\
30 setserial is a program designed to set and/or report the \\\
31 configuration information associated with a serial port. This \\\
32 information includes what I/O port and IRQ a particular \\\
33 serial port is using, and whether or not the break key should \\\
34 be interpreted as the Secure Attention Key, and so on.
35 URL:=http://setserial.sourceforge.net/
36 endef
37
38 define Build/Configure
39 (cd $(PKG_BUILD_DIR); rm -f config.cache; \
40 $(TARGET_CONFIGURE_OPTS) \
41 ./configure \
42 --target=$(GNU_TARGET_NAME) \
43 --host=$(GNU_TARGET_NAME) \
44 --build=$(GNU_HOST_NAME) \
45 --program-prefix="" \
46 --program-suffix="" \
47 --prefix=/usr \
48 --exec-prefix=/usr \
49 --bindir=/usr/bin \
50 --datadir=/usr/share \
51 --includedir=/usr/include \
52 --infodir=/usr/share/info \
53 --libdir=/usr/lib \
54 --libexecdir=/usr/lib \
55 --localstatedir=/var \
56 --mandir=/usr/share/man \
57 --sbindir=/usr/sbin \
58 --sysconfdir=/etc \
59 $(DISABLE_LARGEFILE) \
60 $(DISABLE_NLS) \
61 );
62 endef
63
64 define Build/Compile
65 $(MAKE) -C $(PKG_BUILD_DIR) \
66 all
67 endef
68
69 define Package/setserial/install
70 install -d -m0755 $(1)/etc/init.d
71 install -m0755 ./files/serial.init $(1)/etc/init.d/setserial
72 ln -sf setserial $(1)/etc/init.d/S$(PKG_INIT_PRIO)setserial
73 install -d -m0755 $(1)/usr/sbin
74 install -m0755 $(PKG_BUILD_DIR)/setserial $(1)/usr/sbin/
75 endef
76
77 $(eval $(call BuildPackage,setserial))