|
ForumsSega Master System / Mark III / Game GearSG-1000 / SC-3000 / SF-7000 / OMV |
Home - Forums - Games - Scans - Maps - Cheats - Credits Music - Videos - Development - Hacks - Translations - Homebrew |
Author | Message |
---|---|
|
Some MEKA install optimizations for Linux [PATCH]
Posted: Tue Jan 15, 2008 4:57 pm
|
This is the mail I've sent to Omar about my patch, I'm pasting it here as suggested by him:
Hello, looking for a SMS emulator running in Linux, I tried to compile latest MEKA svn to build an Ubuntu package, btw I found that it was possible to run the emulator only if all its 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 them, I've built an Ubuntu package of the current svn version... It works great to me (excetps the audio :/) so if you want you could add to the main MEKA site; btw it will be soon on my repository! This is the link: http://3v1n0.net/pool/feisty/3v1n0/mekanix_0.72+svn20071225~3v1ubuntu0_i386.deb Please, give a look to the code, and let me know what you think about this! Bye and Thanks! Treviño (aka Marco Trevisan) |
|
|
Posted: Mon Feb 18, 2008 8:55 am |
I just read this post. This is really interesting. I do hope this patch can be merged upstream. Thanks! | |
|
Posted: Thu Feb 21, 2008 1:02 pm |
I just noticed there is one drawback in Treviño patch. File meka.inp is the same for all users. This is wrong because all users should be able to customize their preferences. I'll see if I can overcome this.
BTW, I attach a patch (based on latest release) not to use libseal under Linux since sound is broken and therefore is no reason to link against it. Bye, Andrea. |
|
Nachtholm
|
Posted: Sun Mar 09, 2008 9:31 pm |
While this patch sounds cool and all, under optimal conditions, MEKAnix 0.72 would have already been ported. I seriously hope Omar gets the Linux version of 0.72 released soon... | |
|
Posted: Sun Mar 09, 2008 11:05 pm |
I'm not working on Linux myself, there's no active maintener AFAIK.
Proppy offered to work on both Linux and Mac version but never actively maintained builds. |
|
|
meka-0.72-no-seal
Posted: Fri Mar 14, 2008 2:27 pm
|
Thanks to musuruan patch, I've generated meka-0.72 without linking to seal.
http://proppy.aminche.com/mekanix-0.72-no-seal.tgz (Nb: sadly .tgz are not allowed to be attached to forum post) Can someone give a try ? @Bock do you want me to commit the no-seal patch in trunk ? I've installed Treviño package which works great for Ubuntu gutsy. I hope it will be linked from the download page soon. I still have trouble using make dist_bin_unix after applying Treviño patch: I get the following error: cp ../*.{blt,dat,inp,msg,nam,pat,thm,zip} ./Dist/mekanix///
cp: cannot stat `../*.{blt,dat,inp,msg,nam,pat,thm,zip}': No such file or directory While the required files are there: proppy@oy:~/meka-0.72-install/srcs$ ls ../*.{blt,dat,inp,msg,nam,pat,thm,zip}
../icons.zip ../meka.dat ../meka.msg ../meka.pat ../meka.blt ../meka.inp ../meka.nam ../meka.thm I wanted to give building the source package a try: But I was unable to locate it at: http://download.tuxfamily.org/3v1deb/pool/feisty/3v1n0/ Any hints ? @musuruan++, @Treviño++ Thanks a lot for your patches ! |
|
|
Re: meka-0.72-no-seal
Posted: Fri Mar 14, 2008 3:02 pm
|
Now they are. |
|