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
|
2009-02-12 20:36:17 +01:00
|
|
|
PORTVERSION= 0.13.1
|
2010-03-28 08:47:48 +02:00
|
|
|
PORTREVISION= 1
|
2007-07-20 07:26:35 +02:00
|
|
|
CATEGORIES= textproc
|
2009-02-12 20:36:17 +01:00
|
|
|
MASTER_SITES= http://qstardict.ylsoftware.com/files/
|
2007-07-20 07:26:35 +02:00
|
|
|
|
2009-02-12 20:36:17 +01:00
|
|
|
MAINTAINER= makc@FreeBSD.org
|
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
|
2009-02-12 20:36:17 +01:00
|
|
|
QMAKE_ARGS+= -recursive
|
2008-06-19 01:52:36 +02:00
|
|
|
USE_DOS2UNIX= qstardict.pri
|
2007-07-20 07:26:35 +02:00
|
|
|
|
2009-02-12 20:36:17 +01:00
|
|
|
DICPATH= ${LOCALBASE}/share/stardict/dic
|
2007-07-20 07:26:35 +02:00
|
|
|
|
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
|
2009-02-12 20:36:17 +01:00
|
|
|
.if defined(NOPORTDOCS)
|
2008-06-19 01:52:36 +02:00
|
|
|
@${REINPLACE_CMD} -e "/^INSTALLS/s|docs||g" \
|
|
|
|
${WRKSRC}/qstardict.pro
|
2009-02-12 20:36:17 +01:00
|
|
|
.endif
|
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:
|
|
|
|
@${CAT} ${PKGMESSAGE}
|
|
|
|
|
2008-03-02 07:20:47 +01:00
|
|
|
.include <bsd.port.post.mk>
|