mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-26 00:55:14 +00:00
049d9894fe
- Change Makefile header - Remove master sites, use GitHub=yes - Change maintainer email to @FreeBSD.org - USES gmake instead of USE_GMAKE - Support STAGEDIR - Add DOCS Option - Change REINPLACE_CMD - Change pkg-message Approved by: pawel / wg (mentors, implicit)
60 lines
1.4 KiB
Makefile
60 lines
1.4 KiB
Makefile
# Created by: nemysis <nemysis@gmx.ch>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= swine
|
|
PORTVERSION= 1.0.4
|
|
CATEGORIES= emulators deskutils python
|
|
|
|
MAINTAINER= nemysis@FreeBSD.org
|
|
COMMENT= Qt4 graphical Wine frontend
|
|
|
|
LICENSE= GPLv2
|
|
|
|
BUILD_DEPENDS= pyrcc4:${PORTSDIR}/textproc/py-qt4-xml
|
|
RUN_DEPENDS= xterm:${PORTSDIR}/x11/xterm \
|
|
cabextract:${PORTSDIR}/archivers/cabextract \
|
|
icotool:${PORTSDIR}/graphics/icoutils \
|
|
${PYTHON_SITELIBDIR}/PyQt4/QtGui.so:${PORTSDIR}/x11-toolkits/py-qt4-gui
|
|
|
|
DATADIRLIB= ${PREFIX}/lib/${PORTNAME}
|
|
|
|
USE_GITHUB= yes
|
|
GH_ACCOUNT= dswd
|
|
GH_PROJECT= Swine
|
|
GH_TAGNAME= ${GH_COMMIT}
|
|
GH_COMMIT= 1770c40
|
|
|
|
USES= gmake
|
|
USE_PYTHON= yes
|
|
NO_BUILD= yes
|
|
USE_QT4= linguist_build
|
|
ONLY_FOR_ARCHS= i386 amd64
|
|
|
|
PORTDOCS= README
|
|
|
|
OPTIONS_DEFINE= DOCS
|
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
.if ${ARCH} == "i386"
|
|
RUN_DEPENDS+= wine:${PORTSDIR}/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|*|' \
|
|
${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
|
|
|
|
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
|
${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}
|
|
|
|
.include <bsd.port.mk>
|