3 include $(TOPDIR
)/rules.mk
8 PKG_MD5SUM
:=e68d09202b835c644f7f6b7f070f29a2
10 PKG_SOURCE_URL
:=http
://www.wormulon.net
/files
/code
/slurm
/
11 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
13 PKG_BUILD_DIR
:=$(BUILD_DIR
)/$(PKG_NAME
)-$(PKG_VERSION
)
14 PKG_INSTALL_DIR
:=$(PKG_BUILD_DIR
)/ipkg-install
16 include $(TOPDIR
)/package
/rules.mk
18 $(eval
$(call PKG_template
,SLURM
,slurm
,$(PKG_VERSION
)-$(PKG_RELEASE
),$(ARCH
)))
20 $(PKG_BUILD_DIR
)/.configured
: $(PKG_BUILD_DIR
)/.prepared
21 (cd
$(PKG_BUILD_DIR
); rm -rf config.
{cache
,status
}; \
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" \
32 ac_cv_func_malloc_0_nonnull
=yes \
33 ac_cv_lib_ncurses_use_default_colors
=yes \
35 --target
=$(GNU_TARGET_NAME
) \
36 --host
=$(GNU_TARGET_NAME
) \
37 --build
=$(GNU_HOST_NAME
) \
43 --datadir=/usr
/share \
44 --includedir=/usr
/include \
45 --infodir=/usr
/share
/info \
47 --libexecdir
=/usr
/lib \
48 --localstatedir
=/var \
49 --mandir=/usr
/share
/man \
52 $(DISABLE_LARGEFILE
) \
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)" \
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
)
72 -$(MAKE
) -C
$(PKG_BUILD_DIR
) clean
73 rm $(PKG_BUILD_DIR
)/.built