Browse Source

* Distribute the license with Win32 packages and convert text files to

CRLF format.
tags/v0.99.beta14
Sam Hocevar sam 19 years ago
parent
commit
ba08d339b0
1 changed files with 17 additions and 6 deletions
  1. +17
    -6
      build-win32

+ 17
- 6
build-win32 View File

@@ -14,19 +14,30 @@ rm -f "${DIRNAME}.zip"
mkdir "${DIRNAME}"

# Build for win32
./configure --host=i586-mingw32msvc --prefix=/ --bindir=/ --libdir=/ --disable-imlib2 --disable-doc
make pkglibdir=/lib pkgdatadir=/data
./configure --host=i586-mingw32msvc --prefix=/ --bindir=/bin --libdir=/lib --disable-imlib2 --disable-doc
make pkglibdir=/lib pkgdatadir=/data bindir=/bin

# Install into our private directory
make install DESTDIR="${DESTDIR}" pkglibdir=/lib pkgdatadir=/
make install DESTDIR="${DESTDIR}" pkglibdir=/lib/ pkgdatadir=/ bindir=/bin/
cp COPYING COPYING.LGPL "${DESTDIR}/share/doc/libcaca-dev/"

mv "${DESTDIR}/bin/"* "${DESTDIR}/"
mv "${DESTDIR}/lib/"* "${DESTDIR}/"
i586-mingw32msvc-strip "${DESTDIR}/"*.exe
i586-mingw32msvc-strip "${DESTDIR}/"*.dll
rmdir "${DESTDIR}/bin"
rmdir "${DESTDIR}/lib"

mkdir "${DESTDIR}/doc"
for f in `ls "${DESTDIR}/share/doc/libcaca-dev/"`; do
sed -e 's/$/ /' < "${DESTDIR}/share/doc/libcaca-dev/${f}" > "${DESTDIR}/doc/${f}.txt"
done
rm -Rf "${DESTDIR}/share"
rm -Rf "${DESTDIR}/man"
rm -Rf "${DESTDIR}/include"
rm -f "${DESTDIR}/caca-config"
rm -f "${DESTDIR}/"*.a
mv "${DESTDIR}/share/doc/libcaca-dev/" "${DESTDIR}/doc"
rmdir "${DESTDIR}/share/doc"
rmdir "${DESTDIR}/share"
rm -f "${DESTDIR}/"*.la

# Pack the directory
zip "${DIRNAME}.zip" `find "${DIRNAME}"`


Loading…
Cancel
Save