blob: b42e2d1422b7ff491eb6ab96c53a0220e2014e2a (
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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
|
# Created by: alepulver
# $FreeBSD$
PORTNAME= qmc2
PORTVERSION= 0.59
CATEGORIES= emulators
MASTER_SITES= SF
MAINTAINER= danilo@FreeBSD.org
COMMENT= Qt4 based UNIX MAME/MESS frontend
RUN_DEPENDS= mame>=0.154:${PORTSDIR}/emulators/mame \
mess>=0.154:${PORTSDIR}/emulators/mess
OPTIONS_DEFINE= DOCS
NO_WRKSUBDIR= yes
USES= gmake tar:bzip2
USE_XORG= xmu
USE_GL= glu
USE_QT4= gui opengl phonon qtestlib webkit xml \
moc_build qmake_build rcc_build scripttools \
uic_build
USE_SDL= sdl
CXXFLAGS+= -I${LOCALBASE}/include/SDL/
MAKE_ARGS= QTDIR="${QT_PREFIX}" QMAKE="${QMAKE}" \
SYSCONFDIR="${PREFIX}/etc" ARCH="${OPSYS}" \
CC_FLAGS="${CFLAGS} -DUSE_FILE32API" \
CXX_FLAGS="${CXXFLAGS} -DUSE_FILE32API" \
CC="${CC}" CXX="${CXX}" LINK="${CXX}"
DESKTOP_ENTRIES="QMC2" "MAME frontend" "${DATADIR}/img/mame.png" \
"${PORTNAME}-sdlmame" "Game;Emulator;Qt;" "true" \
"QMC2 Arcade" "QMC2 Arcade Mode" "${DATADIR}/img/qmc2-arcade.png" \
"${PORTNAME}-arcade" "Game;Emulator;Qt;" "true" \
"CHDMAN GUI" "Qt CHDMAN GUI" "${DATADIR}/img/qchdman.png" \
"qchdman" "Game;Emulator;Qt;" "true" \
post-patch:
@${CP} ${FILESDIR}/Makefile ${WRKSRC}
@(cd ${WRKSRC}/qmc2/inst; ${SED} -e 's|DATADIR|${PREFIX}/share|' \
< qmc2.ini.template > qmc2.ini)
@${REINPLACE_CMD} -e 's/bash/sh/' ${WRKSRC}/qmc2/scripts/sdl-libs.sh
do-install:
(cd ${WRKSRC}/qmc2 && ${INSTALL_PROGRAM} qmc2-sdlmame \
${STAGEDIR}${PREFIX}/bin)
(cd ${WRKSRC}/qmc2/arcade && ${INSTALL_PROGRAM} qmc2-arcade \
${STAGEDIR}${PREFIX}/bin)
(cd ${WRKSRC}/qmc2/tools/qchdman && ${INSTALL_PROGRAM} qchdman \
${STAGEDIR}${PREFIX}/bin)
@${MKDIR} ${STAGEDIR}${ETCDIR}
(cd ${WRKSRC}/qmc2/inst && ${INSTALL_DATA} qmc2.ini \
${STAGEDIR}${ETCDIR})
@${MKDIR} ${STAGEDIR}${DATADIR}/img
@(cd ${WRKSRC}/qmc2/data/img; ${COPYTREE_SHARE} . \
${STAGEDIR}${DATADIR}/img)
@${MKDIR} ${STAGEDIR}${DATADIR}/lng
(cd ${WRKSRC}/qmc2/data/lng && ${INSTALL_DATA} qmc2_*.qm \
${STAGEDIR}${DATADIR}/lng)
@${MKDIR} ${STAGEDIR}${DATADIR}/opt
@(cd ${WRKSRC}/qmc2/data/opt; ${COPYTREE_SHARE} . \
${STAGEDIR}${DATADIR}/opt)
@${MKDIR} ${STAGEDIR}${DOCSDIR}/html
@(cd ${WRKSRC}/qmc2/data/doc/html; ${COPYTREE_SHARE} . \
${STAGEDIR}${DOCSDIR}/html)
.include <bsd.port.mk>
|