aboutsummaryrefslogtreecommitdiff
path: root/graphics/grafx2
diff options
context:
space:
mode:
authorEmanuel Haupt <ehaupt@FreeBSD.org>2009-03-04 17:53:46 +0000
committerEmanuel Haupt <ehaupt@FreeBSD.org>2009-03-04 17:53:46 +0000
commit2258f2865647a5052d51fefb00dcc88958e77dd0 (patch)
tree96a2b4171783ed5a8890a8f3f593d4d63722bcde /graphics/grafx2
parente148d75be8d6d3908d16d2695e4cb2efb1a5a447 (diff)
downloadports-2258f2865647a5052d51fefb00dcc88958e77dd0.tar.gz
ports-2258f2865647a5052d51fefb00dcc88958e77dd0.zip
Add grafx2, a bitmap paint program that supports more than 60 video
resolutions. Additional patches from: dinoex
Notes
Notes: svn path=/head/; revision=229487
Diffstat (limited to 'graphics/grafx2')
-rw-r--r--graphics/grafx2/Makefile31
-rw-r--r--graphics/grafx2/distinfo3
-rw-r--r--graphics/grafx2/files/patch-Makefile14
-rw-r--r--graphics/grafx2/files/patch-files.c15
-rw-r--r--graphics/grafx2/files/patch-main.c12
-rw-r--r--graphics/grafx2/pkg-descr5
-rw-r--r--graphics/grafx2/pkg-plist11
7 files changed, 91 insertions, 0 deletions
diff --git a/graphics/grafx2/Makefile b/graphics/grafx2/Makefile
new file mode 100644
index 000000000000..44b6944ceff2
--- /dev/null
+++ b/graphics/grafx2/Makefile
@@ -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>
diff --git a/graphics/grafx2/distinfo b/graphics/grafx2/distinfo
new file mode 100644
index 000000000000..7beb2d912a38
--- /dev/null
+++ b/graphics/grafx2/distinfo
@@ -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
diff --git a/graphics/grafx2/files/patch-Makefile b/graphics/grafx2/files/patch-Makefile
new file mode 100644
index 000000000000..e2579a43f045
--- /dev/null
+++ b/graphics/grafx2/files/patch-Makefile
@@ -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
diff --git a/graphics/grafx2/files/patch-files.c b/graphics/grafx2/files/patch-files.c
new file mode 100644
index 000000000000..0022d791f70b
--- /dev/null
+++ b/graphics/grafx2/files/patch-files.c
@@ -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
diff --git a/graphics/grafx2/files/patch-main.c b/graphics/grafx2/files/patch-main.c
new file mode 100644
index 000000000000..5216e58e9e71
--- /dev/null
+++ b/graphics/grafx2/files/patch-main.c
@@ -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);
+
diff --git a/graphics/grafx2/pkg-descr b/graphics/grafx2/pkg-descr
new file mode 100644
index 000000000000..7b9a4d92178e
--- /dev/null
+++ b/graphics/grafx2/pkg-descr
@@ -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/
diff --git a/graphics/grafx2/pkg-plist b/graphics/grafx2/pkg-plist
new file mode 100644
index 000000000000..3f1bfe8a86a2
--- /dev/null
+++ b/graphics/grafx2/pkg-plist
@@ -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%%