|
|
@@ -7,7 +7,7 @@ set -e |
|
|
|
|
|
|
|
# Clean up our working directory |
|
|
|
SRCDIR="`pwd`" |
|
|
|
DIRNAME="libpipi-win32-`sed -ne 's/^AC_INIT(.*, \(.*\)).*/\1/p' configure.ac`" |
|
|
|
DIRNAME="libcaca-win32-`sed -ne 's/^AC_INIT(.*, \(.*\)).*/\1/p' configure.ac`" |
|
|
|
INSTALLDIR="`pwd`/${DIRNAME}" |
|
|
|
BUILDDIR="${INSTALLDIR}/build" |
|
|
|
rm -Rf "${INSTALLDIR}" |
|
|
@@ -19,20 +19,22 @@ make distclean || true |
|
|
|
|
|
|
|
cd "${BUILDDIR}" |
|
|
|
# Build for win32 |
|
|
|
"${SRCDIR}/configure" --host=i586-mingw32msvc --prefix=/ --bindir=/bin --libdir=/lib --disable-imlib2 --disable-java --disable-doc "$@" |
|
|
|
make pkglibdir=/lib pkgdatadir=/data bindir=/bin |
|
|
|
"${SRCDIR}/configure" --host=i686-w64-mingw32 --build=none --prefix=/ --bindir=/bin --libdir=/lib --disable-imlib2 --disable-java --disable-doc "$@" |
|
|
|
make -j4 pkglibdir=/lib pkgdatadir=/data bindir=/bin |
|
|
|
# Install into our private directory |
|
|
|
make install DESTDIR="${INSTALLDIR}" pkglibdir=/lib/ pkgdatadir=/ bindir=/bin/ |
|
|
|
make -j4 install DESTDIR="${INSTALLDIR}" pkglibdir=/lib/ pkgdatadir=/ bindir=/bin/ |
|
|
|
cd "${SRCDIR}" |
|
|
|
rm -Rf "${BUILDDIR}" |
|
|
|
|
|
|
|
mv "${INSTALLDIR}/bin/"* "${INSTALLDIR}/" |
|
|
|
rmdir "${INSTALLDIR}/bin" |
|
|
|
mv "${INSTALLDIR}/lib/"* "${INSTALLDIR}/" |
|
|
|
for f in libcaca libcaca++; do |
|
|
|
mv "${INSTALLDIR}/${f}.a" "${INSTALLDIR}/lib/${f}.lib" |
|
|
|
done |
|
|
|
rm -f "${INSTALLDIR}/caca-config.exe" # Just in case. *sigh*. |
|
|
|
i586-mingw32msvc-strip "${INSTALLDIR}/"*.exe || true |
|
|
|
i586-mingw32msvc-strip "${INSTALLDIR}/"*.dll || true |
|
|
|
rmdir "${INSTALLDIR}/bin" |
|
|
|
rmdir "${INSTALLDIR}/lib" |
|
|
|
i686-w64-mingw32-strip "${INSTALLDIR}/"*.exe || true |
|
|
|
i686-w64-mingw32-strip "${INSTALLDIR}/"*.dll || true |
|
|
|
|
|
|
|
mkdir "${INSTALLDIR}/doc" |
|
|
|
for f in COPYING COPYING.LGPL COPYING.GPL README AUTHORS NEWS NOTES THANKS; do |
|
|
@@ -40,8 +42,7 @@ for f in COPYING COPYING.LGPL COPYING.GPL README AUTHORS NEWS NOTES THANKS; do |
|
|
|
done |
|
|
|
rm -Rf "${INSTALLDIR}/share" |
|
|
|
rm -Rf "${INSTALLDIR}/man" |
|
|
|
rm -Rf "${INSTALLDIR}/include" |
|
|
|
rm -Rf "${INSTALLDIR}/pkg-config" |
|
|
|
rm -Rf "${INSTALLDIR}/pkgconfig" |
|
|
|
rm -f "${INSTALLDIR}/caca-config" |
|
|
|
rm -f "${INSTALLDIR}/"*.a |
|
|
|
rm -f "${INSTALLDIR}/"*.la |
|
|
|