From owner-svn-ports-head@FreeBSD.ORG Fri Apr 4 13:22:15 2014 Return-Path: Delivered-To: svn-ports-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 5996EBA0; Fri, 4 Apr 2014 13:22:15 +0000 (UTC) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 460EAD90; Fri, 4 Apr 2014 13:22:15 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.8/8.14.8) with ESMTP id s34DMFLf099818; Fri, 4 Apr 2014 13:22:15 GMT (envelope-from bapt@svn.freebsd.org) Received: (from bapt@localhost) by svn.freebsd.org (8.14.8/8.14.8/Submit) id s34DMFL4099817; Fri, 4 Apr 2014 13:22:15 GMT (envelope-from bapt@svn.freebsd.org) Message-Id: <201404041322.s34DMFL4099817@svn.freebsd.org> From: Baptiste Daroussin Date: Fri, 4 Apr 2014 13:22:15 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r350112 - head/deskutils/xpad X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 04 Apr 2014 13:22:15 -0000 Author: bapt Date: Fri Apr 4 13:22:14 2014 New Revision: 350112 URL: http://svnweb.freebsd.org/changeset/ports/350112 QAT: https://qat.redports.org/buildarchive/r350112/ Log: Use options helpers Modified: head/deskutils/xpad/Makefile Modified: head/deskutils/xpad/Makefile ============================================================================== --- head/deskutils/xpad/Makefile Fri Apr 4 13:19:55 2014 (r350111) +++ head/deskutils/xpad/Makefile Fri Apr 4 13:22:14 2014 (r350112) @@ -13,29 +13,24 @@ COMMENT= Virtual note-pad system for you LICENSE= GPLv3 OPTIONS_DEFINE= NLS +OPTIONS_SUB= yes CONFLICTS_INSTALL= xpad-current-[0-9]* -USE_BZIP2= yes USE_XORG= x11 sm USE_GNOME= gtk20 gnomehier intltool -USES= pkgconfig gmake +USES= pkgconfig gmake tar:bzip2 INSTALLS_ICONS= yes GNU_CONFIGURE= yes -.include +NLS_USES= gettext +NLS_CPPFLAGS= ${CXXFLAGS} -I${LOCALBASE}/include +NLS_LDFLAGS= -L${LOCALBASE}/lib +NLS_CONFIGURE_ENABLE= nls -.if ${PORT_OPTIONS:MNLS} -USES+= gettext -PLIST_SUB+= NLS="" -CPPFLAGS+= ${CXXFLAGS} -I${LOCALBASE}/include -LDFLAGS+= -L${LOCALBASE}/lib -.else -CONFIGURE_ARGS+= --disable-nls -PLIST_SUB+= NLS="@comment " -.endif +.include -post-patch-script: +post-patch: .if ! ${PORT_OPTIONS:MNLS} @${REINPLACE_CMD} -e 's|SUBDIRS = autopackage doc src images po|SUBDIRS = autopackage doc src images|' \ ${WRKSRC}/Makefile.in