aboutsummaryrefslogtreecommitdiffstats
path: root/devel/lincvs/Makefile
blob: beb253209c9f9e2d265e3ee86930511bb2ea15ca (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:    lincvs
# Date created:             03 December 1999
# Whom:                 Chris D. Faulhaber <jedgar@fxp.org>
#
# $FreeBSD$
#

PORTNAME=   lincvs
PORTVERSION=    1.4.2
PORTREVISION=   1
CATEGORIES= devel kde
MASTER_SITES=   http://lincvs.com/download/
DISTNAME=   ${PORTNAME}-${PORTVERSION}-0-generic-src
EXTRACT_SUFX=   .tgz

MAINTAINER= ports@FreeBSD.org
COMMENT=    Graphical CVS front-end using QT

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

USE_GMAKE=  yes
WRKSRC=     ${WRKDIR}/${PORTNAME}-${PORTVERSION}
USE_QT_VER= 3
QTDIR?=     ${QT_PREFIX}
MAKE_ENV+=  QTDIR=${QTDIR} QMAKESPEC=${LOCALBASE}/share/qt/mkspecs/freebsd-g++
ALL_TARGET= install

post-patch:
    @${REINPLACE_CMD} -e 's|%%PREFIX%%|${PREFIX}|' \
        ${WRKSRC}/src/main.cpp \
        ${WRKSRC}/src/lincvs.cpp

pre-build:
    cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} qmake lincvs.pro

do-install:
    ${INSTALL_PROGRAM} ${WRKSRC}/LinCVS/lincvs.bin ${PREFIX}/bin/lincvs
    ${INSTALL_SCRIPT} ${WRKSRC}/LinCVS/Tools/launch_emacs.sh ${PREFIX}/bin
    ${INSTALL_SCRIPT} ${WRKSRC}/LinCVS/Tools/launch_xemacs.sh ${PREFIX}/bin
    ${INSTALL_SCRIPT} ${WRKSRC}/LinCVS/Tools/start-ssh-agent.sh ${PREFIX}/bin
    ${MKDIR} ${DATADIR}/translation
    ${INSTALL_DATA} ${WRKSRC}/ts/*.qm ${DATADIR}/translation
.ifndef(NOPORTDOCS)
    ${MKDIR} ${DOCSDIR}
    ${CP} -R ${WRKSRC}/LinCVS/Help/* ${DOCSDIR}
.endif

.include <bsd.port.mk>