Skip to content

Commit

Permalink
games-strategy/defcon-demo: add libsdl use deps; tidy
Browse files Browse the repository at this point in the history
Package-Manager: portage-2.2.24
  • Loading branch information
Michael Sterrett committed Dec 29, 2015
1 parent df9718f commit 778a219
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions games-strategy/defcon-demo/defcon-demo-1.60.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ RDEPEND="
x11-libs/libXau
x11-libs/libXext
x11-libs/libXdmcp
system-libs? ( media-libs/libsdl )"
system-libs? ( media-libs/libsdl[sound,video] )"
DEPEND=""

QA_PREBUILT="${GAMES_PREFIX_OPT:1}/${PN}/lib/${MY_PN}.bin.x86"
Expand All @@ -55,10 +55,8 @@ src_prepare() {
fi
sed \
-e "s:GAMEDIR:${GAMES_PREFIX_OPT}/${PN}:g" \
"${FILESDIR}"/${MY_PN} > "${T}"/${MY_PN} \
|| die "sed failed"
echo "int chdir(const char *d) { return 0; }" > chdir.c \
|| die "echo failed"
"${FILESDIR}"/${MY_PN} > "${T}"/${MY_PN} || die
echo "int chdir(const char *d) { return 0; }" > chdir.c || die
}

src_compile() {
Expand Down

0 comments on commit 778a219

Please sign in to comment.