Convert ntpclient to new packaging style
[openwrt.git] / openwrt / package / haserl / Makefile
1 # $Id$
2
3 include $(TOPDIR)/rules.mk
4
5 PKG_NAME := haserl
6 PKG_VERSION := 0.8.0
7 PKG_RELEASE := 1
8 PKG_MD5SUM := bd9195d086566f56634c0bcbbbcbebea
9
10 PKG_SOURCE_URL := \
11 @SF/haserl \
12 http://nthill.free.fr/openwrt/sources/$(PKG_NAME)/
13 PKG_SOURCE := $(PKG_NAME)-$(PKG_VERSION).tar.gz
14 PKG_CAT := zcat
15
16 PKG_BUILD_DIR := $(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
17 PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
18
19 include $(TOPDIR)/package/rules.mk
20
21 $(eval $(call PKG_template,HASERL,haserl,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
22
23 $(PKG_BUILD_DIR)/.configured: $(PKG_BUILD_DIR)/.prepared
24 (cd $(PKG_BUILD_DIR); rm -rf config.{cache,status} ; \
25 $(TARGET_CONFIGURE_OPTS) \
26 CFLAGS="$(TARGET_CFLAGS) -DMAX_UPLOAD_KB=8192" \
27 ./configure \
28 --target=$(GNU_TARGET_NAME) \
29 --host=$(GNU_TARGET_NAME) \
30 --build=$(GNU_HOST_NAME) \
31 --program-prefix="" \
32 --program-suffix="" \
33 --prefix=/usr \
34 --exec-prefix=/usr \
35 --bindir=/usr/bin \
36 --datadir=/usr/share \
37 --includedir=/usr/include \
38 --infodir=/usr/share/info \
39 --libdir=/usr/lib \
40 --libexecdir=/usr/lib \
41 --localstatedir=/var \
42 --mandir=/usr/share/man \
43 --sbindir=/usr/sbin \
44 --sysconfdir=/etc \
45 $(DISABLE_LARGEFILE) \
46 $(DISABLE_NLS) \
47 )
48 touch $(PKG_BUILD_DIR)/.configured
49
50 $(PKG_BUILD_DIR)/.built: $(PKG_BUILD_DIR)/.configured
51 $(MAKE) -C $(PKG_BUILD_DIR)
52 mkdir -p $(PKG_INSTALL_DIR)
53 $(MAKE) -C $(PKG_BUILD_DIR) \
54 DESTDIR="$(PKG_INSTALL_DIR)" \
55 install
56 touch $(PKG_BUILD_DIR)/.built
57
58 $(IPKG_HASERL):
59 install -m0755 -d $(IDIR_HASERL)/usr/bin
60 cp -fpR $(PKG_INSTALL_DIR)/usr/bin/haserl $(IDIR_HASERL)/usr/bin/
61 $(RSTRIP) $(IDIR_HASERL)
62 $(IPKG_BUILD) $(IDIR_HASERL) $(PACKAGE_DIR)
63
This page took 0.044368 seconds and 5 git commands to generate.