Skip site navigation (1)Skip section navigation (2)
Date:      Mon,  3 Apr 2006 10:53:25 +1000 (EST)
From:      Edwin Groothuis <edwin@mavetju.org>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/95245: [new port] games/fxsudoku
Message-ID:  <20060403005325.7A2A7216@k7.mavetju>
Resent-Message-ID: <200604030100.k3310XCR063589@freefall.freebsd.org>

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

>Number:         95245
>Category:       ports
>Synopsis:       [new port] games/fxsudoku
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Mon Apr 03 01:00:32 GMT 2006
>Closed-Date:
>Last-Modified:
>Originator:     Edwin Groothuis
>Release:        FreeBSD 6.0-RELEASE i386
>Organization:
-
>Environment:
System: FreeBSD k7.mavetju 6.0-RELEASE FreeBSD 6.0-RELEASE #0: Thu Nov 3 09:36:13 UTC 2005 root@x64.samsco.home:/usr/obj/usr/src/sys/GENERIC i386


>Description:

    fxsudoku is an implementation of the Sudoku game.

    The aim of Sudoku is to enter a numerical digit from 1 through 9
    in each cell of a 99 grid made up of 33 subgrids (called "regions"),
    starting with various digits given in some cells (the "givens").
    Each row, column, and region must contain only one instance of each
    numeral. Completing the puzzle requires patience and logical ability.

    Author: Sander Jansen <sander@knology.net>
    WWW: http://www.fifthplanet.net/

>How-To-Repeat:
>Fix:

# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	fxsudoku/
#	fxsudoku/Makefile
#	fxsudoku/distinfo
#	fxsudoku/files
#	fxsudoku/files/patch-gb
#	fxsudoku/files/patch-build__configdetect
#	fxsudoku/files/config.freebsd
#	fxsudoku/files/patch-build__foxdetect
#	fxsudoku/pkg-descr
#
echo c - fxsudoku/
mkdir -p fxsudoku/ > /dev/null 2>&1
echo x - fxsudoku/Makefile
sed 's/^X//' >fxsudoku/Makefile << 'END-of-fxsudoku/Makefile'
X# New ports collection makefile for:    games/fxsudoku
X# Date created:         31 March 2006
X# Whom:			Edwin Groothuis <edwin@mavetju.org>
X#
X# $FreeBSD$
X#
X
XPORTNAME=	fxsudoku
XPORTVERSION=	0.5.1
XCATEGORIES=	games
XMASTER_SITES=	http://www.fifthplanet.net/files/
X
XMAINTAINER=	edwin@mavetju.org
XCOMMENT=	An implementation of the Sudoku game
X
XLIB_DEPENDS=	FOX-1.6.1:${PORTSDIR}/x11-toolkits/fox16
X
XUSE_BZIP2=	yes
XUSE_GMAKE=	yes
XPLIST_FILES=	bin/fxsudoku
X
Xpost-extract:
X	${CP} ${FILESDIR}/config.freebsd ${WRKSRC}/build
X
Xdo-build:
X	cd ${WRKSRC} && MAKE=${GMAKE} ./gb
X
Xdo-install:
X	cd ${WRKSRC} && MAKE=${GMAKE} ./gb install --prefix=${PREFIX}
X
X.include <bsd.port.mk>
END-of-fxsudoku/Makefile
echo x - fxsudoku/distinfo
sed 's/^X//' >fxsudoku/distinfo << 'END-of-fxsudoku/distinfo'
XMD5 (fxsudoku-0.5.1.tar.bz2) = 213c30d4d8bcac4f71d8ed06b389477c
XSHA256 (fxsudoku-0.5.1.tar.bz2) = 02e4292bf34506ca2021d594f736c47b62f3a86a9c04635ce24e8c3144c7563c
XSIZE (fxsudoku-0.5.1.tar.bz2) = 30845
END-of-fxsudoku/distinfo
echo c - fxsudoku/files
mkdir -p fxsudoku/files > /dev/null 2>&1
echo x - fxsudoku/files/patch-gb
sed 's/^X//' >fxsudoku/files/patch-gb << 'END-of-fxsudoku/files/patch-gb'
X--- gb.orig	Mon Apr  3 00:53:45 2006
X+++ gb	Mon Apr  3 09:25:47 2006
X@@ -1,4 +1,4 @@
X-#!/bin/bash
X+#!/bin/sh
X #-----------------------------------------------------------
X # GOGGLES BUILD SYSTEM - 0.5.0
X #-----------------------------------------------------------
X@@ -92,14 +92,14 @@
X #Get the settings
X . "$CONFIG_FILE"
X 
X-function print_help() {
X+print_help() {
X 	SHOWHELP=1
X 	echo "Options:"
X 	echo " "
X 	echo -e "  \033[32m$0\033[0m       	   \033[1mBuild ${PACKAGE_NAME}\033[0m"
X 	echo -e "  \033[32m$0 install\033[0m 	   \033[1mInstall ${PACKAGE_NAME}\033[0m"
X 	echo -e "  \033[32m$0 help\033[0m  	   \033[1mShow this help page.\033[0m"
X-	echo -e "  \033[32m$0 clean\033[0m  	   \033[1mRemove object files.\033[0m"
X+	echo -e "  \033[32m$0 clean\033[0m  	   \033[1mRemove object files.\03[0m"
X 	echo -e "  \033[32m$0 rebuild\033[0m     \033[1mClean and then build.\033[0m"
X 	echo " "
X 	echo "Build Options (./gb):"
END-of-fxsudoku/files/patch-gb
echo x - fxsudoku/files/patch-build__configdetect
sed 's/^X//' >fxsudoku/files/patch-build__configdetect << 'END-of-fxsudoku/files/patch-build__configdetect'
X--- build/configdetect.orig	Mon Apr  3 08:58:08 2006
X+++ build/configdetect	Mon Apr  3 09:09:13 2006
X@@ -18,7 +18,9 @@
X 	else
X   	CONFIG_FILE="build/config.linux"
X   fi
X-elif [ $OSNAME = "CYGWIN_NT-5.0"] ; then 
X+elif [ $OSNAME = "FreeBSD" ] ; then 
X+  CONFIG_FILE="build/config.freebsd"
X+elif [ $OSNAME = "CYGWIN_NT-5.0" ] ; then 
X   CONFIG_FILE="build/config.cygwin"
X elif [ $OSNAME = "HP-UX" ] && [ -f build/config.hpux ] ; then
X 	CONFIG_FILE="build/config.hpux"
X@@ -47,7 +49,7 @@
X             CONFIG_FILE=`echo "${arg}" | cut -d= -f2`
X             if [ ! -f $CONFIG_FILE ] ; then
X                 echo " Error: ${CONFIG_FILE} doesn't exist."
X-                exit -1
X+                exit 255
X             fi
X             ;;
X         --enable-debug)
END-of-fxsudoku/files/patch-build__configdetect
echo x - fxsudoku/files/config.freebsd
sed 's/^X//' >fxsudoku/files/config.freebsd << 'END-of-fxsudoku/files/config.freebsd'
X#----------------------------------------------------------------------------------------------------------------
X# Basic File extensions
Xexport BINEXT=""                     # Executable Extension
Xexport LIBEXT=".a"                   # Static Library Extension
Xexport DLLEXT=".so"                  # Dynamic Library Extension
Xexport OBJEXT=".o"                   # Object Extension
Xexport LIBPREFIX="lib"               # Standard Library Prefix
Xexport LIBDIR="lib"                  # Name of the library directory
Xexport DEFAULT_PREFIX="/usr/local"
X
X# Compiler and Linker
Xexport CC="gcc"                       # C Compiler
Xexport CXX="g++"                      # C++ Compiler
Xexport LINK=$CXX                      # Executable Linker
Xexport DLLLINK="$CXX -shared"         # Dynamic Library Linker
Xexport LIBLINK="ar cru"               # Static Library Linker
Xexport DLLRPATH="-Wl,-rpath "         # Search Path for Dynamic Libs
X
X# Compiler and Linker Flags
Xexport OUTPUTOBJ="-o"                 # Compiler flag to specify output object filename
Xexport OUTPUTBIN="-o "                # Compiler flag to specify output executable filename
Xexport PICFLAG=""                     # Compiler flag to generate position independent code
X
Xif [ "$DEFS" = "-DDEBUG" ] ; then
X  export CFLAGS="${CFLAGS:--Wall -g -pipe }"
X	export CXXFLAGS="${CXXFLAGS:--Wall -g -pipe}"
X	export LDFLAGS=""
Xelif [ "$DEFS" = "-DNDEBUG" ] ; then
X	export CFLAGS="${CFLAGS:--Wall -O3 -pipe}"
X	export CXXFLAGS="${CXXFLAGS:--Wall -O3 -pipe}"
X	export LDFLAGS="-s"
Xelse
X	export CFLAGS="${CFLAGS:--Wall -pipe}"
X	export CXXFLAGS="${CXXFLAGS:--Wall -pipe}"
X	export LDFLAGS=""
Xfi
X
Xexport CPPFLAGS="-I./include ${CPPFLAGS}"
Xexport LIBS=""
Xexport DEFS="${DEFS} -DLINUX"
X#----------------------------------------------------------------------------------------------------------------
END-of-fxsudoku/files/config.freebsd
echo x - fxsudoku/files/patch-build__foxdetect
sed 's/^X//' >fxsudoku/files/patch-build__foxdetect << 'END-of-fxsudoku/files/patch-build__foxdetect'
X--- build/foxdetect.orig	Mon Apr  3 09:08:19 2006
X+++ build/foxdetect	Mon Apr  3 09:08:58 2006
X@@ -60,7 +60,7 @@
X     FOX_PREFIX="$LOCAL_PREFIX"
X   else
X     echo -e " Check FOX Library   : \033[31mNot Found\033[0m"
X-    exit -1
X+    exit 255
X   fi
X fi
X 
X@@ -96,7 +96,7 @@
X     echo -e " Check FOX Library   : \033[32mFOUND\033[0m"
X   else
X     echo -e " Check FOX Library   : \033[31mNot Found\033[0m"
X-    exit -1
X+    exit 255
X   fi
X 
X   # Check version
X@@ -104,7 +104,7 @@
X     echo -e " Check FOX version   : \033[32m${FOX_VERSION}\033[0m"
X   else
X     echo -e " Check FOX version   : \033[31m${FOX_VERSION}\033[0m (Please install latest FOX $MIN_FOX_MAJOR.$MIN_FOX_MINOR.x release)"
X-    exit -1
X+    exit 255
X   fi
X fi
X 
X@@ -114,7 +114,7 @@
X   echo -e " Check FOX Header    : \033[32mFOUND\033[0m"
X else
X   echo -e " Check FOX Header    : \033[31mNot Found\033[0m"
X-  exit -1
X+  exit 255
X fi
X 
X CPPFLAGS="${CPPFLAGS} ${FOX_INCLUDE}"
END-of-fxsudoku/files/patch-build__foxdetect
echo x - fxsudoku/pkg-descr
sed 's/^X//' >fxsudoku/pkg-descr << 'END-of-fxsudoku/pkg-descr'
Xfxsudoku is an implementation of the Sudoku game.
X
XThe aim of Sudoku is to enter a numerical digit from 1 through 9
Xin each cell of a 99 grid made up of 33 subgrids (called "regions"),
Xstarting with various digits given in some cells (the "givens").
XEach row, column, and region must contain only one instance of each
Xnumeral. Completing the puzzle requires patience and logical ability.
X
XAuthor: Sander Jansen <sander@knology.net>
XWWW: http://www.fifthplanet.net/
END-of-fxsudoku/pkg-descr
exit


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



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