1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-21 08:42:23 +00:00
freebsd-ports/math/speedcrunch/Makefile
Edwin Groothuis 090059a210 Bump portrevision due to upgrade of devel/gettext.
The affected ports are the ones with gettext as a run-dependency
according to ports/INDEX-7 (5007 of them) and the ones with USE_GETTEXT
in Makefile (29 of them).

PR:             ports/124340
Submitted by:   edwin@
Approved by:    portmgr (pav)
2008-06-06 14:17:21 +00:00

65 lines
1.6 KiB
Makefile

# New ports collection makefile for: speedcrunch
# Date created: 27 Jul 2007
# Whom: Yinghong.Liu <relaxbsd@gmail.com>
#
# $FreeBSD$
#
PORTNAME= speedcrunch
DISTVERSION= 0.8
PORTREVISION= 2
CATEGORIES= math
MASTER_SITES= ${MASTER_SITE_GOOGLE_CODE}
MAINTAINER= ports@FreeBSD.org
COMMENT= A desktop calculator for power users
USE_QT_VER= 4
QT_COMPONENTS= qmake_build moc_build rcc_build gui
USE_CMAKE= yes
CMAKE_SOURCE_PATH= src
CMAKE_USE_PTHREAD= yes
MYPORTDOCS= COPYING ChangeLog HACKING.txt INSTALL.txt LISEZMOI PACKAGERS README \
TRANSLATORS doc/man.docbook doc/speedcrunch.docbook
.if !defined(WITHOUT_NLS)
PLIST_SUB+= NLS=""
.else
PLIST_SUB+= NLS="@comment "
.endif
DESKTOP_ENTRIES= "SpeedCrunch" \
"A desktop calculator for power users" \
"crunch" \
"speedcrunch" \
"Qt;KDE;Education;Math;" \
"false"
post-patch:
@${REINPLACE_CMD} -e 's|qwindowdefs.h|QtGui/qwindowdefs.h|g' \
-e 's|qcolor.h|QtGui/qcolor.h|g' \
-e 's|qfont.h|QtGui/qfont.h|g' \
-e 's|qrect.h|QtCore/qrect.h|g' \
-e 's|qstring.h|QtCore/qstring.h|g' \
-e 's|qstringlist.h|QtCore/qstringlist.h|g' \
${WRKSRC}/src/settings.h
@${REINPLACE_CMD} -e 's|crunch\"|speedcrunch\"|g' \
${WRKSRC}/src/main.cpp
do-install:
@${INSTALL_PROGRAM} ${WRKSRC}/speedcrunch ${PREFIX}/bin
@${INSTALL_DATA} ${WRKSRC}/src/crunch.png ${PREFIX}/share/pixmaps
.if !defined(WITHOUT_NLS)
@${MKDIR} ${DATADIR}
@${INSTALL_DATA} ${WRKSRC}/src/*.qm ${DATADIR}
.endif
.if !defined(NOPORTDOCS)
@${MKDIR} ${DOCSDIR}
.for doc in ${MYPORTDOCS}
@${INSTALL_DATA} ${WRKSRC}/${doc} ${DOCSDIR}
.endfor
.endif
.include <bsd.port.mk>