add missing config file and init script in the package
[openwrt.git] / package / wccpd / Makefile
1 include $(TOPDIR)/rules.mk
2
3 PKG_NAME:=wccpd
4 PKG_VERSION:=0.2
5 PKG_RELEASE:=1
6 PKG_MD5SUM:=5f15c274de61dfb88e0dbfc1ccbe6b67
7 PKG_SOURCE_URL:=@SF/wccpd
8 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
9 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
10 PKG_CAT:=zcat
11
12 PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
13
14 include $(TOPDIR)/package/rules.mk
15
16 $(eval $(call PKG_template,WCCPD,$(PKG_NAME),$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
17
18 $(PKG_BUILD_DIR)/.configured:
19 (cd $(PKG_BUILD_DIR); rm -rf config.cache; \
20 $(TARGET_CONFIGURE_OPTS) \
21 CFLAGS="$(TARGET_CFLAGS)" \
22 ac_cv_func_setpgrp_void=yes \
23 ./configure \
24 --target=$(GNU_TARGET_NAME) \
25 --host=$(GNU_TARGET_NAME) \
26 --build=$(GNU_HOST_NAME) \
27 --prefix=/usr \
28 --exec-prefix=/usr \
29 --bindir=/usr/bin \
30 --sbindir=/usr/sbin \
31 --libexecdir=/usr/lib \
32 --sysconfdir=/etc \
33 --datadir=/usr/share \
34 --localstatedir=/var \
35 --mandir=/usr/man \
36 --mandir=/usr/man \
37 --infodir=/usr/info \
38 --program-prefix="" \
39 --with-gnu-ld \
40 );
41 touch $@
42
43 $(PKG_BUILD_DIR)/.built:
44 $(MAKE) DESTDIR=$(PKG_INSTALL_DIR) -C $(PKG_BUILD_DIR) install
45 touch $@
46
47 $(IPKG_WCCPD):
48 mkdir -p $(IDIR_WCCPD)
49 cp -fpR $(PKG_INSTALL_DIR)/* $(IDIR_WCCPD)/
50 $(RSTRIP) $(IDIR_WCCPD)
51 $(IPKG_BUILD) $(IDIR_WCCPD) $(PACKAGE_DIR)
This page took 0.050057 seconds and 5 git commands to generate.