Lines 6-12
Link Here
|
6 |
# |
6 |
# |
7 |
|
7 |
|
8 |
PORTNAME= qstardict |
8 |
PORTNAME= qstardict |
9 |
PORTVERSION= 0.08 |
9 |
PORTVERSION= 0.09 |
10 |
CATEGORIES= textproc |
10 |
CATEGORIES= textproc |
11 |
MASTER_SITES= http://qstardict.ylsoftware.com/files/ \ |
11 |
MASTER_SITES= http://qstardict.ylsoftware.com/files/ \ |
12 |
ftp://local-distfiles.freebsd.org.cn/pub/china-ports/hamigua/ |
12 |
ftp://local-distfiles.freebsd.org.cn/pub/china-ports/hamigua/ |
Lines 16-22
Link Here
|
16 |
|
16 |
|
17 |
USE_BZIP2= yes |
17 |
USE_BZIP2= yes |
18 |
USE_QT_VER= 4 |
18 |
USE_QT_VER= 4 |
19 |
QT_COMPONENTS= gui corelib qmake_build uic_build moc_build rcc_build |
19 |
QT_COMPONENTS= gui network xml qmake_build uic_build moc_build rcc_build |
|
|
20 |
QMAKE_ARGS+= -recursive SEPARATE_TRANSLATIONS=1 |
20 |
|
21 |
|
21 |
DICPATH= ${PREFIX}/share/stardict/dic |
22 |
DICPATH= ${PREFIX}/share/stardict/dic |
22 |
|
23 |
|
Lines 25-54
Link Here
|
25 |
OPTIONS= DBUS "Enable D-BUS support" on |
26 |
OPTIONS= DBUS "Enable D-BUS support" on |
26 |
|
27 |
|
27 |
.include <bsd.port.pre.mk> |
28 |
.include <bsd.port.pre.mk> |
|
|
29 |
|
28 |
.if defined(WITHOUT_NLS) |
30 |
.if defined(WITHOUT_NLS) |
29 |
QMAKE_ARGS+= NO_TRANSLATIONS=1 |
31 |
QMAKE_ARGS+= NO_TRANSLATIONS=1 |
|
|
32 |
PLIST_SUB+= NLS="@comment " |
33 |
.else |
34 |
PLIST_SUB+= NLS="" |
30 |
.endif |
35 |
.endif |
31 |
|
36 |
|
32 |
.if defined(WITHOUT_DBUS) |
37 |
.if defined(WITHOUT_DBUS) |
33 |
QMAKE_ARGS+= NO_DBUS=1 |
38 |
QMAKE_ARGS+= NO_DBUS=1 |
34 |
.else |
39 |
.else |
35 |
#QMAKE_ARGS+= "CONFIG+=qdbus" |
|
|
36 |
LIB_DEPENDS+= QtDBus.4:${PORTSDIR}/devel/dbus-qt4 |
40 |
LIB_DEPENDS+= QtDBus.4:${PORTSDIR}/devel/dbus-qt4 |
37 |
.endif |
41 |
.endif |
38 |
|
42 |
|
39 |
post-patch: |
43 |
post-patch: |
40 |
@${REINPLACE_CMD} -e "s|/usr|${PREFIX}|g" \ |
44 |
@${REINPLACE_CMD} -e "s|/usr|${PREFIX}|g" \ |
41 |
${WRKSRC}/qstardict.pro |
45 |
${WRKSRC}/qstardict.pri |
42 |
@${REINPLACE_CMD} -e "s|/usr/share/stardict/dic|${DICPATH}|g" \ |
46 |
@${REINPLACE_CMD} -e "s|/usr/share/stardict/dic|${DICPATH}|g" \ |
43 |
${WRKSRC}/src/dictcore.cpp |
47 |
${WRKSRC}/plugins/stardict/stardict.cpp |
44 |
|
48 |
|
45 |
post-configure: |
49 |
do-configure: |
46 |
cd ${BUILD_WRKSRC}; ${SETENV} ${MAKE_ENV} ${QMAKE} ${QMAKE_ARGS} |
50 |
cd ${BUILD_WRKSRC}; ${SETENV} ${MAKE_ENV} ${QMAKE} ${QMAKE_ARGS} |
47 |
|
51 |
|
|
|
52 |
post-configure: |
53 |
${FIND} ${WRKSRC} -name Makefile | ${XARGS} ${REINPLACE_CMD} -e \ |
54 |
's|^CC .*|CC=${CC}|; s|^CXX .*|CXX=${CXX}|; s|^LINK .*|LINK=${CXX}|' |
55 |
|
48 |
post-install: |
56 |
post-install: |
49 |
.if !defined(NOPORTDOCS) |
57 |
.if !defined(NOPORTDOCS) |
50 |
@${MKDIR} ${DOCSDIR} |
58 |
@${MKDIR} ${DOCSDIR} |
51 |
.for doc in AUTHORS COPYNG ChangeLog INSTALL README THANKS |
59 |
.for doc in ${PORTDOCS} |
52 |
@${INSTALL_DATA} ${WRKSRC}/${doc} ${DOCSDIR} |
60 |
@${INSTALL_DATA} ${WRKSRC}/${doc} ${DOCSDIR} |
53 |
.endfor |
61 |
.endfor |
54 |
.endif |
62 |
.endif |