diff options
author | ehaupt <ehaupt@FreeBSD.org> | 2009-03-05 01:53:46 +0800 |
---|---|---|
committer | ehaupt <ehaupt@FreeBSD.org> | 2009-03-05 01:53:46 +0800 |
commit | a4cacfbfd96402f08da40a0c5160f11474ee5c55 (patch) | |
tree | 0357f83f1ebf1f96092c6967e2c6b50189a7a2d6 /graphics | |
parent | 4c49022f325b77b54298e8ad30586c387058365f (diff) | |
download | freebsd-ports-gnome-a4cacfbfd96402f08da40a0c5160f11474ee5c55.tar.gz freebsd-ports-gnome-a4cacfbfd96402f08da40a0c5160f11474ee5c55.tar.zst freebsd-ports-gnome-a4cacfbfd96402f08da40a0c5160f11474ee5c55.zip |
Add grafx2, a bitmap paint program that supports more than 60 video
resolutions.
Additional patches from: dinoex
Diffstat (limited to 'graphics')
-rw-r--r-- | graphics/Makefile | 1 | ||||
-rw-r--r-- | graphics/grafx2/Makefile | 31 | ||||
-rw-r--r-- | graphics/grafx2/distinfo | 3 | ||||
-rw-r--r-- | graphics/grafx2/files/patch-Makefile | 14 | ||||
-rw-r--r-- | graphics/grafx2/files/patch-files.c | 15 | ||||
-rw-r--r-- | graphics/grafx2/files/patch-main.c | 12 | ||||
-rw-r--r-- | graphics/grafx2/pkg-descr | 5 | ||||
-rw-r--r-- | graphics/grafx2/pkg-plist | 11 |
8 files changed, 92 insertions, 0 deletions
diff --git a/graphics/Makefile b/graphics/Makefile index aa599993f662..e1d894d4702a 100644 --- a/graphics/Makefile +++ b/graphics/Makefile @@ -267,6 +267,7 @@ SUBDIR += gqview-devel SUBDIR += gracula SUBDIR += grads + SUBDIR += grafx2 SUBDIR += graphopt SUBDIR += graphviz SUBDIR += gridpix 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%% |