fix the broken build for brcm 2.4, idea from nbd
[openwrt.git] / package / maradns / Makefile
1 # $Id$
2
3 include $(TOPDIR)/rules.mk
4
5 PKG_NAME:=maradns
6 PKG_VERSION:=1.0.26
7 PKG_RELEASE:=1
8 PKG_MD5SUM:=b3180ad1f250a4e3820613e711ae159b
9
10 PKG_SOURCE_URL:=http://www.maradns.org/download
11 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
12 PKG_CAT:=bzcat
13
14 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
15 PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
16
17 include $(TOPDIR)/package/rules.mk
18
19 $(eval $(call PKG_template,MARADNS,maradns,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
20
21 $(PKG_BUILD_DIR)/.configured: $(PKG_BUILD_DIR)/.prepared
22 (cd $(PKG_BUILD_DIR); rm -rf config.{cache,status} ; \
23 $(TARGET_CONFIGURE_OPTS) \
24 ./configure \
25 --target=$(GNU_TARGET_NAME) \
26 --host=$(GNU_TARGET_NAME) \
27 --build=$(GNU_HOST_NAME) \
28 --program-prefix="" \
29 --program-suffix="" \
30 --prefix=/usr \
31 --exec-prefix=/usr \
32 --bindir=/usr/bin \
33 --datadir=/usr/share \
34 --includedir=/usr/include \
35 --infodir=/usr/share/info \
36 --libdir=/usr/lib \
37 --libexecdir=/usr/lib \
38 --localstatedir=/var \
39 --mandir=/usr/share/man \
40 --sbindir=/usr/sbin \
41 --sysconfdir=/etc \
42 $(DISABLE_LARGEFILE) \
43 $(DISABLE_NLS) \
44 --enable-shared \
45 --disable-static \
46 );
47 touch $@
48
49 $(PKG_BUILD_DIR)/.built:
50 $(MAKE) -C $(PKG_BUILD_DIR) \
51 CFLAGS="$(TARGET_CFLAGS)" \
52 FLAGS="$(TARGET_CFLAGS)" \
53 CC=$(TARGET_CC) \
54 HOSTCC="$(HOSTCC)"
55 mkdir -p $(PKG_INSTALL_DIR)/usr/{bin,sbin}
56 mkdir -p $(PKG_INSTALL_DIR)/usr/man/man{1,5,8}
57 $(MAKE) -C $(PKG_BUILD_DIR) \
58 PREFIX="$(PKG_INSTALL_DIR)/usr" \
59 RPM_BUILD_ROOT="$(PKG_INSTALL_DIR)" \
60 install
61 touch $@
62
63 $(IPKG_MARADNS):
64 install -d -m0755 $(IDIR_MARADNS)/etc
65 install -m0644 ./files/mararc $(IDIR_MARADNS)/etc/mararc
66 install -d -m0755 $(IDIR_MARADNS)/etc/init.d
67 install -m0755 ./files/maradns.init $(IDIR_MARADNS)/etc/init.d/S60maradns
68 install -d -m0755 $(IDIR_MARADNS)/usr/bin
69 cp -fpR $(PKG_INSTALL_DIR)/usr/bin/{askmara,getzone} $(IDIR_MARADNS)/usr/bin/
70 install -d -m0755 $(IDIR_MARADNS)/usr/sbin
71 cp -fpR $(PKG_INSTALL_DIR)/usr/sbin/{maradns,zoneserver} $(IDIR_MARADNS)/usr/sbin/
72 $(RSTRIP) $(IDIR_MARADNS)
73 $(IPKG_BUILD) $(IDIR_MARADNS) $(PACKAGE_DIR)
This page took 0.048004 seconds and 5 git commands to generate.