VERSION=0.72 IPSREPO="http://localhost:10000/" DESTDIR=~/dosbox wget -c http://surfnet.dl.sourceforge.net/sourceforge/dosbox/dosbox-0.72.tar.gz wget -c http://wood.sandbox.cz/osol/dosbox.opensolaris.patch gtar xzvf dosbox-$VERSION.tar.gz cd dosbox-$VERSION LDFLAGS='-lsocket -lnsl' ./configure --prefix=$DESTDIR --disable-debug cd src/ patch -p1 <../../dosbox.opensolaris.patch cd .. gmake rm -rf $DESTDIR gmake install cp COPYING ~/ cd ~ Package ======= cat <dosbox.include.$VERSION set name=pkg.name value="DOSBox - An open source DOS emulator for BeOS, Linux, Mac OS X, OS/2, and Windows" set name=pkg.description value="DOSBox - An open source DOS emulator for BeOS, Linux, Mac OS X, OS/2, and Windows" set name=pkg.detailed_url value=http://www.dosbox.com set name=maintainer value="Vit Hrachovy " set name=upstream value=qbix79@users.sourceforge.net set name=upstream_url value=http://www.dosbox.com set name=source_url value=http://surfnet.dl.sourceforge.net/sourceforge/dosbox/dosbox-0.72.tar.gz set name=repository_url value=http://dosbox.cvs.sourceforge.net/dosbox set name=gui.classification value="Utility" depend fmri=pkg:/SUNWlibsdl@0.5.11-0.105 type=require depend fmri=pkg:/IPSlibsdl-sound@1.0.3,5.11-1 type=require depend fmri=pkg:/IPSlibsdl-net@1.2.7,5.11-1 type=require license $HOME/COPYING license="GPLv2" 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 dosbox/ >>dosbox.include.$VERSION # fix destination paths in include file echo '1,$s/path=/path=\/usr/ w q '|ed dosbox.include.$VERSION eval `pkgsend -s $IPSREPO open IPSdosbox@$VERSION-1` if [ $? == 0 ]; then pkgsend -s $IPSREPO include dosbox.include.$VERSION pkgsend -s $IPSREPO close else echo "sorry, pkgsend open returned error '$?'" fi # vim:ts=8:sw=8:foldmethod=marker