Lucio Andrés Illanes Albornoz (arab, vxp) 1d0876
#
Lucio Andrés Illanes Albornoz (arab, vxp) 1d0876
# . ./build.vars and set -o errexit are assumed.
Lucio Andrés Illanes Albornoz (arab, vxp) 1d0876
#
Lucio Andrés Illanes Albornoz (arab, vxp) 1d0876
Lucio Andrés Illanes Albornoz (arab, vxp) 1d0876
pkg_psxstub_finish() {
Lucio Andrés Illanes Albornoz (arab, vxp) 951620
	if ! is_build_script_done patch; then
Lucio Andrés Illanes Albornoz (arab, vxp) 951620
		patch -b -d psxstub -p1			\
Lucio Andrés Illanes Albornoz (arab, vxp) 951620
			< ${MIDIPIX_BUILD_PWD}/psxstub.local.patch;
Lucio Andrés Illanes Albornoz (arab, vxp) 951620
		set_build_script_done patch -install;
Lucio Andrés Illanes Albornoz (arab, vxp) 951620
	fi;
Lucio Andrés Illanes Albornoz (arab, vxp) 1d0876
	if ! is_build_script_done install; then
Lucio Andrés Illanes Albornoz (arab, vxp) 951620
		if [ "${TARGET}" = i686-nt32-midipix ]	\
Lucio Andrés Illanes Albornoz (arab, vxp) 9ba5d3
		|| [ "${TARGET}" = x86_64-nt64-midipix ]; then
Lucio Andrés Illanes Albornoz (arab, vxp) 1d0876
			cd psxstub;
Lucio Andrés Illanes Albornoz (arab, vxp) 1d0876
			make ${MAKEFLAGS} DESTDIR=${PREFIX_LVL} TARGET=${TARGET} install;
Lucio Andrés Illanes Albornoz (arab, vxp) 1d0876
			set_build_script_done install finish;
Lucio Andrés Illanes Albornoz (arab, vxp) 1d0876
		fi;
Lucio Andrés Illanes Albornoz (arab, vxp) 1d0876
	fi;
Lucio Andrés Illanes Albornoz (arab, vxp) 1d0876
};
Lucio Andrés Illanes Albornoz (arab, vxp) 1d0876
Lucio Andrés Illanes Albornoz (arab, vxp) 1d0876
# vim:filetype=sh