mirror of
https://github.com/openwrt/packages.git
synced 2025-01-31 01:22:13 +00:00
7087efd72a
This patch aims to move scons host build tool into packages feeds, where this tools belongs. There are currently no packages in the master tree which would need scons, yet scons is build always as part of host tools, just in order to satisfy host build dependency of few packages in the packages feeeds. Signed-off-by: Petr Štetiar <ynezz@true.cz>
24 lines
496 B
Makefile
24 lines
496 B
Makefile
export PLATFORM=posix
|
|
|
|
SCONS_VARS = \
|
|
CC="$(TARGET_CC_NOCACHE)" \
|
|
CXX="$(TARGET_CXX_NOCACHE)" \
|
|
CFLAGS="$(TARGET_CFLAGS) $(EXTRA_CFLAGS)" \
|
|
CXXFLAGS="$(TARGET_CXXFLAGS) $(EXTRA_CXXFLAGS)" \
|
|
CPPFLAGS="$(TARGET_CPPFLAGS) $(EXTRA_CPPFLAGS)" \
|
|
LDFLAGS="$(TARGET_LDFLAGS) $(EXTRA_LDFLAGS)" \
|
|
DESTDIR="$(PKG_INSTALL_DIR)"
|
|
|
|
define Build/Configure/Default
|
|
(cd $(PKG_BUILD_DIR); \
|
|
$(SCONS_VARS) \
|
|
scons \
|
|
prefix=/usr \
|
|
$(SCONS_OPTIONS) \
|
|
install \
|
|
)
|
|
endef
|
|
|
|
define Build/Compile
|
|
endef
|