midipix / build / midipix_build

Forked from build/midipix_build 4 years ago
Clone
Blob Blame History Raw
# 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