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