2012-11-01 23:43:18 +01:00
|
|
|
# Created by: alepulver
|
2007-02-28 06:31:30 +01:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= qmc2
|
2015-05-02 22:51:41 +02:00
|
|
|
PORTVERSION= 0.51
|
2007-02-28 06:31:30 +01:00
|
|
|
CATEGORIES= emulators
|
|
|
|
MASTER_SITES= SF
|
|
|
|
|
2013-12-21 16:39:36 +01:00
|
|
|
MAINTAINER= danilo@FreeBSD.org
|
2012-11-01 23:43:18 +01:00
|
|
|
COMMENT= Qt4 based UNIX MAME/MESS frontend
|
2008-04-09 04:02:24 +02:00
|
|
|
|
2015-05-25 12:21:59 +02:00
|
|
|
RUN_DEPENDS= mame>=0.154:${PORTSDIR}/emulators/mame \
|
|
|
|
mess>=0.154:${PORTSDIR}/emulators/mess
|
2012-03-13 16:52:52 +01:00
|
|
|
|
2012-06-17 22:19:01 +02:00
|
|
|
OPTIONS_DEFINE= DOCS
|
|
|
|
|
2012-03-13 16:52:52 +01:00
|
|
|
NO_WRKSUBDIR= yes
|
2007-02-28 06:31:30 +01:00
|
|
|
|
2014-04-11 04:50:24 +02:00
|
|
|
USES= gmake tar:bzip2
|
2013-02-05 10:10:32 +01:00
|
|
|
USE_XORG= xmu
|
2012-03-13 16:52:52 +01:00
|
|
|
USE_GL= glu
|
2013-02-05 10:10:32 +01:00
|
|
|
USE_QT4= gui opengl phonon qtestlib webkit xml \
|
|
|
|
moc_build qmake_build rcc_build uic_build
|
2012-03-13 16:52:52 +01:00
|
|
|
USE_SDL= sdl
|
2014-10-19 00:31:06 +02:00
|
|
|
|
2015-05-25 12:21:59 +02:00
|
|
|
CXXFLAGS+= -I${PREFIX}/include/SDL/
|
2012-03-13 16:52:52 +01:00
|
|
|
MAKE_ARGS= QTDIR="${QT_PREFIX}" QMAKE="${QMAKE}" \
|
|
|
|
SYSCONFDIR="${PREFIX}/etc" ARCH="${OPSYS}" \
|
2014-07-24 17:06:07 +02:00
|
|
|
CC_FLAGS="${CFLAGS} -DUSE_FILE32API" \
|
|
|
|
CXX_FLAGS="${CXXFLAGS} -DUSE_FILE32API" \
|
2012-03-13 16:52:52 +01:00
|
|
|
CC="${CC}" CXX="${CXX}" LINK="${CXX}"
|
2007-02-28 06:31:30 +01:00
|
|
|
|
2013-01-07 03:07:26 +01:00
|
|
|
DESKTOP_ENTRIES="QMC2 (MAME)" "MAME frontend" "${DATADIR}/img/mame.png" \
|
|
|
|
"${PORTNAME}-sdlmame" "Game;Emulator;Qt;" "true" \
|
|
|
|
"QMC2 (MESS)" "MESS frontend" "${DATADIR}/img/mess.png" \
|
|
|
|
"${PORTNAME}-sdlmess" "Game;Emulator;Qt;" "true"
|
2012-11-01 23:43:18 +01:00
|
|
|
|
2012-03-13 16:52:52 +01:00
|
|
|
post-extract:
|
|
|
|
@${MKDIR} ${WRKSRC}/qmc2-sdlmess
|
|
|
|
@(cd ${WRKSRC}/qmc2; ${COPYTREE_SHARE} . ../qmc2-sdlmess)
|
|
|
|
@${FIND} ${WRKSRC} -name "*.sh" | ${XARGS} ${CHMOD} ${BINMODE}
|
2009-03-18 03:24:02 +01:00
|
|
|
|
|
|
|
post-patch:
|
2012-03-13 16:52:52 +01:00
|
|
|
@${CP} ${FILESDIR}/Makefile ${WRKSRC}
|
|
|
|
@(cd ${WRKSRC}/qmc2/inst; ${SED} -e 's|DATADIR|${PREFIX}/share|' \
|
|
|
|
< qmc2.ini.template > qmc2.ini)
|
2014-10-19 00:31:06 +02:00
|
|
|
@${REINPLACE_CMD} -e 's/bash/sh/' ${WRKDIR}/qmc2/scripts/sdl-libs.sh \
|
|
|
|
${WRKDIR}/qmc2-sdlmess/scripts/sdl-libs.sh
|
2009-03-18 03:24:02 +01:00
|
|
|
|
|
|
|
do-install:
|
2013-10-30 21:42:02 +01:00
|
|
|
(cd ${WRKSRC}/qmc2 && ${INSTALL_PROGRAM} qmc2-sdlmame \
|
|
|
|
${STAGEDIR}${PREFIX}/bin)
|
|
|
|
(cd ${WRKSRC}/qmc2-sdlmess && ${INSTALL_PROGRAM} qmc2-sdlmess \
|
|
|
|
${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)
|
2007-02-28 06:31:30 +01:00
|
|
|
|
2012-03-13 16:52:52 +01:00
|
|
|
.include <bsd.port.mk>
|