[vlc-commits] Contribs: add SDL_image

Jean-Baptiste Kempf git at videolan.org
Tue Jul 5 00:33:26 CEST 2011


vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Tue Jul  5 00:33:03 2011 +0200| [73257530099bfbc2abf55325f7991b8b985b9c14] | committer: Jean-Baptiste Kempf

Contribs: add SDL_image

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=73257530099bfbc2abf55325f7991b8b985b9c14
---

 contrib/src/SDL_image/SDL_image.patch |   27 +++++++++++++++++++++++++++
 contrib/src/SDL_image/SHA512SUMS      |    1 +
 contrib/src/SDL_image/rules.mak       |   24 ++++++++++++++++++++++++
 3 files changed, 52 insertions(+), 0 deletions(-)

diff --git a/contrib/src/SDL_image/SDL_image.patch b/contrib/src/SDL_image/SDL_image.patch
new file mode 100644
index 0000000..9a871a9
--- /dev/null
+++ b/contrib/src/SDL_image/SDL_image.patch
@@ -0,0 +1,27 @@
+diff -ruN SDL_image/Makefile.am SDL_image_new/Makefile.am
+--- SDL_image/Makefile.am	2007-07-21 07:26:34.000000000 +0200
++++ SDL_image_new/Makefile.am	2007-08-04 12:08:51.000000000 +0200
+@@ -44,7 +44,6 @@
+ else
+ libSDL_image_la_LDFLAGS = 	\
+ 	-no-undefined		\
+-	-release $(LT_RELEASE)	\
+ 	-version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE)
+ libSDL_image_la_LIBADD = $(IMG_LIBS)
+ endif
+diff -ruN SDL_image/Makefile.in SDL_image_new/Makefile.in
+--- SDL_image/Makefile.in	2007-07-21 07:27:57.000000000 +0200
++++ SDL_image_new/Makefile.in	2007-08-04 12:12:00.000000000 +0200
+@@ -260,12 +260,10 @@
+ 
+ @USE_VERSION_RC_FALSE at libSDL_image_la_LDFLAGS = \
+ @USE_VERSION_RC_FALSE@	-no-undefined		\
+- at USE_VERSION_RC_FALSE@	-release $(LT_RELEASE)	\
+ @USE_VERSION_RC_FALSE@	-version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE)
+ 
+ @USE_VERSION_RC_TRUE at libSDL_image_la_LDFLAGS = \
+ @USE_VERSION_RC_TRUE@	-no-undefined		\
+- at USE_VERSION_RC_TRUE@	-release $(LT_RELEASE)	\
+ @USE_VERSION_RC_TRUE@	-version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE) -Wl,version.o
+ 
+ @USE_VERSION_RC_FALSE at libSDL_image_la_LIBADD = $(IMG_LIBS)
diff --git a/contrib/src/SDL_image/SHA512SUMS b/contrib/src/SDL_image/SHA512SUMS
new file mode 100644
index 0000000..daebae4
--- /dev/null
+++ b/contrib/src/SDL_image/SHA512SUMS
@@ -0,0 +1 @@
+0ccdde079d62979f5e482711eca40db65dbf791ceb36ff6c9bc5ac43b5187f61403876f1c4a8628cdc932e4b07ed09ae7ab6c1e05d998fa4e80c5efbd7a5ed0b  SDL_image-1.2.10.tar.gz
diff --git a/contrib/src/SDL_image/rules.mak b/contrib/src/SDL_image/rules.mak
new file mode 100644
index 0000000..f3c84d2
--- /dev/null
+++ b/contrib/src/SDL_image/rules.mak
@@ -0,0 +1,24 @@
+# SDL_image
+
+SDL_IMAGE_VERSION := 1.2.10
+SDL_IMAGE_URL := http://www.libsdl.org/projects/SDL_image/release/SDL_image-$(SDL_IMAGE_VERSION).tar.gz
+
+PKGS += SDL_image
+ifeq ($(call need_pkg,"SDL_image"),)
+PKGS_FOUND += SDL_image
+endif
+
+$(TARBALLS)/SDL_image-$(SDL_IMAGE_VERSION).tar.gz:
+	$(call download,$(SDL_IMAGE_URL))
+
+.sum-SDL_image: SDL_image-$(SDL_IMAGE_VERSION).tar.gz
+
+SDL_image: SDL_image-$(SDL_IMAGE_VERSION).tar.gz .sum-SDL_image
+	$(UNPACK)
+	$(APPLY) $(SRC)/SDL_image/SDL_image.patch
+	$(MOVE)
+
+.SDL_image: SDL_image .png .jpeg .sdl
+	cd $< && $(HOSTVARS) ./configure $(HOSTCONF) --enable-tif --disable-sdltest
+	cd $< && $(MAKE) install
+	touch $@



More information about the vlc-commits mailing list