|
@@ -27,7 +27,7 @@ make distclean || true |
|
|
|
|
|
|
|
|
cd "${BUILDDIR}" |
|
|
cd "${BUILDDIR}" |
|
|
# Build for win32 |
|
|
# Build for win32 |
|
|
"${SRCDIR}/configure" --host=i586-mingw32msvc --prefix=/ --bindir=/bin --libdir=/lib CPPFLAGS="-I${SRCDIR}/win32/gdiplus/include" LIBS="-L${SRCDIR}/win32/gdiplus/lib" "$@" |
|
|
|
|
|
|
|
|
"${SRCDIR}/configure" --host=i686-w64-mingw32 --prefix=/ --bindir=/bin --libdir=/lib CPPFLAGS="-I${SRCDIR}/win32/gdiplus/include" LIBS="-L${SRCDIR}/win32/gdiplus/lib" "$@" |
|
|
make pkglibdir=/lib pkgdatadir=/data bindir=/bin |
|
|
make pkglibdir=/lib pkgdatadir=/data bindir=/bin |
|
|
# Install into our private directory |
|
|
# Install into our private directory |
|
|
make install DESTDIR="${INSTALLDIR}" pkglibdir=/lib/ pkgdatadir=/ bindir=/bin/ |
|
|
make install DESTDIR="${INSTALLDIR}" pkglibdir=/lib/ pkgdatadir=/ bindir=/bin/ |
|
@@ -35,13 +35,13 @@ make install DESTDIR="${INSTALLDIR}" pkglibdir=/lib/ pkgdatadir=/ bindir=/bin/ |
|
|
cd "${SRCDIR}" |
|
|
cd "${SRCDIR}" |
|
|
rm -Rf "${BUILDDIR}" |
|
|
rm -Rf "${BUILDDIR}" |
|
|
|
|
|
|
|
|
#i586-mingw32msvc-strip "${INSTALLDIR}/bin/"*.exe || true |
|
|
|
|
|
#i586-mingw32msvc-strip "${INSTALLDIR}/lib/"*.dll || true |
|
|
|
|
|
|
|
|
#i686-w64-mingw32-strip "${INSTALLDIR}/bin/"*.exe || true |
|
|
|
|
|
#i686-w64-mingw32-strip "${INSTALLDIR}/lib/"*.dll || true |
|
|
|
|
|
|
|
|
# Install pipi.exe |
|
|
# Install pipi.exe |
|
|
echo 'int main(int argc, char *argv[], char *envp[]) { argv[0] = ".\\bin\\pipi.exe"; execve(argv[0], argv, envp); return 0; }' > run.c |
|
|
echo 'int main(int argc, char *argv[], char *envp[]) { argv[0] = ".\\bin\\pipi.exe"; execve(argv[0], argv, envp); return 0; }' > run.c |
|
|
i586-mingw32msvc-gcc run.c -mwindows -o "${INSTALLDIR}/pipi.exe" |
|
|
|
|
|
i586-mingw32msvc-strip "${INSTALLDIR}/pipi.exe" |
|
|
|
|
|
|
|
|
i686-w64-mingw32-gcc run.c -mwindows -o "${INSTALLDIR}/pipi.exe" |
|
|
|
|
|
i686-w64-mingw32-strip "${INSTALLDIR}/pipi.exe" |
|
|
|
|
|
|
|
|
# Install gtk-sharp |
|
|
# Install gtk-sharp |
|
|
cp -r "win32/gtksharp/"* "${INSTALLDIR}/" |
|
|
cp -r "win32/gtksharp/"* "${INSTALLDIR}/" |
|
@@ -54,8 +54,8 @@ rm -Rf "${INSTALLDIR}/lib/mono" |
|
|
# Install The Pimp |
|
|
# Install The Pimp |
|
|
mv "${INSTALLDIR}/lib/ThePimp.exe" "${INSTALLDIR}/bin/" |
|
|
mv "${INSTALLDIR}/lib/ThePimp.exe" "${INSTALLDIR}/bin/" |
|
|
echo 'int main(int argc, char *argv[], char *envp[]) { argv[0] = ".\\bin\\ThePimp.exe"; execve(argv[0], argv, envp); return 0; }' > run.c |
|
|
echo 'int main(int argc, char *argv[], char *envp[]) { argv[0] = ".\\bin\\ThePimp.exe"; execve(argv[0], argv, envp); return 0; }' > run.c |
|
|
i586-mingw32msvc-gcc run.c -mwindows -o "${INSTALLDIR}/ThePimp.exe" |
|
|
|
|
|
i586-mingw32msvc-strip "${INSTALLDIR}/ThePimp.exe" |
|
|
|
|
|
|
|
|
i686-w64-mingw32-gcc run.c -mwindows -o "${INSTALLDIR}/ThePimp.exe" |
|
|
|
|
|
i686-w64-mingw32-strip "${INSTALLDIR}/ThePimp.exe" |
|
|
|
|
|
|
|
|
# Install documentation |
|
|
# Install documentation |
|
|
mkdir "${INSTALLDIR}/doc" |
|
|
mkdir "${INSTALLDIR}/doc" |
|
|