summaryrefslogtreecommitdiffhomepage
path: root/343.python3.vars
diff options
context:
space:
mode:
authorLucio Andrés Illanes Albornoz (arab, vxp) <l.illanes@gmx.de>2016-06-23 08:50:09 +0000
committerLucio Andrés Illanes Albornoz (arab, vxp) <l.illanes@gmx.de>2016-06-23 08:50:09 +0000
commit3243be768ad8a601b2636be4dd23dbb6c2d7dd9b (patch)
treecabb6414ea898fa0e0375aa4d0603861819d854c /343.python3.vars
parenta0c044e739c6161692408ee2595870e184640f27 (diff)
downloadmidipix_build-3243be768ad8a601b2636be4dd23dbb6c2d7dd9b.tar.bz2
midipix_build-3243be768ad8a601b2636be4dd23dbb6c2d7dd9b.tar.xz
- Adds and integrates pkgconf_host and pkgconf; fixes Irssi and other
packages that depend on pkg-config(1) and makes their build variables significantly less hacky (apk_tools, irssi, nano, ncurses, ncursestw ncursesw, and pacman.) pkgconf_host installs a ${TARGET}-pkg-config wrapper script that passes --define-variable=prefix=${PREFIX_NATIVE} when cross-compiling. - Adds -i flag to insert a link to pkg.build for a new build script and automatically rename build scripts with higher consecutive build levels. - Consistently quote [(1) operands correctly wherever necessary. - Reorganise build level 3 script levels: 1) 300-319: library dependencies, ordered by dependencies and alphabetically, 2) 320-389: leaf packages, ordered alphabetically.
Diffstat (limited to '343.python3.vars')
-rw-r--r--343.python3.vars19
1 files changed, 19 insertions, 0 deletions
diff --git a/343.python3.vars b/343.python3.vars
new file mode 100644
index 00000000..c987c798
--- /dev/null
+++ b/343.python3.vars
@@ -0,0 +1,19 @@
+#
+# . ./build.vars and set -o errexit are assumed.
+#
+
+pkg_python3_configure_pre() {
+ (cd ../${PKG_SUBDIR} && autoconf);
+ (unset BLDSHARED CC CFLAGS CPPFLAGS LDFLAGS;
+ mv config.cache ../${PKG_SUBDIR}/config.cache;
+ ../${PKG_SUBDIR}/configure;
+ make _FIP=Programs/host_freeze_importlib Programs/host_freeze_importlib \
+ BUILDPYTHON=hostpython hostpython \
+ PGEN=Parser/hostpgen Parser/hostpgen;
+ make distclean);
+ mv ../${PKG_SUBDIR}/config.cache .;
+ sed -i.orig '/^# autoconf/a\
+ac_cv_buggy_getaddrinfo=no' config.cache;
+};
+
+# vim:filetype=sh