VERSION=1.2.1 IPSREPO="http://localhost:10000/" wget -c "http://www.libsdl.org/projects/GUIlib/src/GUIlib-1.2.1.tar.gz" gtar xzvf GUIlib-$VERSION.tar.gz cd GUIlib-$VERSION export DESTDIR=~/libsdl-guilib ./configure --prefix=$DESTDIR gmake rm -rf $DESTDIR gmake install cp COPYING ~/ cd ~/ Package ======= cat <libsdl-guilib.include.$VERSION set name=pkg.name value="libsdl-guilib - simple GUI framework, for use with SDL" set name=pkg.description value="libsdl-guilib - simple GUI framework, for use with SDL" set name=pkg.detailed_url value=http://www.libsdl.org/projects/GUIlib/ set name=maintainer value="Vit Hrachovy " set name=upstream value=slouken@devolution.com set name=upstream_url value=http://www.libsdl.org/projects/GUIlib/ set name=source_url value=http://www.libsdl.org/projects/GUIlib/src/GUIlib-1.2.1.tar.gz set name=repository_url value=http://www.libsdl.org/projects/GUIlib/src/GUIlib-1.2.1.tar.gz set name=gui.classification value="Utility" depend fmri=pkg:/SUNWlibsdl@0.5.11-0.105 type=require license $HOME/COPYING license="PublicDomain" EOF wget http://www.opensolaris.org/os/community/sw-porters/port-indiana/indiana-ips/pkgflistgen.pl # you may go to ~/dosbox and re-make the directory structure so ~/dosbox serves as prefix # or fix the resulting include file later, see the ed command below perl pkgflistgen.pl libsdl-guilib/ >>libsdl-guilib.include.$VERSION # Fix destination paths in include file. # # This is plain stupid and I don't know why ./configure --prefix=$HOME/libsdl-guilib creates # $HOME/libsdl-guilib/$HOME/libsdl-guilib/ and then ./usr and others. Have to check and fix. echo '1,$s/path=/path=\/usr/ w q '|ed libsdl-guilib.include.$VERSION eval `pkgsend -s $IPSREPO open IPSlibsdl-guilib@$VERSION-1` if [ $? == 0 ]; then pkgsend -s $IPSREPO include libsdl-guilib.include.$VERSION pkgsend -s $IPSREPO close else echo "sorry, pkgsend open returned error '$?'" fi # vim:ts=8:sw=8:foldmethod=marker