freebsd-ports/korean/imhangul/Makefile
Antoine Brodin 7f55a2faa9 With gtk 2.4.22, immodule cache has moved from gtk.immodules to
immodules.cache.  gtk-query-immodules-2.0 has a new option,
--update-cache that does what we want too.
Use this new option.
While here, add stage support to non slave ports

Reviewed by:	kwm (immodules part)
2014-01-04 23:27:58 +00:00

46 lines
809 B
Makefile

# Created by: Junho CHOI <junho.choi@gmail.com>
# $FreeBSD$
PORTNAME= imhangul
PORTVERSION= ${GTKVER}.1.1
CATEGORIES= korean
MASTER_SITES= GOOGLE_CODE
MAINTAINER= jkim@FreeBSD.org
COMMENT= GTK+ Hangul input module
LICENSE= GPLv2
LIB_DEPENDS= hangul:${PORTSDIR}/korean/libhangul
USE_AUTOTOOLS= libtool
USE_BZIP2= yes
GNU_CONFIGURE= yes
USES= gmake pkgconfig
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>