Commit graph

305 commits

Author SHA1 Message Date
Bill Kendrick
8c3a07294b Beginning GIF export
Beginning addition of an option to export animated GIFs
from the Open -> Slideshow dialog, after choosing the images.

Non-operable at this time, but a button has been added (and will
provide a hint to select 2 or more images, when clicked).
2020-07-25 00:18:46 -07:00
Bill Kendrick
b65d7f9da4 Bumping version to 0.9.25 2020-06-22 22:58:12 -07:00
Mark Kim
3fa7cefa69 macOS update building procedure 2020-04-02 00:19:02 -04:00
Bill Kendrick
2860da7668 Replace KDE icon install with Freedesktop.org
Replaced KDE (older, KDE4, in fact) specific icon and
launcher (.desktop file) installation & uninstallaton
invocations in Makefile with those that use Freedesktop.org
`xdg-...` tools.
2019-10-29 22:44:11 -07:00
Bill Kendrick
acabe10e30 Unique filename when thumbnailing starters
Helps for parallel builds (e.g., `make -j12`).  h/t Pere.
2019-09-25 23:16:59 -07:00
Bill Kendrick
9db366237c Starter/Template thumbnails: larger
We'd rather scale down larger thumbnails, than scale up (which would
be blurry) small ones.
2019-09-21 15:59:53 -07:00
Bill Kendrick
41847ae4af FIXME note in Makefile: starter/template thumbs...
The thumbnails for starters & templates are NOT being re-generated
when the source images are modified -- only when the thumbnail is
missing.  Needs an update to the target's prerequisites
(but I'm very rusty with this level of Makefile magic).

Also, update some Starter source images so they work better with
flood fill (Bald Eagle, World map, Gecko).
2019-09-14 12:07:29 -07:00
Bill Kendrick
82910adafb Generating thumbnails for Template images
Also generating and installing thumbnails of Template images,
thus getting "New" dialog to open extremely quickly.
(Pretty much "instantaneously" on my 8 year old laptop with
Intel i3 @ ~2GHz and Intel 320-series SSD (214 MB/s).)
2019-09-14 10:36:36 -07:00
Bill Kendrick
73dc07b608 Way better scaling of Starter thumbnails
Providing better command-line args to ImageMagick `convert` to
produce nice-looking thumbnail PNGs of Starter images.
(N.B. - I'm using "ImageMagick" Version: 8:6.9.7.4+dfsg-16ubuntu6.7)
2019-09-14 10:11:05 -07:00
Bill Kendrick
2117db234e Generate & install starter thumbnails again
I cannot recall[*] why we disabled the steps to generate thumbnails of
starters (".thumbs/STARTERNAME-t.png") and install them in the system
directory (e.g., /usr/local/share/tuxpaint/starters/.thumbs/),
but every time one goes to create a new image ("New"), it took a very
long time to show.

[*] If anyone remembers ~a decade ago, and has a good reason, let me know!

Also, remove "Makefile" as a prerequisite for some targets; if anything
major changes in there, it's expected one will run "make clean" or
remove the binary/etc. target and rebuild.  (Rebuilding "tuxpaint.o"
every time I edited something unrelated in Makefile was really annoying :) )
2019-09-14 09:33:22 -07:00
Bill Kendrick
2911b35a50 Elevate "Fill" from Magic Tool to real Tool
Replace the somewhat-recently-added "nothing" item in the tool bar
with the "Fill" tool, which has been converted back from a Magic tool
to a regular tool.

Also, change bash "==" to sh "=" in "if [ ... ]" tests in Makefile.

Also, link to math library (via "-lm") to make sure "max()" is available to
magic tools.

Also, add missing mention of "--newcolorslast" and "--newcolorsfirst" to manpage.
2019-09-12 23:04:13 -07:00
begasus
e5c3cdfcf5 Haiku fixes 2019-09-06 13:45:56 +02:00
Bill Kendrick
268e213e6d Bump to 0.9.24; improve usage output
Bumping to 0.9.24; going to add a new feature momentarily.

Improved usage output (e.g., that of "tuxpaint --help"); broke
the options into groups that match the tabs in Tux Paint Config.,
added some missing options.
2018-12-18 21:56:05 -08:00
Mark Kim
d2ef2e17d1 macOS 10.7 compatibility
It's been reported that the latest version of Tux Paint does not run on macOS
10.7 (Lion).  This change fixes the issue.

BACKGROUND

A user has reported Tux Paint 0.9.23 does not run on macOS 10.7.  She also
identified that the issue is due to a system library required by Tux Paint,
/System/Library/Frameworks/CoreGraphics.framework does not exist on macOS 10.7

Some investigation revealed that CoreGraphics.framework is a library required
by libSDL, and it exists under an alternate path in macOS 10.7, underneath
/System/Library/Frameworks/ApplicationServices.framework/Frameworks/.
CoreGraphics.framework also exists underneath this path in newer version of
macOS as a symlink to the real directory as well, so the issue can be fixed by
simply relinking SDL to use the old (compatible) path instead of the new
(default) path to CoreGraphics.framework.

This change adds the code such that, during the `make install` step to create
TuxPaint.app, any library referencing CoreGraphics.framework is re-linked to
the compatible path rather than the path that only exists on the newer version
of macOS.

For more information, see:

https://stackoverflow.com/questions/20206985/xcode-linking-against-applicationservices-framework-with-sdk-10-9-causes-10-7
2018-10-07 17:48:41 -04:00
Mark Kim
be99eb3844 Re-add print dialog access to macOS.
Ability to bring up the print dialog from the macOS build was removed in
Tux Paint 0.9.23 to support the new build mechanism.  It has been re-added.
To access it, option-click the print icon, or configure Tux Paint to always
bring up the dialog upon print.
2018-09-28 23:24:56 -04:00
Bill Kendrick
33de9841c0 0.9.23a; doc: less hungry progress, verbose debug
Documenting Mark Kim's recent changes:

 * Less CPU-hungry progress bar (during Stamp loading)
 * Verbose debugging options
 * (Also, mentioned debugging _at all_, in INSTALL.txt)

Bumping version to 0.9.23a, to match the test build he's working
on for macOS.
2018-09-24 22:15:38 -07:00
dolphin6k
1588c20b5b reverted to previous build environment. 2018-09-15 22:49:17 +09:00
Bill Kendrick
762d02788d Working to regen magic tool docs 2018-08-30 02:11:56 -07:00
Bill Kendrick
0edf9cb4d9 Mend typo in README stub
local -> locale
2018-08-30 01:45:35 -07:00
Bill Kendrick
edae5fc771 Installation tweaks to Makefile
* Install Tux Paint docs into a version-numbered directory
   (e.g., "/usr/local/share/doc/tuxpaint-0.9.23/")

 * Launcher icon installation location adjustments:
   * .../X11R6/include/X11/pixmaps/ -> .../share/pixmaps/
   * Using kde4config (vs kdeconfig); not putting things in "Graphics" subdir.
   * Removed gnome-config stuff
2018-08-19 21:31:09 -07:00
Bill Kendrick
5e88f0473b if/else indentation in Makefile
Improve readability of part of the Makefile.
2018-08-19 20:39:58 -07:00
Bernhard M. Wiedemann
b5292709cf Allow to override build date
in order to make builds reproducible.
See https://reproducible-builds.org/ for why this is good
and https://reproducible-builds.org/specs/source-date-epoch/
for the definition of this variable.

This date call works with GNU and BSD variants of date.
2018-07-14 04:52:39 +02:00
Mark K. Kim
4231370205 Changes to make testing in macOS easier.
Previously, testing in macOS required running `make install`, switching
over to the Finder, then double clicking TuxPaint.app, which was a time
consuming process.  This change allows the tuxpaint binary to be run
directly from the command line (./tuxpaint) without `make install`, which
makes it easier to test any small code change.  Now `make install` is only
required to build the TuxPaint.app bundle for execution from the
Finder.

FYI, `make install` also builds TuxPaint.dmg for distribution.  A small
change is included in this commit to allow TuxPaint.dmg to be built without
building TuxPaint.app (if, for example, you delete TuxPaint.dmg by accident
and need to rebuild it.)  This is done via `make TuxPaint.dmg`.
2018-06-27 22:16:13 -04:00
Mark K. Kim
b80393c11b Proper DMG support on macOS.
Previously `make install` on macOS created TuxPaint.dmg, but it was a
simple disk image.

Now TuxPaint.dmg is formatted as one would expect from any other macOS app,
with a Tux folder icon, symlink to the /Applications folder, and a
background image with an arrow.
2018-05-25 00:24:46 -04:00
Mark K. Kim
2aa7f4d2ae macOS clean up and documentation update. Describe how to build macOS 10.13 High Sierra binary without the mouse cursor bug. Instruct git to ignore mac-specific build files, Makefile to clean up mac-specific build files. 2018-05-21 17:02:28 -04:00
Mark K. Kim
d18eaf839b Update build process for macOS. 2018-04-01 15:35:07 -04:00
Mark K. Kim
f96720de80 Merge branch 'master' of ssh://git.code.sf.net:/p/tuxpaint/tuxpaint 2018-02-10 20:31:36 -05:00
Mark K. Kim
615ebe4029 Fix macOS install error with two plugins. 2018-02-10 20:26:51 -05:00
dolphin6k
7c6037cbbc Tweaked target "relase" for git tree 2018-01-04 16:28:52 +09:00
Bill Kendrick
b0c1546b1b A patch to enable compiling on latest mingw env.
Contributed by TOYAMA Shin-ichi
2017-12-30 10:53:08 -08:00
Mark K. Kim
a187c70735 Build for older releases of macOS (10.6 and later) 2017-12-22 23:59:08 -05:00
Mark K. Kim
75f0580e95 Merge branch 'master' of ssh://git.code.sf.net:/p/tuxpaint/tuxpaint 2017-12-21 23:49:20 -05:00
Mark K. Kim
912cd2e625 Fix text not displaying on systems without Fontconfig installed. 2017-12-20 23:19:19 -05:00
rbuj
3a7a278923 osx: make install -> create dmg (bzip2) 2017-12-05 12:56:23 +01:00
Mark K. Kim
472bf79bb9 Trying again... 2017-11-27 01:02:41 -05:00
William Kendrick
f762aafa10 Adding Kabyle (aka Kabylian) translation 2016-12-12 07:20:34 +00:00
William Kendrick
6b04374bc7 "install -D" is not portable. On FreeBSD and on OS X, -D does not exist,
on NetBSD it means something else. - Thomas Klausner
2014-08-19 07:33:49 +00:00
William Kendrick
fcd2a10761 Removed some debugging. 2014-08-05 08:27:21 +00:00
William Kendrick
5d164e8254 Ran through: astyle --unpad-paren --pad-oper --pad-header --add-brackets --style=allman --delete-empty-lines --break-blocks 2014-08-05 07:40:15 +00:00
William Kendrick
0b27bec2e8 * Squelching a lot of debugging output, unless DEBUG is #define'd
* Added "--joystick-dev" option, for specifying which joystick device
   Tux Paint should listen to
   * "--joystick-dev list" is now used to list the available devices
 * Cleaned up some 'usage' output
2014-03-30 07:23:20 +00:00
William Kendrick
4d8925c05f Adding example templates directory & Makefile install target. 2014-01-04 08:08:00 +00:00
Scott McCreary
72bfbad90d A few more fixes to allow building on Haiku again 2013-11-06 09:47:43 +00:00
Scott McCreary
290cee02b1 Updated Makefile to reflect recent directory change in Haiku from B_COMMON to B_SYSTEM for gperf 2013-11-04 18:07:13 +00:00
Shin-ichi TOYAMA
4d04229608 make bdist-win32 fails 2013-10-26 08:15:16 +00:00
Shin-ichi TOYAMA
a29a17765c missing libpthread-2.dll for win32 installer 2012-08-18 05:58:44 +00:00
Pere Pujal i Carabantes
50b0e70eac Onscreen keyboard for Win32 2012-03-21 20:34:07 +00:00
William Kendrick
b75f6d513b Oops, left debugging target! 2012-03-04 20:11:42 +00:00
William Kendrick
71045ce8c5 Allowing LIBDIR to be set different from PREFIX, if needed. Based on SF.net Bug #3187558 2012-03-04 19:31:57 +00:00
William Kendrick
7549a2e044 Using $(PNG) instead of -lpng in a spot in Makefile (based on SF.net Bug #3187560) 2012-03-04 19:28:41 +00:00
Pere Pujal i Carabantes
9d6ca608e3 Now make install wil putt the onscreen keyboard files in place. 2011-09-02 15:14:15 +00:00