summaryrefslogtreecommitdiffhomepage
path: root/004.psxstub.vars
blob: 77c41c5ab698bfba16b917d27825d8b6e9b09882 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#
# . ./build.vars and set -o errexit are assumed.
#

pkg_psxstub_finish() {
	if ! is_build_script_done patch; then
		patch -b -d psxstub -p1			\
			< ${MIDIPIX_BUILD_PWD}/psxstub.local.patch;
		set_build_script_done patch -install;
	fi;
	if ! is_build_script_done install; then
		if [ "${TARGET}" = i686-nt32-midipix ]	\
		|| [ "${TARGET}" = x86_64-nt64-midipix ]; then
			cd psxstub;
			make ${MAKEFLAGS} DESTDIR=${PREFIX_LVL} TARGET=${TARGET} install;
			set_build_script_done install finish;
		fi;
	fi;
};

# vim:filetype=sh