Received: by mail.netbsd.org (Postfix, from userid 605) id 17D2B85040; Tue, 17 Jul 2018 13:07:53 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by mail.netbsd.org (Postfix) with ESMTP id 03F438503C for ; Tue, 17 Jul 2018 13:07:52 +0000 (UTC) X-Virus-Scanned: amavisd-new at netbsd.org Received: from mail.netbsd.org ([IPv6:::1]) by localhost (mail.netbsd.org [IPv6:::1]) (amavisd-new, port 10025) with ESMTP id NVu-HafgfEK3 for ; Tue, 17 Jul 2018 13:07:50 +0000 (UTC) Received: from cvs.NetBSD.org (ivanova.netbsd.org [199.233.217.197]) by mail.netbsd.org (Postfix) with ESMTP id 8F5828501E for ; Tue, 17 Jul 2018 13:07:50 +0000 (UTC) Received: by cvs.NetBSD.org (Postfix, from userid 500) id 8C097FBEC; Tue, 17 Jul 2018 13:07:50 +0000 (UTC) Content-Transfer-Encoding: 7bit Content-Type: multipart/mixed; boundary="_----------=_1531832870131910" MIME-Version: 1.0 Date: Tue, 17 Jul 2018 13:07:50 +0000 From: "Ryo ONODERA" Subject: CVS commit: pkgsrc/graphics/grafx2 To: pkgsrc-changes@NetBSD.org Reply-To: ryoon@netbsd.org X-Mailer: log_accum Message-Id: <20180717130750.8C097FBEC@cvs.NetBSD.org> Sender: pkgsrc-changes-owner@NetBSD.org List-Id: pkgsrc-changes.NetBSD.org Precedence: bulk List-Unsubscribe: This is a multi-part message in MIME format. --_----------=_1531832870131910 Content-Disposition: inline Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="US-ASCII" Module Name: pkgsrc Committed By: ryoon Date: Tue Jul 17 13:07:50 UTC 2018 Added Files: pkgsrc/graphics/grafx2: DESCR Makefile PLIST distinfo pkgsrc/graphics/grafx2/patches: patch-Makefile patch-main.c patch-misc.c Log Message: graphics/grafx2: import grafx2-2.5.1960 GrafX2 is a drawing program dedicated to pixelart and low-color graphics. This program is dedicated to everybody who knows what a single pixel is. Its layout is not very different from the famous Deluxe Paint or Brilliance, so it will be quite easy to handle it if you know at least one of these programs. If you aren't used to the art of drawing with up to 256 colors, it will be a little more difficult for you, but you should give it a try (or more, because most of the power of this program won't show up on the first try). Then, you might eventually like to draw the oldskool way ! To generate a diff of this commit: cvs rdiff -u -r0 -r1.1 pkgsrc/graphics/grafx2/DESCR \ pkgsrc/graphics/grafx2/Makefile pkgsrc/graphics/grafx2/PLIST \ pkgsrc/graphics/grafx2/distinfo cvs rdiff -u -r0 -r1.1 pkgsrc/graphics/grafx2/patches/patch-Makefile \ pkgsrc/graphics/grafx2/patches/patch-main.c \ pkgsrc/graphics/grafx2/patches/patch-misc.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. --_----------=_1531832870131910 Content-Disposition: inline Content-Length: 9923 Content-Transfer-Encoding: binary Content-Type: text/x-diff; charset=us-ascii Added files: Index: pkgsrc/graphics/grafx2/DESCR diff -u /dev/null pkgsrc/graphics/grafx2/DESCR:1.1 --- /dev/null Tue Jul 17 13:07:50 2018 +++ pkgsrc/graphics/grafx2/DESCR Tue Jul 17 13:07:50 2018 @@ -0,0 +1,9 @@ +GrafX2 is a drawing program dedicated to pixelart and low-color +graphics. This program is dedicated to everybody who knows what a +single pixel is. Its layout is not very different from the famous +Deluxe Paint or Brilliance, so it will be quite easy to handle it +if you know at least one of these programs. If you aren't used to +the art of drawing with up to 256 colors, it will be a little more +difficult for you, but you should give it a try (or more, because +most of the power of this program won't show up on the first try). +Then, you might eventually like to draw the oldskool way ! Index: pkgsrc/graphics/grafx2/Makefile diff -u /dev/null pkgsrc/graphics/grafx2/Makefile:1.1 --- /dev/null Tue Jul 17 13:07:50 2018 +++ pkgsrc/graphics/grafx2/Makefile Tue Jul 17 13:07:50 2018 @@ -0,0 +1,30 @@ +# $NetBSD: Makefile,v 1.1 2018/07/17 13:07:50 ryoon Exp $ + +DISTNAME= grafx2-2.5.1960-src +PKGNAME= ${DISTNAME:S/-src//} +CATEGORIES= graphics +MASTER_SITES= -http://pulkomandy.tk/projects/GrafX2/downloads/30 +EXTRACT_SUFX= .tgz + +MAINTAINER= ryoon@NetBSD.org +HOMEPAGE= http://pulkomandy.tk/projects/GrafX2/ +COMMENT= Ultimate 256-color bitmap paint program +LICENSE= gnu-gpl-v2 + +WRKSRC= ${WRKDIR}/grafx2/src +USE_TOOLS+= gmake +USE_LANGUAGES= c c++ + +SUBST_CLASSES+= fix-paths +SUBST_STAGE.fix-paths= pre-configure +SUBST_MESSAGE.fix-paths= Set PREFIX +SUBST_FILES.fix-paths= main.c +SUBST_VARS.fix-paths= PREFIX + +.include "../../devel/SDL/buildlink3.mk" +.include "../../devel/SDL_ttf/buildlink3.mk" +.include "../../fonts/fontconfig/buildlink3.mk" +.include "../../graphics/SDL_image/buildlink3.mk" +.include "../../graphics/png/buildlink3.mk" +.include "../../lang/lua/buildlink3.mk" +.include "../../mk/bsd.pkg.mk" Index: pkgsrc/graphics/grafx2/PLIST diff -u /dev/null pkgsrc/graphics/grafx2/PLIST:1.1 --- /dev/null Tue Jul 17 13:07:50 2018 +++ pkgsrc/graphics/grafx2/PLIST Tue Jul 17 13:07:50 2018 @@ -0,0 +1,94 @@ +@comment $NetBSD: PLIST,v 1.1 2018/07/17 13:07:50 ryoon Exp $ +bin/grafx2 +share/applications/grafx2.desktop +share/grafx2/fonts/8pxfont.png +share/grafx2/fonts/PF_Arma_5__.png +share/grafx2/fonts/PF_Easta_7_.png +share/grafx2/fonts/PF_Easta_7__.png +share/grafx2/fonts/PF_Ronda_7__.png +share/grafx2/fonts/PF_Tempesta_5.png +share/grafx2/fonts/PF_Tempesta_5_.png +share/grafx2/fonts/PF_Tempesta_5__.png +share/grafx2/fonts/PF_Tempesta_5___.png +share/grafx2/fonts/PF_Tempesta_7.png +share/grafx2/fonts/PF_Tempesta_7_.png +share/grafx2/fonts/PF_Tempesta_7__.png +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/gfx2.gif +share/grafx2/gfx2def.ini +share/grafx2/scripts/samples_2.4/brush/ApplyColor.lua +share/grafx2/scripts/samples_2.4/brush/Fisheye.lua +share/grafx2/scripts/samples_2.4/brush/GrayscaleAvg.lua +share/grafx2/scripts/samples_2.4/brush/GrayscaleDesat.lua +share/grafx2/scripts/samples_2.4/brush/Halfsmooth.lua +share/grafx2/scripts/samples_2.4/brush/Waves.lua +share/grafx2/scripts/samples_2.4/demo/3DPalette.lua +share/grafx2/scripts/samples_2.4/demo/Ellipse.lua +share/grafx2/scripts/samples_2.4/demo/FlipPicture.lua +share/grafx2/scripts/samples_2.4/demo/SierpinskyCarpet.lua +share/grafx2/scripts/samples_2.4/demo/SierpinskyTriangle.lua +share/grafx2/scripts/samples_2.4/demo/Spritesheet.lua +share/grafx2/scripts/samples_2.4/demo/brush/Amigaball.lua +share/grafx2/scripts/samples_2.4/demo/brush/ColorSphere.lua +share/grafx2/scripts/samples_2.4/demo/brush/FindAA.lua +share/grafx2/scripts/samples_2.4/demo/brush/Mandelbrot.lua +share/grafx2/scripts/samples_2.4/libs/dawnbringer_lib.lua +share/grafx2/scripts/samples_2.4/libs/memory.lua +share/grafx2/scripts/samples_2.4/palette/Desaturate.lua +share/grafx2/scripts/samples_2.4/palette/ExpandColors.lua +share/grafx2/scripts/samples_2.4/palette/FillColorCube.lua +share/grafx2/scripts/samples_2.4/palette/InvertedRGB.lua +share/grafx2/scripts/samples_2.4/palette/Set3bit.lua +share/grafx2/scripts/samples_2.4/palette/Set6bit.lua +share/grafx2/scripts/samples_2.4/palette/SetC64Palette.lua +share/grafx2/scripts/samples_2.4/palette/ShiftHue.lua +share/grafx2/scripts/samples_2.4/picture/CellColourReducer.lua +share/grafx2/scripts/samples_2.4/picture/DrawGridIsometric.lua +share/grafx2/scripts/samples_2.4/picture/DrawGridOrthogonal_RGB.lua +share/grafx2/scripts/samples_2.4/picture/DrawgridOrthogonal_Index.lua +share/grafx2/scripts/samples_2.4/picture/FontConvert.lua +share/grafx2/scripts/samples_2.4/picture/GlassGridFilter.lua +share/grafx2/scripts/samples_2.4/picture/PaletteToPicture.lua +share/grafx2/scripts/samples_2.4/picture/Pic2isometric.lua +share/grafx2/scripts/samples_2.4/picture/Rainbow-Dark2Bright.lua +share/grafx2/scripts/samples_2.4/picture/RemapImage2RGB.lua +share/grafx2/scripts/samples_2.4/picture/RemapImage2RGB_ed.lua +share/grafx2/scripts/samples_2.4/picture/RemapImageTo3bitPal.lua +share/grafx2/scripts/samples_2.4/picture/Tiler.lua +share/grafx2/scripts/samples_2.4/picture/XBitColourXpaceFromPalette.lua +share/grafx2/scripts/samples_2.4/picture/others-8bit/lib/ostro_other.lua +share/grafx2/scripts/samples_2.4/picture/others-8bit/ostro_oric.lua +share/grafx2/scripts/samples_2.4/picture/others-8bit/ostro_zx.lua +share/grafx2/scripts/samples_2.4/picture/thomson/bayer4_mo5.lua +share/grafx2/scripts/samples_2.4/picture/thomson/bayer4_to8.lua +share/grafx2/scripts/samples_2.4/picture/thomson/lib/bayer.lua +share/grafx2/scripts/samples_2.4/picture/thomson/lib/color.lua +share/grafx2/scripts/samples_2.4/picture/thomson/lib/color_reduction.lua +share/grafx2/scripts/samples_2.4/picture/thomson/lib/convex_hull.lua +share/grafx2/scripts/samples_2.4/picture/thomson/lib/ostromoukhov.lua +share/grafx2/scripts/samples_2.4/picture/thomson/lib/thomson.lua +share/grafx2/scripts/samples_2.4/picture/thomson/none_mo5.lua +share/grafx2/scripts/samples_2.4/picture/thomson/none_to8.lua +share/grafx2/scripts/samples_2.4/picture/thomson/none_to9.lua +share/grafx2/scripts/samples_2.4/picture/thomson/ostro_mo5.lua +share/grafx2/scripts/samples_2.4/picture/thomson/ostro_to7.lua +share/grafx2/scripts/samples_2.4/picture/thomson/ostro_to8.lua +share/grafx2/scripts/samples_2.4/picture/thomson/ostro_to9.lua +share/grafx2/skins/font_Classic.png +share/grafx2/skins/font_DPaint.png +share/grafx2/skins/font_Fairlight.png +share/grafx2/skins/font_Fun.png +share/grafx2/skins/font_Melon.png +share/grafx2/skins/font_Seen.png +share/grafx2/skins/skin_Aurora.png +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_0410-044F.png +share/icons/grafx2.svg +share/icons/grafx2.xpm +@pkgdir share/grafx2/scripts/libs Index: pkgsrc/graphics/grafx2/distinfo diff -u /dev/null pkgsrc/graphics/grafx2/distinfo:1.1 --- /dev/null Tue Jul 17 13:07:50 2018 +++ pkgsrc/graphics/grafx2/distinfo Tue Jul 17 13:07:50 2018 @@ -0,0 +1,9 @@ +$NetBSD: distinfo,v 1.1 2018/07/17 13:07:50 ryoon Exp $ + +SHA1 (grafx2-2.5.1960-src.tgz) = eb9b59eae66fce644de36b4819b27ca02501b929 +RMD160 (grafx2-2.5.1960-src.tgz) = 2e7eccdfbe2d5f53c16b5588422c189f689d1d43 +SHA512 (grafx2-2.5.1960-src.tgz) = 42aeebd52c6a643d422fb906b396c0325d0d4adbc1b6eda1264c1c35e50d57ae242d82fee267e46331d1c6ecf520ac7a9834d30454bfcbdfb322c37f131e4fb2 +Size (grafx2-2.5.1960-src.tgz) = 888914 bytes +SHA1 (patch-Makefile) = dde5929e5c4979fd427a0029015faaf403839852 +SHA1 (patch-main.c) = 32ab12bd3a3b39cc89004afde815dbd4fddc0802 +SHA1 (patch-misc.c) = 28373720742bf6a0327f4f1b3410350c014a5c33 Index: pkgsrc/graphics/grafx2/patches/patch-Makefile diff -u /dev/null pkgsrc/graphics/grafx2/patches/patch-Makefile:1.1 --- /dev/null Tue Jul 17 13:07:50 2018 +++ pkgsrc/graphics/grafx2/patches/patch-Makefile Tue Jul 17 13:07:50 2018 @@ -0,0 +1,15 @@ +$NetBSD: patch-Makefile,v 1.1 2018/07/17 13:07:50 ryoon Exp $ + +* Install to pkgsrc location + +--- Makefile.orig 2018-05-15 16:51:04.000000000 +0000 ++++ Makefile +@@ -23,7 +23,7 @@ + # along with Grafx2; if not, see + + # Overridable defaults +- prefix = /usr/local ++ prefix = ${PREFIX} + exec_prefix = $(prefix) + bindir = $(exec_prefix)/bin + datarootdir = $(prefix)/share Index: pkgsrc/graphics/grafx2/patches/patch-main.c diff -u /dev/null pkgsrc/graphics/grafx2/patches/patch-main.c:1.1 --- /dev/null Tue Jul 17 13:07:50 2018 +++ pkgsrc/graphics/grafx2/patches/patch-main.c Tue Jul 17 13:07:50 2018 @@ -0,0 +1,15 @@ +$NetBSD: patch-main.c,v 1.1 2018/07/17 13:07:50 ryoon Exp $ + +* Enable non-absolute path execute + +--- main.c.orig 2018-05-15 16:51:04.000000000 +0000 ++++ main.c +@@ -544,7 +544,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); + // Choose directory for data (read only) + Set_data_directory(program_directory,Data_directory); + // Choose directory for settings (read/write) Index: pkgsrc/graphics/grafx2/patches/patch-misc.c diff -u /dev/null pkgsrc/graphics/grafx2/patches/patch-misc.c:1.1 --- /dev/null Tue Jul 17 13:07:50 2018 +++ pkgsrc/graphics/grafx2/patches/patch-misc.c Tue Jul 17 13:07:50 2018 @@ -0,0 +1,16 @@ +$NetBSD: patch-misc.c,v 1.1 2018/07/17 13:07:50 ryoon Exp $ + +* Fix sysctl build failure + +--- misc.c.orig 2018-05-15 16:51:04.000000000 +0000 ++++ misc.c +@@ -24,6 +24,9 @@ + #if defined(WIN32) + #define _WIN32_WINNT 0x0500 + #endif ++#if defined(__NetBSD__) ++#define _NETBSD_SOURCE ++#endif + #include + #include + #ifndef _MSC_VER --_----------=_1531832870131910--