Fix compilation, change rpl_malloc detection, closes #423
[openwrt.git] / openwrt / package / macchanger / Makefile
1 # $Id$
2
3 include $(TOPDIR)/rules.mk
4
5 PKG_NAME:=macchanger
6 PKG_VERSION:=1.5.0
7 PKG_RELEASE:=1
8 PKG_MD5SUM:=79b7cdaeca3d8ebafa764c4b0dd03ab7
9 PKG_SOURCE_URL:=@GNU/macchanger
10 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
11 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
12 PKG_CAT:=zcat
13
14 PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
15
16 include $(TOPDIR)/package/rules.mk
17
18 $(eval $(call PKG_template,MACCHANGER,$(PKG_NAME),$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
19
20 $(PKG_BUILD_DIR)/.configured:
21 (cd $(PKG_BUILD_DIR); rm -rf config.cache; \
22 $(TARGET_CONFIGURE_OPTS) \
23 CFLAGS="$(TARGET_CFLAGS)" \
24 ./configure \
25 --target=$(GNU_TARGET_NAME) \
26 --host=$(GNU_TARGET_NAME) \
27 --build=$(GNU_HOST_NAME) \
28 --prefix=/usr \
29 --exec-prefix=/usr \
30 --bindir=/usr/bin \
31 --sbindir=/usr/sbin \
32 --libexecdir=/usr/lib \
33 --sysconfdir=/etc \
34 --datadir=/usr/share \
35 --localstatedir=/var \
36 --mandir=/usr/man \
37 --mandir=/usr/man \
38 --infodir=/usr/info \
39 --program-prefix="" \
40 --with-gnu-ld \
41 );
42 touch $@
43
44 $(PKG_BUILD_DIR)/.built:
45 $(MAKE) DESTDIR=$(PKG_INSTALL_DIR) -C $(PKG_BUILD_DIR) install
46 touch $@
47
48 $(IPKG_MACCHANGER):
49 mkdir -p $(IDIR_MACCHANGER)
50 $(CP) $(PKG_INSTALL_DIR)/* $(IDIR_MACCHANGER)/
51 $(RSTRIP) $(IDIR_MACCHANGER)
52 $(IPKG_BUILD) $(IDIR_MACCHANGER) $(PACKAGE_DIR)
This page took 0.039269 seconds and 5 git commands to generate.