aboutsummaryrefslogtreecommitdiffstats
path: root/emulators/yabause/Makefile
blob: ed579f37d1411a87a9020fc8b297d29b0b3c90ea (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
52
53
54
# New ports collection makefile for:    yabause
# Date created:     2006-08-23
# Whom:         Jose Alonso Cardenas Marquez <acm@FreeBSD.org>
#
# $FreeBSD$
#

PORTNAME=   yabause
PORTVERSION=    0.9.11.1
PORTREVISION=   1
CATEGORIES= emulators
MASTER_SITES=   SF/${PORTNAME}/${PORTNAME}/${PORTVERSION:S/1.1/1/g}/

MAINTAINER= acm@FreeBSD.org
COMMENT=    Sega Saturn system emulator

LIB_DEPENDS=    gtkglext-x11-1.0.0:${PORTSDIR}/x11-toolkits/gtkglext

USE_AUTOTOOLS=  automake:env autoconf:env aclocal:env
GNU_CONFIGURE=  yes
USE_GMAKE=  yes
USE_GL=     gl glu glut
USE_GNOME=  #
USE_OPENAL= soft
USE_QT_VER= 4
USE_SDL=    yes

SUB_FILES=  pkg-message
MAN1=   yabause.1

OPTIONS=    QT4 "Build wit qt4 interface instead of gtk2 one"   on

.include <bsd.port.pre.mk>

.if defined(WITH_QT4)
QT_COMPONENTS=  corelib gui opengl
CONFIGURE_ARGS+=    --with-port=qt
.else
USE_GNOME=  gtk20
CONFIGURE_ARGS+=    --with-port=gtk
.endif

post-patch:
    @${REINPLACE_CMD} -e "s|%%ACLOCAL%%|${ACLOCAL}|g" -e "s|%%AUTOCONF%%|${AUTOCONF}|g" \
        -e "s|%%AUTOMAKE%%|${AUTOMAKE}|g" ${WRKSRC}/autogen.sh
    @${REINPLACE_CMD} -e "s|0.9.10|${PORTVERSION}|g" ${WRKSRC}/configure.in

pre-configure:
    @cd ${WRKSRC} && ${SH} autogen.sh

post-install:
    @${ECHO_CMD}; ${CAT} ${PKGMESSAGE}; ${ECHO_CMD}

.include <bsd.port.post.mk>