From 922be491a2ede1dbe75065b2d538b4673f9d87aa Mon Sep 17 00:00:00 2001 From: Marcus von Appen Date: Wed, 13 Nov 2013 18:15:08 +0000 Subject: [PATCH] Version two of the SDL2_gfx library, compatible with SDL2.0. This also adds a new USE_SDL=gfx2 variable to add SDL2_gfx as LIB_DEPENDS other ports. The SDL_gfx library evolved out of the SDL_gfxPrimitives code which provided basic drawing routines such as lines, circles or polygons and SDL_rotozoom which implemented a interpolating rotozoomer for SDL surfaces. The current components of the SDL_gfx library are: - Graphic Primitives (SDL_gfxPrimitves.h) - Rotozoomer (SDL_rotozoom.h) - Framerate control (SDL_framerate.h) - MMX image filters (SDL_imageFilter.h) WWW: http://www.ferzkopp.net/Software/SDL_gfx-2.0/ --- Mk/bsd.sdl.mk | 7 ++++++- graphics/Makefile | 1 + graphics/sdl2_gfx/Makefile | 33 +++++++++++++++++++++++++++++++++ graphics/sdl2_gfx/distinfo | 2 ++ graphics/sdl2_gfx/pkg-descr | 12 ++++++++++++ graphics/sdl2_gfx/pkg-plist | 9 +++++++++ 6 files changed, 63 insertions(+), 1 deletion(-) create mode 100644 graphics/sdl2_gfx/Makefile create mode 100644 graphics/sdl2_gfx/distinfo create mode 100644 graphics/sdl2_gfx/pkg-descr create mode 100644 graphics/sdl2_gfx/pkg-plist diff --git a/Mk/bsd.sdl.mk b/Mk/bsd.sdl.mk index 7a714f63914b..4b64fa9bf841 100644 --- a/Mk/bsd.sdl.mk +++ b/Mk/bsd.sdl.mk @@ -41,7 +41,7 @@ _USE_SDL_ALL= console gfx image mixer mm net pango sdl sound ttf # # These are the current supported SDL2 modules # -_USE_SDL_ALL+= image2 mixer2 net2 sdl2 ttf2 +_USE_SDL_ALL+= gfx2 image2 mixer2 net2 sdl2 ttf2 # # Variables used to determine what is needed: @@ -101,6 +101,11 @@ _PORTDIR_ttf= sdl_ttf _LIB_ttf= SDL_ttf-2.0 _REQUIRES_ttf= sdl +_SUBDIR_gfx2= graphics +_PORTDIR_gfx2= sdl2_gfx +_LIB_gfx2= SDL2_gfx +_REQUIRES_gfx2= sdl2 + _SUBDIR_image2= graphics _PORTDIR_image2= sdl2_image _LIB_image2= SDL2_image diff --git a/graphics/Makefile b/graphics/Makefile index 4463ad206b2a..24a6f92a3932 100644 --- a/graphics/Makefile +++ b/graphics/Makefile @@ -948,6 +948,7 @@ SUBDIR += scr2png SUBDIR += scrot SUBDIR += scwm-icons + SUBDIR += sdl2_gfx SUBDIR += sdl2_image SUBDIR += sdl2_ttf SUBDIR += sdl_gfx diff --git a/graphics/sdl2_gfx/Makefile b/graphics/sdl2_gfx/Makefile new file mode 100644 index 000000000000..0001a950662a --- /dev/null +++ b/graphics/sdl2_gfx/Makefile @@ -0,0 +1,33 @@ +# Created by: ijliao +# $FreeBSD$ + +PORTNAME= sdl2_gfx +PORTVERSION= 1.0.0 +CATEGORIES= graphics +MASTER_SITES= http://www.ferzkopp.net/Software/%SUBDIR%/ +MASTER_SITE_SUBDIR= SDL2_gfx +DISTNAME= SDL2_gfx-${PORTVERSION} + +MAINTAINER= mva@FreeBSD.org +COMMENT= SDL graphics drawing primitives and other support functions + +LICENSE= ZLIB + +USES= pathfix gmake +USE_AUTOTOOLS= libtool +USE_SDL= sdl2 +GNU_CONFIGURE= yes +USE_LDCONFIG= yes + +OPTIONS_DEFINE= MMX + +.include + +.if ${PORT_OPTIONS:MMMX} +CONFIGURE_ARGS+=--enable-mmx +CFLAGS+= -DUSE_MMX +.else +CONFIGURE_ARGS=--disable-mmx +.endif + +.include diff --git a/graphics/sdl2_gfx/distinfo b/graphics/sdl2_gfx/distinfo new file mode 100644 index 000000000000..cecd1d7104c9 --- /dev/null +++ b/graphics/sdl2_gfx/distinfo @@ -0,0 +1,2 @@ +SHA256 (SDL2_gfx-1.0.0.tar.gz) = 9843924d46eacbabba685a239cf2284b948766a20ef2caa48cb18462a3295caf +SIZE (SDL2_gfx-1.0.0.tar.gz) = 1081660 diff --git a/graphics/sdl2_gfx/pkg-descr b/graphics/sdl2_gfx/pkg-descr new file mode 100644 index 000000000000..ac0a82fd1611 --- /dev/null +++ b/graphics/sdl2_gfx/pkg-descr @@ -0,0 +1,12 @@ +The SDL_gfx library evolved out of the SDL_gfxPrimitives code which provided +basic drawing routines such as lines, circles or polygons and SDL_rotozoom +which implemented a interpolating rotozoomer for SDL surfaces. + +The current components of the SDL_gfx library are: + + - Graphic Primitives (SDL_gfxPrimitves.h) + - Rotozoomer (SDL_rotozoom.h) + - Framerate control (SDL_framerate.h) + - MMX image filters (SDL_imageFilter.h) + +WWW: http://www.ferzkopp.net/Software/SDL_gfx-2.0/ diff --git a/graphics/sdl2_gfx/pkg-plist b/graphics/sdl2_gfx/pkg-plist new file mode 100644 index 000000000000..38ad698f0fd5 --- /dev/null +++ b/graphics/sdl2_gfx/pkg-plist @@ -0,0 +1,9 @@ +include/SDL2/SDL2_framerate.h +include/SDL2/SDL2_gfxPrimitives.h +include/SDL2/SDL2_imageFilter.h +include/SDL2/SDL2_rotozoom.h +lib/libSDL2_gfx-1.0.so +lib/libSDL2_gfx-1.0.so.0 +lib/libSDL2_gfx.a +lib/libSDL2_gfx.la +lib/libSDL2_gfx.so