Date: Fri, 21 Jun 2013 23:40:28 +0000 (UTC) From: Jung-uk Kim <jkim@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r321507 - head/korean/imhangul Message-ID: <201306212340.r5LNeSZj086618@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: jkim Date: Fri Jun 21 23:40:27 2013 New Revision: 321507 URL: http://svnweb.freebsd.org/changeset/ports/321507 Log: Add an option to build with GTK+ 3.0. Modified: head/korean/imhangul/Makefile head/korean/imhangul/distinfo head/korean/imhangul/pkg-plist Modified: head/korean/imhangul/Makefile ============================================================================== --- head/korean/imhangul/Makefile Fri Jun 21 22:46:12 2013 (r321506) +++ head/korean/imhangul/Makefile Fri Jun 21 23:40:27 2013 (r321507) @@ -2,32 +2,51 @@ # $FreeBSD$ PORTNAME= imhangul -PORTVERSION= 2.1.1 +PORTVERSION= ${GTKVER}.1.1 CATEGORIES= korean -MASTER_SITES= ${MASTER_SITE_GOOGLE_CODE} +MASTER_SITES= GOOGLE_CODE MAINTAINER= jkim@FreeBSD.org -COMMENT= GTK+-2.0 Hangul input module +COMMENT= GTK+ Hangul input module LICENSE= GPLv2 -LIB_DEPENDS= hangul.1:${PORTSDIR}/korean/libhangul +LIB_DEPENDS= hangul:${PORTSDIR}/korean/libhangul USE_AUTOTOOLS= libtool USE_BZIP2= yes USE_GMAKE= yes -USE_GNOME= gtk20 GNU_CONFIGURE= yes +USES= 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 -LDFLAGS+= -L${LOCALBASE}/lib CPPFLAGS+= -I${LOCALBASE}/include +LDFLAGS+= -L${LOCALBASE}/lib PLIST_SUB+= NLS="" .else PLIST_SUB+= NLS="@comment " .endif +.if ${PORT_OPTIONS:MGTK3} +post-install: + @${LOCALBASE}/bin/gtk-query-immodules-3.0 > \ + ${LOCALBASE}/lib/gtk-3.0/${GTK3_VERSION}/immodules.cache +.endif + .include <bsd.port.mk> Modified: head/korean/imhangul/distinfo ============================================================================== --- head/korean/imhangul/distinfo Fri Jun 21 22:46:12 2013 (r321506) +++ head/korean/imhangul/distinfo Fri Jun 21 23:40:27 2013 (r321507) @@ -1,2 +1,4 @@ SHA256 (imhangul-2.1.1.tar.bz2) = b4860b718b2775ce1e298e80004d5d7b5ac89faa75b30654e51d325643a02e19 SIZE (imhangul-2.1.1.tar.bz2) = 288452 +SHA256 (imhangul-3.1.1.tar.bz2) = 24f103e55c38f2cd4b708398106ac19760e2ef1834513f46f32b0baf439461e0 +SIZE (imhangul-3.1.1.tar.bz2) = 288236 Modified: head/korean/imhangul/pkg-plist ============================================================================== --- head/korean/imhangul/pkg-plist Fri Jun 21 22:46:12 2013 (r321506) +++ head/korean/imhangul/pkg-plist Fri Jun 21 23:40:27 2013 (r321507) @@ -1,7 +1,10 @@ -lib/gtk-2.0/immodules/im-hangul.a -lib/gtk-2.0/immodules/im-hangul.la -lib/gtk-2.0/immodules/im-hangul.so -%%NLS%%share/locale/ko/LC_MESSAGES/im-hangul.mo -@exec %D/bin/gtk-query-immodules-2.0 > %D/etc/gtk-2.0/gtk.immodules -@unexec %D/bin/gtk-query-immodules-2.0 > %D/etc/gtk-2.0/gtk.immodules -@dirrmtry lib/gtk-2.0/immodules +lib/gtk-%%GTKVER%%/immodules/im-hangul.a +lib/gtk-%%GTKVER%%/immodules/im-hangul.la +lib/gtk-%%GTKVER%%/immodules/im-hangul.so +%%GTK2%%%%NLS%%share/locale/ko/LC_MESSAGES/im-hangul.mo +%%GTK2%%@exec %D/bin/gtk-query-immodules-2.0 > %D/etc/gtk-2.0/gtk.immodules +%%GTK2%%@unexec %D/bin/gtk-query-immodules-2.0 > %D/etc/gtk-2.0/gtk.immodules +%%GTK3%%%%NLS%%share/locale/ko/LC_MESSAGES/im-hangul-3.0.mo +%%GTK3%%@exec %D/bin/gtk-query-immodules-3.0 > %D/lib/gtk-3.0/%%GTK3_VERSION%%/immodules.cache +%%GTK3%%@unexec %D/bin/gtk-query-immodules-3.0 > %D/lib/gtk-3.0/%%GTK3_VERSION%%/immodules.cache +@dirrmtry lib/gtk-%%GTKVER%%/immodules
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201306212340.r5LNeSZj086618>