aboutsummaryrefslogtreecommitdiffstats
path: root/www/arora/Makefile
blob: 4b94832ed538b033ece6203a1e469b7404b3929d (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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
# New ports collection makefile for: arora
# Date created:         08 Aug 2008
# Whom:                 Andy Fawcett <andy@athame.co.uk>
#
# $FreeBSD$

PORTNAME=   arora
PORTVERSION=    0.11.0
CATEGORIES= www
MASTER_SITES=   GOOGLE_CODE

MAINTAINER= decept0@gmail.com
COMMENT=    Simple Qt4 based browser

USE_QT_VER= 4
QT_COMPONENTS=  network webkit qmake_build moc_build uic_build rcc_build \
        imageformats gui script sql
HAS_CONFIGURE=  yes
QMAKE_ARGS+=    -unix -recursive PREFIX=${PREFIX}
MAKE_JOBS_UNSAFE=   yes

MAN1=       arora.1 arora-cacheinfo.1 arora-placesimport.1 htmlToXBel.1

.if defined(WITHOUT_NLS)
PLIST_SUB+= NLS="@comment "
.else
QT_COMPONENTS+= linguist_build
PLIST_SUB+= NLS=""
.endif

do-configure:
.if defined(WITHOUT_NLS)
    @${REINPLACE_CMD} -e "/INSTALLS/s|translations||" \
        ${WRKSRC}/src/src.pro
    @${REINPLACE_CMD} -e "s|target_predeps||" \
        ${WRKSRC}/src/locale/locale.pri
.endif
    @${REINPLACE_CMD} -e "/INSTALLS/s|man man-compress||" \
        ${WRKSRC}/src/src.pro \
        ${WRKSRC}/tools/cacheinfo/cacheinfo.pro \
        ${WRKSRC}/tools/htmlToXBel/htmlToXBel.pro \
        ${WRKSRC}/tools/placesimport/placesimport.pro
    @${REINPLACE_CMD} -e "/else/s|lrelease|lrelease-qt4|" \
        ${WRKSRC}/src/locale/locale.pri
    @${REINPLACE_CMD} "/pkg-config/d" \
        ${WRKSRC}/src/src.pro
    @cd ${WRKSRC} && ${SETENV} ${CONFIGURE_ENV} ${QMAKE} ${QMAKE_ARGS}

post-configure:
    @${REINPLACE_CMD} -e \
        's|^CC .*|CC=${CC}|; s|^CXX .*|CXX=${CXX}|; s|^LINK .*|LINK=${CXX}|' \
        ${WRKSRC}/src/Makefile

post-install:
    ${INSTALL_MAN} ${WRKSRC}/src/data/arora.1 \
        ${WRKSRC}/tools/cacheinfo/data/arora-cacheinfo.1 \
        ${WRKSRC}/tools/htmlToXBel/data/htmlToXBel.1 \
        ${WRKSRC}/tools/placesimport/data/arora-placesimport.1 \
        ${PREFIX}/man/man1

.include <bsd.port.mk>