1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-06 06:30:19 +00:00
freebsd-ports/emulators/swine/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

61 lines
1.4 KiB
Makefile

# Created by: Rusmir Dusko <nemysis@FreeBSD.org>
# $FreeBSD$
PORTNAME= swine
PORTVERSION= 1.0.4
PORTREVISION= 2
CATEGORIES= emulators deskutils python
MAINTAINER= koalative@gmail.com
COMMENT= Qt4 graphical Wine frontend
LICENSE= GPLv2+
LICENSE_FILE= ${WRKSRC}/LICENSE
RUN_DEPENDS= xterm:x11/xterm \
cabextract:archivers/cabextract \
icotool:graphics/icoutils
DATADIRLIB= ${PREFIX}/lib/${PORTNAME}
USE_GITHUB= yes
GH_ACCOUNT= dswd
GH_PROJECT= Swine
USES= gmake python:2.7 qt:4 shebangfix pyqt:4
SHEBANG_FILES= *.py
NO_BUILD= yes
USE_PYQT= gui_run xml_build
USE_QT= linguist_build
ONLY_FOR_ARCHS= i386 amd64
NO_ARCH= yes
PORTDOCS= README
OPTIONS_DEFINE= DOCS
.include <bsd.port.options.mk>
.if ${ARCH} == "i386"
RUN_DEPENDS+= wine:emulators/wine-devel
.endif
post-patch:
@${REINPLACE_CMD} -e 's|/bin/bash|/bin/sh|' ${WRKSRC}/version.sh
@${REINPLACE_CMD} -e 's|/usr|${PREFIX}| ; \
s|swine32.png|*| ; \
s|lrelease-qt4|lrelease|' \
${WRKSRC}/Makefile
@${REINPLACE_CMD} -e 's|/usr/share/swine/images/swine32.png|swine|' \
-e 's|^Categories=.*|Categories=Wine;System;Emulator;Utility;Game;|' \
${WRKSRC}/resources/swine.desktop
post-install:
${LN} -sf ${DATADIR}/images/swine32.png \
${STAGEDIR}${PREFIX}/share/pixmaps/${PORTNAME}.png
post-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>