uwsgi: fix cross

This commit is contained in:
Eivind Uggedal 2015-08-05 16:22:53 +00:00
parent 5c3069f586
commit 7682f9b8b9

View file

@ -13,9 +13,6 @@ checksum=75a7d3138cfa9cd81a760c2f8a43f3d80961edc8e4f27043dc1412206c926287
_libdir=usr/lib/uwsgi
# XXX
nocross="http://build.voidlinux.eu/builders/armv7l_builder/builds/16129/steps/shell_3/logs/stdio"
pre_configure() {
sed -e "s|uc.get('plugin_dir')|'.'|" \
-i uwsgiconfig.py
@ -24,9 +21,28 @@ pre_configure() {
}
do_build() {
local _cflags="$CFLAGS"
local _ldflags="$LDFLAGS"
python uwsgiconfig.py --build core
python uwsgiconfig.py --plugin plugins/python core python
python3.4 uwsgiconfig.py --plugin plugins/python core python3
if [ -n "$CROSS_BUILD" ]; then
_cflags="$CFLAGS -I${XBPS_CROSS_BASE}/include/python2.7
-I${XBPS_CROSS_BASE}/usr/include"
_ldflags="$LDFLAGS -L${XBPS_CROSS_BASE}/lib/python2.7
-L${XBPS_CROSS_BASE}/usr/lib"
fi
CFLAGS="$_cflags" LDFLAGS="$_ldflags" python uwsgiconfig.py \
--plugin plugins/python core python
if [ -n "$CROSS_BUILD" ]; then
_cflags="$CFLAGS -I${XBPS_CROSS_BASE}/include/python3.4m
-I${XBPS_CROSS_BASE}/usr/include"
_ldflags="$LDFLAGS -L${XBPS_CROSS_BASE}/lib/python3.4m
-L${XBPS_CROSS_BASE}/usr/lib"
fi
CFLAGS="$_cflags" LDFLAGS="$_ldflags" python3.4 uwsgiconfig.py \
--plugin plugins/python core python3
}
do_install() {
@ -37,14 +53,14 @@ do_install() {
uwsgi-python_package() {
short_desc="$short_desc (Python2 plugin)"
pkg_install() {
vmove $_libdir/python_plugin.so
}
pkg_install() {
vmove $_libdir/python_plugin.so
}
}
uwsgi-python3.4_package() {
short_desc="$short_desc (Python3.4 plugin)"
pkg_install() {
vmove $_libdir/python3_plugin.so
}
pkg_install() {
vmove $_libdir/python3_plugin.so
}
}