1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-16 07:58:04 +00:00
freebsd-ports/x11-fm/ultracopier/Makefile
Mark Linimon 4f7c0d630c This port requires USES=compiler:c++11-lang to build on GCC-based
architectures.

PR:		235046
Submitted by:	Piotr Kubaj
2019-01-22 12:55:06 +00:00

45 lines
1.4 KiB
Makefile

# Created by: Mario Sergio Fujikawa Ferreira <lioux@FreeBSD.org>
# $FreeBSD$
PORTNAME= ultracopier
PORTVERSION= 1.2.1.0
PORTREVISION= 1
CATEGORIES= x11-fm
MASTER_SITES= http://files.first-world.info/ultracopier/${PORTVERSION}/
DISTNAME= ${PORTNAME}-src-${PORTVERSION}
MAINTAINER= ports@FreeBSD.org
COMMENT= Advanced file copier
LICENSE= GPLv3
LICENSE_FILE= ${WRKSRC}/COPYING
USES= compiler:c++11-lang qmake qt:5 tar:xz
USE_QT= buildtools_build linguisttools_build \
core gui network widgets xml
QMAKE_ARGS= LRELEASE="${LRELEASE}" ultracopier-core.pro
WRKSRC= ${WRKDIR}/${PORTNAME}-src
PLIST_FILES= bin/ultracopier share/applications/ultracopier.desktop \
share/icons/hicolor/16x16/apps/ultracopier.png \
share/icons/hicolor/128x128/apps/ultracopier.png
post-patch:
@${GREP} -Rl Q_OS_LINUX ${WRKSRC} | ${XARGS} ${REINPLACE_CMD} -e \
s/Q_OS_LINUX/Q_OS_UNIX/
@${REINPLACE_CMD} -e '/crackedVersion=/s,false,true,' \
${WRKSRC}/EventDispatcher.cpp
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin
.for dimensions in 16x16 128x128
@${MKDIR} ${STAGEDIR}${PREFIX}/share/icons/hicolor/${dimensions}/apps
${INSTALL_DATA} ${WRKSRC}/resources/ultracopier-${dimensions}.png \
${STAGEDIR}${PREFIX}/share/icons/hicolor/${dimensions}/apps/ultracopier.png
.endfor
${INSTALL_DATA} ${WRKSRC}/resources/ultracopier.desktop \
${STAGEDIR}${DESKTOPDIR}
.include <bsd.port.mk>