aboutsummaryrefslogtreecommitdiffstats
path: root/devel/qdevelop/Makefile
blob: 4d74895de3fc7541d421b18c273c6cebb073de3b (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
74
75
# New ports collection makefile for:    qdevelop
# Date created:             4 Jul 2007
# Whom:                 Yinghong.Liu <liu_yinghong@yahoo.com.cn>
#
# $FreeBSD$
#

PORTNAME=   qdevelop
PORTVERSION=    0.23.1
PORTREVISION=   1
CATEGORIES= devel kde
MASTER_SITES=   http://qdevelop.org/download/ \
        ftp://local-distfiles.freebsd.org.cn/pub/china-ports/hamigua/
DISTNAME=   QDevelop-${PORTVERSION:C/.([0-9])$/-\1/}

MAINTAINER= relaxbsd@gmail.com
COMMENT=    A development environment entirely dedicated to Qt4

BUILD_DEPENDS=  cmake:${PORTSDIR}/devel/cmake
RUN_DEPENDS=    exctags:${PORTSDIR}/devel/ctags \
        qt4-sqlite-plugin>=0:${PORTSDIR}/databases/qt4-sqlite3-plugin

CMAKE_ARGS= -DCMAKE_BUILD_TYPE:STRING=Release \
        -DCMAKE_C_COMPILER:STRING='${CC}' \
        -DCMAKE_CXX_COMPILER:STRING=${CXX} \
        -DCMAKE_CXX_FLAGS:STRING="${CXXFLAGS} -pthread" \
        -DCMAKE_INSTALL_PREFIX=${PREFIX}

USE_ZIP=    yes
USE_QT_VER= 4
QT_COMPONENTS=  qmake moc uic rcc sql network xml gui corelib assistant linguist designer

DESKTOP_ENTRIES=    "QDevelop" \
            "A development environment entirely dedicated to Qt4" \
            "QDevelop" \
            "QDevelop" \
            "Qt;KDE;Development;" \
            "false"

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

post-patch:
    @${REINPLACE_CMD} -e "s|\"qmake\"|\"qmake-qt4\"|g" \
        -e "s|\"linguist\"|\"linguist-qt4\"|g" \
        -e "s|\"lupdate\"|\"lupdate-qt4\"|g" \
        -e "s|\"lrelease\"|\"lrelease-qt4\"|g" \
        -e "s|\"designer\"|\"designer-qt4\"|g" \
        -e "s|\"assistant\"|\"assistant-qt4\"|g" \
        -e "s|\"/usr/bin/make\"|\"${LOCALBASE}/bin/gmake\"|g" \
        -e "s|\"/usr/bin/ctags\"|\"${LOCALBASE}/bin/exctags\"|g" \
        ${WRKSRC}/src/toolscontrolimpl.cpp

do-configure:
    @(cd ${WRKSRC}; \
    ${SETENV} ${CONFIGURE_ENV} ${LOCALBASE}/bin/cmake ${CMAKE_ARGS} ${WRKSRC})

do-install:
    @${INSTALL_PROGRAM} ${WRKSRC}/QDevelop ${PREFIX}/bin
    @${INSTALL_DATA} ${WRKSRC}/resources/images/logo.png ${PREFIX}/share/pixmaps/QDevelop.png
.if !defined(WITHOUT_NLS)
    @${MKDIR} ${DATADIR}
    (cd ${WRKSRC}/resources/translations/ && ${COPYTREE_SHARE} '*.qm' ${DATADIR}/translations)
.endif
.if !defined(NOPORTDOCS)
    @${MKDIR} ${DOCSDIR}
.for doc in ChangeLog.txt README.txt README.cmake copying
    @${INSTALL_DATA} ${WRKSRC}/${doc} ${DOCSDIR}
.endfor
.endif

.include <bsd.port.mk>