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