blob: 6b72fcff3526bdb11ade585e5146cc16f9a9c043 (
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
|
# New ports collection makefile for: qstardict
# Date created: 12 Jul 2007
# Whom: Yinghong.Liu <relaxbsd@gmail.com>
#
# $FreeBSD$
#
PORTNAME= qstardict
PORTVERSION= 1.0.1
CATEGORIES= textproc
MASTER_SITES= http://qstardict.ylsoftware.com/files/
MAINTAINER= makc@FreeBSD.org
COMMENT= Dictionary program written in Qt4
USE_BZIP2= yes
USE_QT4= gui network xml qmake_build uic_build moc_build rcc_build
QMAKE_ARGS+= -recursive
USE_DOS2UNIX= qstardict.pri
DICPATH= ${LOCALBASE}/share/stardict/dic
OPTIONS_DEFINE= DBUS DOCS NLS
OPTIONS_DEFAULT= ${OPTIONS_DEFINE}
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MNLS}
PLIST_SUB+= NLS=""
.else
QMAKE_ARGS+= NO_TRANSLATIONS=1
PLIST_SUB+= NLS="@comment "
.endif
.if ${PORT_OPTIONS:MDBUS}
USE_QT4+= dbus
.else
QMAKE_ARGS+= NO_DBUS=1
.endif
post-patch:
@${REINPLACE_CMD} -e "s|/usr|${PREFIX}|g" \
${WRKSRC}/qstardict.pri
.if !${PORT_OPTIONS:MDOCS}
@${REINPLACE_CMD} -e "/^INSTALLS/s|docs||g" \
${WRKSRC}/qstardict.pro
.endif
@${REINPLACE_CMD} -e "s|/usr/share/stardict/dic|${DICPATH}|g" \
-e "s|glib.*\.h|glib.h|g" \
${WRKSRC}/plugins/stardict/stardict.cpp
do-configure:
cd ${BUILD_WRKSRC}; ${SETENV} ${MAKE_ENV} ${QMAKE} ${QMAKE_ARGS} ${QMAKEFLAGS}
post-install:
@${CAT} ${PKGMESSAGE}
.include <bsd.port.mk>
|