Enable Lua scripting support in grafx2. This allows using the brush

factory to generate or modify brushes using Lua scripts.
This commit is contained in:
fcambus 2018-10-16 19:11:01 +00:00
parent 2f595aa598
commit 6b930a1154
2 changed files with 79 additions and 7 deletions

View File

@ -1,4 +1,4 @@
# $OpenBSD: Makefile,v 1.5 2018/06/27 21:03:53 espie Exp $
# $OpenBSD: Makefile,v 1.6 2018/10/16 19:11:01 fcambus Exp $
COMMENT = bitmap paint program inspired by Deluxe Paint and Brilliance
@ -6,7 +6,7 @@ V = 2.5
DISTNAME = grafx2-${V}.1960-src
PKGNAME = grafx2-${V}
EXTRACT_SUFX = .tgz
REVISION = 0
REVISION = 1
CATEGORIES = graphics
@ -17,10 +17,13 @@ MAINTAINER = Frederic Cambus <fcambus@openbsd.org>
# GPLv2 only
PERMIT_PACKAGE_CDROM = Yes
WANTLIB += SDL SDL_image c iconv m png pthread z
WANTLIB += SDL SDL_image c iconv m png pthread z ${MODLUA_WANTLIB}
MASTER_SITES = https://pulkomandy.tk/projects/GrafX2/downloads/
MODULES = lang/lua
MODLUA_VERSION = 5.3
RUN_DEPENDS = devel/desktop-file-utils
LIB_DEPENDS = devel/sdl \
@ -30,8 +33,7 @@ WRKDIST = ${WRKDIR}/grafx2/src
USE_GMAKE = Yes
MAKE_FLAGS = CC="${CC}" CFLAGS="${CFLAGS} -D_BSD_SOURCE" \
NOLUA=1 NOTTF=1 NORECOIL=1
MAKE_FLAGS = CC="${CC}" CFLAGS="${CFLAGS} -D_BSD_SOURCE" NOTTF=1 NORECOIL=1
NO_TEST = Yes
@ -45,7 +47,6 @@ post-install:
${INSTALL_DATA_DIR} ${PREFIX}/share/grafx2/icons
mv ${PREFIX}/share/icons/grafx2.svg ${PREFIX}/share/grafx2/icons/
rmdir ${PREFIX}/share/icons
rm -rf ${PREFIX}/share/grafx2/scripts
rm ${PREFIX}/share/grafx2/fonts/Tuffy.ttf
.include <bsd.port.mk>

View File

