# New ports collection makefile for: Wah!Cade # Date created: 24 August 2006 # Whom: Nathaniel Roark # # $FreeBSD$ # PORTNAME= wahcade PORTVERSION= 0.23 CATEGORIES= emulators MASTER_SITES= http://www.anti-particle.com/projects/wahcade/ MAINTAINER= alepulver@FreeBSD.org COMMENT= A frontend for almost any emulator (MameWAH clone) RUN_DEPENDS= ${PYTHON_SITELIBDIR}/pygtk.pth:${PORTSDIR}/x11-toolkits/py-gtk2 \ ${PYTHON_SITELIBDIR}/cElementTree.so:${PORTSDIR}/devel/py-celementtree USE_PYTHON= 2.4+ WRKSRC= ${WRKDIR}/${PORTNAME} OPTIONS= MPLAYER "Install mplayer for movie playback" off \ PSYCHO "Enable psycho optimization" on SUB_FILES= pkg-message WRAPPERS= wahcade wahcade-layout-editor wahcade-setup .include .if defined(WITH_MPLAYER) RUN_DEPENDS+= mplayer:${PORTSDIR}/multimedia/mplayer .endif .if !defined(WITHOUT_PSYCHO) && ${ARCH} == "i386" RUN_DEPENDS+= ${PYTHON_SITELIBDIR}/psyco/_psyco.so:${PORTSDIR}/devel/py-psyco .endif post-extract: @cd ${WRKSRC} && ${RM} install && ${MV} wahcade.desktop .. do-build: @${MKDIR} ${WRKDIR}/bin .for f in ${WRAPPERS} @(${ECHO_CMD} "#!${SH}"; \ ${ECHO_CMD} "cd ${DATADIR} || exit 1"; \ ${ECHO_CMD} 'exec ${PYTHON_CMD} ${f}.py "$$@"') \ > ${WRKDIR}/bin/${f} .endfor do-install: .for f in ${WRAPPERS} ${INSTALL_SCRIPT} ${WRKDIR}/bin/${f} ${PREFIX}/bin .endfor ${MKDIR} ${DATADIR} ${CP} -R ${WRKSRC}/* ${DATADIR} @${FIND} ${DATADIR} -type d -print0 | ${XARGS} -0 ${CHMOD} ${BINMODE} @${FIND} ${DATADIR} -type f -print0 | ${XARGS} -0 ${CHMOD} ${SHAREMODE} .if !defined(NOPORTDOCS) ${LN} -sf ${DATADIR}/doc ${DOCSDIR} .endif ${MKDIR} ${PREFIX}/share/applications ${INSTALL_DATA} ${WRKDIR}/wahcade.desktop ${PREFIX}/share/applications ${LN} -sf ${DATADIR}/pixmaps/wahcade.png ${PREFIX}/share/pixmaps post-install: @${ECHO_CMD} @${CAT} ${PKGMESSAGE} @${ECHO_CMD} .include