aboutsummaryrefslogtreecommitdiffstats
path: root/textproc/sigil/Makefile
blob: e1ccc4e66a70e080a8d896cb31b05122ab8b2cbf (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
# New ports collection makefile for:    sigil
# Date created:     2010-09-07
# Whom:         Jonathan Chen <jonc@chen.org.nz>
#
# $FreeBSD$
#

PORTNAME=   sigil
PORTVERSION=    0.5.3
PORTREVISION=   1
CATEGORIES= textproc
MASTER_SITES=   ${MASTER_SITE_GOOGLE_CODE}
DISTNAME=   Sigil-${PORTVERSION}-Code

MAINTAINER= jonc@chen.org.nz
COMMENT=    WYSIWYG ePub editor

LIB_DEPENDS=    boost_thread.4:${PORTSDIR}/devel/boost-libs \
        xerces-c.3:${PORTSDIR}/textproc/xerces-c3 \
        hunspell-1.3.0:${PORTSDIR}/textproc/hunspell \
        pcre.1:${PORTSDIR}/devel/pcre

USE_ZIP=    yes
USE_CMAKE=  yes
USE_DOS2UNIX=   CMakeLists.txt DirEnumerator.cpp ZipFile_stl.cpp ZipPlatform_lnx.cpp
USE_QT_VER= 4
NO_WRKSUBDIR=   yes
QT_COMPONENTS=  qmake gui svg webkit xml moc uic rcc imageformats linguist

DESKTOP_ENTRIES="Sigil Editor" \
        "${COMMENT}" \
        "${PREFIX}/share/pixmaps/sigil.png" \
        "sigil" \
        "Application;" \
        ${FALSE}

post-patch:
    @${REINPLACE_CMD} -e 's|%%LOCALBASE%%|${LOCALBASE}|' ${WRKSRC}/CMakeLists.txt

.include <bsd.port.pre.mk>

.if ${OSVERSION} < 700000
BROKEN=     does not compile on 6.X
.endif

.include <bsd.port.post.mk>