From nobody@FreeBSD.org  Fri Jun  3 10:20:09 2011
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id 0A0D81065670
	for <freebsd-gnats-submit@FreeBSD.org>; Fri,  3 Jun 2011 10:20:09 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from red.freebsd.org (red.freebsd.org [IPv6:2001:4f8:fff6::22])
	by mx1.freebsd.org (Postfix) with ESMTP id E67678FC13
	for <freebsd-gnats-submit@FreeBSD.org>; Fri,  3 Jun 2011 10:20:08 +0000 (UTC)
Received: from red.freebsd.org (localhost [127.0.0.1])
	by red.freebsd.org (8.14.4/8.14.4) with ESMTP id p53AK8gP041967
	for <freebsd-gnats-submit@FreeBSD.org>; Fri, 3 Jun 2011 10:20:08 GMT
	(envelope-from nobody@red.freebsd.org)
Received: (from nobody@localhost)
	by red.freebsd.org (8.14.4/8.14.4/Submit) id p53AK8h2041966;
	Fri, 3 Jun 2011 10:20:08 GMT
	(envelope-from nobody)
Message-Id: <201106031020.p53AK8h2041966@red.freebsd.org>
Date: Fri, 3 Jun 2011 10:20:08 GMT
From: Vitaly Magerya <vmagerya@gmail.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: New port graphics/grafx2: a pixelart-oriented painting program 
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         157556
>Category:       ports
>Synopsis:       New port graphics/grafx2: a pixelart-oriented painting program
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Fri Jun 03 10:30:11 UTC 2011
>Closed-Date:    Sun Jun 05 05:28:19 UTC 2011
>Last-Modified:  Sun Jun 05 05:28:19 UTC 2011
>Originator:     Vitaly Magerya
>Release:        FreeBSD 8.2-RELEASE i386
>Organization:
>Environment:
>Description:
GrafX2 is a comprehensive bitmap editor specialized in 256-color drawing,
particularly suitable for creating pixel art.

WWW: http://code.google.com/p/grafx2/

Note that portlint will suggest using DATADIR in the pkg-plist, but since
most paths are hardcoded into source files, this should not be done.

The port was tested on i386. It will probably work on other platforms,
but i386 is the only place I have X installed, so I can only test there.
>How-To-Repeat:

>Fix:


Patch attached with submission follows:

# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	grafx2
#	grafx2/files
#	grafx2/files/patch-src-mountlist.c
#	grafx2/distinfo
#	grafx2/Makefile
#	grafx2/pkg-descr
#	grafx2/pkg-plist
#
echo c - grafx2
mkdir -p grafx2 > /dev/null 2>&1
echo c - grafx2/files
mkdir -p grafx2/files > /dev/null 2>&1
echo x - grafx2/files/patch-src-mountlist.c
sed 's/^X//' >grafx2/files/patch-src-mountlist.c << 'de12dbb3ff229a2dc15e7be021f1d928'
X--- mountlist.c.orig	2011-05-26 20:46:07.000000000 +0300
X+++ mountlist.c	2011-05-26 20:47:02.000000000 +0300
X@@ -1,3 +1,4 @@
X+#include <sys/param.h>
X /* vim:expandtab:ts=2 sw=2:
X */
X /* mountlist.c -- return a list of mounted file systems
X@@ -463,7 +464,7 @@
X         me = malloc (sizeof *me);
X         me->me_devname = strdup (fsp->f_mntfromname);
X         me->me_mountdir = strdup (fsp->f_mntonname);
X-#if defined(__macosx__)
X+#if defined(__macosx__) || defined(__FreeBSD__)
X         me->me_type = fsp->f_fstypename;
X #else
X         me->me_type = fsp->fs_typename;
de12dbb3ff229a2dc15e7be021f1d928
echo x - grafx2/distinfo
sed 's/^X//' >grafx2/distinfo << '4e088c0933613ece337a07c9d8059135'
XSHA256 (grafx2-2.3.1781-src.tgz) = b43fa837e30abfb0830f9a1b793a78ed690fbafdcd378e51197f01998bbf392e
XSIZE (grafx2-2.3.1781-src.tgz) = 683951
4e088c0933613ece337a07c9d8059135
echo x - grafx2/Makefile
sed 's/^X//' >grafx2/Makefile << '91be801718fadad101ce6acc19d0022e'
X# New ports collection makefile for:	grafx2
X# Date created:				03 June 2012
X# Whom:					Vitaly Magerya <vmagerya@gmail.com>
X#
X# $FreeBSD$
X#
X
XPORTNAME=	grafx2
XPORTVERSION=	2.3.1781
XCATEGORIES=	graphics
XMASTER_SITES=	${MASTER_SITE_GOOGLE_CODE}
XDISTNAME=	${PORTNAME}-${PORTVERSION}-src
XEXTRACT_SUFX=	.tgz
X
XMAINTAINER=	vmagerya@gmail.com
XCOMMENT=	A pixelart-oriented painting program
X
XOPTIONS=	TTF "Enable True Type font support" off \
X		LUA "Enable Lua scripting support" off
X
XBUILD_DEPENDS=	pkg-config:${PORTSDIR}/devel/pkg-config
XLIB_DEPENDS=	SDL:${PORTSDIR}/devel/sdl12 \
X		SDL_image:${PORTSDIR}/graphics/sdl_image \
X		X11:${PORTSDIR}/x11/libX11 \
X		png:${PORTSDIR}/graphics/png
X
XUSE_GMAKE=	yes
XWRKSRC=		${WRKDIR}/${PORTNAME}/src
X
X.include <bsd.port.pre.mk>
X
X.if defined(WITH_LUA)
XUSE_LUA=	5.1
X.else
XMAKE_ARGS+=	NOLUA=1
X.endif
X
X.if defined(WITH_TTF)
XLIB_DEPENDS+=	SDL_ttf:${PORTSDIR}/graphics/sdl_ttf
X.else
XMAKE_ARGS+=	NOTTF=1
X.endif
X
Xpost-extract:
X	${REINPLACE_CMD} \
X		-e 's|^  prefix = .*$$|  prefix = ${PREFIX}|' \
X		-e '/scripts\/libs/d' \
X		${WRKSRC}/Makefile
X	${REINPLACE_CMD} \
X		's|Extract_path(program_dir, argv0);|strcpy(program_dir,"${PREFIX}/bin/");|' \
X		${WRKSRC}/setup.c
X
X.include <bsd.port.post.mk>
91be801718fadad101ce6acc19d0022e
echo x - grafx2/pkg-descr
sed 's/^X//' >grafx2/pkg-descr << '6f4d67a1d8f759623be83708348f5ed4'
XGrafX2 is a bitmap paint program inspired by the Amiga programs
XDeluxe Paint and Brilliance. Specialized in 256-color drawing, it
Xincludes a very large number of tools and effects that make it
Xparticularly suitable for pixel art, game graphics, and generally
Xany detailed graphics painted with a mouse.
X
XWWW: http://code.google.com/p/grafx2/
6f4d67a1d8f759623be83708348f5ed4
echo x - grafx2/pkg-plist
sed 's/^X//' >grafx2/pkg-plist << '1db9bae3f3137db23136698f74846075'
Xbin/grafx2
Xshare/applications/grafx2.desktop
Xshare/grafx2/fonts/8pxfont.png
Xshare/grafx2/fonts/PF_Arma_5__.png
Xshare/grafx2/fonts/PF_Easta_7_.png
Xshare/grafx2/fonts/PF_Easta_7__.png
Xshare/grafx2/fonts/PF_Ronda_7__.png
Xshare/grafx2/fonts/PF_Tempesta_5.png
Xshare/grafx2/fonts/PF_Tempesta_5_.png
Xshare/grafx2/fonts/PF_Tempesta_5__.png
Xshare/grafx2/fonts/PF_Tempesta_5___.png
Xshare/grafx2/fonts/PF_Tempesta_7.png
Xshare/grafx2/fonts/PF_Tempesta_7_.png
Xshare/grafx2/fonts/PF_Tempesta_7__.png
Xshare/grafx2/fonts/PF_Tempesta_7___.png
Xshare/grafx2/fonts/PF_Westa_7_.png
Xshare/grafx2/fonts/PF_Westa_7__.png
Xshare/grafx2/fonts/Tuffy.ttf
Xshare/grafx2/gfx2.gif
Xshare/grafx2/gfx2def.ini
Xshare/grafx2/scripts/samples_2.3/brush/ApplyColor.lua
Xshare/grafx2/scripts/samples_2.3/brush/Fisheye.lua
Xshare/grafx2/scripts/samples_2.3/brush/GrayscaleAvg.lua
Xshare/grafx2/scripts/samples_2.3/brush/GrayscaleDesat.lua
Xshare/grafx2/scripts/samples_2.3/brush/Halfsmooth.lua
Xshare/grafx2/scripts/samples_2.3/brush/Waves.lua
Xshare/grafx2/scripts/samples_2.3/demo/3DPalette.lua
Xshare/grafx2/scripts/samples_2.3/demo/Ellipse.lua
Xshare/grafx2/scripts/samples_2.3/demo/FlipPicture.lua
Xshare/grafx2/scripts/samples_2.3/demo/SierpinskyCarpet.lua
Xshare/grafx2/scripts/samples_2.3/demo/SierpinskyTriangle.lua
Xshare/grafx2/scripts/samples_2.3/demo/Spritesheet.lua
Xshare/grafx2/scripts/samples_2.3/demo/brush/Amigaball.lua
Xshare/grafx2/scripts/samples_2.3/demo/brush/ColorSphere.lua
Xshare/grafx2/scripts/samples_2.3/demo/brush/FindAA.lua
Xshare/grafx2/scripts/samples_2.3/demo/brush/Mandelbrot.lua
Xshare/grafx2/scripts/samples_2.3/libs/dawnbringer_lib.lua
Xshare/grafx2/scripts/samples_2.3/libs/memory.lua
Xshare/grafx2/scripts/samples_2.3/palette/Desaturate.lua
Xshare/grafx2/scripts/samples_2.3/palette/ExpandColors.lua
Xshare/grafx2/scripts/samples_2.3/palette/FillColorCube.lua
Xshare/grafx2/scripts/samples_2.3/palette/InvertedRGB.lua
Xshare/grafx2/scripts/samples_2.3/palette/Set3bit.lua
Xshare/grafx2/scripts/samples_2.3/palette/Set6bit.lua
Xshare/grafx2/scripts/samples_2.3/palette/SetC64Palette.lua
Xshare/grafx2/scripts/samples_2.3/palette/ShiftHue.lua
Xshare/grafx2/scripts/samples_2.3/picture/CellColourReducer.lua
Xshare/grafx2/scripts/samples_2.3/picture/DrawGridIsometric.lua
Xshare/grafx2/scripts/samples_2.3/picture/DrawGridOrthogonal_RGB.lua
Xshare/grafx2/scripts/samples_2.3/picture/DrawgridOrthogonal_Index.lua
Xshare/grafx2/scripts/samples_2.3/picture/GlassGridFilter.lua
Xshare/grafx2/scripts/samples_2.3/picture/PaletteToPicture.lua
Xshare/grafx2/scripts/samples_2.3/picture/Pic2isometric.lua
Xshare/grafx2/scripts/samples_2.3/picture/Rainbow-Dark2Bright.lua
Xshare/grafx2/scripts/samples_2.3/picture/RemapImage2RGB.lua
Xshare/grafx2/scripts/samples_2.3/picture/RemapImage2RGB_ed.lua
Xshare/grafx2/scripts/samples_2.3/picture/RemapImageTo3bitPal.lua
Xshare/grafx2/scripts/samples_2.3/picture/XBitColourXpaceFromPalette.lua
Xshare/grafx2/skins/font_Classic.png
Xshare/grafx2/skins/font_DPaint.png
Xshare/grafx2/skins/font_Fairlight.png
Xshare/grafx2/skins/font_Fun.png
Xshare/grafx2/skins/font_Melon.png
Xshare/grafx2/skins/font_Seen.png
Xshare/grafx2/skins/skin_Aurora.png
Xshare/grafx2/skins/skin_DPaint.png
Xshare/grafx2/skins/skin_classic.png
Xshare/grafx2/skins/skin_modern.png
Xshare/grafx2/skins/skin_scenish.png
Xshare/icons/grafx2.svg
Xshare/icons/grafx2.xpm
X@dirrm share/grafx2/skins
X@dirrm share/grafx2/scripts/samples_2.3/picture
X@dirrm share/grafx2/scripts/samples_2.3/palette
X@dirrm share/grafx2/scripts/samples_2.3/libs
X@dirrm share/grafx2/scripts/samples_2.3/demo/brush
X@dirrm share/grafx2/scripts/samples_2.3/demo
X@dirrm share/grafx2/scripts/samples_2.3/brush
X@dirrm share/grafx2/scripts/samples_2.3
X@dirrm share/grafx2/scripts
X@dirrm share/grafx2/fonts
X@dirrm share/grafx2
X@dirrmtry share/icons
X@dirrmtry share/applications
1db9bae3f3137db23136698f74846075
exit



>Release-Note:
>Audit-Trail:

From: Vitaly Magerya <vmagerya@gmail.com>
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: ports/157556: New port graphics/grafx2: a pixelart-oriented painting
 program
Date: Fri, 03 Jun 2011 14:28:08 +0300

 Since we already have graphics/grafx2 (which I missed), this PR can be
 closed; I'll submit an update to the existing port instead.
 
 Sorry for the noise.
State-Changed-From-To: open->closed 
State-Changed-By: linimon 
State-Changed-When: Sun Jun 5 05:27:45 UTC 2011 
State-Changed-Why:  
This port already exists in the Ports Collection, but thanks for the 
submission anyway. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=157556 
>Unformatted:
