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

PORTNAME=   sakura
PORTVERSION=    2.3.3
PORTREVISION=   4
CATEGORIES= x11-toolkits gnome
MASTER_SITES=   http://www.pleyades.net/david/projects/sakura/ \
        LOCAL/chinsan/${PORTNAME}/

MAINTAINER= ports@FreeBSD.org
COMMENT=    A terminal emulator based on GTK and VTE

USE_CMAKE=  yes
USE_GNOME=  vte
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
CONFIGURE_ARGS+=--disable-nls
PLIST_SUB+= NLS="@comment "
.endif

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

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

.include <bsd.port.mk>