aboutsummaryrefslogtreecommitdiffstats
path: root/devel/libqxt/Makefile
blob: 97a5daa325fc35884100c06994ca9cac5f37961c (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
62
63
64
65
66
67
68
69
70
71
72
73
# Created by: gahr
# $FreeBSD$

PORTNAME=   libqxt
PORTVERSION=    0.6.2
PORTREVISION=   2
CATEGORIES= devel
MASTER_SITES=   http://dev.libqxt.org/libqxt/get/
DISTNAME=   v${PORTVERSION}

MAINTAINER= ports@FreeBSD.org
COMMENT=    Extension library for Qt

BROKEN=     unfetchable

BUILD_DEPENDS=  bash:shells/bash

USE_BDB=    44+
USES=       tar:bzip2
USE_QT4=    qmake_build moc_build rcc_build corelib gui gui \
        designer
USE_LDCONFIG=   ${PREFIX}/lib/qxt

QT_NONSTANDARD= yes
HAS_CONFIGURE=  yes
CONFIGURE_ARGS= -prefix ${PREFIX} \
        -libdir ${PREFIX}/lib/qxt \
        -qmake-bin ${QMAKE} \
        -featuredir ${PREFIX}/${QT_MKSPECDIR_REL}/features \
        -I ${BDB_INCLUDE_DIR} \
        -I ${LOCALBASE}/include/avahi-compat-libdns_sd \
        -L ${BDB_LIB_DIR} \
        -verbose
DESTDIRNAME=    INSTALL_ROOT

COMMIT=     dadc327c2a6a
WRKSRC=     ${WRKDIR}/${PORTNAME}-${PORTNAME}-${COMMIT}

PLIST_SUB+= SHVER_1=${PORTVERSION} \
        SHVER_2=${PORTVERSION:R} \
        SHVER_3=${PORTVERSION:R:R}

OPTIONS_DEFAULT=    AVAHI
OPTIONS_SINGLE=     ZEROCONF
OPTIONS_SINGLE_ZEROCONF=    AVAHI MDNSRESPONDER
AVAHI_LIB_DEPENDS=  libdns_sd.so:net/avahi-libdns
MDNSRESPONDER_LIB_DEPENDS=  libdns_sd.so:net/mDNSResponder

STRIP_FILES=    lib/qxt/lib*.so.${PORTVERSION} \
        ${QT_PLUGINDIR_REL}/designer/libQxtDesignerPlugins.so

post-patch:
    ${REINPLACE_CMD} -e '\
        s|/bin/bash|${LOCALBASE}/bin/bash|g; \
        /^QXT_MODULES/s|docs||g' \
        ${WRKSRC}/configure
    ${REINPLACE_CMD} -e \
        's,$$$$\[QT_INSTALL_PLUGINS\],${PREFIX}/${QT_PLUGINDIR_REL},' \
        ${WRKSRC}/src/designer/designer.pro
    ${REINPLACE_CMD} -e '\
        s|ldb|l${BDB_LIB_NAME} -L${BDB_LIB_DIR}|g; \
        /INCLUDEPATH/s|\.|${BDB_INCLUDE_DIR}|g' \
        ${WRKSRC}/config.tests/db/db.pro

regression-test:
    cd ${WRKSRC}/tests && \
        ${QMAKE} tests.pro && ${MAKE} && \
        ${FIND} unit -type f -perm -0755 -exec {} \;

post-install:
    ${STRIP_CMD} ${STRIP_FILES:S,^,${STAGEDIR}${PREFIX}/,}

.include <bsd.port.mk>