aboutsummaryrefslogtreecommitdiffstats
path: root/korean/imhangul/Makefile
blob: 013c28cac071efa9a472f3d684a829aa673c459d (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
# Created by: Junho CHOI <junho.choi@gmail.com>
# $FreeBSD$

PORTNAME=   imhangul
PORTVERSION=    ${GTKVER}.1.1
PORTREVISION=   1
CATEGORIES= korean
MASTER_SITES=   GOOGLE_CODE

MAINTAINER= jkim@FreeBSD.org
COMMENT=    GTK+ Hangul input module

LICENSE=    GPLv2

LIB_DEPENDS=    libhangul.so:${PORTSDIR}/korean/libhangul

GNU_CONFIGURE=  yes
USES=       gmake libtool pkgconfig tar:bzip2

OPTIONS_DEFINE= GTK3 NLS

.include <bsd.port.options.mk>

.if ${PORT_OPTIONS:MGTK3}
USE_GNOME=  gtk30
GTKVER= 3
PLIST_SUB=  GTK2="@comment " GTK3=""
.else
USE_GNOME=  gtk20
GTKVER= 2
PLIST_SUB=  GTK2="" GTK3="@comment "
.endif
PLIST_SUB+= GTKVER="${GTKVER}.0"

.if ${PORT_OPTIONS:MNLS}
USES+=      gettext
CPPFLAGS+=  -I${LOCALBASE}/include
LDFLAGS+=   -L${LOCALBASE}/lib
PLIST_SUB+= NLS=""
.else
PLIST_SUB+= NLS="@comment "
.endif

.include <bsd.port.mk>