71 lines
2.2 KiB
Makefile
71 lines
2.2 KiB
Makefile
# Created by: alepulver
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= qmc2
|
|
PORTVERSION= 0.47
|
|
CATEGORIES= emulators
|
|
MASTER_SITES= SF
|
|
|
|
MAINTAINER= danilo@FreeBSD.org
|
|
COMMENT= Qt4 based UNIX MAME/MESS frontend
|
|
|
|
RUN_DEPENDS= mame:${PORTSDIR}/emulators/mame \
|
|
mess:${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 uic_build
|
|
USE_SDL= sdl
|
|
|
|
CXXFLAGS+= -I/usr/local/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)" "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"
|
|
|
|
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)
|
|
@${REINPLACE_CMD} -e 's/bash/sh/' ${WRKDIR}/qmc2/scripts/sdl-libs.sh \
|
|
${WRKDIR}/qmc2-sdlmess/scripts/sdl-libs.sh
|
|
|
|
do-install:
|
|
(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)
|
|
|
|
.include <bsd.port.mk>
|