blob: 898ab660ea0e610859bf5b237dbddfec851016e9 (
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
44
45
46
47
48
49
50
51
|
# Created by: Jose Alonso Cardenas Marquez <acm@FreeBSD.org>
# $FreeBSD$
PORTNAME= yabause
PORTVERSION= 0.9.14
CATEGORIES= emulators
MASTER_SITES= SF
MAINTAINER= ports@FreeBSD.org
COMMENT= Sega Saturn system emulator
LICENSE= GPLv2 # (or later)
USES= cmake dos2unix openal:soft pkgconfig
DOS2UNIX_FILES= src/qt/YabauseThread.cpp
USE_XORG= xmu xrandr
USE_GL= gl glu glut
CFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib
SUB_FILES= pkg-message
OPTIONS_DEFINE= SDL2
OPTIONS_SINGLE= GUI
OPTIONS_SINGLE_GUI= GTK2 QT4 QT5
OPTIONS_DEFAULT= QT4
GTK2_LIB_DEPENDS= libgtkglext-x11-1.0.so:${PORTSDIR}/x11-toolkits/gtkglext
GTK2_USE= gnome=gtk20
GTK2_CMAKE_ON= -DYAB_PORTS:STRING=gtk
GTK2_CMAKE_OFF= -DYAB_PORTS:STRING=qt
QT4_USE= qt4=corelib,gui,opengl \
qt4=moc_build,qmake_build,rcc_build,uic_build
QT4_CMAKE_ON= -DQt5_FOUND:BOOL=OFF
QT5_USE= qt5=core,gui,opengl \
qt5=buildtools_build,qmake_build
SDL2_DESC= SDL2 libraries support
SDL2_USE= sdl=sdl2
SDL2_USE_OFF= sdl=sdl
.include <bsd.port.options.mk>
post-patch:
.if empty(PORT_OPTIONS:MSDL2)
@${REINPLACE_CMD} -e \
's|SDL2 |SDL | ; \
s|SDL2_|SDL_|' ${WRKSRC}/src/CMakeLists.txt
.endif
.include <bsd.port.mk>
|