source: freewrt/package/slurm/Makefile@ 428f140

freewrt_1_0 freewrt_2_0
Last change on this file since 428f140 was c57fbc9, checked in by Thorsten Glaser <tg@…>, 19 years ago

nuke DISABLE_NLS, DISABLE_LARGEFILE, replace globally
with --disable-nls and --enable-largefile, because it
doesn't make sense otherwise and/or breaks.

Requested by wbx@ in Message-ID: <20060618220406.GL6291@…>
Done using find and ed(1)

git-svn-id: svn://www.freewrt.org/trunk/freewrt@152 afb5a338-a214-0410-bd46-81f09a774fd1

  • Property mode set to 100644
File size: 1.9 KB
Line 
1# $Id: Makefile 3112 2006-02-01 23:53:19Z mbm $
2
3include $(TOPDIR)/rules.mk
4
5PKG_NAME:=slurm
6PKG_VERSION:=0.3.3
7PKG_RELEASE:=1
8PKG_MD5SUM:=e68d09202b835c644f7f6b7f070f29a2
9
10PKG_SOURCE_URL:=http://www.wormulon.net/files/code/slurm/
11PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
12PKG_CAT:=zcat
13PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
14PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
15
16include $(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 --enable-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
71mostlyclean:
72 -$(MAKE) -C $(PKG_BUILD_DIR) clean
73 rm $(PKG_BUILD_DIR)/.built
Note: See TracBrowser for help on using the repository browser.