backport fix from changeset:2599
[openwrt.git] / openwrt / package / slurm / Makefile
1 include $(TOPDIR)/rules.mk
2
3 PKG_NAME:=slurm
4 PKG_VERSION:=0.3.3
5 PKG_RELEASE:=1
6 PKG_MD5SUM:=e68d09202b835c644f7f6b7f070f29a2
7
8 PKG_SOURCE_URL:=http://www.wormulon.net/files/code/slurm/
9 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
10 PKG_CAT:=zcat
11 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
12 PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
13
14 include $(TOPDIR)/package/rules.mk
15
16 $(eval $(call PKG_template,SLURM,slurm,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
17
18 $(PKG_BUILD_DIR)/.configured: $(PKG_BUILD_DIR)/.prepared
19 (cd $(PKG_BUILD_DIR); rm -rf config.{cache,status}; \
20 touch configure.in; \
21 touch aclocal.m4; \
22 touch Makefile.in; \
23 touch config.h.in; \
24 touch configure; \
25 $(TARGET_CONFIGURE_OPTS) \
26 CFLAGS="$(TARGET_CFLAGS)" \
27 CPPFLAGS="-I$(STAGING_DIR)/usr/include -I$(STAGING_DIR)/include" \
28 LDFLAGS="-L$(STAGING_DIR)/usr/lib -L$(STAGING_DIR)/lib" \
29 LIBS="-lncurses" \
30 ac_cv_func_malloc_0_nonnull=yes \
31 ac_cv_lib_ncurses_use_default_colors=yes \
32 ./configure \
33 --target=$(GNU_TARGET_NAME) \
34 --host=$(GNU_TARGET_NAME) \
35 --build=$(GNU_HOST_NAME) \
36 --program-prefix="" \
37 --program-suffix="" \
38 --prefix=/usr \
39 --exec-prefix=/usr \
40 --bindir=/usr/bin \
41 --datadir=/usr/share \
42 --includedir=/usr/include \
43 --infodir=/usr/share/info \
44 --libdir=/usr/lib \
45 --libexecdir=/usr/lib \
46 --localstatedir=/var \
47 --mandir=/usr/share/man \
48 --sbindir=/usr/sbin \
49 --sysconfdir=/etc \
50 $(DISABLE_LARGEFILE) \
51 $(DISABLE_NLS) \
52 );
53 touch $@
54
55 $(PKG_BUILD_DIR)/.built:
56 rm -rf $(PKG_INSTALL_DIR)
57 mkdir -p $(PKG_INSTALL_DIR)
58 $(MAKE) -C $(PKG_BUILD_DIR) \
59 DESTDIR="$(PKG_INSTALL_DIR)" \
60 all install
61 touch $@
62
63 $(IPKG_SLURM):
64 install -d -m0755 $(IDIR_SLURM)/usr/bin
65 cp -fpR $(PKG_INSTALL_DIR)/usr/bin/slurm $(IDIR_SLURM)/usr/bin/
66 $(RSTRIP) $(IDIR_SLURM)
67 $(IPKG_BUILD) $(IDIR_SLURM) $(PACKAGE_DIR)
68
69 mostlyclean:
70 -$(MAKE) -C $(PKG_BUILD_DIR) clean
71 rm $(PKG_BUILD_DIR)/.built
This page took 0.040453 seconds and 5 git commands to generate.