summaryrefslogtreecommitdiff
path: root/Build/source/libs/zziplib/zziplib-0.13.59/SDL/Makefile.am
diff options
context:
space:
mode:
authorPeter Breitenlohner <peb@mppmu.mpg.de>2010-10-05 06:58:05 +0000
committerPeter Breitenlohner <peb@mppmu.mpg.de>2010-10-05 06:58:05 +0000
commit71a9724cc032291e34911c0eead10c8b0801aad2 (patch)
tree32fc59da386a173ecaea27ef7e9cd1cd99170529 /Build/source/libs/zziplib/zziplib-0.13.59/SDL/Makefile.am
parentc377db3a1bf55130706cb6ba31f4239c21b3e8f2 (diff)
zziplib 0.13.59 (29mar10)
git-svn-id: svn://tug.org/texlive/trunk@19998 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/libs/zziplib/zziplib-0.13.59/SDL/Makefile.am')
-rw-r--r--Build/source/libs/zziplib/zziplib-0.13.59/SDL/Makefile.am47
1 files changed, 47 insertions, 0 deletions
diff --git a/Build/source/libs/zziplib/zziplib-0.13.59/SDL/Makefile.am b/Build/source/libs/zziplib/zziplib-0.13.59/SDL/Makefile.am
new file mode 100644
index 00000000000..80a19f895d2
--- /dev/null
+++ b/Build/source/libs/zziplib/zziplib-0.13.59/SDL/Makefile.am
@@ -0,0 +1,47 @@
+AUTOMAKE_OPTIONS = 1.4 foreign
+AUTOTOOL_VERSION=autoconf-2.52 automake-1.5 libtool-1.4.2
+
+zzipsdldir = ${includedir}/SDL_rwops_zzip
+zzipsdl_DATA = SDL_rwops_zzip.c SDL_rwops_zzip.h
+
+EXTRA_DIST = $(sdl_DATA)
+check_PROGRAMS = zzcatsdl
+
+zzcatsdl_SOURCES = SDL_rwops_zzcat.c SDL_rwops_zzip.c
+ZZIP_CFLAGS= `export PKG_CONFIG_PATH=../zzip; pkg-config zziplib --cflags`
+ZZIP_LIBS= `export PKG_CONFIG_PATH=../zzip; pkg-config zziplib --libs`
+SDL_CFLAGS= `pkg-config sdl --cflags`
+SDL_LIBS= `pkg-config sdl --libs`
+CFLAGS= -I$(srcdir) $(ZZIP_CFLAGS) $(SDL_CFLAGS)
+LIBS= $(ZZIP_LIBS) $(SDL_LIBS)
+
+default: test-sdl
+*.$(OBJEXT): ../zzip/zziplib.pc
+../zzip/zziplib.pc : ../zzip/Makefile
+ cd ../zzip && $(MAKE) zziplib.pc
+
+test.zip : @top_srcdir@/test/test.zip
+ $(LN_S) $? $@
+testsdl test-sdl : test.zip zzcatsdl$(EXEEXT)
+ ./zzcatsdl$(EXEEXT) test/README > test.out
+ diff -q @top_srcdir@/README test.out && rm test.out
+
+sdl : all
+install-sdl : install-data # and not the binary
+
+CLEANFILES = *.pc *.omf
+# ----------------------------------------------------------------------
+# we do not install a library, so this about equivalent to some SDL.pc
+pkgconfigdir=$(libdir)/pkgconfig
+pkgconfig_HEADERS= SDL_rwops_zzip.pc
+ERRNULL= 2>/dev/null
+
+SDL_rwops_zzip.pc : Makefile
+ @ echo 'prefix=$(prefix)' >$@
+ @ echo 'zzipsdldir=$(zzipsdldir)' >>$@
+ @ echo " " >>$@
+ @ echo "Name: SDL_rwops_zzip" >>$@
+ @ echo "Version: $(VERSION)" >>$@
+ @ echo "Description: SDL_rwops for ZZipLib" >>$@
+ echo 'Requires: sdl, zziplib' >>$@
+ echo 'Cflags: -I$${zzipsdldir}' >>$@