summaryrefslogtreecommitdiffhomepage
path: root/pkg.build
diff options
context:
space:
mode:
authorLucio Andrés Illanes Albornoz (arab, vxp) <l.illanes@gmx.de>2016-11-13 23:02:58 +0100
committerLucio Andrés Illanes Albornoz (arab, vxp) <l.illanes@gmx.de>2016-11-13 23:02:58 +0100
commitbcbe15349a7ac8b0cc6fb53dbb480ed966edba70 (patch)
tree12065b836c66536d04eac45a43fcfe65d5ec5db0 /pkg.build
parent1dc645596162525f8e244dc30824b19b5a73f12e (diff)
downloadmidipix_build-bcbe15349a7ac8b0cc6fb53dbb480ed966edba70.tar.bz2
midipix_build-bcbe15349a7ac8b0cc6fb53dbb480ed966edba70.tar.xz
Adds libfirm via bfirm and cparser via bcparser (via midipix.)
Diffstat (limited to 'pkg.build')
-rw-r--r--pkg.build13
1 files changed, 11 insertions, 2 deletions
diff --git a/pkg.build b/pkg.build
index 0123c490..888bc133 100644
--- a/pkg.build
+++ b/pkg.build
@@ -30,6 +30,9 @@ if ! is_build_script_done fetch; then
fetch_git ${PKG_SUBDIR} ${PKG_URL} ${PKG_GIT_BRANCH};
fi;
fi;
+ if test_cmd pkg_${PKG_NAME}_fetch_post; then
+ pkg_${PKG_NAME}_fetch_post;
+ fi;
set_build_script_done fetch -extract;
fi;
if test_cmd pkg_${PKG_NAME}_finish; then
@@ -119,6 +122,12 @@ if ! is_build_script_done patch; then
fi;
set_build_script_done patch -configure;
fi;
+PKG_SUBDIR_PATH=${PWD}/${PKG_SUBDIR#/};
+if [ -z "${PKG_CONFIGURE}" ]; then
+ PKG_CONFIGURE=${PKG_SUBDIR_PATH}/configure;
+else
+ PKG_CONFIGURE=${PWD}/${PKG_CONFIGURE#/};
+fi;
cd ${PKG_BUILD_DIR};
if [ "${PKG_BUILD_TYPE}" = "host" ]; then
export AR=ar;
@@ -129,14 +138,14 @@ else
export CC=${PKG_TARGET}-gcc;
export RANLIB=${PKG_TARGET}-ranlib;
fi;
-if [ -x ../${PKG_SUBDIR}/configure ]\
+if [ -x ${PKG_CONFIGURE} ]\
&& ! is_build_script_done configure; then
if test_cmd pkg_${PKG_NAME}_configure_pre; then
pkg_${PKG_NAME}_configure_pre;
fi;
CFLAGS="${PKG_CFLAGS_CONFIGURE}${PKG_CFLAGS_CONFIGURE_EXTRA:+ ${PKG_CFLAGS_CONFIGURE_EXTRA}}"\
LDFLAGS="${PKG_LDFLAGS_CONFIGURE}${PKG_LDFLAGS_CONFIGURE_EXTRA:+ ${PKG_LDFLAGS_CONFIGURE_EXTRA}}"\
- ../${PKG_SUBDIR}/configure \
+ ${PKG_CONFIGURE} \
${PKG_CONFIGURE_ARGS} ${PKG_CONFIGURE_ARGS_EXTRA} ${PKG_CONFIGURE_ARGS_EXTRA_DEBUG};
set_build_script_done configure clean -build;
else