187 Commits

Author SHA1 Message Date
Alexander Wilms
4ebcb44c63 Make installing to a PREFIX easier and add appdata 2018-06-27 08:02:35 +00:00
Thomas Bernard
92facef46d Convert comments to UTF-8
most were encoded in Latin1 / CP1252
but a few lines in op_c.c were using IBM437/850 !
2018-06-26 11:37:19 +02:00
Thomas Bernard
f4c5c4bb1a Upgrade to recoil 4.3.0 2018-06-11 00:20:16 +02:00
Thomas Bernard
30be9d975e Use mingw32-strip when compiling with WIN32CROSS=1 2018-05-22 18:00:28 +02:00
Thomas BERNARD
56a3c9566d Program_version SVN_revision are now const char[] 2018-05-22 17:34:52 +02:00
Thomas BERNARD
9ff06cbdef Automatically update the version stored in English.lproj/InfoPlist.strings
This are the versions displayed in Finder info and "about Grafx2"
2018-05-15 17:56:45 +02:00
Thomas Bernard
d85e5ee893
Fix build from an extracted grafx2-2.5.*-src.tgz
we check if we are in a GIT working tree and load revision
from version.c if we are not.

also includes grafx2-2.5*-src.tgz in artifacts
2018-05-15 15:33:15 +02:00
Thomas Bernard
0890c4490d
Default to CC=gcc but allow to define other values
so it is possible to
> CC=clang make        (environment)
or
> make CC=gcc-5        (command-line)
2018-05-15 15:33:15 +02:00
Thomas Bernard
5865be3383
fix LUACOPT when cross compiling for WIN32 2018-05-15 15:33:15 +02:00
Thomas Bernard
994b950616 properly set GIT_BRANCH when building on gitlab-ci
https://docs.gitlab.com/ce/ci/variables/README.html
CI_COMMIT_REF_NAME

