freebsd-ports/textproc/goldendict-devel/Makefile
Boris Samorodov b1ced2b03b . fix build (add apropriate QT_COMPONENTS);
. fix pkg-plist by adding "@dirrmtry share/applications"
  (hm, that common directory doesn't seem belong to any *hier port).
2009-11-14 13:35:47 +00:00

48 lines
1.2 KiB
Makefile

# New ports collection makefile for: textproc/goldendict
# Date created: 2009-11-09
# Whom: bsam
#
# $FreeBSD$
#
PORTNAME= goldendict
PORTVERSION= 0.9.0
CATEGORIES= textproc
MASTER_SITES= BERLIOS
DISTNAME= ${PORTNAME}-${PORTVERSION}-src-x11
MAINTAINER= bsam@FreeBSD.org
COMMENT= A feature-rich dictionary lookup program (with QT lib)
LIB_DEPENDS= hunspell-1.2.0:${PORTSDIR}/hungarian/hunspell \
vorbis:${PORTSDIR}/audio/libvorbis
USE_BZIP2= yes
HAS_CONFIGURE= yes
USE_GNOME= pkgconfig
USE_QT_VER= 4
USE_QT4= linguist
QT_COMPONENTS= corelib gui webkit \
qmake_build linguist_build moc_build rcc_build script_build uic_build
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}-src
post-patch:
@${SED} -I.bak -e "s:/usr:${PREFIX}:" ${WRKSRC}/redist/goldendict.desktop
do-configure:
@cd ${WRKSRC} && ${SETENV} ${CONFIGURE_ENV} \
${QMAKE} -unix PREFIX=${PREFIX} INCLUDEPATH+=${LOCALBASE}/include \
LIBS+=-L${LOCALBASE}/lib ${PORTNAME}.pro
post-install:
@${MKDIR} ${DATADIR}/locale
@${INSTALL_DATA} ${WRKSRC}/locale/ru.qm ${DATADIR}/locale/
.include <bsd.port.pre.mk>
.if ${OSVERSION}<800067
IGNORE= wcscasecmp() id not implemented
.endif
.include <bsd.port.post.mk>