@@ -1,11 +1,9 @@ | |||||
############################################################################### | |||||
# Automake targets and declarations for libcaca | |||||
############################################################################### | |||||
# $Id: foo$ | |||||
SUBDIRS = src examples test doc | SUBDIRS = src examples test doc | ||||
DIST_SUBDIRS = $(SUBDIRS) autotools debian | DIST_SUBDIRS = $(SUBDIRS) autotools debian | ||||
EXTRA_DIST = BUGS NOTES bootstrap caca-config.in libcaca.spec | |||||
EXTRA_DIST = BUGS NOTES bootstrap build-win32 caca-config.in libcaca.spec | |||||
AUTOMAKE_OPTIONS = dist-bzip2 | AUTOMAKE_OPTIONS = dist-bzip2 | ||||
bin_SCRIPTS = caca-config | bin_SCRIPTS = caca-config | ||||
@@ -0,0 +1 @@ | |||||
# $Id: foo$ |
@@ -0,0 +1,37 @@ | |||||
#! /bin/sh | |||||
## Win32 cross-compilation for libcaca -- Sam Hocevar <sam@zoy.org> | |||||
## $Id$ | |||||
set -x | |||||
set -e | |||||
# Clean up our working directory | |||||
DIRNAME="libcaca-win32-`sed -ne '/^VERSION/s/[^0-9]*//p' Makefile`" | |||||
DESTDIR="`pwd`/${DIRNAME}" | |||||
rm -Rf "${DIRNAME}" | |||||
rm -f "${DIRNAME}.zip" | |||||
mkdir "${DIRNAME}" | |||||
# Build for win32 | |||||
./configure --host=i586-mingw32msvc --prefix=/ --bindir=/ --libdir=/ --disable-imlib2 | |||||
make pkglibdir=/lib pkgdatadir=/data | |||||
# Install into our private directory | |||||
make install DESTDIR="${DESTDIR}" pkglibdir=/lib pkgdatadir=/ | |||||
i586-mingw32msvc-strip "${DESTDIR}/"*.exe | |||||
rm -Rf "${DESTDIR}/man" | |||||
rm -Rf "${DESTDIR}/include" | |||||
rm -f "${DESTDIR}/caca-config" | |||||
rm -f "${DESTDIR}/"*.a | |||||
mv "${DESTDIR}/share/doc/libcaca-dev/html" "${DESTDIR}/html" | |||||
mv "${DESTDIR}/share/doc/libcaca-dev/ps" "${DESTDIR}/doc" | |||||
mv "${DESTDIR}/share/doc/libcaca-dev/"* "${DESTDIR}/doc" | |||||
rmdir "${DESTDIR}/share/doc/libcaca-dev" | |||||
rmdir "${DESTDIR}/share/doc" | |||||
rmdir "${DESTDIR}/share" | |||||
# Pack the directory | |||||
zip "${DIRNAME}.zip" `find "${DIRNAME}"` | |||||
rm -Rf "${DIRNAME}" | |||||
@@ -1 +1,3 @@ | |||||
# $Id: foo$ | |||||
EXTRA_DIST = changelog compat control copyright rules | EXTRA_DIST = changelog compat control copyright rules |
@@ -1,3 +1,5 @@ | |||||
# $Id: foo$ | |||||
EXTRA_DIST = doxygen.cfg.in footer.html header.html $(man_MANS) | EXTRA_DIST = doxygen.cfg.in footer.html header.html $(man_MANS) | ||||
man_MANS = caca-config.1 cacademo.1 cacaview.1 | man_MANS = caca-config.1 cacademo.1 cacaview.1 | ||||
@@ -1,6 +1,4 @@ | |||||
############################################################################### | |||||
# Automake targets and declarations for libcaca example programs | |||||
############################################################################### | |||||
# $Id: foo$ | |||||
pkgdata_DATA = caca.txt | pkgdata_DATA = caca.txt | ||||
@@ -1,6 +1,4 @@ | |||||
############################################################################### | |||||
# Automake targets and declarations for libcaca | |||||
############################################################################### | |||||
# $Id: foo$ | |||||
include_HEADERS = caca.h | include_HEADERS = caca.h | ||||
@@ -1,6 +1,4 @@ | |||||
############################################################################### | |||||
# Automake targets and declarations for libcaca test programs | |||||
############################################################################### | |||||
# $Id: foo$ | |||||
noinst_PROGRAMS = dithering event hsv optipal spritedit | noinst_PROGRAMS = dithering event hsv optipal spritedit | ||||