1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-28 05:29:48 +00:00

Add grafx2, a bitmap paint program that supports more than 60 video

resolutions.

Additional patches from:	dinoex
This commit is contained in:
Emanuel Haupt 2009-03-04 17:53:46 +00:00
parent e148d75be8
commit 2258f28656
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=229487
8 changed files with 92 additions and 0 deletions

View File

@ -267,6 +267,7 @@
SUBDIR += gqview-devel
SUBDIR += gracula
SUBDIR += grads
SUBDIR += grafx2
SUBDIR += graphopt
SUBDIR += graphviz
SUBDIR += gridpix

31
graphics/grafx2/Makefile Normal file
View File

@ -0,0 +1,31 @@
# New ports collection makefile for: grafx2
# Date created: 23 Feb 2009
# Whom: Emanuel Haupt <ehaupt@FreeBSD.org>
#
# $FreeBSD$
#
PORTNAME= grafx2
DISTVERSION= 2.00b98.0
DISTVERSIONSUFFIX= -svn482
CATEGORIES= graphics
MASTER_SITES= ${MASTER_SITE_GOOGLE_CODE}
EXTRACT_SUFX= .tgz
MAINTAINER= ehaupt@FreeBSD.org
COMMENT= Bitmap paint program that supports more than 60 video resolutions
USE_GMAKE= yes
USE_DOS2UNIX= yes
USE_SDL= image ttf
WRKSRC= ${WRKDIR}
MAKE_ENV+= DATADIR="${DATADIR}"
CFLAGS+= -DHAVE_SYS_PARAM_H -DHAVE_SYS_UCRED_H -DHAVE_SYS_MOUNT_H \
-DHAVE_STRUCT_STATFS_F_FSTYPENAME
post-patch:
@${REINPLACE_CMD} -e 's|macosx|FreeBSD|g' \
${WRKSRC}/divers.c ${WRKSRC}/mountlist.c ${WRKSRC}/aide.c ${WRKSRC}/init.c
.include <bsd.port.mk>

3
graphics/grafx2/distinfo Normal file
View File

@ -0,0 +1,3 @@
MD5 (grafx2-2.00b98.0-svn482.tgz) = 4eeab264b8abf3fdbaf225795ee6d63a
SHA256 (grafx2-2.00b98.0-svn482.tgz) = 3f7abd1e41f37a4e7ec006752e276efaf0466f7d5bc5c09c76eda78e90dbd251
SIZE (grafx2-2.00b98.0-svn482.tgz) = 362391

View File

@ -0,0 +1,14 @@
--- ./Makefile.orig 2009-02-23 14:20:42.000000000 +0100
+++ ./Makefile 2009-02-23 14:20:42.000000000 +0100
@@ -169,9 +169,9 @@
# Compiles a regular linux exectutable for the native platform
BIN = grafx2
CFGBIN = gfxcfg
- COPT = -W -Wall -Wdeclaration-after-statement -pedantic -std=c99 -c -g `sdl-config --cflags` $(TTFCOPT)
+ COPT = $(CFLAGS) -pedantic -std=c99 -c -g `sdl-config --cflags` $(TTFCOPT)
LOPT = `sdl-config --libs` -lSDL_image $(TTFLOPT)
- CC = gcc
+ CC ?= gcc
OBJDIR = obj/unix
X11LOPT = -lX11
endif

View File

@ -0,0 +1,15 @@
--- ./files.c.orig 2009-02-23 14:20:42.000000000 +0100
+++ ./files.c 2009-02-23 14:21:14.000000000 +0100
@@ -318,11 +318,10 @@
// This should be made dynamic because in the multitask world, user can mount new drives,
// connect to network ones, and so on, while Grafx2 is running.
#else
- #warning "Your platform is missing some specific code here ! please check and correct ! :)"
for (Indice=0; Indice<Nb_drives; Indice++)
{
// Add the drive's name ("c:\\", "/" etc.) to the list
- Ajouter_element_a_la_liste(Drive[Indice].Chemin, 2);
+ Ajouter_element_a_la_liste("/", 2);
Liste_Nb_repertoires++;
}
#endif

View File

@ -0,0 +1,12 @@
--- ./main.c.orig 2009-01-14 17:33:21.000000000 +0100
+++ ./main.c 2009-02-27 18:18:23.000000000 +0100
@@ -290,7 +290,8 @@
// Determine the executable directory
Set_Program_Directory(argv[0],Repertoire_du_programme);
// Choose directory for data (read only)
- Set_Data_Directory(Repertoire_du_programme,Repertoire_des_donnees);
+ //Set_Data_Directory(Repertoire_du_programme,Repertoire_des_donnees);
+ Set_Data_Directory("/usr/local/share/grafx2/",Repertoire_des_donnees);
// Choose directory for settings (read/write)
Set_Config_Directory(Repertoire_du_programme,Repertoire_de_configuration);

View File

@ -0,0 +1,5 @@
A bitmap paint program that allows you to draw in more than 60 video
resolutions. It was written to run under DOS, but the code you'll find here was
modified to use SDL and modern operating systems.
WWW: http://code.google.com/p/grafx2/

11
graphics/grafx2/pkg-plist Normal file
View File

@ -0,0 +1,11 @@
bin/grafx2
bin/gfxcfg
%%DATADIR%%/grafx2
%%DATADIR%%/gfxcfg
%%DATADIR%%/gfx2.dat
%%DATADIR%%/gfx2.gif
%%DATADIR%%/gfx2cfg.gif
%%DATADIR%%/fonts/Tuffy.ttf
%%DATADIR%%/fonts/8pxfont.png
@dirrm %%DATADIR%%/fonts
@dirrm %%DATADIR%%