blob: 5b5e898d8f0c66e2bc8c34e34c8844e3372cd092 (
plain)
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
71
72
73
74
75
76
77
78
79
80
81
82
|
# Created by: alepulver
# $FreeBSD$
PORTNAME= qmc2
PORTVERSION= 0.37
PORTREVISION= 1
CATEGORIES= emulators
MASTER_SITES= SF
MAINTAINER= ports@FreeBSD.org
COMMENT= Qt4 based UNIX MAME/MESS frontend
LIB_DEPENDS= pthread-stubs:${PORTSDIR}/devel/libpthread-stubs \
pcre:${PORTSDIR}/devel/pcre \
aa:${PORTSDIR}/graphics/aalib \
drm:${PORTSDIR}/graphics/libdrm \
png15:${PORTSDIR}/graphics/png \
freetype:${PORTSDIR}/print/freetype2 \
qzeitgeist:${PORTSDIR}/sysutils/qzeitgeist \
expat:${PORTSDIR}/textproc/expat2 \
fontconfig:${PORTSDIR}/x11-fonts/fontconfig \
xcb:${PORTSDIR}/x11/libxcb
RUN_DEPENDS= mame:${PORTSDIR}/emulators/mame \
mess:${PORTSDIR}/emulators/mess
OPTIONS_DEFINE= DOCS
NO_WRKSUBDIR= yes
USE_BZIP2= yes
USE_GETTEXT= yes
USE_ICONV= yes
USE_GNOME= glib20
USE_XORG= ice sm x11 xau xdamage xdmcp xmu xext xfixes \
xrender xxf86vm
USE_GL= glu
USE_QT4= corelib declarative dbus gui network opengl phonon \
qtestlib script sql svg webkit xml xmlpatterns moc_build \
qmake_build rcc_build uic_build
USE_SDL= sdl
USE_GMAKE= yes
MAKE_ARGS= QTDIR="${QT_PREFIX}" QMAKE="${QMAKE}" \
SYSCONFDIR="${PREFIX}/etc" ARCH="${OPSYS}" \
CC_FLAGS="${CFLAGS}" CXX_FLAGS="${CXXFLAGS}" \
CC="${CC}" CXX="${CXX}" LINK="${CXX}"
MAKE_JOBS_UNSAFE=yes
DESKTOP_ENTRIES="QMC2 (MAME)" "MAME frontend" "${DATADIR}/img/mame.ico" \
"${PORTNAME}-sdlmame" "Game;Emulator;" "true" \
"QMC2 (MESS)" "MESS frontend" "${DATADIR}/img/mess.ico" \
"${PORTNAME}-sdlmess" "Game;Emulator;" "true"
.include <bsd.port.options.mk>
post-extract:
@${MKDIR} ${WRKSRC}/qmc2-sdlmess
@(cd ${WRKSRC}/qmc2; ${COPYTREE_SHARE} . ../qmc2-sdlmess)
@${FIND} ${WRKSRC} -name "*.sh" | ${XARGS} ${CHMOD} ${BINMODE}
post-patch:
@${CP} ${FILESDIR}/Makefile ${WRKSRC}
@(cd ${WRKSRC}/qmc2/inst; ${SED} -e 's|DATADIR|${PREFIX}/share|' \
< qmc2.ini.template > qmc2.ini)
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/qmc2/qmc2-sdlmame ${PREFIX}/bin
${INSTALL_PROGRAM} ${WRKSRC}/qmc2-sdlmess/qmc2-sdlmess ${PREFIX}/bin
@${MKDIR} ${ETCDIR}
${INSTALL_DATA} ${WRKSRC}/qmc2/inst/qmc2.ini ${ETCDIR}
@${MKDIR} ${DATADIR}/img
@(cd ${WRKSRC}/qmc2/data/img; ${COPYTREE_SHARE} . ${DATADIR}/img)
@${MKDIR} ${DATADIR}/lng
${INSTALL_DATA} ${WRKSRC}/qmc2/data/lng/qmc2_*.qm ${DATADIR}/lng
@${MKDIR} ${DATADIR}/opt
@(cd ${WRKSRC}/qmc2/data/opt; ${COPYTREE_SHARE} . ${DATADIR}/opt)
.if ${PORT_OPTIONS:MDOCS}
@${MKDIR} ${DOCSDIR}/html
@(cd ${WRKSRC}/qmc2/data/doc/html; ${COPYTREE_SHARE} . ${DOCSDIR}/html)
.endif
@${CAT} ${PKGMESSAGE}
.include <bsd.port.mk>
|