Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 9 Jun 2010 18:44:56 GMT
From:      Demelier David <demelier.david@gmail.com>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/147733: games/wormux: added two new options
Message-ID:  <201006091844.o59Iiuhi095287@www.freebsd.org>
Resent-Message-ID: <201006091850.o59Io2jW069920@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         147733
>Category:       ports
>Synopsis:       games/wormux: added two new options
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Jun 09 18:50:02 UTC 2010
>Closed-Date:
>Last-Modified:
>Originator:     Demelier David
>Release:        8.1-PRERELEASE
>Organization:
>Environment:
FreeBSD Melon.malikania.fr 8.1-PRERELEASE FreeBSD 8.1-PRERELEASE #0: Tue Jun  8 19:34:22 CEST 2010     root@Melon.malikania.fr:/usr/obj/usr/src/sys/Melon  amd64
>Description:
I added two new options for this port :

FRIBIDI : this is an optional dependency that adds support for text rendering.
SERVER : since 0.8.x versions, you can have a standalone headless server but this needs to enable --enable-servers at configure stage.
>How-To-Repeat:

>Fix:
--- Makefile.orig	2010-05-31 14:37:52.000000000 +0200
+++ Makefile	2010-06-09 20:28:33.000000000 +0200
@@ -7,7 +7,7 @@
 
 PORTNAME=	wormux
 DISTVERSION=	0.9.2.1
-PORTREVISION=	1
+PORTREVISION=	2
 CATEGORIES=	games
 MASTER_SITES=	http://download.gna.org/wormux/ \
 		http://download.gna.org/wormux/archive/
@@ -28,6 +28,12 @@
 MANCOMPRESSED=	no
 MAN6=	wormux.6
 
+OPTIONS+=       NLS "Native Language Support via gettext utilities" on \
+		FRIBIDI "Enable bi-directional unicode support" off \
+                SERVER "Enable dedicated server" off
+
+.include <bsd.port.options.mk>
+
 post-patch:
 	${REINPLACE_CMD} -e "s,-Werror,," ${WRKSRC}/Makefile.in \
 	${WRKSRC}/src/Makefile.in
@@ -43,4 +49,18 @@
 PLIST_SUB+=	NLS="@comment "
 .endif
 
+.if defined(WITH_SERVER)
+PLIST_SUB+=     SERVER=""
+CONFIGURE_ARGS+=        --enable-servers
+.else
+PLIST_SUB+=     SERVER="@comment "
+.endif
+
+.if defined(WITH_FRIBIDI)
+LIB_DEPENDS+=	fribidi:${PORTSDIR}/converters/fribidi
+CONFIGURE_ARGS+=	--enable-fribidi
+.else
+CONFIGURE_ARGS+=	--disable-fribidi
+.endif
+
 .include <bsd.port.mk>
--- pkg-plist.orig	2010-03-14 14:33:23.000000000 +0100
+++ pkg-plist	2010-06-09 19:56:39.000000000 +0200
@@ -1,5 +1,7 @@
 bin/wormux
 bin/wormux-list-games
+%%SERVER%%bin/wormux-index-server
+%%SERVER%%bin/wormux-server
 share/applications/wormux.desktop
 %%NLS%%share/locale/bg/LC_MESSAGES/wormux.mo
 %%NLS%%share/locale/bs/LC_MESSAGES/wormux.mo


>Release-Note:
>Audit-Trail:
>Unformatted:



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