aboutsummaryrefslogtreecommitdiffstats
path: root/x11-toolkits/mygui
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/mygui
parent67b8828b403774e2e94f04b9a2a48194bee4b50a (diff)
downloadfreebsd-ports-graphics-e383b44e350d5c564f3f49929209c6e5ad8289f7.tar.gz
freebsd-ports-graphics-e383b44e350d5c564f3f49929209c6e5ad8289f7.tar.zst
freebsd-ports-graphics-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/mygui')
-rw-r--r--x11-toolkits/mygui/Makefile28
-rw-r--r--x11-toolkits/mygui/pkg-plist5
2 files changed, 22 insertions, 11 deletions
diff --git a/x11-toolkits/mygui/Makefile b/x11-toolkits/mygui/Makefile
index f701f015d8d..42c3e8ceb76 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 4a00f71dc88..a584c56ccb7 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