Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 13 Aug 2011 21:24:11 +0200
From:      olivier@cochard.me
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/159747: New port: sysutlis/wiimms : Wii and GameCube ISO Tools
Message-ID:  <4e46cf58.26e8d80a.598b.ffffab2e@mx.google.com>
Resent-Message-ID: <201108131950.p7DJo64D058467@freefall.freebsd.org>

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

>Number:         159747
>Category:       ports
>Synopsis:       New port: sysutlis/wiimms : Wii and GameCube ISO Tools
>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:   Sat Aug 13 19:50:06 UTC 2011
>Closed-Date:
>Last-Modified:
>Originator:     Olivier Cochard-Labbe
>Release:        FreeBSD 8.2-RELEASE amd64
>Organization:
>Environment:
System: FreeBSD bigdev.bsdrp.net 8.2-RELEASE FreeBSD 8.2-RELEASE #0: Thu Feb 17 02:41:51 UTC 2011 root@mason.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC amd64


	
>Description:
	Hi,
here is a new port: wiimms: It's a collection of tools for manipulating/converting Wii/GameCube ISO files.
Important Note: The official source code is on a public SVN only (no source archive file available), then I've create an archive file and upload-it to my own server.
I would prefer to upload this source archive file to a more "official" FTP server: Do you know where can I upload it ? 

>How-To-Repeat:
	
>Fix:

	

