1 include $(TOPDIR
)/rules.mk
6 PKG_MD5SUM
:=e68d09202b835c644f7f6b7f070f29a2
8 PKG_SOURCE_URL
:=http
://www.wormulon.net
/files
/code
/slurm
/
9 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
11 PKG_BUILD_DIR
:=$(BUILD_DIR
)/$(PKG_NAME
)-$(PKG_VERSION
)
12 PKG_INSTALL_DIR
:=$(PKG_BUILD_DIR
)/ipkg-install
14 include $(TOPDIR
)/package
/rules.mk
16 $(eval
$(call PKG_template
,SLURM
,slurm
,$(PKG_VERSION
)-$(PKG_RELEASE
),$(ARCH
)))
18 $(PKG_BUILD_DIR
)/.configured
: $(PKG_BUILD_DIR
)/.prepared
19 (cd
$(PKG_BUILD_DIR
); rm -rf config.
{cache
,status
}; \
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" \
30 ac_cv_func_malloc_0_nonnull
=yes \
31 ac_cv_lib_ncurses_use_default_colors
=yes \
33 --target
=$(GNU_TARGET_NAME
) \
34 --host
=$(GNU_TARGET_NAME
) \
35 --build
=$(GNU_HOST_NAME
) \
41 --datadir=/usr
/share \
42 --includedir=/usr
/include \
43 --infodir=/usr
/share
/info \
45 --libexecdir
=/usr
/lib \
46 --localstatedir
=/var \
47 --mandir=/usr
/share
/man \
50 $(DISABLE_LARGEFILE
) \
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)" \
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
)
70 -$(MAKE
) -C
$(PKG_BUILD_DIR
) clean
71 rm $(PKG_BUILD_DIR
)/.built