aboutsummaryrefslogtreecommitdiffstats
path: root/x11-toolkits
diff options
context:
space:
mode:
authoramdmi3 <amdmi3@FreeBSD.org>2016-01-17 01:48:12 +0800
committeramdmi3 <amdmi3@FreeBSD.org>2016-01-17 01:48:12 +0800
commite383b44e350d5c564f3f49929209c6e5ad8289f7 (patch)
tree82b076300076db8ac99abe932bdde3c03ab73049 /x11-toolkits
parent67b8828b403774e2e94f04b9a2a48194bee4b50a (diff)
downloadfreebsd-ports-gnome-e383b44e350d5c564f3f49929209c6e5ad8289f7.tar.gz
freebsd-ports-gnome-e383b44e350d5c564f3f49929209c6e5ad8289f7.tar.zst
freebsd-ports-gnome-e383b44e350d5c564f3f49929209c6e5ad8289f7.zip
Split render engine modules into separate ports to allow multiple
render modules installed at the same time without introducing unneeded dependencies. PR: 205726
Diffstat (limited to 'x11-toolkits')
-rw-r--r--x11-toolkits/Makefile3
-rw-r--r--x11-toolkits/mygui-dummy/Makefile14
-rw-r--r--x11-toolkits/mygui-dummy/pkg-plist5
-rw-r--r--x11-toolkits/mygui-ogre/Makefile16
-rw-r--r--x11-toolkits/mygui-ogre/pkg-plist10
-rw-r--r--x11-toolkits/mygui-opengl/Makefile16
-rw-r--r--x11-toolkits/mygui-opengl/pkg-plist8
-rw-r--r--x11-toolkits/mygui/Makefile28
-rw-r--r--x11-toolkits/mygui/pkg-plist5
9 files changed, 94 insertions, 11 deletions
diff --git a/x11-toolkits/Makefile b/x11-toolkits/Makefile
index e0cefba552e6..bd7d12e92650 100644
--- a/x11-toolkits/Makefile
+++ b/x11-toolkits/Makefile
@@ -117,6 +117,9 @@
SUBDIR += movingmotif
SUBDIR += mowitz
SUBDIR += mygui
+ SUBDIR += mygui-dummy
+ SUBDIR += mygui-ogre
+ SUBDIR += mygui-opengl
SUBDIR += neXtaw
SUBDIR += nucleo
SUBDIR += ocaml-lablgtk2
diff --git a/x11-toolkits/mygui-dummy/Makefile b/x11-toolkits/mygui-dummy/Makefile
new file mode 100644
index 000000000000..0d31c37ca505
--- /dev/null
+++ b/x11-toolkits/mygui-dummy/Makefile
@@ -0,0 +1,14 @@
+# Created by: Dmitry Marakasov <amdmi3@FreeBSD.org>
+# $FreeBSD$
+
+PORTREVISION= 0
+PKGNAMESUFFIX= -dummy
+
+COMMENT= Dummy renderer for MyGUI
+
+MASTERDIR= ${.CURDIR}/../mygui
+
+MYGUI_RENDERSYSTEM= 1
+MYGUI_SUBDIR= Platforms/Dummy/DummyPlatform
+
+.include "${MASTERDIR}/Makefile"
diff --git a/x11-toolkits/mygui-dummy/pkg-plist b/x11-toolkits/mygui-dummy/pkg-plist
new file mode 100644
index 000000000000..6b94e0867adf
--- /dev/null
+++ b/x11-toolkits/mygui-dummy/pkg-plist
@@ -0,0 +1,5 @@
+include/MYGUI/MyGUI_DummyDataManager.h
+include/MYGUI/MyGUI_DummyDiagnostic.h
+include/MYGUI/MyGUI_DummyPlatform.h
+include/MYGUI/MyGUI_DummyRenderManager.h
+lib/libMyGUI.DummyPlatform.a
diff --git a/x11-toolkits/mygui-ogre/Makefile b/x11-toolkits/mygui-ogre/Makefile
new file mode 100644
index 000000000000..e55d2ccff6df
--- /dev/null
+++ b/x11-toolkits/mygui-ogre/Makefile
@@ -0,0 +1,16 @@
+# Created by: Dmitry Marakasov <amdmi3@FreeBSD.org>
+# $FreeBSD$
+
+PORTREVISION= 0
+PKGNAMESUFFIX= -ogre
+
+COMMENT= Ogre3d renderer for MyGUI
+
+MASTERDIR= ${.CURDIR}/../mygui
+
+LIB_DEPENDS= libOgreMain.so:graphics/ogre3d
+
+MYGUI_RENDERSYSTEM= 3
+MYGUI_SUBDIR= Platforms/Ogre/OgrePlatform
+
+.include "${MASTERDIR}/Makefile"
diff --git a/x11-toolkits/mygui-ogre/pkg-plist b/x11-toolkits/mygui-ogre/pkg-plist
new file mode 100644
index 000000000000..c8e2b420e1eb
--- /dev/null
+++ b/x11-toolkits/mygui-ogre/pkg-plist
@@ -0,0 +1,10 @@
+include/MYGUI/MyGUI_LastHeader.h
+include/MYGUI/MyGUI_OgreDataManager.h
+include/MYGUI/MyGUI_OgreDataStream.h
+include/MYGUI/MyGUI_OgreDiagnostic.h
+include/MYGUI/MyGUI_OgrePlatform.h
+include/MYGUI/MyGUI_OgreRTTexture.h
+include/MYGUI/MyGUI_OgreRenderManager.h
+include/MYGUI/MyGUI_OgreTexture.h
+include/MYGUI/MyGUI_OgreVertexBuffer.h
+lib/libMyGUI.OgrePlatform.a
diff --git a/x11-toolkits/mygui-opengl/Makefile b/x11-toolkits/mygui-opengl/Makefile
new file mode 100644
index 000000000000..6a086a6a9a36
--- /dev/null
+++ b/x11-toolkits/mygui-opengl/Makefile
@@ -0,0 +1,16 @@
+# Created by: Dmitry Marakasov <amdmi3@FreeBSD.org>
+# $FreeBSD$
+
+PORTREVISION= 0
+PKGNAMESUFFIX= -opengl
+
+COMMENT= OpenGL renderer for MyGUI
+
+MASTERDIR= ${.CURDIR}/../mygui
+
+MYGUI_RENDERSYSTEM= 4
+MYGUI_SUBDIR= Platforms/OpenGL/OpenGLPlatform
+
+USE_GL= glu
+
+.include "${MASTERDIR}/Makefile"
diff --git a/x11-toolkits/mygui-opengl/pkg-plist b/x11-toolkits/mygui-opengl/pkg-plist
new file mode 100644
index 000000000000..cb2567b088cb
--- /dev/null
+++ b/x11-toolkits/mygui-opengl/pkg-plist
@@ -0,0 +1,8 @@
+include/MYGUI/MyGUI_OpenGLDataManager.h
+include/MYGUI/MyGUI_OpenGLDiagnostic.h
+include/MYGUI/MyGUI_OpenGLPlatform.h
+include/MYGUI/MyGUI_OpenGLRTTexture.h
+include/MYGUI/MyGUI_OpenGLRenderManager.h
+include/MYGUI/MyGUI_OpenGLTexture.h
+include/MYGUI/MyGUI_OpenGLVertexBuffer.h
+lib/libMyGUI.OpenGLPlatform.a
diff --git a/x11-toolkits/mygui/Makefile b/x11-toolkits/mygui/Makefile
index f701f015d8d7..42c3e8ceb76f 100644
--- a/x11-toolkits/mygui/Makefile
+++ b/x11-toolkits/mygui/Makefile
@@ -4,32 +4,48 @@
PORTNAME= mygui
PORTVERSION= 3.2.2
DISTVERSIONPREFIX= MyGUI
+PORTREVISION?= 1
CATEGORIES= x11-toolkits graphics devel
MAINTAINER= amdmi3@FreeBSD.org
-COMMENT= Fast, simple and flexible GUI system for games and 3D applications
+COMMENT?= Fast, simple and flexible GUI system for games and 3D applications
LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/COPYING.MIT
-LIB_DEPENDS= libfreetype.so:${PORTSDIR}/print/freetype2 \
- libOIS.so:${PORTSDIR}/devel/ois
+.if !defined(MASTERDIR)
+LIB_DEPENDS= libfreetype.so:print/freetype2 \
+ libOIS.so:devel/ois
+.else
+LIB_DEPENDS+= libMyGUIEngine.so:x11-toolkits/mygui
+
+BUILD_WRKSRC= ${WRKSRC}/${MYGUI_SUBDIR}
+INSTALL_WRKSRC= ${WRKSRC}/${MYGUI_SUBDIR}
+.endif
USE_GITHUB= yes
GH_ACCOUNT= MyGUI
-USES= cmake:outsource compiler:c++11-lib ninja pkgconfig
-CMAKE_ARGS+= -DMYGUI_BUILD_DEMOS=FALSE \
+MYGUI_RENDERSYSTEM?= 0
+
+USES= cmake compiler:c++11-lib pkgconfig
+CMAKE_ARGS= -DMYGUI_BUILD_DEMOS=FALSE \
-DMYGUI_BUILD_TOOLS=FALSE \
-DMYGUI_BUILD_DOCS=FALSE \
- -DMYGUI_RENDERSYSTEM=1 # Dummy
+ -DMYGUI_RENDERSYSTEM=${MYGUI_RENDERSYSTEM}
USE_LDCONFIG= yes
USE_CXXSTD= c++11
CXXFLAGS+= -fPIC
+PLIST= ${.CURDIR}/pkg-plist
+
post-patch:
@${REINPLACE_CMD} -e '/install/ s|lib/pkgconfig|libdata/pkgconfig|' \
${WRKSRC}/CMake/ConfigureBuild.cmake
+.if defined(MASTERDIR)
+ @${REINPLACE_CMD} -e '/add_dependencies/d' ${BUILD_WRKSRC}/CMakeLists.txt
+ @${REINPLACE_CMD} -e '/target_link/d' ${BUILD_WRKSRC}/CMakeLists.txt
+.endif
.include <bsd.port.mk>
diff --git a/x11-toolkits/mygui/pkg-plist b/x11-toolkits/mygui/pkg-plist
index 4a00f71dc88a..a584c56ccb72 100644
--- a/x11-toolkits/mygui/pkg-plist
+++ b/x11-toolkits/mygui/pkg-plist
@@ -36,10 +36,6 @@ include/MYGUI/MyGUI_DelegateImplement.h
include/MYGUI/MyGUI_DeprecatedTypes.h
include/MYGUI/MyGUI_DeprecatedWidgets.h
include/MYGUI/MyGUI_Diagnostic.h
-include/MYGUI/MyGUI_DummyDataManager.h
-include/MYGUI/MyGUI_DummyDiagnostic.h
-include/MYGUI/MyGUI_DummyPlatform.h
-include/MYGUI/MyGUI_DummyRenderManager.h
include/MYGUI/MyGUI_DynLib.h
include/MYGUI/MyGUI_DynLibManager.h
include/MYGUI/MyGUI_EditBox.h
@@ -178,7 +174,6 @@ include/MYGUI/MyGUI_XmlDocument.h
include/MYGUI/Plugin.h
include/MYGUI/StrangeButton.h
lib/Plugin_StrangeButton.so
-lib/libMyGUI.DummyPlatform.a
lib/libMyGUIEngine.so
lib/libMyGUIEngine.so.3
lib/libMyGUIEngine.so.3.2.2