diff options
author | ryoon <ryoon@pkgsrc.org> | 2020-02-10 13:08:10 +0000 |
---|---|---|
committer | ryoon <ryoon@pkgsrc.org> | 2020-02-10 13:08:10 +0000 |
commit | c7d4baf16d275ef82af8f516ca8adb67c120178b (patch) | |
tree | 9d1390af7c4c351f25c95580e2075294048eafd2 | |
parent | 8c1d512498d371d3df99da0ac11074cf9c64cfed (diff) | |
download | pkgsrc-c7d4baf16d275ef82af8f516ca8adb67c120178b.tar.gz |
grafx2: Update to 2.7.2950
Changelog:
Not available.
-rw-r--r-- | graphics/grafx2/Makefile | 12 | ||||
-rw-r--r-- | graphics/grafx2/PLIST | 9 | ||||
-rw-r--r-- | graphics/grafx2/distinfo | 16 | ||||
-rw-r--r-- | graphics/grafx2/patches/patch-help.c | 12 | ||||
-rw-r--r-- | graphics/grafx2/patches/patch-main.c | 12 | ||||
-rw-r--r-- | graphics/grafx2/patches/patch-misc.c | 16 |
6 files changed, 38 insertions, 39 deletions
diff --git a/graphics/grafx2/Makefile b/graphics/grafx2/Makefile index f47123c1afa..3fcc558dbc4 100644 --- a/graphics/grafx2/Makefile +++ b/graphics/grafx2/Makefile @@ -1,20 +1,20 @@ -# $NetBSD: Makefile,v 1.5 2019/07/28 19:50:55 nia Exp $ +# $NetBSD: Makefile,v 1.6 2020/02/10 13:08:10 ryoon Exp $ -DISTNAME= grafX2-v2.6 -PKGNAME= ${DISTNAME:S/X2-v/x2-/} +DISTNAME= grafx2-2.7.2950-src +PKGNAME= ${DISTNAME:S/-src//} CATEGORIES= graphics -MASTER_SITES= https://gitlab.com/GrafX2/grafX2/-/archive/v${PKGVERSION_NOREV}/ +MASTER_SITES= https://gitlab.com/GrafX2/grafX2/-/jobs/428763304/artifacts/raw/ EXTRACT_SUFX= .tgz MAINTAINER= ryoon@NetBSD.org -HOMEPAGE= http://grafx2.chez.com/ +HOMEPAGE= https://grafx2.gitlab.io/grafX2/ COMMENT= Ultimate 256-color bitmap paint program LICENSE= gnu-gpl-v2 USE_TOOLS+= curl gmake pkg-config USE_LANGUAGES= c c++ -WRKSRC= ${WRKDIR}/${DISTNAME}/src +WRKSRC= ${WRKDIR}/grafx2/src SUBST_CLASSES+= fix-paths SUBST_STAGE.fix-paths= pre-configure diff --git a/graphics/grafx2/PLIST b/graphics/grafx2/PLIST index ec5daade64b..91963446d30 100644 --- a/graphics/grafx2/PLIST +++ b/graphics/grafx2/PLIST @@ -1,10 +1,7 @@ -@comment $NetBSD: PLIST,v 1.2 2019/07/18 12:15:04 nia Exp $ +@comment $NetBSD: PLIST,v 1.3 2020/02/10 13:08:10 ryoon Exp $ bin/grafx2-sdl share/applications/grafx2.desktop -share/grafx2/fonts/5pxtinyfont.png share/grafx2/fonts/8pxfont.png -share/grafx2/fonts/GrafX2_Black.gif -share/grafx2/fonts/GrafX2_Dark.gif share/grafx2/fonts/PF_Arma_5__.png share/grafx2/fonts/PF_Easta_7_.png share/grafx2/fonts/PF_Easta_7__.png @@ -20,8 +17,8 @@ share/grafx2/fonts/PF_Tempesta_7___.png share/grafx2/fonts/PF_Westa_7_.png share/grafx2/fonts/PF_Westa_7__.png share/grafx2/fonts/Tuffy.ttf -share/grafx2/fonts/colorfont.pcx share/grafx2/gfx2.gif +share/grafx2/gfx2.png share/grafx2/gfx2def.ini share/grafx2/scripts/samples/brush/ApplyColor.lua share/grafx2/scripts/samples/brush/Fisheye.lua @@ -93,7 +90,9 @@ share/grafx2/skins/skin_DPaint.png share/grafx2/skins/skin_classic.png share/grafx2/skins/skin_modern.png share/grafx2/skins/skin_scenish.png +share/grafx2/skins/unicode_0390-03C9.png share/grafx2/skins/unicode_0410-044F.png +share/grafx2/skins/unicode_3040-309F.png share/icons/hicolor/scalable/apps/grafx2.svg share/icons/hicolor/scalable/apps/grafx2.xpm share/metainfo/grafx2.appdata.xml diff --git a/graphics/grafx2/distinfo b/graphics/grafx2/distinfo index 433e1e702d7..ab63b73aa5d 100644 --- a/graphics/grafx2/distinfo +++ b/graphics/grafx2/distinfo @@ -1,9 +1,9 @@ -$NetBSD: distinfo,v 1.2 2019/07/18 12:15:04 nia Exp $ +$NetBSD: distinfo,v 1.3 2020/02/10 13:08:10 ryoon Exp $ -SHA1 (grafX2-v2.6.tgz) = 0aa6501a6ab6815917826603f7d4ef4e2cf01b4e -RMD160 (grafX2-v2.6.tgz) = ae0eb91a69be72e343241221a1c28261416aea51 -SHA512 (grafX2-v2.6.tgz) = 45daf4c32d7523f6b5c54b4b8d1fe9e35aff663a650ee86bd9898d91510340ae8e1fb61ea35d83efc944af28568258f827cdebb79362648361688c306781d8c6 -Size (grafX2-v2.6.tgz) = 1228632 bytes -SHA1 (patch-help.c) = b4df9282f64760f00f380f19e52a48839f3d9025 -SHA1 (patch-main.c) = 32ab12bd3a3b39cc89004afde815dbd4fddc0802 -SHA1 (patch-misc.c) = e4913bbf2b309ff0c2858158b6b53d6768ebff85 +SHA1 (grafx2-2.7.2950-src.tgz) = 126fa87c1bcd18af0215b24451828c37d6c45f31 +RMD160 (grafx2-2.7.2950-src.tgz) = c9a2ca8c59d0229b296bb2eeac3293a7a2fbd679 +SHA512 (grafx2-2.7.2950-src.tgz) = 1f13d17327b55d040cca63bf804f81ff2cc8a57ef6c3418d5da2e84c090b3c2b62ed348abfb95b50f11ceea80637477e8cfd3d277dfd5c8949fbdb7620098cec +Size (grafx2-2.7.2950-src.tgz) = 1104406 bytes +SHA1 (patch-help.c) = 769082d899ee7e3e88fa789f59d26db723d7c8ee +SHA1 (patch-main.c) = 3116bf8990994265132ce95fec1ca13a0b735912 +SHA1 (patch-misc.c) = 19d9c3225babd1f62c14def892b77a8691edb0a6 diff --git a/graphics/grafx2/patches/patch-help.c b/graphics/grafx2/patches/patch-help.c index 935dc0483d0..81e49034227 100644 --- a/graphics/grafx2/patches/patch-help.c +++ b/graphics/grafx2/patches/patch-help.c @@ -1,10 +1,10 @@ -$NetBSD: patch-help.c,v 1.1 2019/07/18 12:15:04 nia Exp $ +$NetBSD: patch-help.c,v 1.2 2020/02/10 13:08:10 ryoon Exp $ Use statvfs on NetBSD. ---- help.c.orig 2019-01-10 08:40:57.000000000 +0000 +--- help.c.orig 2020-02-06 21:01:27.000000000 +0000 +++ help.c -@@ -30,9 +30,11 @@ +@@ -31,9 +31,11 @@ #if defined(_MSC_VER) && _MSC_VER < 1900 #define snprintf _snprintf #endif @@ -17,9 +17,9 @@ Use statvfs on NetBSD. #elif defined (__linux__) || defined(__SYLLABLE__) #include <sys/vfs.h> #elif defined (__HAIKU__) -@@ -966,12 +968,18 @@ void Button_Stats(int btn) - GetDiskFreeSpaceExA(Main.selector.Directory,&tailleU,NULL,NULL); - mem_size = tailleU.QuadPart; +@@ -976,12 +978,18 @@ void Button_Stats(int btn) + GFX2_Log(GFX2_ERROR, "GetDiskFreeSpaceExA() failed\n"); + } } -#elif defined(__linux__) || defined(__macosx__) || defined(__FreeBSD__) || defined(__SYLLABLE__) || defined(__AROS__) || defined(__OpenBSD__) || defined(__NetBSD__) +#elif defined(__linux__) || defined(__macosx__) || defined(__FreeBSD__) || defined(__SYLLABLE__) || defined(__AROS__) || defined(__OpenBSD__) diff --git a/graphics/grafx2/patches/patch-main.c b/graphics/grafx2/patches/patch-main.c index c587b8f4e6f..fdfcbf78607 100644 --- a/graphics/grafx2/patches/patch-main.c +++ b/graphics/grafx2/patches/patch-main.c @@ -1,15 +1,15 @@ -$NetBSD: patch-main.c,v 1.1 2018/07/17 13:07:50 ryoon Exp $ +$NetBSD: patch-main.c,v 1.2 2020/02/10 13:08:10 ryoon Exp $ * Enable non-absolute path execute ---- main.c.orig 2018-05-15 16:51:04.000000000 +0000 +--- main.c.orig 2020-02-06 21:01:27.000000000 +0000 +++ main.c -@@ -544,7 +544,7 @@ int Init_program(int argc,char * argv[]) +@@ -654,7 +654,7 @@ int Init_program(int argc,char * argv[]) Init_list_of_pages(Spare.backups); // Determine the executable directory -- Set_program_directory(argv[0],program_directory); -+ Set_program_directory("@PREFIX@/bin/grafx2",program_directory); +- program_directory = Get_program_directory(argv[0]); ++ program_directory = Get_program_directory("@PREFIX@/bin/grafx2-sdl"); // Choose directory for data (read only) - Set_data_directory(program_directory,Data_directory); + Data_directory = Get_data_directory(program_directory); // Choose directory for settings (read/write) diff --git a/graphics/grafx2/patches/patch-misc.c b/graphics/grafx2/patches/patch-misc.c index 5b0023c0969..6a0416417b5 100644 --- a/graphics/grafx2/patches/patch-misc.c +++ b/graphics/grafx2/patches/patch-misc.c @@ -1,16 +1,16 @@ -$NetBSD: patch-misc.c,v 1.2 2019/07/18 12:15:04 nia Exp $ +$NetBSD: patch-misc.c,v 1.3 2020/02/10 13:08:10 ryoon Exp $ * Fix sysctl build failure ---- misc.c.orig 2019-01-10 08:40:57.000000000 +0000 +--- misc.c.orig 2020-02-06 21:01:27.000000000 +0000 +++ misc.c -@@ -25,6 +25,9 @@ - #if defined(WIN32) - #define _WIN32_WINNT 0x0500 +@@ -29,6 +29,9 @@ + #ifndef _MSC_VER + #include <strings.h> #endif +#if defined(__NetBSD__) +#define _NETBSD_SOURCE +#endif - #include <string.h> - #ifndef _MSC_VER - #include <strings.h> + #include <stdlib.h> + #include <math.h> + #if !defined(USE_SDL) && !defined(USE_SDL2) |