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

pkg_psxstub_finish() {
	if ! is_build_script_done install; then
		if [ "${TARGET}" = i686-nt32-midipix ]	\
		|| [ "${TARGET}" = x86_64-nt64-midipix ]; then
			cd psxstub;
			make ${MAKEFLAGS} DESTDIR=${PKG_PREFIX} TARGET=${TARGET} install;
			if [ -e ${PKG_PREFIX}/lib/libpsxscl.a ]; then
				secure_rm ${PKG_PREFIX}/lib/libpsxscl.a;
			fi;
			set_build_script_done install finish;
		fi;
	fi;
};

# vim:filetype=sh