@ -1,4 +1,4 @@
@comment $OpenBSD: PLIST,v 1.3 2018/06/27 21:03:54 espie Exp $
@comment $OpenBSD: PLIST,v 1.4 2018/10/16 19:11:01 fcambus Exp $
@bin bin/grafx2
share/applications/grafx2.desktop
share/grafx2/
@ -22,6 +22,77 @@ share/grafx2/gfx2.gif
share/grafx2/gfx2def.ini
share/grafx2/icons/
share/grafx2/icons/grafx2.svg
share/grafx2/scripts/
share/grafx2/scripts/libs/
share/grafx2/scripts/samples_2.4/
share/grafx2/scripts/samples_2.4/brush/
share/grafx2/scripts/samples_2.4/brush/ApplyColor.lua
share/grafx2/scripts/samples_2.4/brush/Fisheye.lua
share/grafx2/scripts/samples_2.4/brush/GrayscaleAvg.lua
share/grafx2/scripts/samples_2.4/brush/GrayscaleDesat.lua
share/grafx2/scripts/samples_2.4/brush/Halfsmooth.lua
share/grafx2/scripts/samples_2.4/brush/Waves.lua
share/grafx2/scripts/samples_2.4/demo/
share/grafx2/scripts/samples_2.4/demo/3DPalette.lua
share/grafx2/scripts/samples_2.4/demo/Ellipse.lua
share/grafx2/scripts/samples_2.4/demo/FlipPicture.lua
share/grafx2/scripts/samples_2.4/demo/SierpinskyCarpet.lua
share/grafx2/scripts/samples_2.4/demo/SierpinskyTriangle.lua
share/grafx2/scripts/samples_2.4/demo/Spritesheet.lua
share/grafx2/scripts/samples_2.4/demo/brush/
share/grafx2/scripts/samples_2.4/demo/brush/Amigaball.lua
share/grafx2/scripts/samples_2.4/demo/brush/ColorSphere.lua
share/grafx2/scripts/samples_2.4/demo/brush/FindAA.lua
share/grafx2/scripts/samples_2.4/demo/brush/Mandelbrot.lua
share/grafx2/scripts/samples_2.4/libs/
share/grafx2/scripts/samples_2.4/libs/dawnbringer_lib.lua
share/grafx2/scripts/samples_2.4/libs/memory.lua
share/grafx2/scripts/samples_2.4/palette/
share/grafx2/scripts/samples_2.4/palette/Desaturate.lua
share/grafx2/scripts/samples_2.4/palette/ExpandColors.lua
share/grafx2/scripts/samples_2.4/palette/FillColorCube.lua
share/grafx2/scripts/samples_2.4/palette/InvertedRGB.lua
share/grafx2/scripts/samples_2.4/palette/Set3bit.lua
share/grafx2/scripts/samples_2.4/palette/Set6bit.lua
share/grafx2/scripts/samples_2.4/palette/SetC64Palette.lua
share/grafx2/scripts/samples_2.4/palette/ShiftHue.lua
share/grafx2/scripts/samples_2.4/picture/
share/grafx2/scripts/samples_2.4/picture/CellColourReducer.lua
share/grafx2/scripts/samples_2.4/picture/DrawGridIsometric.lua
share/grafx2/scripts/samples_2.4/picture/DrawGridOrthogonal_RGB.lua
share/grafx2/scripts/samples_2.4/picture/DrawgridOrthogonal_Index.lua
share/grafx2/scripts/samples_2.4/picture/FontConvert.lua
share/grafx2/scripts/samples_2.4/picture/GlassGridFilter.lua
share/grafx2/scripts/samples_2.4/picture/PaletteToPicture.lua
share/grafx2/scripts/samples_2.4/picture/Pic2isometric.lua
share/grafx2/scripts/samples_2.4/picture/Rainbow-Dark2Bright.lua
share/grafx2/scripts/samples_2.4/picture/RemapImage2RGB.lua
share/grafx2/scripts/samples_2.4/picture/RemapImage2RGB_ed.lua
share/grafx2/scripts/samples_2.4/picture/RemapImageTo3bitPal.lua
share/grafx2/scripts/samples_2.4/picture/Tiler.lua
share/grafx2/scripts/samples_2.4/picture/XBitColourXpaceFromPalette.lua
share/grafx2/scripts/samples_2.4/picture/others-8bit/
share/grafx2/scripts/samples_2.4/picture/others-8bit/lib/
share/grafx2/scripts/samples_2.4/picture/others-8bit/lib/ostro_other.lua
share/grafx2/scripts/samples_2.4/picture/others-8bit/ostro_oric.lua
share/grafx2/scripts/samples_2.4/picture/others-8bit/ostro_zx.lua
share/grafx2/scripts/samples_2.4/picture/thomson/
share/grafx2/scripts/samples_2.4/picture/thomson/bayer4_mo5.lua
share/grafx2/scripts/samples_2.4/picture/thomson/bayer4_to8.lua
share/grafx2/scripts/samples_2.4/picture/thomson/lib/
share/grafx2/scripts/samples_2.4/picture/thomson/lib/bayer.lua
share/grafx2/scripts/samples_2.4/picture/thomson/lib/color.lua
share/grafx2/scripts/samples_2.4/picture/thomson/lib/color_reduction.lua
share/grafx2/scripts/samples_2.4/picture/thomson/lib/convex_hull.lua
share/grafx2/scripts/samples_2.4/picture/thomson/lib/ostromoukhov.lua
share/grafx2/scripts/samples_2.4/picture/thomson/lib/thomson.lua
share/grafx2/scripts/samples_2.4/picture/thomson/none_mo5.lua
share/grafx2/scripts/samples_2.4/picture/thomson/none_to8.lua
share/grafx2/scripts/samples_2.4/picture/thomson/none_to9.lua
share/grafx2/scripts/samples_2.4/picture/thomson/ostro_mo5.lua
share/grafx2/scripts/samples_2.4/picture/thomson/ostro_to7.lua
share/grafx2/scripts/samples_2.4/picture/thomson/ostro_to8.lua
share/grafx2/scripts/samples_2.4/picture/thomson/ostro_to9.lua
share/grafx2/skins/
share/grafx2/skins/font_Classic.png
share/grafx2/skins/font_DPaint.png