2013-07-26 19:27:42 +02:00
|
|
|
# Created by: Dmitry Marakasov <amdmi3@FreeBSD.org>
|
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= mygui
|
2015-12-01 14:53:44 +01:00
|
|
|
PORTVERSION= 3.2.2
|
|
|
|
DISTVERSIONPREFIX= MyGUI
|
Bump PORTREVISIONs for ports depending on the canonical version of GCC and
lang/gcc which have moved from GCC 4.9.4 to GCC 5.4 (at least under some
circumstances such as versions of FreeBSD or platforms).
This includes ports
- with USE_GCC=yes or USE_GCC=any,
- with USES=fortran,
- using using Mk/bsd.octave.mk which in turn has USES=fortran, and
- with USES=compiler specifying openmp, nestedfct, c++11-lib, c++14-lang,
c++11-lang, c++0x, c11, or gcc-c++11-lib.
PR: 216707
2017-04-01 17:23:30 +02:00
|
|
|
PORTREVISION?= 2
|
2013-07-26 19:27:42 +02:00
|
|
|
CATEGORIES= x11-toolkits graphics devel
|
|
|
|
|
|
|
|
MAINTAINER= amdmi3@FreeBSD.org
|
2016-01-16 18:48:12 +01:00
|
|
|
COMMENT?= Fast, simple and flexible GUI system for games and 3D applications
|
2015-12-01 14:53:44 +01:00
|
|
|
|
|
|
|
LICENSE= MIT
|
|
|
|
LICENSE_FILE= ${WRKSRC}/COPYING.MIT
|
2013-07-26 19:27:42 +02:00
|
|
|
|
2016-04-21 18:43:14 +02:00
|
|
|
BROKEN_powerpc64= Does not build
|
|
|
|
|
2016-01-16 18:48:12 +01:00
|
|
|
.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
|
2013-07-26 19:27:42 +02:00
|
|
|
|
2015-12-01 14:53:44 +01:00
|
|
|
USE_GITHUB= yes
|
|
|
|
GH_ACCOUNT= MyGUI
|
|
|
|
|
2016-01-16 18:48:12 +01:00
|
|
|
MYGUI_RENDERSYSTEM?= 0
|
|
|
|
|
|
|
|
USES= cmake compiler:c++11-lib pkgconfig
|
|
|
|
CMAKE_ARGS= -DMYGUI_BUILD_DEMOS=FALSE \
|
2015-12-01 14:53:44 +01:00
|
|
|
-DMYGUI_BUILD_TOOLS=FALSE \
|
|
|
|
-DMYGUI_BUILD_DOCS=FALSE \
|
2016-01-16 18:48:12 +01:00
|
|
|
-DMYGUI_RENDERSYSTEM=${MYGUI_RENDERSYSTEM}
|
2013-07-26 19:27:42 +02:00
|
|
|
USE_LDCONFIG= yes
|
2014-04-22 04:35:38 +02:00
|
|
|
|
|
|
|
USE_CXXSTD= c++11
|
|
|
|
CXXFLAGS+= -fPIC
|
2013-07-26 19:27:42 +02:00
|
|
|
|
2016-01-16 18:48:12 +01:00
|
|
|
PLIST= ${.CURDIR}/pkg-plist
|
|
|
|
|
2013-07-26 19:27:42 +02:00
|
|
|
post-patch:
|
|
|
|
@${REINPLACE_CMD} -e '/install/ s|lib/pkgconfig|libdata/pkgconfig|' \
|
|
|
|
${WRKSRC}/CMake/ConfigureBuild.cmake
|
2016-01-16 18:48:12 +01:00
|
|
|
.if defined(MASTERDIR)
|
|
|
|
@${REINPLACE_CMD} -e '/add_dependencies/d' ${BUILD_WRKSRC}/CMakeLists.txt
|
|
|
|
@${REINPLACE_CMD} -e '/target_link/d' ${BUILD_WRKSRC}/CMakeLists.txt
|
|
|
|
.endif
|
2013-07-26 19:27:42 +02:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|