blob: 2d8a0d46b17b53e867bc9c8cd1ad1df9b9ff1611 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
|
# Created by: Dmitry Marakasov <amdmi3@FreeBSD.org>
# $FreeBSD$
PORTNAME= mygui
PORTVERSION= 3.2.3.git20190127
CATEGORIES= x11-toolkits graphics devel
MAINTAINER= amdmi3@FreeBSD.org
COMMENT?= Fast, simple and flexible GUI system for games and 3D applications
LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/COPYING.MIT
.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
GH_TAGNAME= c1c4a9a
MYGUI_RENDERSYSTEM?= 0
USES+= cmake:insource compiler:c++11-lib pkgconfig
CMAKE_ARGS= -DMYGUI_BUILD_DEMOS=FALSE \
-DMYGUI_BUILD_TOOLS=FALSE \
-DMYGUI_BUILD_DOCS=FALSE \
-DMYGUI_RENDERSYSTEM=${MYGUI_RENDERSYSTEM}
USE_LDCONFIG= yes
PLIST= ${.CURDIR}/pkg-plist
post-patch:
@${REINPLACE_CMD} -e '/install/ s|lib/pkgconfig|libdata/pkgconfig|' \
${WRKSRC}/CMake/ConfigureBuild.cmake
.include <bsd.port.mk>
|