2007-07-20 07:26:35 +02:00
|
|
|
# New ports collection makefile for: qstardict
|
|
|
|
# Date created: 12 Jul 2007
|
|
|
|
# Whom: Yinghong.Liu <relaxbsd@gmail.com>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= qstardict
|
2008-04-06 21:18:41 +02:00
|
|
|
PORTVERSION= 0.12.7
|
2008-06-06 16:17:21 +02:00
|
|
|
PORTREVISION= 1
|
2007-07-20 07:26:35 +02:00
|
|
|
CATEGORIES= textproc
|
|
|
|
MASTER_SITES= http://qstardict.ylsoftware.com/files/ \
|
|
|
|
ftp://local-distfiles.freebsd.org.cn/pub/china-ports/hamigua/
|
|
|
|
|
2008-03-16 20:46:15 +01:00
|
|
|
MAINTAINER= makc@issp.ac.ru
|
2007-07-20 07:26:35 +02:00
|
|
|
COMMENT= A StarDict clone written with using Qt4
|
|
|
|
|
|
|
|
USE_BZIP2= yes
|
|
|
|
USE_QT_VER= 4
|
2008-03-26 13:58:56 +01:00
|
|
|
QT_COMPONENTS= gui network xml qmake_build uic_build moc_build rcc_build
|
|
|
|
QMAKE_ARGS+= -recursive SEPARATE_TRANSLATIONS=1
|
2007-07-20 07:26:35 +02:00
|
|
|
|
2007-12-15 01:04:47 +01:00
|
|
|
DICPATH= ${PREFIX}/share/stardict/dic
|
2007-07-20 07:26:35 +02:00
|
|
|
|
|
|
|
PORTDOCS= AUTHORS COPYNG ChangeLog INSTALL README THANKS
|
|
|
|
|
2008-03-02 07:20:47 +01:00
|
|
|
OPTIONS= DBUS "Enable D-BUS support" on
|
|
|
|
|
|
|
|
.include <bsd.port.pre.mk>
|
2008-03-26 13:58:56 +01:00
|
|
|
|
2008-03-02 07:20:47 +01:00
|
|
|
.if defined(WITHOUT_NLS)
|
|
|
|
QMAKE_ARGS+= NO_TRANSLATIONS=1
|
2008-03-26 13:58:56 +01:00
|
|
|
PLIST_SUB+= NLS="@comment "
|
|
|
|
.else
|
|
|
|
PLIST_SUB+= NLS=""
|
2008-03-02 07:20:47 +01:00
|
|
|
.endif
|
|
|
|
|
|
|
|
.if defined(WITHOUT_DBUS)
|
|
|
|
QMAKE_ARGS+= NO_DBUS=1
|
|
|
|
.else
|
|
|
|
LIB_DEPENDS+= QtDBus.4:${PORTSDIR}/devel/dbus-qt4
|
|
|
|
.endif
|
|
|
|
|
2007-07-20 07:26:35 +02:00
|
|
|
post-patch:
|
|
|
|
@${REINPLACE_CMD} -e "s|/usr|${PREFIX}|g" \
|
2008-03-26 13:58:56 +01:00
|
|
|
${WRKSRC}/qstardict.pri
|
2007-07-20 07:26:35 +02:00
|
|
|
@${REINPLACE_CMD} -e "s|/usr/share/stardict/dic|${DICPATH}|g" \
|
2008-03-26 13:58:56 +01:00
|
|
|
${WRKSRC}/plugins/stardict/stardict.cpp
|
2007-07-20 07:26:35 +02:00
|
|
|
|
2008-03-26 13:58:56 +01:00
|
|
|
do-configure:
|
2008-03-02 07:20:47 +01:00
|
|
|
cd ${BUILD_WRKSRC}; ${SETENV} ${MAKE_ENV} ${QMAKE} ${QMAKE_ARGS}
|
2007-07-20 07:26:35 +02:00
|
|
|
|
2008-03-26 13:58:56 +01:00
|
|
|
post-configure:
|
|
|
|
${FIND} ${WRKSRC} -name Makefile | ${XARGS} ${REINPLACE_CMD} -e \
|
|
|
|
's|^CC .*|CC=${CC}|; s|^CXX .*|CXX=${CXX}|; s|^LINK .*|LINK=${CXX}|'
|
|
|
|
|
2007-07-20 07:26:35 +02:00
|
|
|
post-install:
|
|
|
|
.if !defined(NOPORTDOCS)
|
|
|
|
@${MKDIR} ${DOCSDIR}
|
2008-03-26 13:58:56 +01:00
|
|
|
.for doc in ${PORTDOCS}
|
2007-07-20 07:26:35 +02:00
|
|
|
@${INSTALL_DATA} ${WRKSRC}/${doc} ${DOCSDIR}
|
|
|
|
.endfor
|
|
|
|
.endif
|
|
|
|
@${CAT} ${PKGMESSAGE}
|
|
|
|
|
2008-03-02 07:20:47 +01:00
|
|
|
.include <bsd.port.post.mk>
|