diff options
author | Mike Frysinger <vapier@gentoo.org> | 2004-12-27 03:12:57 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2004-12-27 03:12:57 +0000 |
commit | 93b71c197ea37eeeb8536e0ecd799deb125090c0 (patch) | |
tree | f106107ffa280f931cd0e9c0a008b3dc6b96648e /media-libs | |
parent | Added to ~amd64. (Manifest recommit) (diff) | |
download | gentoo-2-93b71c197ea37eeeb8536e0ecd799deb125090c0.tar.gz gentoo-2-93b71c197ea37eeeb8536e0ecd799deb125090c0.tar.bz2 gentoo-2-93b71c197ea37eeeb8536e0ecd799deb125090c0.zip |
initial ebuild #74221
Diffstat (limited to 'media-libs')
-rw-r--r-- | media-libs/sdl-flic/ChangeLog | 8 | ||||
-rw-r--r-- | media-libs/sdl-flic/Manifest | 2 | ||||
-rw-r--r-- | media-libs/sdl-flic/files/1.2-win32.patch | 12 | ||||
-rw-r--r-- | media-libs/sdl-flic/files/Makefile | 45 | ||||
-rw-r--r-- | media-libs/sdl-flic/files/digest-sdl-flic-1.2 | 1 | ||||
-rw-r--r-- | media-libs/sdl-flic/metadata.xml | 5 | ||||
-rw-r--r-- | media-libs/sdl-flic/sdl-flic-1.2.ebuild | 32 |
7 files changed, 105 insertions, 0 deletions
diff --git a/media-libs/sdl-flic/ChangeLog b/media-libs/sdl-flic/ChangeLog new file mode 100644 index 000000000000..62ef6dbabb3f --- /dev/null +++ b/media-libs/sdl-flic/ChangeLog @@ -0,0 +1,8 @@ +# ChangeLog for media-libs/sdl-flic +# Copyright 1999-2004 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/media-libs/sdl-flic/ChangeLog,v 1.1 2004/12/27 03:12:57 vapier Exp $ + +*sdl-flic-1.2 (26 Dec 2004) + + 26 Dec 2004; Mike Frysinger <vapier@gentoo.org> : + Initial import. Ebuild submitted by Federico Tomassetti #74221. diff --git a/media-libs/sdl-flic/Manifest b/media-libs/sdl-flic/Manifest new file mode 100644 index 000000000000..53d840ce561e --- /dev/null +++ b/media-libs/sdl-flic/Manifest @@ -0,0 +1,2 @@ +MD5 6bb896bc7616f8611a66a3aeb67fbd0d sdl-flic-1.2.ebuild 916 +MD5 864ee275a9e49a60c042cdc8786f65f4 files/digest-sdl-flic-1.2 59 diff --git a/media-libs/sdl-flic/files/1.2-win32.patch b/media-libs/sdl-flic/files/1.2-win32.patch new file mode 100644 index 000000000000..1a2cba6347a4 --- /dev/null +++ b/media-libs/sdl-flic/files/1.2-win32.patch @@ -0,0 +1,12 @@ +--- SDL_flic-1.2/SDL_flic.c.orig 2004-12-26 21:40:52.631451512 -0500 ++++ SDL_flic-1.2/SDL_flic.c 2004-12-26 21:41:08.307068456 -0500 +@@ -30,7 +30,9 @@ + #include <SDL_flic.h>
+ #include <setjmp.h>
+ #include <stdlib.h>
++#ifdef WIN32 + #include <mem.h>
++#endif +
+ /* Library version. */
+ #define FLI_MAJOR 1
diff --git a/media-libs/sdl-flic/files/Makefile b/media-libs/sdl-flic/files/Makefile new file mode 100644 index 000000000000..cfba1c19835a --- /dev/null +++ b/media-libs/sdl-flic/files/Makefile @@ -0,0 +1,45 @@ +CFLAGS += $(shell sdl-config --cflags) -I. -DINLINE= +LDFLAGS += $(shell sdl-config --libs) -L. + +LIB_NAME = libSDL_flic +LIB_SHARED = $(LIB_NAME).so +LIB_STATIC = $(LIB_NAME).a +BIN = playflic +TARGETS = $(LIB_SHARED) $(LIB_STATIC) $(BIN) + +BINDIR = /usr/bin +LIBDIR = /usr/lib +INCDIR = /usr/include + +all: $(TARGETS) + +SDL_flic.lo: SDL_flic.c + $(CC) $(CFLAGS) -fPIC -o $@ -c $< +$(LIB_SHARED): SDL_flic.lo + $(CC) $(LDFLAGS) SDL_flic.lo -shared -Wl,-soname,$@ -o $@.1.0.0 + ln -s $@.1.0.0 $@.1 + ln -s $@.1 $@ + +$(LIB_STATIC): SDL_flic.o + $(AR) rcs $@ $< + +$(BIN): $(LIB_SHARED) playflic.o + $(CC) $(LDFLAGS) -lSDL_flic -o $@ playflic.o + +install: $(TARGETS) + install -d -m 755 $(DESTDIR)/$(LIBDIR) + install -m 644 $(LIB_STATIC) $(DESTDIR)/$(LIBDIR) + install -m 755 $(LIB_SHARED).1.0.0 $(DESTDIR)/$(LIBDIR) + ln -s $(LIB_SHARED).1.0.0 $(DESTDIR)/$(LIBDIR)/$(LIB_SHARED).1 + ln -s $(LIB_SHARED).1 $(DESTDIR)/$(LIBDIR)/$(LIB_SHARED) + + install -d -m 755 $(DESTDIR)/$(BINDIR) + install -m 755 $(BIN) $(DESTDIR)/$(BINDIR) + + install -d -m 755 $(DESTDIR)/$(INCDIR) + install -m 644 SDL_flic.h $(DESTDIR)/$(INCDIR) + +clean: + rm -f libSDL_flic.a libSDL_flic.so* + rm -f *.o *.lo + rm -f playflic diff --git a/media-libs/sdl-flic/files/digest-sdl-flic-1.2 b/media-libs/sdl-flic/files/digest-sdl-flic-1.2 new file mode 100644 index 000000000000..10a735fa6df8 --- /dev/null +++ b/media-libs/sdl-flic/files/digest-sdl-flic-1.2 @@ -0,0 +1 @@ +MD5 5bff7a23861577fa9618cead0e3666ee SDL_flic-12.tgz 52901 diff --git a/media-libs/sdl-flic/metadata.xml b/media-libs/sdl-flic/metadata.xml new file mode 100644 index 000000000000..d3c2cc926f0b --- /dev/null +++ b/media-libs/sdl-flic/metadata.xml @@ -0,0 +1,5 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>games</herd> +</pkgmetadata> diff --git a/media-libs/sdl-flic/sdl-flic-1.2.ebuild b/media-libs/sdl-flic/sdl-flic-1.2.ebuild new file mode 100644 index 000000000000..d941b3a6964d --- /dev/null +++ b/media-libs/sdl-flic/sdl-flic-1.2.ebuild @@ -0,0 +1,32 @@ +# Copyright 1999-2004 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/media-libs/sdl-flic/sdl-flic-1.2.ebuild,v 1.1 2004/12/27 03:12:57 vapier Exp $ + +inherit eutils + +DESCRIPTION="FLIC animation file loading library" +HOMEPAGE="http://www.geocities.com/andre_leiradella/#sdl_flic" +SRC_URI="http://www.geocities.com/andre_leiradella/SDL_flic-12.tgz" + +LICENSE="LGPL-2.1" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~hppa ~mips ~ppc ~ppc64 ~sparc ~x86" +IUSE="" + +DEPEND="sys-libs/zlib + >=media-libs/libsdl-1.2.4" + +S="${WORKDIR}"/SDL_flic-${PV} + +src_unpack() { + unpack ${A} + cd ${S} + epatch ${FILESDIR}/${PV}-win32.patch + cp ${FILESDIR}/Makefile . + edos2unix SDL_flic.h +} + +src_install() { + make DESTDIR="${D}" install || die "install failed" + dodoc README.txt +} |