aboutsummaryrefslogtreecommitdiffstats
path: root/x11-toolkits/termit/Makefile
blob: 02135463af3f0908b9ca6c06995d87975ab10c8d (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
# New ports collection makefile for:    termit
# Date created:             2008/06/20
# Whom:                 chinsan
#
# $FreeBSD$
#

PORTNAME=   termit
PORTVERSION=    1.3.2
PORTREVISION=   3
CATEGORIES= x11-toolkits gnome
MASTER_SITES=   GOOGLE_CODE \
        LOCAL/chinsan/${PORTNAME}/

MAINTAINER= chinsan@FreeBSD.org
COMMENT=    Small terminal emulator

MAKE_JOBS_SAFE= yes

BUILD_DEPENDS=  vte:${PORTSDIR}/x11-toolkits/vte
RUN_DEPENDS=    ${BUILD_DEPENDS}

USE_BZIP2=  yes
USE_CMAKE=  yes
CMAKE_ARGS= -DCMAKE_INSTALL_PREFIX=${LOCALBASE}

.if !defined(WITHOUT_NLS)
USE_GETTEXT=    yes
PLIST_SUB+= NLS=""
CPPFLAGS+=  -I${LOCALBASE}/include
LDFLAGS+=   -L${LOCALBASE}/lib
CONFIGURE_ENV+= CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}"
.else
CMAKE_ARGS+=    -DENABLE_NLS:BOOL=false
PLIST_SUB+= NLS="@comment "
.endif

do-build:
    @(cd ${BUILD_WRKSRC}; \
    cmake ${CMAKE_ARGS} .; \
    ${MAKE})

post-patch:
.ifdef NOPORTDOCS
    @${REINPLACE_CMD} -e '1,3 d' ${WRKSRC}/doc/CMakeLists.txt
.endif

do-install:
    @(cd ${BUILD_WRKSRC}; \
    ${MAKE} install)

.include <bsd.port.mk>