Update to new upstream release candidate (v0.1.0.9-rc)
[openwrt.git] / package / setserial / Makefile
1 # $Id$
2
3 include $(TOPDIR)/rules.mk
4
5 PKG_NAME:=setserial
6 PKG_VERSION:=2.17
7 PKG_RELEASE:=1
8 PKG_MD5SUM:=c4867d72c41564318e0107745eb7a0f2
9
10 PKG_SOURCE_URL:=@SF/setserial
11 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
12 PKG_CAT:=zcat
13
14 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
15 PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
16
17 include $(TOPDIR)/package/rules.mk
18
19 $(eval $(call PKG_template,SETSERIAL,setserial,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
20
21 $(PKG_BUILD_DIR)/.configured:
22 (cd $(PKG_BUILD_DIR); rm -rf config.{cache,status} ; \
23 $(TARGET_CONFIGURE_OPTS) \
24 ./configure \
25 --target=$(GNU_TARGET_NAME) \
26 --host=$(GNU_TARGET_NAME) \
27 --build=$(GNU_HOST_NAME) \
28 --program-prefix="" \
29 --program-suffix="" \
30 --prefix=/usr \
31 --exec-prefix=/usr \
32 --bindir=/usr/bin \
33 --datadir=/usr/share \
34 --includedir=/usr/include \
35 --infodir=/usr/share/info \
36 --libdir=/usr/lib \
37 --libexecdir=/usr/lib \
38 --localstatedir=/var \
39 --mandir=/usr/share/man \
40 --sbindir=/usr/sbin \
41 --sysconfdir=/etc \
42 $(DISABLE_LARGEFILE) \
43 $(DISABLE_NLS) \
44 )
45 touch $@
46
47 $(PKG_BUILD_DIR)/.built:
48 $(MAKE) -C $(PKG_BUILD_DIR) \
49 all
50 touch $@
51
52 $(IPKG_SETSERIAL):
53 install -d -m0755 $(IDIR_SETSERIAL)/etc/init.d
54 install -m0755 ./files/serial.init $(IDIR_SETSERIAL)/etc/init.d/S15serial
55 install -d -m0755 $(IDIR_SETSERIAL)/usr/sbin
56 install -m0755 $(PKG_BUILD_DIR)/setserial $(IDIR_SETSERIAL)/usr/sbin/
57 $(RSTRIP) $(IDIR_SETSERIAL)
58 $(IPKG_BUILD) $(IDIR_SETSERIAL) $(PACKAGE_DIR)
This page took 0.04136 seconds and 5 git commands to generate.