#! /bin/sh PACKAGE=libsigc++ DJNAME=sigc VERSION=2.0.17 DVER=`echo $VERSION | sed -e 's#\.##2g'` DVER0=`echo $VERSION | sed -e 's#\.##g'` DJNAME=${DJNAME-$PACKAGE} rm -fr gnu/libsigc++-$DVER rm -f ${DJNAME}${DVER0}s.zip SRC=gnu/$PACKAGE-$DVER rm -rf $SRC if [ -f $PACKAGE-$VERSION.tar.gz ] ; then tar xf $PACKAGE-$VERSION.tar.gz --use=gzip elif [ -f $PACKAGE-$VERSION.tar.bz2 ] ; then tar xf $PACKAGE-$VERSION.tar.bz2 --use=bzip2 else exit 1 fi if ! [ -d gnu ] ; then echo "Creating directory gnu" mkdir gnu || exit 1 fi CWD=`pwd` mv -v $PACKAGE-$VERSION $SRC || exit 1 export FNCASE=Y cd $SRC || exit 1 if [ -f $CWD/$PACKAGE.diff ] ; then patch -p1 <$CWD/$PACKAGE.diff || exit 1 cp $CWD/$PACKAGE.diff ./$PACKAGE-$VERSION.diff fi cp $CWD/$PACKAGE.djgpp ./README.djgpp cp $CWD/$PACKAGE.source ./$PACKAGE.source echo "Adding libtools." libtoolize --automake --copy || exit 1 echo "Building macros." aclocal -I "scripts" $ACLOCAL_FLAGS || exit 1 #echo "Building config header." #autoheader echo "Building makefiles." automake --add-missing --copy || exit 1 echo "Building configure." autoconf || exit 1 ######################################################################## cat >djconfig.sh <<'EOF' #! /bin/sh export ac_cv_path_MSGFMT=/dev/env/DJDIR/bin/msgfmt.exe export ac_cv_path_XGETTEXT=/dev/env/DJDIR/bin/xgettext.exe ./configure --prefix=/dev/env/DJDIR \$* EOF ######################################################################## inst_prefix='`pwd`/install.djg' cat >djbuild.sh <check.log 2>&1 make install prefix=\$prefix || exit 1 strip -v \$prefix/bin/*.exe strip -gv \$prefix/lib/*.a mkdir -p \$prefix/gnu/$PACKAGE-$DVER cp -f check.log \$prefix/gnu/$PACKAGE-$DVER/ cp COPYING* NEWS* ChangeLog* news readme README.DJGPP \$prefix/gnu/$PACKAGE-$DVER/ mkdir -p \$prefix/manifest echo "glib${DVER0}b.zip - $PACKAGE-$VERSION binary archive for DJGPP" >\$prefix/manifest/$DJNAME${DVER0}b.ver touch \$prefix/manifest/$DJNAME${DVER0}b.mft ( cd \$prefix && find . -type f | sed -e 's#^\./##' | sort ) >\$prefix/manifest/$DJNAME${DVER0}b.mft cat \$prefix/manifest/$DJNAME${DVER0}b.mft | ( cd \$prefix && zip -9@ ../$DJNAME${DVER0}b.zip ) EOF ######################################################################## cd $CWD rm -rv gnu/$PACKAGE-$DVER/autom4te.cache if ! [ -d manifest ] ; then mkdir manifest ; fi echo "$DJNAME${DVER0}s.zip - $PACKAGE-$VER sources for DJGPP" >manifest/$DJNAME${DVER0}s.ver echo "" >manifest/$DJNAME${DVER0}s.mft ( find gnu/$PACKAGE-$DVER -type f; find manifest -name "$DJNAME$DVER0*" ) |\ sort >manifest/$DJNAME${DVER0}s.mft cat manifest/$DJNAME${DVER0}s.mft | zip -9@ $DJNAME${DVER0}s.zip