diff options
author | acm <acm@FreeBSD.org> | 2017-07-23 10:47:41 +0800 |
---|---|---|
committer | acm <acm@FreeBSD.org> | 2017-07-23 10:47:41 +0800 |
commit | d25384d7a98ef72ad7d7754b6f11c77ce97aa1a2 (patch) | |
tree | 25b4e2008c7834d47d82ab7638a2a2c92c5e3c01 /devel | |
parent | 72aa6a33c721a95641331beb9568e6b183a7199f (diff) | |
download | freebsd-ports-gnome-d25384d7a98ef72ad7d7754b6f11c77ce97aa1a2.tar.gz freebsd-ports-gnome-d25384d7a98ef72ad7d7754b6f11c77ce97aa1a2.tar.zst freebsd-ports-gnome-d25384d7a98ef72ad7d7754b6f11c77ce97aa1a2.zip |
- New port: devel/dlangui
Cross platform GUI for D. Widgets, layouts, styles, themes, unicode, i18n,
OpenGL based acceleration
- Crossplatform (Win32, OSX, Linux, FreeBSD and Android are supported in
current version)
- Mostly inspired by Android UI API (layouts, styles, two phase layout, ...)
- Supports highly customizable UI themes and styles
- Supports internationalization
- Hardware acceleration using OpenGL (when built with version USE_OPENGL)
- Fallback to pure Win32 API / SDL / X11 when OpenGL is not available (e.g.
opengl dynamic library cannot be loaded)
- Actually it's a port (with major refactoring) of GUI library for cross
platform OpenGL based implementation of Cool Reader app project from C++.
- Non thread safe - all UI operations should be preformed in single thread
- Simple 3d engine - allows to embed 3D scenes within GUI
WWW: https://github.com/buggins/dlangui
Diffstat (limited to 'devel')
-rw-r--r-- | devel/Makefile | 1 | ||||
-rw-r--r-- | devel/dlangui/Makefile | 41 | ||||
-rw-r--r-- | devel/dlangui/distinfo | 3 | ||||
-rw-r--r-- | devel/dlangui/files/patch-dub.json | 60 | ||||
-rw-r--r-- | devel/dlangui/pkg-descr | 17 | ||||
-rw-r--r-- | devel/dlangui/pkg-plist | 97 |
6 files changed, 219 insertions, 0 deletions
diff --git a/devel/Makefile b/devel/Makefile index 9f9b09eee3ce..b0af7f75c874 100644 --- a/devel/Makefile +++ b/devel/Makefile @@ -439,6 +439,7 @@ SUBDIR += ditrack SUBDIR += djgpp-binutils SUBDIR += djgpp-crx + SUBDIR += dlangui SUBDIR += dlib SUBDIR += dmake SUBDIR += dmalloc diff --git a/devel/dlangui/Makefile b/devel/dlangui/Makefile new file mode 100644 index 000000000000..4466b02dfc9a --- /dev/null +++ b/devel/dlangui/Makefile @@ -0,0 +1,41 @@ +# Created by: Alonso Cardenas Marquez <acm@FreeBSD.org> +# $FreeBSD$ + +PORTNAME= dlangui +PORTVERSION= 0.9.82 +CATEGORIES= devel +MASTER_SITES= https://github.com/buggins/dlangui/archive/ +DISTNAME= ${PORTVERSION:S/^/v/} +DIST_SUBDIR= ${PORTNAME} + +MAINTAINER= acm@FreeBSD.org +COMMENT= Cross Platform GUI for D programming language + +LICENSE= BSL + +BUILD_DEPENDS= ldmd2:lang/ldc \ + dub:devel/dub \ + ${LOCALBASE}/lib/d/libDerelictUtil.a:devel/derelict-util \ + ${LOCALBASE}/lib/d/libDerelictGL3.a:graphics/derelict-gl3 \ + ${LOCALBASE}/lib/d/libDerelictFT.a:print/derelict-ft \ + ${LOCALBASE}/lib/d/libDerelictSDL2.a:devel/derelict-sdl2 \ + ${LOCALBASE}/lib/d/libdlib.a:devel/dlib + +WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION} +DUB_CMD= ${LOCALBASE}/bin/dub build --build=release +D_INCLUDE_DIR= ${PREFIX}/include/d +D_LIB_DIR= ${PREFIX}/lib/d + +post-patch: + ${REINPLACE_CMD} -e 's|DIMAGE;|DLIBIMAGE;|g' ${WRKSRC}/src/dlangui/graphics/images.d + +do-build: + @cd ${WRKSRC} && ${DUB_CMD} + +do-install: + @${MKDIR} ${STAGEDIR}${D_INCLUDE_DIR} + @${MKDIR} ${STAGEDIR}${D_LIB_DIR} + ${INSTALL_DATA} ${WRKSRC}/lib/lib${PORTNAME}.a ${STAGEDIR}${D_LIB_DIR} + cd ${WRKSRC}/src && ${COPYTREE_SHARE} . ${STAGEDIR}${D_INCLUDE_DIR} "-name *\.d" + +.include <bsd.port.mk> diff --git a/devel/dlangui/distinfo b/devel/dlangui/distinfo new file mode 100644 index 000000000000..41ed59351dde --- /dev/null +++ b/devel/dlangui/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1500702762 +SHA256 (dlangui/v0.9.82.tar.gz) = 61c2a95472c8ec17acf5465153f16972dde30f2033f6a5b751744a8e0edda698 +SIZE (dlangui/v0.9.82.tar.gz) = 8254924 diff --git a/devel/dlangui/files/patch-dub.json b/devel/dlangui/files/patch-dub.json new file mode 100644 index 000000000000..cdb3849054d6 --- /dev/null +++ b/devel/dlangui/files/patch-dub.json @@ -0,0 +1,60 @@ +--- dub.json.orig 2017-07-19 07:42:26 UTC ++++ dub.json +@@ -50,13 +50,6 @@ + "versions": ["USE_OPENGL", "EmbedStandardResources"], + "versions-posix": ["USE_SDL", "USE_FREETYPE"], + "versions-windows": ["Unicode"], +- "dependencies": { +- "derelict-gl3": "~>1.0.18", +- "derelict-ft": "~>1.1.2" +- }, +- "dependencies-posix": { +- "derelict-sdl2": "~>2.0.0" +- }, + "copyFiles-windows-x86_64": [ + "libs/windows/x86_64/libfreetype-6.dll" + ], +@@ -79,21 +72,11 @@ + "versions": ["EmbedStandardResources", "ForceLogs"], + "versions-posix": ["USE_SDL", "USE_FREETYPE", "NO_OPENGL"], + "versions-windows": ["Unicode" ,"NO_OPENGL"], +- "dependencies-posix": { +- "derelict-gl3": "~>1.0.18", +- "derelict-sdl2": "~>2.0.0", +- "derelict-ft": "~>1.1.2" +- } + }, + { + "name": "sdl", + "versions": ["USE_SDL", "USE_OPENGL", "USE_FREETYPE", "EmbedStandardResources"], + "versions-windows": ["Unicode"], +- "dependencies": { +- "derelict-gl3": "~>1.0.18", +- "derelict-ft": "~>1.1.2", +- "derelict-sdl2": "~>2.0.0" +- }, + "copyFiles-windows-x86_64": [ + "libs/windows/x86_64/libfreetype-6.dll", + "libs/windows/x86_64/SDL2.dll" +@@ -107,21 +90,11 @@ + "name": "x11", + "versions": ["USE_X11", "USE_FREETYPE", "EmbedStandardResources"], + "versions-windows": ["Unicode"], +- "dependencies": { +- "derelict-gl3": "~>1.0.18", +- "derelict-ft": "~>1.1.2", +- "x11": "~>1.0.13" +- } + }, + { + "name": "sfml", + "versions": ["USE_DSFML", "USE_OPENGL", "USE_FREETYPE", "EmbedStandardResources"], + "versions-windows": ["Unicode"], +- "dependencies": { +- "derelict-gl3": "~>1.0.18", +- "derelict-ft": "~>1.1.2", +- "dsfml": "~>2.1.0" +- }, + "copyFiles-windows-x86_64": [ + "libs/windows/x86_64/libfreetype-6.dll" + ], diff --git a/devel/dlangui/pkg-descr b/devel/dlangui/pkg-descr new file mode 100644 index 000000000000..3e1261f0581a --- /dev/null +++ b/devel/dlangui/pkg-descr @@ -0,0 +1,17 @@ +Cross platform GUI for D. Widgets, layouts, styles, themes, unicode, i18n, +OpenGL based acceleration + +- Crossplatform (Win32, OSX, Linux, FreeBSD and Android are supported in + current version) +- Mostly inspired by Android UI API (layouts, styles, two phase layout, ...) +- Supports highly customizable UI themes and styles +- Supports internationalization +- Hardware acceleration using OpenGL (when built with version USE_OPENGL) +- Fallback to pure Win32 API / SDL / X11 when OpenGL is not available (e.g. + opengl dynamic library cannot be loaded) +- Actually it's a port (with major refactoring) of GUI library for cross + platform OpenGL based implementation of Cool Reader app project from C++. +- Non thread safe - all UI operations should be preformed in single thread +- Simple 3d engine - allows to embed 3D scenes within GUI + +WWW: https://github.com/buggins/dlangui diff --git a/devel/dlangui/pkg-plist b/devel/dlangui/pkg-plist new file mode 100644 index 000000000000..9a22551376f2 --- /dev/null +++ b/devel/dlangui/pkg-plist @@ -0,0 +1,97 @@ +include/d/dlangui/core/asyncsocket.d +include/d/dlangui/core/collections.d +include/d/dlangui/core/config.d +include/d/dlangui/core/css.d +include/d/dlangui/core/cssparser.d +include/d/dlangui/core/dom.d +include/d/dlangui/core/editable.d +include/d/dlangui/core/events.d +include/d/dlangui/core/filemanager.d +include/d/dlangui/core/files.d +include/d/dlangui/core/i18n.d +include/d/dlangui/core/linestream.d +include/d/dlangui/core/logger.d +include/d/dlangui/core/math3d.d +include/d/dlangui/core/parseutils.d +include/d/dlangui/core/queue.d +include/d/dlangui/core/settings.d +include/d/dlangui/core/signals.d +include/d/dlangui/core/stdaction.d +include/d/dlangui/core/streams.d +include/d/dlangui/core/textsource.d +include/d/dlangui/core/types.d +include/d/dlangui/dialogs/dialog.d +include/d/dlangui/dialogs/filedlg.d +include/d/dlangui/dialogs/inputbox.d +include/d/dlangui/dialogs/msgbox.d +include/d/dlangui/dialogs/settingsdialog.d +include/d/dlangui/dml/annotations.d +include/d/dlangui/dml/dmlhighlight.d +include/d/dlangui/dml/parser.d +include/d/dlangui/dml/tokenizer.d +include/d/dlangui/dom/cssparser.d +include/d/dlangui/dom/encoding.d +include/d/dlangui/graphics/colors.d +include/d/dlangui/graphics/domrender/domrender.d +include/d/dlangui/graphics/domrender/renderblock.d +include/d/dlangui/graphics/drawbuf.d +include/d/dlangui/graphics/fonts.d +include/d/dlangui/graphics/ftfonts.d +include/d/dlangui/graphics/gldrawbuf.d +include/d/dlangui/graphics/glsupport.d +include/d/dlangui/graphics/images.d +include/d/dlangui/graphics/resources.d +include/d/dlangui/graphics/scene/camera.d +include/d/dlangui/graphics/scene/drawableobject.d +include/d/dlangui/graphics/scene/effect.d +include/d/dlangui/graphics/scene/fbximport.d +include/d/dlangui/graphics/scene/light.d +include/d/dlangui/graphics/scene/material.d +include/d/dlangui/graphics/scene/mesh.d +include/d/dlangui/graphics/scene/model.d +include/d/dlangui/graphics/scene/node.d +include/d/dlangui/graphics/scene/objimport.d +include/d/dlangui/graphics/scene/scene3d.d +include/d/dlangui/graphics/scene/skybox.d +include/d/dlangui/graphics/scene/transform.d +include/d/dlangui/graphics/xpm/reader.d +include/d/dlangui/graphics/xpm/xpmcolors.d +include/d/dlangui/package.d +include/d/dlangui/platforms/android/androidapp.d +include/d/dlangui/platforms/common/platform.d +include/d/dlangui/platforms/common/startup.d +include/d/dlangui/platforms/console/consoleapp.d +include/d/dlangui/platforms/console/consolefont.d +include/d/dlangui/platforms/console/dconsole.d +include/d/dlangui/platforms/dsfml/dsfmlapp.d +include/d/dlangui/platforms/external/externalapp.d +include/d/dlangui/platforms/sdl/sdlapp.d +include/d/dlangui/platforms/windows/win32drawbuf.d +include/d/dlangui/platforms/windows/win32fonts.d +include/d/dlangui/platforms/windows/winapp.d +include/d/dlangui/platforms/x11/x11app.d +include/d/dlangui/widgets/appframe.d +include/d/dlangui/widgets/charts.d +include/d/dlangui/widgets/combobox.d +include/d/dlangui/widgets/controls.d +include/d/dlangui/widgets/docks.d +include/d/dlangui/widgets/editors.d +include/d/dlangui/widgets/grid.d +include/d/dlangui/widgets/groupbox.d +include/d/dlangui/widgets/layouts.d +include/d/dlangui/widgets/lists.d +include/d/dlangui/widgets/menu.d +include/d/dlangui/widgets/metadata.d +include/d/dlangui/widgets/popup.d +include/d/dlangui/widgets/progressbar.d +include/d/dlangui/widgets/scroll.d +include/d/dlangui/widgets/scrollbar.d +include/d/dlangui/widgets/srcedit.d +include/d/dlangui/widgets/statusline.d +include/d/dlangui/widgets/styles.d +include/d/dlangui/widgets/tabs.d +include/d/dlangui/widgets/toolbars.d +include/d/dlangui/widgets/tree.d +include/d/dlangui/widgets/widget.d +include/d/dlangui/widgets/winframe.d +lib/d/libdlangui.a |