aboutsummaryrefslogtreecommitdiffstats
path: root/devel/crossvc/Makefile
blob: efb3a70711c7ad7af487162ce48187ae4d5aed78 (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
# New ports collection makefile for:   crossvc
# Date created:        1 October 2007
# Whom:                Pietro Cerutti (gahr@gahr.ch)
#
# $FreeBSD$

PORTNAME=   crossvc
PORTVERSION=    1.5.2
CATEGORIES= devel
MASTER_SITES=   http://lincvs.com/download/
DISTNAME=   ${PORTNAME}-${PORTVERSION}-0-generic-src
EXTRACT_SUFX=   .tgz

MAINTAINER= gahr@FreeBSD.org
COMMENT=    Cross-platform Version Control

BUILD_DEPENDS=  qmake:${PORTSDIR}/devel/qmake

USE_QT_VER= 3

WRKSRC=     ${WRKDIR}/CrossVC

SUB_FILES=  crossvc

QMAKE?=     ${QT_PREFIX}/bin/qmake
QTDIR?=     ${QT_PREFIX}

CONFIGURE_ENV=  QMAKESPEC="${LOCALBASE}/share/qt/mkspecs/freebsd-g++"
MAKE_ENV=   QTDIR="${QTDIR}"

do-configure:
    @cd ${WRKSRC} && ${SETENV} ${CONFIGURE_ENV} \
    ${QMAKE} -o Makefile lincvs.pro

post-install:
.if !defined(NOPORTDOCS)
    ${MKDIR} ${DOCSDIR}
    (cd ${WRKSRC}/CrossVC/Help/ && ${COPYTREE_SHARE} \* ${DOCSDIR}/)
.endif
    ${MKDIR} ${DATADIR}
    (cd ${WRKSRC}/CrossVC/ && ${COPYTREE_SHARE} Tools ${DATADIR}/)
    (cd ${WRKSRC}/CrossVC/ && ${COPYTREE_SHARE} Messages ${DATADIR}/)
    ${INSTALL_PROGRAM} ${WRKSRC}/CrossVC/crossvc.bin ${DATADIR}/
    ${INSTALL_SCRIPT} ${WRKSRC}/CrossVC/AppRun ${DATADIR}/
    ${INSTALL_SCRIPT} ${WRKDIR}/crossvc ${PREFIX}/bin
    ${STRIP_CMD} ${DATADIR}/crossvc.bin

.include <bsd.port.mk>