View | Details | Raw Unified
Collapse All | Expand All

(-) nexuiz-1.5-orig (-22 / +14 lines)
 Lines 47-57    Link Here 
dir=${GAMES_DATADIR}/${PN}
dir=${GAMES_DATADIR}/${PN}
exe=${PN}
exe=${PN}
default_client() {
	if use opengl || ( ! use dedicated && ! use sdl )
	then
		# Build default client
		return 0
	fi
	return 1
}
pkg_setup() {
pkg_setup() {
	if ! use dedicated && ! use sdl && ! use opengl
	if default_client && ! use opengl
	then
	then
		einfo "Defaulting to OpenGL client"
		einfo "Defaulting to OpenGL client"
	fi
	fi
	games_pkg_setup
	games_pkg_setup
}
}
 Lines 69-75    Link Here 
}
}
src_compile() {
src_compile() {
	if use opengl
	if default_client
	then
	then
		emake cl-release \
		emake cl-release \
			CFLAGS_RELEASE="" OPTIM_RELEASE="" \
			CFLAGS_RELEASE="" OPTIM_RELEASE="" \
 Lines 92-120    Link Here 
			CFLAGS_COMMON="${CFLAGS}" \
			CFLAGS_COMMON="${CFLAGS}" \
			|| die "emake dedicated failed"
			|| die "emake dedicated failed"
	fi
	fi
	if ! use dedicated && ! use sdl && ! use opengl
	then
		emake cl-release \
			CFLAGS_RELEASE="" OPTIM_RELEASE="" \
			CFLAGS_COMMON="${CFLAGS}" \
			|| die "emake cl-release failed"
	fi
}
}
src_install() {
src_install() {
	insinto "${dir}"
	insinto "${dir}"
	exeinto "${dir}"
	exeinto "${dir}"
	if use opengl || use sdl
	if default_client || use sdl
	then
		newicon darkplaces72x72.png ${PN}.png
	elif ! use dedicated && ! use sdl && ! use opengl
	then
	then
		newicon darkplaces72x72.png ${PN}.png
		newicon darkplaces72x72.png ${PN}.png
	fi
	fi
	if use opengl
	if default_client
	then
	then
		newexe darkplaces-glx ${exe} || die "newexe glx failed"
		newexe darkplaces-glx ${exe} || die "newexe glx failed"
		games_make_wrapper ${PN} ./${exe} "${dir}"
		games_make_wrapper ${PN} ./${exe} "${dir}"
 Lines 134-146    Link Here 
		games_make_wrapper ${PN}-ded ./${PN}-ded "${dir}"
		games_make_wrapper ${PN}-ded ./${PN}-ded "${dir}"
	fi
	fi
	if ! use dedicated && ! use sdl && ! use opengl
	then
		newexe darkplaces-glx ${exe} || die "newexe glx failed"
		games_make_wrapper ${PN} ./${exe} "${dir}"
		make_desktop_entry ${PN} Nexuiz ${PN}.png
	fi
	cd "${WORKDIR}/${MY_PN}"
	cd "${WORKDIR}/${MY_PN}"
	insinto "${dir}/data"
	insinto "${dir}/data"
	doins -r data/* || die "doins data failed"
	doins -r data/* || die "doins data failed"