VERSION=1.0.3 IPSREPO="http://localhost:10000/" wget -c "http://icculus.org/SDL_sound/downloads/SDL_sound-$VERSION.tar.gz" export DESTDIR=~/libsdl-sound gtar xzvf SDL_sound-$VERSION.tar.gz cd SDL_sound-$VERSION ./configure --prefix=$DESTDIR gmake rm -rf $DESTDIR gmake install cp COPYING ~/ Package ======= cat <libsdl-sound.include.$VERSION set name=pkg.name value="libsdl-sound - library that handles the decoding of several popular sound file formats" set name=pkg.description value="libsdl-sound - library that handles the decoding of several popular sound file formats" set name=pkg.detailed_url value=http://icculus.org/SDL_sound set name=maintainer value="Vit Hrachovy " set name=upstream value=icculus@icculus.org set name=upstream_url value=http://icculus.org/SDL_sound set name=source_url value=http://icculus.org/SDL_sound/downloads/SDL_sound-$VERSION.tar.gz set name=repository_url value=http://hg.icculus.org/icculus/SDL_sound set name=gui.classification value="Utility" depend fmri=pkg:/SUNWlibsdl@0.5.11-0.105 type=require license $HOME/COPYING license="LGPL2.1" EOF cd ~/ 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-sound/ >>libsdl-sound.include.$VERSION # fix destination paths in include file echo '1,$s/path=/path=\/usr/ w q '|ed libsdl-sound.include.$VERSION eval `pkgsend -s $IPSREPO open IPSlibsdl-sound@$VERSION-1` if [ $? == 0 ]; then pkgsend -s $IPSREPO include libsdl-sound.include.$VERSION pkgsend -s $IPSREPO close else echo "sorry, pkgsend open returned error '$?'" fi # vim:ts=4:sw=4:foldmethod=marker