--- wiimms.shar begins here ---
# 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:
#
#	wiimms
#	wiimms/distinfo
#	wiimms/Makefile
#	wiimms/files
#	wiimms/files/patch-setup.sh
#	wiimms/files/patch-load-titles.sh
#	wiimms/pkg-descr
#	wiimms/pkg-plist
#
echo c - wiimms
mkdir -p wiimms > /dev/null 2>&1
echo x - wiimms/distinfo
sed 's/^X//' >wiimms/distinfo << '9a3a605e8719d90c835a15d928ed1d0d'
XSHA256 (wit-2.00.tar.gz) = f0585ee24493200904616005d4b67c30b710058f8a424e1e6f6810301c14bc89
XSIZE (wit-2.00.tar.gz) = 1391309
9a3a605e8719d90c835a15d928ed1d0d
echo x - wiimms/Makefile
sed 's/^X//' >wiimms/Makefile << '8d79bb31860d242d89877e14c7e3fa03'
X# New ports collection makefile for:	wiimms
X# Date created:		4 august 2011
X# Whom:			Olivier Cochard-Labbe <olivier@cochard.me>
X#
X# $FreeBSD$
X#
X
XPORTNAME=	wiimms
XPORTVERSION=	2.00
XCATEGORIES=	sysutils
XMASTER_SITES=   http://gugus69.free.fr/wiimms/
XDISTNAME=	wit-${PORTVERSION}
X
XMAINTAINER=	olivier@cochard.me
XCOMMENT=	Wiimms ISO Tools
X
XLICENSE=	GPLv2
X
XBUILD_DEPENDS=	bash:${PORTSDIR}/shells/bash
XRUN_DEPENDS=	bash:${PORTSDIR}/shells/bash
X
XUSE_GMAKE=  yes
X
X.include <bsd.port.pre.mk>
X
Xpost-patch:
X	@${REINPLACE_CMD} -e 's|/bin/bash|/usr/bin/env bash|g' \
X		${WRKSRC}/*.sh \
X		${WRKSRC}/scripts/*.sh \
X		${WRKSRC}/setup/*.sh \
X		${WRKSRC}/Makefile
X
Xpre-configure:
X	${CHMOD} +x ${WRKSRC}/setup.sh
X	cd ${WRKSRC} && ./setup.sh
X
Xdo-install:
X	@${INSTALL_PROGRAM} ${WRKSRC}/wit ${PREFIX}/bin
X	@${INSTALL_PROGRAM} ${WRKSRC}/wwt ${PREFIX}/bin
X	@${INSTALL_PROGRAM} ${WRKSRC}/wdf ${PREFIX}/bin
X	@${LN} -sf wdf ${PREFIX}/bin/wdf-cat
X	@${LN} -sf wdf ${PREFIX}/bin/wdf-dump
X	@${MKDIR} ${DATADIR}
X	@${INSTALL_DATA} ${WRKSRC}/share/* ${DATADIR}
X	@${INSTALL_SCRIPT} ${WRKSRC}/load-titles.sh ${DATADIR}
X
X.include <bsd.port.post.mk>
8d79bb31860d242d89877e14c7e3fa03
echo c - wiimms/files
mkdir -p wiimms/files > /dev/null 2>&1
echo x - wiimms/files/patch-setup.sh
sed 's/^X//' >wiimms/files/patch-setup.sh << '92ec23aa07a711d3905bec4643838d1b'
X--- setup.sh.orig	2011-07-08 20:21:46.000000000 +0200
X+++ setup.sh	2011-08-04 01:55:05.000000000 +0200
X@@ -19,8 +19,9 @@
X tim=($(date '+%s %Y-%m-%d %T'))
X 
X have_fuse=0
X-[[ $NO_FUSE != 1 && -r /usr/include/fuse.h || -r /usr/local/include/fuse.h ]] \
X-	&& have_fuse=1
X+# TO DO: Fix fuse compilation (need to add a dependency to the port Makefile too
X+#[[ $NO_FUSE != 1 && -r /usr/include/fuse.h || -r /usr/local/include/fuse.h ]] \
X+#	&& have_fuse=1
X 
X if [[ $M32 = 1 ]]
X then
X@@ -38,9 +39,13 @@
X 	&& grep -qw fallocate /usr/include/bits/fcntl.h \
X 	&& defines="$defines -DHAVE_FALLOCATE=1"
X 
X-[[ -r /usr/include/fcntl.h ]] \
X-	&& grep -qw posix_fallocate /usr/include/fcntl.h \
X-	&& defines="$defines -DHAVE_POSIX_FALLOCATE=1"
X+# Wrong test: FreeBSD fcntl.h include a comment with string "posix_fallocate"
X+#[[ -r /usr/include/fcntl.h ]] \
X+#	&& grep -qw posix_fallocate /usr/include/fcntl.h \
X+#	&& defines="$defines -DHAVE_POSIX_FALLOCATE=1"
X+
X+# FreeBSD didn't support Pre-alloc
X+defines="$defines -DNO_PREALLOC"
X 
X [[ $STATIC = 1 ]] || STATIC=0
X 
92ec23aa07a711d3905bec4643838d1b
echo x - wiimms/files/patch-load-titles.sh
sed 's/^X//' >wiimms/files/patch-load-titles.sh << '7f8ed6b819b06d425f3c2db601d9a530'
X--- setup/load-titles.sh.orig	2011-08-04 07:50:20.000000000 +0200
X+++ setup/load-titles.sh	2011-08-04 07:51:47.000000000 +0200
X@@ -1,4 +1,4 @@
X-#!/bin/bash
X+#!/usr/bin/env bash
X 
X     #####################################################################
X     ##                 __            __ _ ___________                  ##
X@@ -28,7 +28,7 @@
X 
X #------------------------------------------------------------------------------
X 
X-NEEDED="wit wget tr"
X+NEEDED="wit tr"
X 
X BASE_PATH="@@INSTALL-PATH@@"
X SHARE_PATH="@@SHARE-PATH@@"
X@@ -68,7 +68,7 @@
X 
X     echo "***    load $DEST from $URI"
X 
X-    if wget -q -O- "$URI" | wit titles / - >"$DEST.tmp" && test -s "$DEST.tmp"
X+    if fetch -q -o- "$URI" | wit titles / - >"$DEST.tmp" && test -s "$DEST.tmp"
X     then
X 	if [[ $ADD != "" ]]
X 	then
7f8ed6b819b06d425f3c2db601d9a530
echo x - wiimms/pkg-descr
sed 's/^X//' >wiimms/pkg-descr << '5bd0f45c51c779152f0c1decd6035fa6'
XWiimms ISO Tools is a set of command line tools to manipulate Wii and GameCube 
XISO images and WBFS containers.
X
XWWW: http://wit.wiimm.de
5bd0f45c51c779152f0c1decd6035fa6
echo x - wiimms/pkg-plist
sed 's/^X//' >wiimms/pkg-plist << '659fb491f344c663d8ac620e46cb7049'
Xbin/wdf
Xbin/wdf-cat
Xbin/wdf-dump
Xbin/wit
Xbin/wwt
X%%DATADIR%%/load-titles.sh
X%%DATADIR%%/system-menu.txt
X%%DATADIR%%/titles-de.txt
X%%DATADIR%%/titles-es.txt
X%%DATADIR%%/titles-fr.txt
X%%DATADIR%%/titles-it.txt
X%%DATADIR%%/titles-ja.txt
X%%DATADIR%%/titles-ko.txt
X%%DATADIR%%/titles-nl.txt
X%%DATADIR%%/titles-pt.txt
X%%DATADIR%%/titles-ru.txt
X%%DATADIR%%/titles-zhcn.txt
X%%DATADIR%%/titles-zhtw.txt
X%%DATADIR%%/titles.txt
X@dirrm %%DATADIR%%
659fb491f344c663d8ac620e46cb7049
exit
--- wiimms.shar ends here ---


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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4e46cf58.26e8d80a.598b.ffffab2e>