2006-08-31 21:54:46 +02:00
|
|
|
# New ports collection makefile for: Wah!Cade
|
|
|
|
# Date created: 24 August 2006
|
|
|
|
# Whom: Nathaniel Roark <robb_force@holybuffalo.net>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
2007-03-05 10:47:15 +01:00
|
|
|
PORTNAME= wahcade
|
2008-05-06 19:41:29 +02:00
|
|
|
PORTVERSION= 0.27
|
2008-07-11 19:48:24 +02:00
|
|
|
PORTREVISION= 2
|
2007-03-05 10:47:15 +01:00
|
|
|
CATEGORIES= emulators
|
|
|
|
MASTER_SITES= http://www.anti-particle.com/projects/wahcade/
|
2006-08-31 21:54:46 +02:00
|
|
|
|
2007-03-26 03:47:12 +02:00
|
|
|
MAINTAINER= alepulver@FreeBSD.org
|
2007-03-05 10:47:15 +01:00
|
|
|
COMMENT= A frontend for almost any emulator (MameWAH clone)
|
2006-08-31 21:54:46 +02:00
|
|
|
|
2008-07-11 19:48:24 +02:00
|
|
|
RUN_DEPENDS= ${PYTHON_SITELIBDIR}/gtk-2.0/gtk/__init__.py:${PORTSDIR}/x11-toolkits/py-gtk2 \
|
2008-01-29 22:09:26 +01:00
|
|
|
${PYTHON_SITELIBDIR}/cElementTree.so:${PORTSDIR}/devel/py-celementtree \
|
2008-04-09 04:01:29 +02:00
|
|
|
${PYTHON_SITELIBDIR}/chardet/__init__.py:${PORTSDIR}/textproc/py-chardet
|
2006-08-31 21:54:46 +02:00
|
|
|
|
2007-03-05 10:47:15 +01:00
|
|
|
USE_PYTHON= 2.4+
|
2008-04-09 04:01:29 +02:00
|
|
|
WANT_GSTREAMER= yes
|
2007-03-05 10:47:15 +01:00
|
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}
|
2006-08-31 21:54:46 +02:00
|
|
|
|
2008-04-09 04:01:29 +02:00
|
|
|
OPTIONS= GSTREAMER "Install gstreamer for video & music playback" on \
|
|
|
|
PSYCHO "Enable psycho optimization" on \
|
|
|
|
PYGAME "Install pygame for joystick support" off
|
2006-08-31 21:54:46 +02:00
|
|
|
|
2007-04-09 02:16:20 +02:00
|
|
|
WRAPPERS= wahcade wahcade-layout-editor wahcade-setup
|
|
|
|
|
2007-03-05 10:47:15 +01:00
|
|
|
.include <bsd.port.pre.mk>
|
2006-08-31 21:54:46 +02:00
|
|
|
|
2008-04-09 04:01:29 +02:00
|
|
|
.if !defined(WITHOUT_GSTREAMER)
|
|
|
|
USE_GSTREAMER= python
|
2006-08-31 21:54:46 +02:00
|
|
|
.endif
|
|
|
|
|
2007-03-05 10:47:15 +01:00
|
|
|
.if !defined(WITHOUT_PSYCHO) && ${ARCH} == "i386"
|
|
|
|
RUN_DEPENDS+= ${PYTHON_SITELIBDIR}/psyco/_psyco.so:${PORTSDIR}/devel/py-psyco
|
2006-08-31 21:54:46 +02:00
|
|
|
.endif
|
|
|
|
|
2008-04-09 04:01:29 +02:00
|
|
|
.if defined(WITH_PYGAME)
|
|
|
|
RUN_DEPENDS+= ${PYTHON_SITELIBDIR}/pygame/__init__.py:${PORTSDIR}/devel/py-game
|
|
|
|
.endif
|
|
|
|
|
2007-09-09 00:51:28 +02:00
|
|
|
post-extract:
|
2008-04-09 04:01:29 +02:00
|
|
|
@cd ${WRKSRC} && ${RM} install && ${MV} *.desktop ..
|
2007-09-09 00:51:28 +02:00
|
|
|
|
2007-03-05 10:47:15 +01:00
|
|
|
do-build:
|
2007-09-09 00:51:28 +02:00
|
|
|
@${MKDIR} ${WRKDIR}/bin
|
2007-04-09 02:16:20 +02:00
|
|
|
.for f in ${WRAPPERS}
|
2007-03-05 10:47:15 +01:00
|
|
|
@(${ECHO_CMD} "#!${SH}"; \
|
|
|
|
${ECHO_CMD} "cd ${DATADIR} || exit 1"; \
|
2007-04-09 02:16:20 +02:00
|
|
|
${ECHO_CMD} 'exec ${PYTHON_CMD} ${f}.py "$$@"') \
|
2007-09-09 00:51:28 +02:00
|
|
|
> ${WRKDIR}/bin/${f}
|
2007-04-09 02:16:20 +02:00
|
|
|
.endfor
|
2006-08-31 21:54:46 +02:00
|
|
|
|
2007-03-05 10:47:15 +01:00
|
|
|
do-install:
|
2007-04-09 02:16:20 +02:00
|
|
|
.for f in ${WRAPPERS}
|
2007-09-09 00:51:28 +02:00
|
|
|
${INSTALL_SCRIPT} ${WRKDIR}/bin/${f} ${PREFIX}/bin
|
2007-04-09 02:16:20 +02:00
|
|
|
.endfor
|
2007-03-05 10:47:15 +01:00
|
|
|
${MKDIR} ${DATADIR}
|
2007-09-09 00:51:28 +02:00
|
|
|
${CP} -R ${WRKSRC}/* ${DATADIR}
|
2008-01-29 22:09:26 +01:00
|
|
|
# Needs write permission for the user as they are copied to "~/.wahcade".
|
|
|
|
@${FIND} ${DATADIR} -type d -print0 | ${XARGS} -0 ${CHMOD} 755
|
|
|
|
@${FIND} ${DATADIR} -type f -print0 | ${XARGS} -0 ${CHMOD} 644
|
2006-08-31 21:54:46 +02:00
|
|
|
.if !defined(NOPORTDOCS)
|
2007-09-09 00:51:28 +02:00
|
|
|
${LN} -sf ${DATADIR}/doc ${DOCSDIR}
|
2006-08-31 21:54:46 +02:00
|
|
|
.endif
|
2007-09-09 00:51:28 +02:00
|
|
|
${MKDIR} ${PREFIX}/share/applications
|
2008-04-09 04:01:29 +02:00
|
|
|
${INSTALL_DATA} ${WRKDIR}/*.desktop ${PREFIX}/share/applications
|
2007-09-09 00:51:28 +02:00
|
|
|
${LN} -sf ${DATADIR}/pixmaps/wahcade.png ${PREFIX}/share/pixmaps
|
2007-03-05 10:47:15 +01:00
|
|
|
|
2006-08-31 21:54:46 +02:00
|
|
|
.include <bsd.port.post.mk>
|