From nobody@FreeBSD.org  Tue Jan  4 05:11:32 2011
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id BFC8A106566B
	for <freebsd-gnats-submit@FreeBSD.org>; Tue,  4 Jan 2011 05:11:32 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from red.freebsd.org (unknown [IPv6:2001:4f8:fff6::22])
	by mx1.freebsd.org (Postfix) with ESMTP id 9558D8FC08
	for <freebsd-gnats-submit@FreeBSD.org>; Tue,  4 Jan 2011 05:11:32 +0000 (UTC)
Received: from red.freebsd.org (localhost [127.0.0.1])
	by red.freebsd.org (8.14.4/8.14.4) with ESMTP id p045BWUh046244
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 4 Jan 2011 05:11:32 GMT
	(envelope-from nobody@red.freebsd.org)
Received: (from nobody@localhost)
	by red.freebsd.org (8.14.4/8.14.4/Submit) id p045BWGD046243;
	Tue, 4 Jan 2011 05:11:32 GMT
	(envelope-from nobody)
Message-Id: <201101040511.p045BWGD046243@red.freebsd.org>
Date: Tue, 4 Jan 2011 05:11:32 GMT
From: Gleb Sushko <neuroworker@gmail.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: games/instead fix
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         153670
>Category:       ports
>Synopsis:       games/instead fix
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    amdmi3
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          maintainer-update
>Submitter-Id:   current-users
>Arrival-Date:   Tue Jan 04 05:20:09 UTC 2011
>Closed-Date:    Thu Jan 06 14:43:23 UTC 2011
>Last-Modified:  Thu Jan  6 14:50:05 UTC 2011
>Originator:     Gleb Sushko
>Release:        
>Organization:
>Environment:
>Description:
Fixes build with iconv.
>How-To-Repeat:

>Fix:
diff -ruN old/Makefile instead/Makefile
--- old/Makefile	2010-12-27 19:15:19.000000000 +0700
+++ instead/Makefile	2011-01-04 12:05:41.000000000 +0700
@@ -6,6 +6,7 @@
 
 PORTNAME=	instead
 PORTVERSION=	1.3.1
+PORTREVISION=	2
 CATEGORIES=	games
 MASTER_SITES=	GOOGLE_CODE \
 		http://209.44.102.205/FreeBSD/distfiles/
diff -ruN old/files/patch-configure instead/files/patch-configure
--- old/files/patch-configure	2010-12-27 19:15:19.000000000 +0700
+++ instead/files/patch-configure	2011-01-04 12:05:19.000000000 +0700
@@ -1,5 +1,5 @@
---- configure.sh	2010-10-12 19:06:42.000000000 +0800
-+++ configure.sh	2010-12-24 02:55:29.000000000 +0700
+--- configure.sh.orig	2010-10-12 19:06:42.000000000 +0800
++++ configure.sh	2011-01-04 12:04:35.000000000 +0700
 @@ -1,4 +1,4 @@
 -#!/bin/bash
 +#!/bin/sh
@@ -35,7 +35,40 @@
  fi
  
  
-@@ -140,20 +140,20 @@
+@@ -109,30 +109,8 @@
+ echo "ok"
+ rm -f /tmp/sdl-test.c /tmp/sdl-test
+ 
+-cat << EOF >/tmp/iconv-test.c
+-#include <iconv.h>
+-int main(int argc, char **argv)
+-{
+-	iconv_open("","");
+-}
+-EOF
+-echo $cc
+-echo -n "Checking iconv...("
+-echo -n "$cc /tmp/iconv-test.c -o iconv-test)..."
+-if ! $cc /tmp/iconv-test.c -o /tmp/iconv-test; then
+-	if ! $cc /tmp/iconv-test.c -liconv -o /tmp/iconv-test; then
+-		echo -n "failed. Build without iconv.".
+-	else
+-		CFLAGS="$CFLAGS -D_HAVE_ICONV"
+-		LDFLAGS="$LDFLAGS -liconv"
+-		echo "ok, with -liconv"
+-	fi
+-else
+-	CFLAGS="$CFLAGS -D_HAVE_ICONV"
+-	echo "ok"
+-fi
+-
+-rm -f /tmp/iconv-test.c /tmp/iconv-test
++#build with iconv
++CFLAGS="$CFLAGS -D_HAVE_ICONV"
+ 
+ if ! make clean >/dev/null 2>&1; then
+ 	echo " * Warning!!! Can not do make clean..."
+@@ -140,20 +118,20 @@
  echo -n "Generating config.make..."
  echo "# autamatically generated by configure.sh" >config.make
  
@@ -60,7 +93,7 @@
  	echo "SUBDIRS=src/zlib" >> config.make
  	echo "ZLIB_CFLAGS=-I../zlib" >> config.make
  	echo "ZLIB_LFLAGS=../zlib/libz.a" >> config.make
-@@ -169,26 +169,7 @@
+@@ -169,26 +147,7 @@
  echo "SDL_CFLAGS=\$(shell sdl-config --cflags)" >> config.make
  echo "SDL_LFLAGS=\$(shell sdl-config --libs) -lSDL_ttf -lSDL_mixer -lSDL_image" >> config.make
  echo "ok"
@@ -88,7 +121,7 @@
  	
  	rm -f Rules.make
  	ln -s Rules.make.system Rules.make
-@@ -204,16 +185,12 @@
+@@ -204,16 +163,12 @@
  	echo "ICONPATH=\$(DESTDIR)\$(PREFIX)/share/pixmaps" >> config.make
  	echo "DOCPATH=\$(DESTDIR)\$(PREFIX)/share/doc/instead" >> config.make
  	echo "LANGPATH=\$(DATAPATH)/languages" >> config.make



>Release-Note:
>Audit-Trail:
Class-Changed-From-To: change-request->maintainer-update 
Class-Changed-By: edwin 
Class-Changed-When: Tue Jan 4 05:20:16 UTC 2011 
Class-Changed-Why:  
Fix category (submitter is maintainer) (via the GNATS Auto Assign Tool) 

http://www.freebsd.org/cgi/query-pr.cgi?pr=153670 
Responsible-Changed-From-To: freebsd-ports-bugs->amdmi3 
Responsible-Changed-By: amdmi3 
Responsible-Changed-When: Thu Jan 6 14:25:44 UTC 2011 
Responsible-Changed-Why:  
I'll take it. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=153670 
State-Changed-From-To: open->closed 
State-Changed-By: amdmi3 
State-Changed-When: Thu Jan 6 14:43:22 UTC 2011 
State-Changed-Why:  
Committed, with minor changes. Thanks! 

http://www.freebsd.org/cgi/query-pr.cgi?pr=153670 

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: ports/153670: commit references a PR
Date: Thu,  6 Jan 2011 14:42:43 +0000 (UTC)

 amdmi3      2011-01-06 14:42:39 UTC
 
   FreeBSD ports repository
 
   Modified files:
     games/instead        Makefile 
     games/instead/files  patch-configure 
   Log:
   - Fix build with iconv
   
   PR:             153670
   Submitted by:   Gleb Sushko <neuroworker@gmail.com> (maintainer)
   
   Revision  Changes    Path
   1.2       +2 -0      ports/games/instead/Makefile
   1.2       +38 -5     ports/games/instead/files/patch-configure
 _______________________________________________
 cvs-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/cvs-all
 To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
 
>Unformatted:
