2012-05-06 05:02:35 +08:00
|
|
|
export PLATFORM=posix
|
|
|
|
|
2012-05-06 01:37:34 +08:00
|
|
|
SCONS_VARS = \
|
2012-07-29 05:06:59 +08:00
|
|
|
CC="$(TARGET_CC_NOCACHE)" \
|
|
|
|
CXX="$(TARGET_CXX_NOCACHE)" \
|
2012-05-06 01:37:34 +08:00
|
|
|
CFLAGS="$(TARGET_CFLAGS) $(EXTRA_CFLAGS)" \
|
2016-10-03 07:21:13 +08:00
|
|
|
CXXFLAGS="$(TARGET_CXXFLAGS) $(EXTRA_CXXFLAGS)" \
|
2012-05-06 01:37:34 +08:00
|
|
|
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
|