summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2004-12-27 03:12:57 +0000
committerMike Frysinger <vapier@gentoo.org>2004-12-27 03:12:57 +0000
commit93b71c197ea37eeeb8536e0ecd799deb125090c0 (patch)
treef106107ffa280f931cd0e9c0a008b3dc6b96648e /media-libs/sdl-flic/files/Makefile
parentAdded to ~amd64. (Manifest recommit) (diff)
downloadgentoo-2-93b71c197ea37eeeb8536e0ecd799deb125090c0.tar.gz
gentoo-2-93b71c197ea37eeeb8536e0ecd799deb125090c0.tar.bz2
gentoo-2-93b71c197ea37eeeb8536e0ecd799deb125090c0.zip
initial ebuild #74221
Diffstat (limited to 'media-libs/sdl-flic/files/Makefile')
-rw-r--r--media-libs/sdl-flic/files/Makefile45
1 files changed, 45 insertions, 0 deletions
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