Import graphics/grafx2

GrafX2 is a bitmap paint program inspired by the Amiga programs Deluxe
Paint and Brilliance. Specialized in 256-color drawing, it includes a
very large number of tools and effects that make it particularly
suitable for pixel art, game graphics, and generally any detailed
graphics painted with a mouse.

OK giovanni@
This commit is contained in:
fcambus 2016-09-04 20:13:44 +00:00
parent 24986b5799
commit 0f04732485
5 changed files with 109 additions and 0 deletions

50
graphics/grafx2/Makefile Normal file
View File

@ -0,0 +1,50 @@
# $OpenBSD: Makefile,v 1.1.1.1 2016/09/04 20:13:44 fcambus Exp $
COMMENT = bitmap paint program inspired by Deluxe Paint and Brilliance
V = 2.4
DISTNAME = grafx2-${V}.2035-src
PKGNAME = grafx2-${V}
EXTRACT_SUFX = .tgz
CATEGORIES = graphics
HOMEPAGE = http://pulkomandy.tk/projects/GrafX2
MAINTAINER = Frederic Cambus <fcambus@openbsd.org>
# GPLv2
PERMIT_PACKAGE_CDROM = Yes
WANTLIB += SDL SDL_image c m png pthread
MASTER_SITES = http://pulkomandy.tk/projects/GrafX2/downloads/
RUN_DEPENDS = devel/desktop-file-utils
LIB_DEPENDS = devel/sdl \
devel/sdl-image
WRKDIST = ${WRKDIR}/grafx2/src
USE_GMAKE = Yes
MAKE_FLAGS = NOLUA=1 NOTTF=1
NO_TEST = Yes
pre-configure:
@sed -i 's|CC = gcc|CC ?= gcc|' ${WRKSRC}/Makefile
@sed -i 's|Extract_path(program_dir, argv0);|strcpy(program_dir,"${PREFIX}/bin/");|' \
${WRKSRC}/setup.c
post-install:
${INSTALL_DATA_DIR} ${PREFIX}/share/pixmaps
mv ${PREFIX}/share/icons/grafx2.xpm ${PREFIX}/share/pixmaps/
${INSTALL_DATA_DIR} ${PREFIX}/share/grafx2/icons
mv ${PREFIX}/share/icons/grafx2.svg ${PREFIX}/share/grafx2/icons/
rmdir ${PREFIX}/share/icons
rm -rf ${PREFIX}/share/grafx2/scripts
rm ${PREFIX}/share/grafx2/fonts/Tuffy.ttf
.include <bsd.port.mk>

2
graphics/grafx2/distinfo Normal file
View File

@ -0,0 +1,2 @@
SHA256 (grafx2-2.4.2035-src.tgz) = WBjK6mPNPPMxi68B3SD4HsYeRRREMADICkG2irPxems=
SIZE (grafx2-2.4.2035-src.tgz) = 721482

View File

@ -0,0 +1,12 @@
$OpenBSD: patch-realpath_c,v 1.1.1.1 2016/09/04 20:13:44 fcambus Exp $
--- realpath.c.orig Fri Aug 5 23:18:51 2016
+++ realpath.c Fri Aug 5 23:19:18 2016
@@ -6,7 +6,7 @@
#include <fcntl.h>
#include <string.h>
#include <unistd.h>
-#if defined(__AROS__) || defined(__linux__) || defined(__GLIBC__)
+#if defined(__AROS__) || defined(__linux__) || defined(__GLIBC__) || defined(__OpenBSD__)
#include <limits.h>
#endif

View File

@ -0,0 +1,5 @@
GrafX2 is a bitmap paint program inspired by the Amiga programs Deluxe
Paint and Brilliance. Specialized in 256-color drawing, it includes a
very large number of tools and effects that make it particularly
suitable for pixel art, game graphics, and generally any detailed
graphics painted with a mouse.

40
graphics/grafx2/pkg/PLIST Normal file
View File

@ -0,0 +1,40 @@
@comment $OpenBSD: PLIST,v 1.1.1.1 2016/09/04 20:13:44 fcambus Exp $
@bin bin/grafx2
share/applications/grafx2.desktop
share/grafx2/
share/grafx2/fonts/
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/gfx2.gif
share/grafx2/gfx2def.ini
share/grafx2/icons/
share/grafx2/icons/grafx2.svg
share/grafx2/skins/
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/pixmaps/
share/pixmaps/grafx2.xpm
@exec %D/bin/update-desktop-database
@unexec-delete %D/bin/update-desktop-database