fix busybox+ipkg build
[openwrt.git] / openwrt / package / ipcad / Makefile
1 include $(TOPDIR)/rules.mk
2
3 PKG_NAME:=ipcad
4 PKG_VERSION:=3.7
5 PKG_RELEASE:=1
6 PKG_MD5SUM:=34c542c99593dfe9d5b408deffcfe70e
7 PKG_SOURCE_URL:=@SF/ipcad
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,IPCAD,$(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) -I$(STAGING_DIR)/usr/include -L$(STAGING_DIR)/usr/lib" \
22 ./configure \
23 --target=$(GNU_TARGET_NAME) \
24 --host=$(GNU_TARGET_NAME) \
25 --build=$(GNU_HOST_NAME) \
26 --prefix=/usr \
27 --exec-prefix=/usr \
28 --bindir=/usr/bin \
29 --sbindir=/usr/sbin \
30 --libexecdir=/usr/lib \
31 --sysconfdir=/etc \
32 --datadir=/usr/share \
33 --localstatedir=/var \
34 --mandir=/usr/man \
35 --mandir=/usr/man \
36 --infodir=/usr/info \
37 --program-prefix="" \
38 --with-gnu-ld \
39 --with-psrc=pcap \
40 --with-pcap-include=$(STAGING_DIR)/usr/include \
41 --with-pcap-libraries=$(STAGING_DIR)/usr/lib \
42 );
43 touch $@
44
45 $(PKG_BUILD_DIR)/.built:
46 $(MAKE) STAGING_DIR=$(STAGING_DIR) DESTDIR=$(PKG_INSTALL_DIR) -C $(PKG_BUILD_DIR) install
47 touch $@
48
49 $(IPKG_IPCAD):
50 mkdir -p $(IDIR_IPCAD)
51 cp -fpR $(PKG_INSTALL_DIR)/* $(IDIR_IPCAD)/
52 $(RSTRIP) $(IDIR_IPCAD)
53 $(IPKG_BUILD) $(IDIR_IPCAD) $(PACKAGE_DIR)
This page took 0.037367 seconds and 5 git commands to generate.