Commit graph

456 commits

Author SHA1 Message Date
dolphin6k
10a0a34b1b Output Version of Tux Paint and Windows
This enables to know the user's environment easily.
2023-10-28 17:55:38 +09:00
Mark Kim
cfc76eb698 Simplify building on macOS
Simplify macOS building by signing macOS app bundle anonymously by
default.
2023-07-22 23:24:03 -04:00
Bill Kendrick
43a253fd4f Ready for 0.9.31; bump date & drop -rc1 from version 2023-07-20 22:32:11 -07:00
Bill Kendrick
5c4f8d73b5 Version set to 0.9.31-rc1 for a beta 2023-07-13 23:23:02 -07:00
Shinichi TOYAMA
ce0300766b Create metainfo directory beforehand 2023-07-08 20:49:21 +09:00
Bill Kendrick
bae09c15bd install-pkgxdg; install icons in .../apps/
h/t Tim
2023-06-22 23:31:31 -07:00
Bill Kendrick
8e9b33b22e Wrapper around convert to avoid Inkscape use
See comments in the script
2023-06-17 11:42:39 -07:00
Bill Kendrick
7febf719d0 Thumbnail Makefile targets quotes around paths
Wrap new $PATH stuff done (to get dummy 'inkscape' used,
for rsvgconvert purposes) in quotes to try and help with
build problems Shin-ichi had with the Windows version.
2023-06-13 22:18:08 -07:00
Bill Kendrick
cf94635713 Fake 'inkscape' to allow rsvgconvert to be used
Tim Dickson wrote in --

  I figured out the cause of the out-of-tree fontconfig cache
  creation, and (with help from another packager) a fix.
  The problem only occurs when inkscape is installed (which changes the
  target tool that imagemagik uses for converting svg files from
  rsvgconvert to inkscape's svg conversion program.)
2023-06-12 20:35:29 -07:00
Bill Kendrick
2260d66b4e Forgot a 192x192 icon install in updated Makefile
h/t Tim
2023-06-07 23:20:48 -07:00
Bill Kendrick
6b0bc39087 "PACKAGE_ONLY" Makefile var for non-pollutant icon install
A new `PACKAGE_ONLY` variable to Makefile can be used to
place launcher icon files into $(DESTDIR)$(PREFIX), rather
than using `xdg-...` tools to install them.  (Avoids polluting
local filesystem while generating packages, e.g. for Slackware Linux)

h/t Tim Dickson
2023-06-07 00:39:00 -07:00
Bill Kendrick
1b6ee72e87 "uifont" option: tell us what we wanted & what we got
The requested font & actual font loaded will be echo'd to STDOUT
when specifying the `uifont` option.

This uses Pango library directly (I was unable to convice SDL2_Pango.h
to actually notice that pango.h was #include'd before it, and expose
its SDLPango_GetPangoFontDescription() function!).  This is okay,
since we want to also add a "--uifont list" option (or similar),
that will list all of the available fonts, if a user wishes to
query them.  (And similar code will be added to tuxpaint-config to make
the setting available as a pull-down, rather than (or as well as) a
freeform type-in field.)
2023-06-01 00:20:41 -07:00
Bill Kendrick
b452d84d25 Improved how trans dir created
Having it as a Makefile target caused po->mo conversion to happen
every time, even if the MO files existed. >:-(
2023-05-29 12:36:56 -07:00
Bill Kendrick
9ab7fdba13 Ensure trans dir exists when making .mo files
Helps get `make clean && make -j` (parallel build) to work.
h/t bkw @ slackbuilds
2023-05-28 11:15:54 -07:00
Bill Kendrick
d8f3adc2e7 Bump version to 0.9.31; credit new Russian translator
h/t Olesya
2023-05-20 11:22:45 -07:00
Bill Kendrick
94153b75d3 Remove -rc1, sync docs / get updated doc dates 2023-05-18 18:27:02 -07:00
Bill Kendrick
eb8f4be7fd Makefile: Set version to 0.9.30-rc1
And appdate.xml -- bump date.
2023-05-14 13:14:24 -07:00
Bill Kendrick
a58f1f64b5 pick_best_scape() is now always included (even when building with NOSVG)
Was failing to compile on Haiku for Luc (apparently building with
no SVG support), since I started using that function outside of
SVG-related places.

Also, to continue being able to compile on Linux with no SVG support --
 * Always use SDL_TRUE & SDL_FALSE, not TRUE & FALSE
 * Always link tuxpaint with "-lm"

Finally, verbose version info ("tuxpaint --verbose-version") now states which
SVG build (new RSVG or old Cairo)
2023-05-09 23:44:39 -07:00
Bill Kendrick
2327fc58e7 "rm -f" after failed starter/template thumbnail
If `convert` fails, and didn't generate a file at all, `make` would
abort due to `rm` being unable to delete the non-existent broken
thumbnail.  Using `rm -f` now, so it doesn't abort if the thumbnail
file didn't get created AT ALL.

h/t Luc
2023-05-01 13:56:43 -07:00
Bill Kendrick
cef773a694 Now REQUIRING SDL2_Pango; no NO_SDLPANGO option
Motivation - Without SDL2_Pango, languages like Japanese,
Arabic, and Thai do not render properly.  Currently, Debian
(and hence Ubuntu) do not have SDL2_Pango, so Tux Paint 0.9.28
is adversely affected.  Fedora DOES have SDL2_Pango, so works well.
This also allows us to delete a lot of ancient cruft code.

Closes https://sourceforge.net/p/tuxpaint/bugs/268/
h/t Pere

(INSTALL docs to be updated momentarily)
2023-04-30 16:10:29 -07:00
Bill Kendrick
e49c55fbe6 WIP Magic size option; regen docs for 0.9.30 version 2023-04-09 23:25:48 -07:00
Bill Kendrick
a9e395dab8 Bump version to 0.9.30
Also, credit Jacques for French update.
2023-04-03 22:05:22 -07:00
Bill Kendrick
833ea93fcb "Tux Paint (Fullscreen)" launcher for Freedesktop.org
Adding a separate launcher that runs "tuxpaint --fullscreen=native"
for XDG environments (e.g., Linux); similar to what we have for
Windows.

Closes https://sourceforge.net/p/tuxpaint/feature-requests/227/
h/t Aaron
2023-04-01 16:50:19 -07:00
Bill Kendrick
041302c927 Dropping -rc3; next release likely to be final! 2023-03-30 09:56:48 -07:00
Bill Kendrick
8577a97c23 Bump to -rc3, update appdata & win32/resources.rc; regen POT/PO 2023-03-24 00:17:12 -07:00
Bill Kendrick
025c42be4f Mend issue with VER_FLAVOR
Can't put a "# ...comment" where I did; it breaks things!!!
2023-03-22 01:00:20 -07:00
Bill Kendrick
0ea015aa93 Drop "-sdl2" VER_FLAVOR
SDL1.2 is no longer supported, so nothing to distinguish.
2023-03-22 00:57:52 -07:00
Bill Kendrick
55b815affc Bumping ver to 0.9.29-rc2
Mended a stamp scaling bug just now, so probably worth another
release candidate before making a final release.

N.B. Still waiting to hear back from Pere about Kaleido-# tools
not appearing on Android, before cutting a new release.
2023-03-19 11:18:01 -07:00
Bill Kendrick
7dee091fb4 Set version to 0.9.29-rc1 for 1st release candidate 2023-03-16 22:05:54 -07:00
Bill Kendrick
34de8311db Zoom/Perspective: Support background color changes
When in the middle of adjusting a drawing with Zoom or Perspective,
you could change the color.  However, the background would not
relfect this until you further adjusted the zoom/perspective.

Now, a color change causes the background to update immediately.

This involved updating the Tux Paint Magic API to send more
arguments to each Magic tool's "XYZ_set_color()" function,
which means a bump in the API version.

(Forthcoming, all other Magic tools will have their set_color()
functions updated.)
2023-01-25 02:12:57 -08:00
Bill Kendrick
7279912af0 Drop 'trans' depencency for .mo files
Every time I ran `make`, it would re-build the .mo files!
2023-01-10 23:57:07 -08:00
Bill Kendrick
42cf1f532c Makefile: Remove rogue 'k'; update date 2023-01-02 11:47:00 -08:00
Philipp Rösner
33d94454a8
Add support for --shuffle GNU make flag
Add missing dependecies without which build
failures occur while using the --shuffle flag for GNU make.
2022-12-21 23:53:46 +01:00
Bill Kendrick
0517b4392c Update URL to https://tuxpaint.org/ everywhere
Also, add other social media accounts to list of places to
announce Tux Paint in RELEASE docs.

Also, list a ton more options missing from default example config file
"src/tuxpaint.conf"
2022-12-11 01:29:25 -08:00
Mark Kim
a56fba3565 Clearer post-make-install instructions on macOS 2022-12-03 11:26:59 -05:00
Mark Kim
3849480fd4 Pango loads Tux Paint-supplied fonts on macOS.
Previously Pango loaded system-supplied fonts instead, which could lead
to fonts not rendering in a human-readable text.  This change fixes
https://sourceforge.net/p/tuxpaint/bugs/265/
2022-12-02 22:57:38 -05:00
Bill Kendrick
9986ef2a49 Sync'd docs to get new tp_magic_example.c
...now localizable!
2022-10-18 01:27:36 -07:00
Bill Kendrick
632459087e Better performance from "Rush" (by using SDL_gfx rotozoom)
Applying patch from Pere.  ALSO, bumping Tux Paint Magic Tool API version.
2022-10-03 22:50:40 -07:00
Mark Kim
69ece3161e make clean macOS temp files
Clean temp files introduced by b331
2022-09-10 15:07:25 -04:00
Mark Kim
dd3009408f Automatically update macOS build version at build time. 2022-09-10 09:16:10 -04:00
dolphin6k
e2f5abdae6 Revert "Added FREETYPE_CFLAGS macro to make it find those headers."
This reverts commit af2166df14.
2022-08-20 22:23:27 +09:00
Shin-ichi TOYAMA
af2166df14 Added FREETYPE_CFLAGS macro to make it find those headers. 2022-08-18 14:38:21 +09:00
Bill Kendrick
60120b763c Merge branch 'master' into sdl2.0 2022-07-03 19:58:34 -07:00
Bill Kendrick
06fafcb6d6 "test-png" tool to find PNGs that cause warnings
New tool, "test-png", which exercises libpng library on
a set of PNG image files, allowing us to find those which
cause Tux Paint (via SDL_image, in turn via libpng) to
report back warnings to STDERR.

h/t Tim Dickson, per https://sourceforge.net/p/tuxpaint/bugs/252/
2022-07-03 17:18:58 -07:00
Mark Kim
633a3628d6 Compatibility with SDL2_Pango 0.1.3
Include all headers needed by SDL2_Pango when building the fonts file by
querying pkg-config.
2022-07-02 22:29:47 -04:00
Bill Kendrick
d289d407ad Merge branch 'master' into sdl2.0 2022-06-29 21:04:32 -07:00
Will Thompson
38bc3b27d8 Fix detection of xdg-icon-resource
If given more than one argument, 'which' prints the path to each one (if
found). Previously, which was passed two arguments: 'xdg-icon-resource',
and 'install'. But in the contained block of statements, 'install' is
an argument passed to 'xdg-icon-resource'. Pass only 'xdg-icon-resource'
to which.
2022-06-29 13:05:59 +01:00
Will Thompson
4120af3b5f Rename metainfo file to appdata
gettext 0.19.7 gained support for translating appdata files, whereas
support for metainfo files was added in 0.20. These file formats are
effectively the same: as documented in the AppStream specification,
desktop applications can install files with the suffix .appdata.xml
rather than .metainfo.xml and these will still be handled correctly.

It is desirable for this project to support RHEL 7, which has gettext
0.19.8.1, so let's use the older filename.

As noted in the same section of the specification, appdata files were
previously installed to /usr/share/appdata rather than
/usr/share/metainfo, but the spec asserts that the newer metainfo path
works all the way back to RHEL 7, so we keep the newer installation
path.

Thanks to Shin-ichi TOYAMA for flagging this issue.

https://www.freedesktop.org/software/appstream/docs/chap-Metadata.html#spec-component-location
2022-06-29 13:05:40 +01:00
Will Thompson
c03b688e98 Create metainfo directory with 'install'
The -D argument to install, together with -t DEST, means "ensure DEST
exists".
2022-06-29 12:40:44 +01:00
Bill Kendrick
080d78fe45 Make sure METAINFO dir exists 2022-06-29 00:38:03 -07:00