aboutsummaryrefslogtreecommitdiffstats
path: root/devel/linguist/Makefile
blob: 028dc1f64ac9cb0bd76236144495a3885b8287a3 (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
# New ports collection makefile for:    linguist
# Date created:             31 October 2000
# Whom:                 Maxim Sobolev <sobomax@FreeBSD.org>
#
# $FreeBSD$
#

PORTNAME=   linguist
PORTVERSION=    0.0
CATEGORIES= devel
MASTER_SITES=   ftp://ftp.trolltech.com/qt/pre-releases/
DISTNAME=   ${PORTNAME}-pre

MAINTAINER= sobomax@FreeBSD.org

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

WRKSRC=     ${WRKDIR}/${PORTNAME}

USE_QT_VER= 2
USE_X_PREFIX=   yes
USE_GMAKE=  yes
HAS_CONFIGURE=  yes
CONFIGURE_ENV=  TMAKEPATH="${LOCALBASE}/share/tmake/freebsd-g++" \
        QTDIR="${X11BASE}"
MAKE_ENV=   TMAKEPATH="${LOCALBASE}/share/tmake/freebsd-g++" \
        QTDIR="${X11BASE}"
MAKE_ARGS=  -e

.include <bsd.port.pre.mk>

.if ${MACHINE_ARCH} == "alpha"
CFLAGS+=    -O0
.endif

post-configure:
    @${PERL} -pi -e 's|\$\(SUBDIRS\):.*tmake_all|\$\(SUBDIRS\):|' \
        ${WRKSRC}/Makefile
    @find ${WRKSRC} -name "Makefile" -type f | xargs ${PERL} -pi -e \
        's|TARGET.*=.*\$\(QTDIR\)/bin/|TARGET=|'

do-install:
.for file in linguist lrelease lupdate qm2ts
    ${INSTALL_PROGRAM} ${WRKSRC}/${file}/${file} ${PREFIX}/bin
.endfor
    ${MKDIR} ${PREFIX}/share/doc/linguist
    ${INSTALL_MAN} ${WRKSRC}/linguist/tutorial/doc/html/* ${PREFIX}/share/doc/linguist

.include <bsd.port.post.mk>