2013-02-23 20:54:26 +01:00
|
|
|
# Created by: nemysis@gmx.ch
|
2012-10-12 23:56:09 +02:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= swine
|
2012-10-31 06:43:34 +01:00
|
|
|
PORTVERSION= 1.0.3
|
2013-02-23 20:54:26 +01:00
|
|
|
PORTREVISION= 2
|
2012-10-12 23:56:09 +02:00
|
|
|
CATEGORIES= emulators deskutils python
|
|
|
|
|
|
|
|
MAINTAINER= nemysis@gmx.ch
|
2012-10-13 00:44:11 +02:00
|
|
|
COMMENT= Qt4 graphical Wine frontend
|
2012-10-12 23:56:09 +02:00
|
|
|
|
|
|
|
LICENSE= GPLv2
|
|
|
|
|
|
|
|
BUILD_DEPENDS= pyrcc4:${PORTSDIR}/textproc/py-qt4-xml
|
2012-10-22 16:51:53 +02:00
|
|
|
RUN_DEPENDS= xterm:${PORTSDIR}/x11/xterm \
|
2012-10-12 23:56:09 +02:00
|
|
|
cabextract:${PORTSDIR}/archivers/cabextract \
|
|
|
|
icotool:${PORTSDIR}/graphics/icoutils \
|
2012-10-13 18:05:28 +02:00
|
|
|
${PYTHON_SITELIBDIR}/PyQt4/QtGui.so:${PORTSDIR}/x11-toolkits/py-qt4-gui
|
2012-10-12 23:56:09 +02:00
|
|
|
|
|
|
|
DATADIRLIB= ${PREFIX}/lib/${PORTNAME}
|
|
|
|
|
|
|
|
USE_GITHUB= yes
|
|
|
|
GH_ACCOUNT= dswd
|
|
|
|
GH_PROJECT= Swine
|
|
|
|
GH_TAGNAME= master
|
2012-10-31 06:43:34 +01:00
|
|
|
GH_COMMIT= 6567d97
|
2012-10-12 23:56:09 +02:00
|
|
|
|
|
|
|
USE_PYTHON= yes
|
|
|
|
USE_GMAKE= yes
|
|
|
|
USE_QT4= linguist_build
|
2012-10-22 16:51:53 +02:00
|
|
|
ONLY_FOR_ARCHS= i386 amd64
|
2012-10-12 23:56:09 +02:00
|
|
|
|
|
|
|
PORTDOCS= README
|
|
|
|
|
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
|
2012-10-22 16:51:53 +02:00
|
|
|
.if ${ARCH} == "i386"
|
|
|
|
RUN_DEPENDS+= wine:${PORTSDIR}/emulators/wine-devel
|
|
|
|
.endif
|
|
|
|
|
2012-10-12 23:56:09 +02:00
|
|
|
post-patch:
|
|
|
|
@${REINPLACE_CMD} -e 's|/bin/bash|/bin/sh|' ${WRKSRC}/version.sh
|
2013-02-23 20:54:26 +01:00
|
|
|
@${REINPLACE_CMD} -e 's|/usr/share/swine/images/swine32.png|${PREFIX}/share/pixmaps/swine.png|' \
|
|
|
|
${WRKSRC}/resources/swine.desktop
|
|
|
|
@${FIND} ${WRKSRC} -name "*.bak" -delete
|
2012-10-12 23:56:09 +02:00
|
|
|
|
|
|
|
do-install:
|
|
|
|
${MKDIR} ${DATADIRLIB}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/resources.qrc ${DATADIRLIB}
|
|
|
|
${INSTALL_SCRIPT} ${WRKSRC}/*.py ${DATADIRLIB}
|
|
|
|
${LN} -sf ${DATADIRLIB}/${PORTNAME}.py ${PREFIX}/bin/${PORTNAME}
|
|
|
|
${LN} -sf ${DATADIRLIB}/${PORTNAME}cli.py ${PREFIX}/bin/${PORTNAME}cli
|
|
|
|
${LN} -sf ${DATADIRLIB}/${PORTNAME}run.py ${PREFIX}/bin/${PORTNAME}run
|
|
|
|
${MKDIR} ${DATADIR}
|
|
|
|
@(cd ${WRKSRC} && ${COPYTREE_SHARE} "translations images" ${DATADIR})
|
|
|
|
|
|
|
|
${LN} -sf ${DATADIR}/images/swine32.png ${PREFIX}/share/pixmaps/${PORTNAME}.png
|
|
|
|
${MKDIR} ${PREFIX}/share/applications
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/resources/*.desktop ${PREFIX}/share/applications/
|
|
|
|
|
|
|
|
.if ${PORT_OPTIONS:MDOCS}
|
|
|
|
${MKDIR} ${DOCSDIR}
|
|
|
|
${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${DOCSDIR}
|
|
|
|
.endif
|
|
|
|
|
|
|
|
@${ECHO_CMD}
|
|
|
|
@${CAT} ${PKGMESSAGE}
|
|
|
|
@${ECHO_CMD}
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|