Signed-off-by: Thomas Bernard <miniupnp@free.fr>
2018-05-14 00:05:19 +02:00
Thomas Bernard
f0084545fd add Icon resource when cross compiling for win32 2018-05-13 19:41:35 +02:00
Adrien Destugues
8e94f338df Fix "make install". 2018-05-06 19:16:32 +02:00
Adrien Destugues
5918435cd8 Fix haiku/gcc2 build. 2018-05-06 17:02:38 +02:00
Thomas BERNARD
72550efe66 OSX : build a zip containing Grafx2.app 2018-04-06 20:03:54 +02:00
Thomas BERNARD
54baf87bb0 Mac OS X: use bsdtar or gnutar instead of default tar if available 2018-04-06 17:01:50 +02:00
Thomas Bernard
49bc467358 Fix Makefile for building with RECOIL + update Makefile.dep
it was failing when building with make -j3
2018-03-05 15:42:14 +01:00
Thomas Bernard
d9ca8c044b Allow to compile without RECOIL (make NORECOIL=1) 2018-03-05 15:42:14 +01:00
Thomas Bernard
44b1d5a466 Try to load images with RECOIL (REtro COmputer IMage Library) 2018-03-05 15:42:14 +01:00
Thomas Bernard
c29a52a4b2 WIN32 Cross build now includes lua 2018-02-22 11:26:40 +01:00
Thomas Bernard
8ec19f523b Easy leakchecks with "make valgrind"
result is readable thanks to the suppression file
2018-02-20 17:24:00 +01:00
Thomas Bernard
519994e005 Add unicoode font files to archives 2018-02-20 15:45:45 +01:00
Thomas Bernard
3322529804 Support for unicode names in directory listing 2018-02-20 15:44:39 +01:00
Thomas Bernard
59f7261c24 Copy 3rd party dll's to bin/. Avoid dependency on libgcc*.dll 2018-02-20 01:06:10 +01:00
Thomas Bernard
8f6e955307 Cross build: Include the right libpng*.dll within the ziprelease 2018-02-19 22:32:00 +01:00
Thomas Bernard
7fb8debbdf use PKG_CONFIG_LIBDIR instead of PKG_CONFIG_PATH when WIN32CROSS=1 2018-02-19 19:56:02 +01:00
Thomas Bernard
49876dcb9c Makefile: use cross compiled libs from ../3rdparty 2018-02-19 19:55:14 +01:00
Thomas Bernard
b70d49349a add CROSS_CC CROSS_PKGCONFIG CROSS_SDLCONFIG for Mingw32 Cross compilation 2018-02-17 19:00:06 +01:00
Thomas Bernard
6a6f9372ba Makefile: Fix PLATFORMFILES for WIN32CROSS 2018-02-17 19:00:06 +01:00
Thomas Bernard
3bab6f36d6 Add git branch name to tgz and zip name if not master 2018-02-17 19:00:06 +01:00
Thomas Bernard
f89b679224 Makefile: automatically rebuild when the CFLAGS, version or label changes 2018-02-16 09:29:23 +01:00
Thomas BERNARD
8969230999 build under OS X > 10.5 2018-02-15 16:20:00 +01:00
Thomas BERNARD
5e3bbca49f Enable UTF8 filename conversion for OS X
HFS drives are using combining characters, so use
UTF-8-MAC encoding for iconv
2018-02-15 16:20:00 +01:00
Thomas Bernard
ffbf51a363 Makefile: OS X tar doesn't support --transform 2018-02-14 09:58:46 +01:00
Thomas Bernard
f8c0456b3b make ziprelease: simplify tar option to make OS X tar happy 2018-02-14 09:58:46 +01:00
Thomas Bernard
11ff1bb20f sed I flag in s command is apparently not supported by OS X sed 2018-02-14 09:58:46 +01:00
Thomas BERNARD
db2b1334cd does not define __linux__ under OS X any more. 2018-02-14 09:58:46 +01:00
Thomas Bernard
8fa036c0c4 add forgotten sample lua scripts in ziprelease 2018-01-29 13:40:23 +01:00
Thomas Bernard
55b38da597 remove redondant -c CFLAG 2018-01-29 13:31:38 +01:00
Thomas Bernard
00caf6b668 use $(shell) script to test GNU tar only when building under UNIX (linux, *BSD, etc.) 2018-01-29 13:21:01 +01:00
Thomas Bernard
a0c65b37ec fix PLATFORMFILE gfx2.png path 2018-01-29 13:14:43 +01:00
Thomas Bernard
7c003112d9 compatibility with both BSD tar and GNU tar 2018-01-29 13:14:43 +01:00
Thomas Bernard
80f8728a6c simplified the settings of FONT_FILES 2018-01-29 13:14:43 +01:00
Thomas Bernard
59633fcd0f simplified setting of SCRIPT_FILES and SKIN_FILES in Makefile 2018-01-29 13:14:43 +01:00
Thomas Bernard
83faf708d3 simplified OBJ variable setting in Makefile 2018-01-29 13:14:43 +01:00
Thomas Bernard
8cc0dfa0a6 Prefer lua 5.3 over 5.2 (over 5.1) when looking for the package with pkg-config 2018-01-29 13:14:43 +01:00
Thomas Bernard
589a84fd3d Fix use of FontConfig on non linux platforms (FreeBSD, etc.)
just define USE_FC in the Makefile to have text.c compiled with Fontconfig support
2017-12-20 19:28:46 +01:00
Adrien Destugues
9e55b2d995 Enable -Werror only for Haiku for now.
It is a bit early to have it enabled for all Linux variants out there.
2017-06-23 22:20:08 +02:00
Adrien Destugues
a321c4c785 Fix building with MinGW from Linux 2017-05-08 09:33:01 +02:00
Adrien Destugues
5b6095f0bc Fix all warnings and enable -Werror
mostly unused variables and broken indentation.
2017-05-06 15:13:50 +02:00
Adrien Destugues
c0e625fdef Fix the Linux build. 2017-05-06 14:57:25 +02:00