From owner-svn-ports-all@FreeBSD.ORG Thu Dec 13 07:50:29 2012 Return-Path: Delivered-To: svn-ports-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 1B3A7234; Thu, 13 Dec 2012 07:50:29 +0000 (UTC) (envelope-from bapt@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) by mx1.freebsd.org (Postfix) with ESMTP id D62C38FC12; Thu, 13 Dec 2012 07:50:28 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.5/8.14.5) with ESMTP id qBD7oS5t079189; Thu, 13 Dec 2012 07:50:28 GMT (envelope-from bapt@svn.freebsd.org) Received: (from bapt@localhost) by svn.freebsd.org (8.14.5/8.14.5/Submit) id qBD7oS5B079188; Thu, 13 Dec 2012 07:50:28 GMT (envelope-from bapt@svn.freebsd.org) Message-Id: <201212130750.qBD7oS5B079188@svn.freebsd.org> From: Baptiste Daroussin Date: Thu, 13 Dec 2012 07:50:28 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r308827 - head/games/hex-a-hop X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 13 Dec 2012 07:50:29 -0000 Author: bapt Date: Thu Dec 13 07:50:28 2012 New Revision: 308827 URL: http://svnweb.freebsd.org/changeset/ports/308827 Log: Convert to new options framework Modified: head/games/hex-a-hop/Makefile Modified: head/games/hex-a-hop/Makefile ============================================================================== --- head/games/hex-a-hop/Makefile Thu Dec 13 07:47:28 2012 (r308826) +++ head/games/hex-a-hop/Makefile Thu Dec 13 07:50:28 2012 (r308827) @@ -1,9 +1,5 @@ -# New ports collection makefile for: hex-a-hop -# Date created: 21 February 2006 -# Whom: jamie -# +# Created by: jamie # $FreeBSD$ -# PORTNAME= hex-a-hop PORTVERSION= 1.1.0 @@ -21,20 +17,22 @@ CPPFLAGS+= -I${LOCALBASE}/include CFLAGS+= -I${LOCALBASE}/include LDFLAGS+= -L${LOCALBASE}/lib -OPTIONS= PANGO "Use sdl_pango instead of sdl_ttf" off \ - SOUND "Compile sound support" on +OPTIONS_DEFINE= PANGO SOUND NLS DEBUG +OPTIONS_DEFAULT= SOUND +PANGO_DESC= Use sdl_pango instead of sdl_ttf +SOUND_DESC= Sound support DESKTOP_ENTRIES="Hex-a-Hop" "A puzzle game based on hexagonal tiles" \ "${DATADIR}/icon.bmp" \ "hex-a-hop" "Application;LogicGame;Game;" false -.include +.include -.if !defined(WITH_DEBUG) +.if ! ${PORT_OPTIONS:MDEBUG} CONFIGURE_ARGS+=--disable-debug .endif -.if !defined(WITHOUT_NLS) +.if ${PORT_OPTIONS:MNLS} USE_GETTEXT= yes CONFIGURE_ENV+= ac_cv_header_libintl_h=yes LDFLAGS+= -lintl @@ -42,14 +40,14 @@ LDFLAGS+= -lintl CONFIGURE_ENV+= ac_cv_header_libintl_h=no .endif -.if !defined(WITHOUT_PANGO) +.if ${PORT_OPTIONS:MPANGO} USE_SDL+= pango CONFIGURE_ARGS+=--disable-sdlttf .else USE_SDL+= ttf .endif -.if !defined(WITHOUT_SOUND) +.if ${PORT_OPTIONS:MSOUND} USE_SDL+= mixer .else CONFIGURE_ARGS+=--disable-sound @@ -58,4 +56,4 @@ CONFIGURE_ARGS+=--disable-sound post-patch: .SILENT ${REINPLACE_CMD} -E '/CFLAGS|CXXFLAGS/s/-g//' ${WRKSRC}/configure -.include +.include