Lines 2-53
Link Here
|
2 |
# $FreeBSD: head/emulators/yabause/Makefile 360256 2014-07-02 20:22:55Z antoine $ |
2 |
# $FreeBSD: head/emulators/yabause/Makefile 360256 2014-07-02 20:22:55Z antoine $ |
3 |
|
3 |
|
4 |
PORTNAME= yabause |
4 |
PORTNAME= yabause |
5 |
PORTVERSION= 0.9.11.1 |
5 |
PORTVERSION= 0.9.13.1 |
6 |
PORTREVISION= 4 |
|
|
7 |
CATEGORIES= emulators |
6 |
CATEGORIES= emulators |
8 |
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/${PORTVERSION:S/1.1/1/g}/ |
7 |
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/${PORTVERSION:R} |
9 |
|
8 |
|
10 |
MAINTAINER= ports@FreeBSD.org |
9 |
MAINTAINER= ports@FreeBSD.org |
11 |
COMMENT= Sega Saturn system emulator |
10 |
COMMENT= Sega Saturn system emulator |
12 |
|
11 |
|
13 |
LIB_DEPENDS= gtkglext-x11-1.0.0:${PORTSDIR}/x11-toolkits/gtkglext |
12 |
LICENSE= GPLv2 # (or later) |
14 |
|
13 |
|
15 |
USE_AUTOTOOLS= automake:env autoconf:env aclocal:env |
14 |
USES= cmake openal:soft pkgconfig |
16 |
GNU_CONFIGURE= yes |
15 |
USE_XORG= xmu xrandr |
17 |
USES= gmake openal:soft |
|
|
18 |
USE_GL= gl glu glut |
16 |
USE_GL= gl glu glut |
19 |
USE_GNOME= # |
17 |
USE_SDL= sdl |
20 |
USE_SDL= yes |
18 |
|
|
|
19 |
CFLAGS+= -I${LOCALBASE}/include |
20 |
LDFLAGS+= -L${LOCALBASE}/lib |
21 |
|
21 |
|
22 |
SUB_FILES= pkg-message |
22 |
SUB_FILES= pkg-message |
23 |
MAN1= yabause.1 |
|
|
24 |
|
23 |
|
25 |
OPTIONS_DEFINE= QT4 |
24 |
OPTIONS_SINGLE= GUI |
|
|
25 |
OPTIONS_SINGLE_GUI= GTK2 QT4 |
26 |
OPTIONS_DEFAULT= QT4 |
26 |
OPTIONS_DEFAULT= QT4 |
27 |
QT4_DESC= Build wit qt4 interface instead of gtk2 one |
|
|
28 |
|
29 |
NO_STAGE= yes |
30 |
.include <bsd.port.options.mk> |
31 |
|
32 |
.if ${PORT_OPTIONS:MQT4} |
33 |
USE_QT4= corelib gui opengl |
34 |
CONFIGURE_ARGS+= --with-port=qt |
35 |
.else |
36 |
USE_GNOME= gtk20 |
37 |
CONFIGURE_ARGS+= --with-port=gtk |
38 |
.endif |
39 |
|
40 |
.include <bsd.port.pre.mk> |
41 |
|
42 |
post-patch: |
43 |
@${REINPLACE_CMD} -e "s|%%ACLOCAL%%|${ACLOCAL}|g" -e "s|%%AUTOCONF%%|${AUTOCONF}|g" \ |
44 |
-e "s|%%AUTOMAKE%%|${AUTOMAKE}|g" ${WRKSRC}/autogen.sh |
45 |
@${REINPLACE_CMD} -e "s|0.9.10|${PORTVERSION}|g" ${WRKSRC}/configure.in |
46 |
|
47 |
pre-configure: |
48 |
@cd ${WRKSRC} && ${SH} autogen.sh |
49 |
|
27 |
|
50 |
post-install: |
28 |
GTK2_LIB_DEPENDS= libgtkglext-x11-1.0.so:${PORTSDIR}/x11-toolkits/gtkglext |
51 |
@${ECHO_CMD}; ${CAT} ${PKGMESSAGE}; ${ECHO_CMD} |
29 |
GTK2_USE= gnome=gtk20 |
|
|
30 |
GTK2_CMAKE_ON= -DYAB_PORTS:STRING=gtk |
31 |
QT4_USE= qt4=corelib,gui,opengl \ |
32 |
qt4=moc_build,qmake_build,rcc_build,uic_build |
33 |
QT4_CMAKE_ON= -DYAB_PORTS:STRING=qt |
52 |
|
34 |
|
53 |
.include <bsd.port.post.mk> |
35 |
.include <bsd.port.mk> |