make log output a bit nicer
[openwrt.git] / package / scdp / Makefile
1 include $(TOPDIR)/rules.mk
2
3 PKG_NAME:=scdp
4 PKG_VERSION:=1.0b
5 PKG_RELEASE:=1
6 PKG_MD5SUM:=7eafaf5a422e37d04715613993ed5d95
7
8 PKG_SOURCE_URL:=@SF/scdp
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,SCDP,scdp,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
18
19 $(PKG_BUILD_DIR)/.configured:
20 (cd $(PKG_BUILD_DIR); rm -rf config.cache; \
21 $(TARGET_CONFIGURE_OPTS) \
22 CFLAGS="$(TARGET_CFLAGS)" \
23 CPPFLAGS="-I$(STAGING_DIR)/usr/include -I$(STAGING_DIR)/include" \
24 LDFLAGS="-L$(STAGING_DIR)/usr/lib -L$(STAGING_DIR)/lib" \
25 ./configure \
26 --target=$(GNU_TARGET_NAME) \
27 --host=$(GNU_TARGET_NAME) \
28 --build=$(GNU_HOST_NAME) \
29 --program-prefix="" \
30 --program-suffix="" \
31 --prefix=/usr \
32 --exec-prefix=/usr \
33 --bindir=/usr/bin \
34 --datadir=/usr/share \
35 --includedir=/usr/include \
36 --infodir=/usr/share/info \
37 --libdir=/usr/lib \
38 --libexecdir=/usr/lib \
39 --localstatedir=/var \
40 --mandir=/usr/share/man \
41 --sbindir=/usr/sbin \
42 --sysconfdir=/etc \
43 $(DISABLE_LARGEFILE) \
44 $(DISABLE_NLS) \
45 --enable-shared \
46 --disable-static \
47 --with-gnu-ld \
48 );
49 touch $(PKG_BUILD_DIR)/.configured
50
51 $(PKG_BUILD_DIR)/.built:
52 rm -rf $(PKG_INSTALL_DIR)/
53 mkdir -p $(PKG_INSTALL_DIR)/
54 $(MAKE) -C $(PKG_BUILD_DIR) \
55 DESTDIR=$(PKG_INSTALL_DIR) \
56 all install
57 touch $@
58
59 $(IPKG_SCDP):
60 install -d -m0755 $(IDIR_SCDP)/usr/bin
61 cp -fpR $(PKG_INSTALL_DIR)/usr/bin/scdp $(IDIR_SCDP)/usr/bin/
62 $(RSTRIP) $(IDIR_SCDP)
63 $(IPKG_BUILD) $(IDIR_SCDP) $(PACKAGE_DIR)
This page took 0.035596 seconds and 5 git commands to generate.