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
Adrien Destugues
cf56a34992
Update some things after the switch to git.
...
- Do not use svnversion to find the version, instead use a revision
count from git. As a result, the version number jumps back, however,
so we should have a 2.5 release soon!
- Fix some URLs pointing to either the svn repo,
or even to google code (!).
2017-03-23 07:29:26 +01:00
Adrien Destugues
2d4ad537ad
Haiku: use pkg-config to find lua
...
The Lua package for Haiku now comes with a pkg-config file, and the
includes were moved around, so get things working again.
2017-03-19 09:03:30 +01:00
Adrien Destugues
76d4630b4c
Patch by Thomas Bernard: improve detection of SDL and Lua for macOS.
...
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@2174 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2017-01-14 08:47:42 +00:00
Adrien Destugues
9c6f343215
Patch by Thomas Bernard to fix compilation on FreeBSD.
...
Thanks!
Fixes #50 .
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@2173 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2017-01-03 18:25:35 +00:00
Adrien Destugues
0eaf3fce96
Use iconv to convert filenames from UTF-8.
...
Patch by miniupnp, with some C89 adjustments.
Enabled for Haiku and the generic Linux/*BSD part of the Makefile.
Please adjust as needed.
Fixes #10 for codepages for which we have a font.
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@2172 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2016-12-02 19:43:23 +00:00
Adrien Destugues
8808625851
Add a "tall 3" drawing mode.
...
Pixels with 3:4 aspect ratio. Why not?
Contributed by Nic Soudée (zoner/xylem). Thanks!
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@2166 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2016-10-15 18:57:14 +00:00
Adrien Destugues
f2797f6648
Fix more things for Haiku port
...
* Add an icon in the native format
* Add "resource definition" to the executable (including icon and version info)
* Use the proper API to find the share directory.
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@2126 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2015-08-16 12:27:21 +00:00
Adrien Destugues
cc05157ae9
Fix install when datadir is not named "share".
...
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@2119 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2015-04-29 20:32:54 +00:00
Adrien Destugues
78fcc648c3
Partial merge of the SDL2 branch into trunk
...
* Mainly get the cleanup of window drawing functions.
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@2102 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2015-03-02 13:44:18 +00:00
Adrien Destugues
6a225eb4ed
Fix Haiku build.
...
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@2087 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2015-02-23 19:33:41 +00:00
Adrien Destugues
61c8dca353
Add a port to the GCW Zero, contributed by David Knight.
...
Untested since I don't have the hardware.
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@2080 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2015-02-10 20:13:57 +00:00
Yves Rizoud
567cf087b0
Makefile fix for Windows. Looks like I didnt build libPNG exactly the same way
...
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@2065 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2013-08-30 03:37:23 +00:00
Adrien Destugues
72d8f5a49d
Apply patch from #305 and #525 . Use FontConfig on linux to get true type fonts instead of
...
the X11 functions.
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@2050 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2013-02-02 08:45:33 +00:00
Yves Rizoud
46d3207c7e
Makefile: fix missing files in packages: Tiler.lua, haiku.cpp, Grafx2_Prefix.pch, SDLMain.m, grafx2.info
...
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@2023 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2012-10-01 19:11:36 +00:00
Yves Rizoud
144a28412b
Issue 453 : Virtual keyboard setting
...
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1999 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2012-09-18 23:41:55 +00:00
mazzearos
ce8fbe076d
Started to add Lua support to AROS.
...
src/Makefile: link with lua. Note that I'm currently using an absolute path to include/lua
which only exits on my machine until AROS has support for pkg-config.
src/setup.h: added valid path to lua scripts.
src/io.c: take colon into account when checking for last separator.
src/factory.c: use luaL_newstate() instead of lua_open() because latter doesn't exist anymore in Lua-5.2.
Note: that fix should be valid for all platforms.
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1977 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2012-08-03 19:10:44 +00:00
mazzearos
c68f05cda5
Some fixes for AROS:
...
src/text.c: Added path for truetype fonts.
src/Makefile: Create GrafX2 binary in the root directory. This allows
running without any prior installation.
src/readline.c: Added ':' to the forbidden charactersS.
src/const.h: Use '/' as indicator for parent directory.
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1972 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2012-08-02 13:02:00 +00:00
Adrien Destugues
d4d57f750d
In brush factory, when the selected entry is not a file, display the full path in the description window.
...
Since the factory can open in an empty or even non-existing (!) dir, this is helpful to locate where you are.
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1962 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2012-06-09 20:41:05 +00:00
Adrien Destugues
ff9f228b5f
On Haiku, there are two different versions of gcc available (gcc2 and gcc4). Since
...
mixing them in the same binary result in linker error, build them in separate dirs.
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1961 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2012-06-02 09:05:54 +00:00
Adrien Destugues
493d998375
Use pkg-config to detect libpng when building for unix, this helps with Debian package system.
...
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1955 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2012-05-13 07:02:13 +00:00
Yves Rizoud
641be48aad
Removed last occurrence of 'NOLAYERS' and refreshed Makefile dependencies
...
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1915 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2012-03-04 17:10:26 +00:00
Franck Charlet
8ea1ab7fc8
fixed makefile for macosx again
...
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1905 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2012-02-20 19:56:52 +00:00
Adrien Destugues
46f2ec9475
Patch by Syllable software to complete Syllable support. Thanks!
...
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1900 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2012-01-15 13:52:31 +00:00
Adrien Destugues
941817b915
More fixes (still not ok...)
...
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1897 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2012-01-08 21:52:35 +00:00