Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 7 Jan 2014 01:36:46 +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: r338971 - head/korean/nabi
Message-ID:  <201401070136.s071akFE049019@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: jkim
Date: Tue Jan  7 01:36:45 2014
New Revision: 338971
URL: http://svnweb.freebsd.org/changeset/ports/338971

Log:
  - Stagefy, convert to USES=gmake, convert LIB_DEPENDS to new format.
  - Use options framework to select the default keyboard layout.

Modified:
  head/korean/nabi/Makefile

Modified: head/korean/nabi/Makefile
==============================================================================
--- head/korean/nabi/Makefile	Tue Jan  7 01:33:35 2014	(r338970)
+++ head/korean/nabi/Makefile	Tue Jan  7 01:36:45 2014	(r338971)
@@ -11,29 +11,34 @@ COMMENT=	Hangul X Input Method for Every
 
 LICENSE=	GPLv2
 
-LIB_DEPENDS=	hangul:${PORTSDIR}/korean/libhangul
+LIB_DEPENDS=	libhangul.so:${PORTSDIR}/korean/libhangul
 
-USE_GMAKE=	yes
 USE_GNOME=	gtk20
 GNU_CONFIGURE=	yes
-USES=		pathfix pkgconfig
+USES=		gmake pathfix pkgconfig
+
+OPTIONS_DEFINE=	NLS
+OPTIONS_RADIO=	LAYOUT
+OPTIONS_RADIO_LAYOUT=	LAYOUT_390 LAYOUT_FINAL
+LAYOUT_DESC=	Select 3-beolsik layout (default: 2-beolsik)
+LAYOUT_390_DESC=	3-beolsik 390 keyboard
+LAYOUT_FINAL_DESC=	3-beolsik final keyboard
+OPTIONS_SUB=	NLS
 
-NO_STAGE=	yes
 .include <bsd.port.options.mk>
 
 .if ${PORT_OPTIONS:MNLS}
 USES+=		gettext
 CPPFLAGS+=	-I${LOCALBASE}/include
 LDFLAGS+=	-L${LOCALBASE}/lib
-PLIST_SUB=	NLS=""
-.else
-PLIST_SUB=	NLS="@comment "
 .endif
 
-.if defined(WITH_LAYOUT_390)
+.if ${PORT_OPTIONS:MLAYOUT_390}
 CONFIGURE_ARGS=	--with-default-keyboard=39
-.elif defined(WITH_LAYOUT_3FINAL)
+.elif ${PORT_OPTIONS:MLAYOUT_FINAL}
 CONFIGURE_ARGS=	--with-default-keyboard=3f
+.else
+CONFIGURE_ARGS=	--with-default-keyboard=2
 .endif
 
 .include <bsd.port.mk>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201401070136.s071akFE049019>