summaryrefslogtreecommitdiff
path: root/packages/dgen/dgen-sdl_1.18.bb
blob: 3a775250e1ce02aa75c020bad2554930d420a70b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19

SECTION = "x11/games"
DESCRIPTION = "DGen/SDL is a Sega Genesis/Mega-drive emulator."
DEPENDS = "virtual/libsdl"
SRC_URI = "http://pknet.com/~joe/${PN}_${PV}.tar.gz \
	   file://fix-everything.patch;patch=1"

do_compile () {
	oe_runmake dgen 'HOSTCC=${BUILD_CC}' 'TARGET_CC=${CC}' 'TARGET_CXX=${CXX}' 'STAGING_INCDIR=${STAGING_INCDIR}' 'STAGING_LIBDIR=${STAGING_LIBDIR}' 'STAGING_BINDIR=${STAGING_BINDIR}' 'libdir=${libdir}'
}

FILES_${PN} = "${bindir}/dgen ${sysconfdir}/dgenrc"

do_install () {
	install -d ${D}/${bindir}
	install -d ${D}/${sysconfdir}
	install -m 755 -s ${S}/dgen ${D}/${bindir}/
	install -m 644 ${S}/sample.dgenrc.1 ${D}/${sysconfdir}/dgenrc
}