mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-03 01:23:49 +00:00
b1a1d38bf9
From now on, ports that depend on Qt4 will have to set USES= qt:4 USE_QT= foo bar ports depending on Qt5 will use USES= qt:5 USE_QT= foo bar PR: 229225 Exp-run by: antoine Reviewed by: mat Approved by: portmgr (antoine) Differential Revision: →https://reviews.freebsd.org/D15540
55 lines
1.2 KiB
Makefile
55 lines
1.2 KiB
Makefile
# 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+
|
|
|
|
USES= cmake dos2unix openal:soft pkgconfig
|
|
DOS2UNIX_FILES= src/qt/YabauseThread.cpp src/core.h
|
|
USE_XORG= xmu xrandr
|
|
USE_GL= gl glu glut
|
|
|
|
CFLAGS+= -I${LOCALBASE}/include
|
|
LDFLAGS+= -L${LOCALBASE}/lib
|
|
LLD_UNSAFE= yes
|
|
|
|
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:x11-toolkits/gtkglext
|
|
GTK2_USE= gnome=gtk20
|
|
GTK2_CMAKE_ON= -DYAB_PORTS:STRING=gtk
|
|
GTK2_CMAKE_OFF= -DYAB_PORTS:STRING=qt
|
|
QT4_USES= qt:4
|
|
QT4_USE= qt=corelib,gui,opengl \
|
|
qt=moc_build,qmake_build,rcc_build,uic_build
|
|
QT4_CMAKE_ON= -DQt5_FOUND:BOOL=OFF
|
|
QT5_USES= qt:5
|
|
QT5_USE= qt=core,gui,opengl \
|
|
qt=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>
|