summaryrefslogtreecommitdiffhomepage
path: root/348.util_linux.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 /348.util_linux.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 '348.util_linux.vars')
-rw-r--r--348.util_linux.vars11
1 files changed, 11 insertions, 0 deletions
diff --git a/348.util_linux.vars b/348.util_linux.vars
new file mode 100644
index 00000000..20f843c4
--- /dev/null
+++ b/348.util_linux.vars
@@ -0,0 +1,11 @@
+#
+# . ./build.vars and set -o errexit are assumed.
+#
+
+pkg_util_linux_configure_pre() {
+ export NCURSESW_CFLAGS="-I${PREFIX_LVL3}/include -I${PREFIX_LVL3}/include/ncursesw";
+ export PKG_CONFIG_LIBDIR="${PREFIX_LVL3}/lib/pkgconfig";
+ export NCURSESW_LIBS="-L${PREFIX_LVL3}/lib $(env PKG_CONFIG_LIBDIR=${PKG_CONFIG_LIBDIR} pkg-config --libs ncursesw)";
+};
+
+# vim:filetype=sh