blob: 8d47f4f2696cc8fe4bade8a5aa005fb4f0c0bcdc (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
|
# New ports collection makefile for: speedcrunch
# Date created: 27 Jul 2007
# Whom: Yinghong.Liu <relaxbsd@gmail.com>
#
# $FreeBSD$
#
PORTNAME= speedcrunch
DISTVERSION= 0.8
PORTREVISION= 1
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>
|