freebsd-ports/emulators/qmc2/Makefile
Tobias C. Berner b1a1d38bf9 Replace bsd.qt.mk by Uses/qt.mk and Uses/qt-dist.mk
From now on, ports that depend on Qt4 will have to set
	USES=		qt:4
	USE_QT=		foo bar
ports depending on Qt5 will use
	USES=		qt:5
	USE_QT=		foo bar

PR:		229225
Exp-run by:	antoine
Reviewed by:	mat
Approved by:	portmgr (antoine)
Differential Revision:	→https://reviews.freebsd.org/D15540
2018-06-28 17:39:53 +00:00

72 lines
2.2 KiB
Makefile

# Created by: alepulver
# $FreeBSD$
PORTNAME= qmc2
PORTVERSION= 0.195
CATEGORIES= emulators
MASTER_SITES= SF
MAINTAINER= danilo@FreeBSD.org
COMMENT= Qt based UNIX MAME/MESS frontend
RUN_DEPENDS= mame>=0.154:emulators/mame \
mess>=0.154:emulators/mess
OPTIONS_DEFINE= DOCS
NO_WRKSUBDIR= yes
USES= gmake qt:5 tar:bzip2
USE_XORG= x11 xmu
USE_GL= gl glu
USE_QT= buildtools_build core gui multimedia \
network opengl quick qmake_build qml \
testlib script scripttools sql svg \
webkit widgets xml xmlpatterns
USE_SDL= sdl
CXXFLAGS+= -I${LOCALBASE}/include/SDL/
MAKE_ARGS= QTDIR="${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>