# 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/pkg-descr # wiimms/Makefile # wiimms/pkg-plist # wiimms/files # wiimms/files/patch-setup-load-titles.sh # wiimms/files/patch-setup.sh # 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/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/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 X# X# $FreeBSD$ X# X XPORTNAME= wiimms XPORTVERSION= 2.00 XCATEGORIES= sysutils XMASTER_SITES= http://gugus69.free.fr/wiimms/ \ X LOCAL/martymac 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 X Xpost-patch: X @${REINPLACE_CMD} -e 's|/bin/bash|${LOCALBASE}/bin/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 Xdo-configure: 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 8d79bb31860d242d89877e14c7e3fa03 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 echo c - wiimms/files mkdir -p wiimms/files > /dev/null 2>&1 echo x - wiimms/files/patch-setup-load-titles.sh sed 's/^X//' >wiimms/files/patch-setup-load-titles.sh << '70f5075e10aa67e2c6ffb138b5ce89d7' 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@@ -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 70f5075e10aa67e2c6ffb138b5ce89d7 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 exit