mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-05 06:27:37 +00:00
b1a1d38bf9
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
36 lines
1023 B
Makefile
36 lines
1023 B
Makefile
# Created by: ijliao
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= qgo
|
|
PORTVERSION= 2.s764
|
|
CATEGORIES= games
|
|
MASTER_SITES= DEBIAN
|
|
DISTNAME= ${PORTNAME}_2~svn764.orig
|
|
|
|
MAINTAINER= ports@FreeBSD.org
|
|
COMMENT= Go board and SGF editor written with the Qt library
|
|
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}
|
|
|
|
USES= desktop-file-utils qmake qt:4 tar:bzip2
|
|
USE_QT= gui network qtestlib moc_build rcc_build uic_build
|
|
|
|
PLIST_FILES= bin/qgo share/applications/qgo.desktop share/pixmaps/qgo.png
|
|
|
|
post-patch:
|
|
@${REINPLACE_CMD} -e \
|
|
'/Icon/s|=.*|=${PREFIX}/share/pixmaps/qgo.png| ; \
|
|
/^MimeType/s|=.*|=text/sgf|' ${WRKSRC}/src/qgo.desktop
|
|
@${REINPLACE_CMD} -e \
|
|
's|debug|release|' ${WRKSRC}/src/src.pro
|
|
@${REINPLACE_CMD} -e \
|
|
's|%%LOCALBASE%%|${LOCALBASE}|' ${WRKSRC}/src/mainwindow_settings.cpp
|
|
|
|
do-install:
|
|
${INSTALL_PROGRAM} ${WRKSRC}/bin/qgo ${STAGEDIR}${PREFIX}/bin
|
|
${INSTALL_DATA} ${WRKSRC}/src/qgo.desktop ${STAGEDIR}${DESKTOPDIR}
|
|
${INSTALL_DATA} ${WRKSRC}/src/ressources/pics/qgo.png \
|
|
${STAGEDIR}${PREFIX}/share/pixmaps
|
|
|
|
.include <bsd.port.mk>
|