summaryrefslogtreecommitdiffhomepage
path: root/204.psxscl.build
blob: 7202d1a7be6f820f862f29ae694c213496ee462d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# Order: psxtypes pemagine dalist ntapi psxscl ntcon ntctty

parse_with_pkg_name ${2}			\
	dalist ntapi ntcon ntctty pemagine psxscl psxtypes;
if is_build_script_done finished; then
	exit 212;
else
	fetch_git ${PKG_SUBDIR} ${PKG_URL};
	set_build_dir ${PKG_SUBDIR} cross;
fi;
if [ "x${PKG_NAME}" = "xpsxtypes" ]; then
	if ! is_build_script_done installed; then
		make -C ${PKG_SUBDIR} ${MAKEFLAGS} DESTDIR=${PREFIX_TARGET};
		set_build_script_done installed finished;
	fi;
else
	if ! is_build_script_done configured; then
		rm_if_exists -m -c ${BUILD_DIR};
		../${PKG_SUBDIR}/configure		\
			--prefix=${PREFIX_TARGET}	\
			--host=${HOST_NATIVE};
	       set_build_script_done configured -built;
	else
		cd ${BUILD_DIR};
	fi;
	if ! is_build_script_done built; then
		make ${MAKEFLAGS};
		set_build_script_done built -installed;
	fi;
	if ! is_build_script_done installed; then
		make ${MAKEFLAGS} install;
		make ${MAKEFLAGS} DESTDIR=${PREFIX_TARGET};
		set_build_script_done installed finished;
	fi;
fi;

# vim:filetype=sh