From 2258f2865647a5052d51fefb00dcc88958e77dd0 Mon Sep 17 00:00:00 2001 From: Emanuel Haupt Date: Wed, 4 Mar 2009 17:53:46 +0000 Subject: [PATCH] Add grafx2, a bitmap paint program that supports more than 60 video resolutions. Additional patches from: dinoex --- graphics/Makefile | 1 + graphics/grafx2/Makefile | 31 ++++++++++++++++++++++++++++ graphics/grafx2/distinfo | 3 +++ graphics/grafx2/files/patch-Makefile | 14 +++++++++++++ graphics/grafx2/files/patch-files.c | 15 ++++++++++++++ graphics/grafx2/files/patch-main.c | 12 +++++++++++ graphics/grafx2/pkg-descr | 5 +++++ graphics/grafx2/pkg-plist | 11 ++++++++++ 8 files changed, 92 insertions(+) create mode 100644 graphics/grafx2/Makefile create mode 100644 graphics/grafx2/distinfo create mode 100644 graphics/grafx2/files/patch-Makefile create mode 100644 graphics/grafx2/files/patch-files.c create mode 100644 graphics/grafx2/files/patch-main.c create mode 100644 graphics/grafx2/pkg-descr create mode 100644 graphics/grafx2/pkg-plist 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 +# +# $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 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