MEKA: Patch per i linuxiani e Pacchetto per gli ubuntiani!
Come detto nel precedente post, MEKA è un buon emulatore per diverse console SEGA tra cui la Master System ed il Game Gear.
Il progetto è libero e multipiattaforma, tuttavia c‘è da dire che l’autore snobba un po’ il pinguino (guardate i docs :/
)...
Al di là di questo, il nostro sistema operativo lo digerisce piuttosto bene e quindi è possibile avviarlo senza grossi problemi su Linux…
C‘è però un problemino, specie se uno lo vuole redistribuire in forma di pacchetti: non ha (aveva) un’install-system decente... Ecco perché ho preso i sorgenti e dopo un po’ di lavoro ho ultimato questa patch.
Per i dettagli sul suo funzionamento, posterò un commento qui sotto…
Una volta fatta la patch, generare il pacchetto per ubuntu è stato un gioco da ragazzi:
Una volta installato, la prima volta dovrete avviare meka
da terminale, quindi scegliere di disattivare il suono (premendo 0
), dai successivi avvii basterà utilizzare l’icona sul Menù!
«I tried to compile latest MEKA svn to build an Ubuntu package, btw I found that it was possible to run only if all the files were installed in a writable folder...
That's way I've worked some minutes on file.c and on the Makefile to get a better build and install system for unix users.
Here's the patch:
http://3v1n0.net/patches/meka-0.72-fix-mekanix-build-system.patch
In fact, applying my patch non-unix users shouldn't have any difference, while unix users will be able to install and run meka using the linux standard folders:
/usr/local/bin for the meka binary
/usr/local/share/mekanix for the meka data
/usr/local/share/doc/mekanix for the meka documents
/home/user/.config/mekanix/ for the user configurations
To get this the users will have these install options:
* make LOCALBUILD=yes
Using this one, make will do exacly the same thing it did before (building a local mekanix build that will only need to be ran in the parent [../] local folder)
* make PREFIX=/usr && make install PREFIX=/usr DESTDIR=$any-destination-dir
With this one, make will compile meka using the folders set in the PREFIX commandline (or in the Makefile itself), then an user could install it in any destination (this is needed for packaging).
* make [install]
Using make without options, simply it will use the default PREFIX=/usr/local (while DESTDIR rests empty). The folder where meka will be installed are the same I've written at the beginning.
* make dist_bin_unix
I've edited the dist_bin_unix rule in the Makefile to work correclty...
Pratically it generates a .tar.gz file inside the ./srcs/Dist/ folder.
Since this patch allows easily to redistribute binary files packaging, I've made a debian script too...»
Commento di Treviño — 15 January 2008 @ 01:46
Commento di Treviño — 15 January 2008 @ 17:54
Commento di Nexso — 26 April 2010 @ 18:16