summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastien Fabbro <bicatali@gentoo.org>2007-02-05 16:00:43 +0000
committerSebastien Fabbro <bicatali@gentoo.org>2007-02-05 16:00:43 +0000
commit2789f52394b5ab57973f6bcaafe8e4df1cd1967f (patch)
treed8793232f5018520b3a467289539f95447cd323b /media-libs
parentKeyworded ~sparc wrt #151446 (diff)
downloadgentoo-2-2789f52394b5ab57973f6bcaafe8e4df1cd1967f.tar.gz
gentoo-2-2789f52394b5ab57973f6bcaafe8e4df1cd1967f.tar.bz2
gentoo-2-2789f52394b5ab57973f6bcaafe8e4df1cd1967f.zip
new libafterimage-1.07
(Portage version: 2.1.1-r2)
Diffstat (limited to 'media-libs')
-rw-r--r--media-libs/libafterimage/ChangeLog11
-rw-r--r--media-libs/libafterimage/Manifest24
-rw-r--r--media-libs/libafterimage/files/digest-libafterimage-1.073
-rw-r--r--media-libs/libafterimage/files/libafterimage-config.patch15
-rw-r--r--media-libs/libafterimage/files/libafterimage-examples.patch471
-rw-r--r--media-libs/libafterimage/libafterimage-1.07.ebuild84
-rw-r--r--media-libs/libafterimage/metadata.xml20
7 files changed, 628 insertions, 0 deletions
diff --git a/media-libs/libafterimage/ChangeLog b/media-libs/libafterimage/ChangeLog
new file mode 100644
index 000000000000..d21c815d90de
--- /dev/null
+++ b/media-libs/libafterimage/ChangeLog
@@ -0,0 +1,11 @@
+# ChangeLog for media-libs/libafterimage
+# Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/media-libs/libafterimage/ChangeLog,v 1.1 2007/02/05 16:00:43 bicatali Exp $
+
+*libafterimage-1.07 (05 Feb 2007)
+
+ 05 Feb 2007; Sébastien Fabbro <bicatali@gentoo.org>
+ +files/libafterimage-config.patch, +files/libafterimage-examples.patch,
+ +metadata.xml, +libafterimage-1.07.ebuild:
+ Initial import. Closing bug #149088.
+
diff --git a/media-libs/libafterimage/Manifest b/media-libs/libafterimage/Manifest
new file mode 100644
index 000000000000..de601b31bd10
--- /dev/null
+++ b/media-libs/libafterimage/Manifest
@@ -0,0 +1,24 @@
+AUX libafterimage-config.patch 369 RMD160 e209d20413373694cd4b4cf16cc1927fbb8437f6 SHA1 030143afcdece5802511b51899c221d48e421ebf SHA256 75a7683211f8d65a6cb1a6ed99b013d7bcc5b3cb3a241e36748a2c0b5ff960c6
+MD5 a77d9e0e02156bc6a1446fcc212acb7e files/libafterimage-config.patch 369
+RMD160 e209d20413373694cd4b4cf16cc1927fbb8437f6 files/libafterimage-config.patch 369
+SHA256 75a7683211f8d65a6cb1a6ed99b013d7bcc5b3cb3a241e36748a2c0b5ff960c6 files/libafterimage-config.patch 369
+AUX libafterimage-examples.patch 15911 RMD160 8c616ede78d2bea70587ba1790da7e158196f684 SHA1 04b27bcb2dd782fe0a20b9963f3992dbb9bd1ea6 SHA256 d3f9256627f33c2174f5dfc7ff57adfc1c03b1985bb90242fcefd9dbebbaecff
+MD5 502b55c7cbd13ac6ac8b387429251bbd files/libafterimage-examples.patch 15911
+RMD160 8c616ede78d2bea70587ba1790da7e158196f684 files/libafterimage-examples.patch 15911
+SHA256 d3f9256627f33c2174f5dfc7ff57adfc1c03b1985bb90242fcefd9dbebbaecff files/libafterimage-examples.patch 15911
+DIST libAfterImage-1.07.tar.bz2 956631 RMD160 c8f8b83c783b33bc0a30116fe55f94560aa8c315 SHA1 c9fd0fbadcc3fd0c0cd2e28d7f6a07b627746748 SHA256 b3047c7307c6f6db2de1814be681b26c324378124d4b49fbb468428523da1c74
+EBUILD libafterimage-1.07.ebuild 1794 RMD160 7990401c8f471c2feaad5f024d9473c3ccf8a45f SHA1 be5016ce7491f46dbb9296e1568bf873f2c0dafa SHA256 2f7deac5fed61fbd7bc677b59629776e181b3f4e4499c94fed97232c9fe07c6f
+MD5 92c20df8336cc71b8a7e66678f5e7df2 libafterimage-1.07.ebuild 1794
+RMD160 7990401c8f471c2feaad5f024d9473c3ccf8a45f libafterimage-1.07.ebuild 1794
+SHA256 2f7deac5fed61fbd7bc677b59629776e181b3f4e4499c94fed97232c9fe07c6f libafterimage-1.07.ebuild 1794
+MISC ChangeLog 374 RMD160 356ac7db4e05b3bfb6dc3186cd1da8702bae0c18 SHA1 3f56d6a37c94a37cd6846d0e1aa0035fa96378de SHA256 6940df7aea1e99019f16253160d93a5a62d5371a0218ab8dc380943b62b2a97a
+MD5 434d9281ea613922e274acf3c532eced ChangeLog 374
+RMD160 356ac7db4e05b3bfb6dc3186cd1da8702bae0c18 ChangeLog 374
+SHA256 6940df7aea1e99019f16253160d93a5a62d5371a0218ab8dc380943b62b2a97a ChangeLog 374
+MISC metadata.xml 895 RMD160 3a9671c21f649729ea596def4c2ecd7c313bf5b3 SHA1 434cfd341defa95b295978f8de809be03a762443 SHA256 95d257cc2a6f6846269d1c64750669c837712f2d341c886581a8a89422e591cd
+MD5 b16f9a71e123455e62a4fcc67ae84f2d metadata.xml 895
+RMD160 3a9671c21f649729ea596def4c2ecd7c313bf5b3 metadata.xml 895
+SHA256 95d257cc2a6f6846269d1c64750669c837712f2d341c886581a8a89422e591cd metadata.xml 895
+MD5 90fef3ea56cd930d380bf0414367d9e2 files/digest-libafterimage-1.07 259
+RMD160 df6a62ebcbbd402d4b0789618eaa00807ee67131 files/digest-libafterimage-1.07 259
+SHA256 2c31ad9c0712427e8d5676a07b509f4791f3a76e35a738c5b280e06c6cb81b05 files/digest-libafterimage-1.07 259
diff --git a/media-libs/libafterimage/files/digest-libafterimage-1.07 b/media-libs/libafterimage/files/digest-libafterimage-1.07
new file mode 100644
index 000000000000..c622d6db6000
--- /dev/null
+++ b/media-libs/libafterimage/files/digest-libafterimage-1.07
@@ -0,0 +1,3 @@
+MD5 bd59c81347029a9b272f76f6acbde088 libAfterImage-1.07.tar.bz2 956631
+RMD160 c8f8b83c783b33bc0a30116fe55f94560aa8c315 libAfterImage-1.07.tar.bz2 956631
+SHA256 b3047c7307c6f6db2de1814be681b26c324378124d4b49fbb468428523da1c74 libAfterImage-1.07.tar.bz2 956631
diff --git a/media-libs/libafterimage/files/libafterimage-config.patch b/media-libs/libafterimage/files/libafterimage-config.patch
new file mode 100644
index 000000000000..d2ed9e032953
--- /dev/null
+++ b/media-libs/libafterimage/files/libafterimage-config.patch
@@ -0,0 +1,15 @@
+--- afterimage-config.in 2005-01-12 18:03:36.000000000 +0000
++++ afterimage-config.in.new 2006-10-15 14:16:12.000000000 +0100
+@@ -110,11 +110,7 @@
+ libs="-lAfterBase $libs"
+ fi
+ libs="-lAfterImage $libs"
+- if test "@libdir@" != "/usr/lib" ; then
+- echo -L@libdir@ $libs
+- else
+- echo $libs
+- fi
++ echo $libs
+ else
+ echo $libs
+ fi
diff --git a/media-libs/libafterimage/files/libafterimage-examples.patch b/media-libs/libafterimage/files/libafterimage-examples.patch
new file mode 100644
index 000000000000..2a92154a3e91
--- /dev/null
+++ b/media-libs/libafterimage/files/libafterimage-examples.patch
@@ -0,0 +1,471 @@
+diff -Nur libAfterImage-1.07/apps/Makefile.in libAfterImage-1.07.new/apps/Makefile.in
+--- libAfterImage-1.07/apps/Makefile.in 2005-02-28 14:52:47.000000000 +0000
++++ libAfterImage-1.07.new/apps/Makefile.in 2007-02-04 16:56:24.000000000 +0000
+@@ -40,7 +40,7 @@
+ AFTER_DIR = @with_afterdir@
+
+ # need this for dependancies :
+-LIBAFTERIMAGE_PATH = ../../libAfterImage
++LIBAFTERIMAGE_PATH = ../
+ LIB_STATIC = $(LIBAFTERIMAGE_PATH)/libAfterImage.a
+ LIB_SHARED = $(LIBAFTERIMAGE_PATH)/libAfterImage.so
+
+diff -Nur libAfterImage-1.07/Makefile.in libAfterImage-1.07.new/Makefile.in
+--- libAfterImage-1.07/Makefile.in 2005-06-03 21:44:06.000000000 +0100
++++ libAfterImage-1.07.new/Makefile.in 2007-02-04 16:57:37.000000000 +0000
+@@ -78,7 +78,7 @@
+ MV = @MV@
+ RM = @RM@
+ RMF = @RM@ -f
+-MKDIR = @MKDIR@
++MKDIR = @MKDIR@ -p
+ FIND = @FIND@
+ XARGS = @XARGS@
+ LDCONFIG = @LDCONFIG@
+@@ -124,7 +124,7 @@
+ # We want to build both static and dynamic libs, as some service apps may need
+ # static library as they gets run at compile time (ASDocGen for example)
+ # but we only install whats selected
+-all: $(LIB_STATIC) @LIBPROG@ $(INSTALLONBUILD) apps
++all: $(LIB_STATIC) @LIBPROG@ $(INSTALLONBUILD)
+
+ install.bin:
+
+@@ -135,21 +135,6 @@
+ @(if [ -d $(LIBDIR) ] && [ -w $(LIBDIR) ]; then \
+ echo "$(INSTALL_LIB) $(LIB_STATIC) $(LIBDIR)"; \
+ $(INSTALL_LIB) $(LIB_STATIC) $(LIBDIR); \
+- if [ `uname` = "Linux" ]; then \
+- if test $(LIBDIR) = "/lib" || test $(LIBDIR) = "/usr/lib"; then \
+- echo "" > /dev/null; \
+- elif grep -q $(LIBDIR) /etc/ld.so.conf > /dev/null 2>&1; then \
+- echo "" > /dev/null; \
+- else \
+- echo "Unable to find $(LIBDIR) in ld.so.conf. In order to use "; \
+- echo "$(LIB_STATIC), you may need to add it or set LD_LIBRARY_PATH."; \
+- fi; \
+- if test -w /etc; then \
+- echo "$(LDCONFIG)"; \
+- $(LDCONFIG); \
+- fi; \
+- fi ;\
+- fi \
+ )
+
+ install.script:
+@@ -161,18 +146,6 @@
+ $(RM) -f $(LIBDIR)/$(LIB_SHARED).$(LIBVERMAJOR) $(LIBDIR)/$(LIB_SHARED); \
+ $(LN_S) -f $(LIB_SHARED).$(LIBVER) $(LIBDIR)/$(LIB_SHARED).$(LIBVERMAJOR); \
+ $(LN_S) -f $(LIB_SHARED).$(LIBVERMAJOR) $(LIBDIR)/$(LIB_SHARED); \
+- if test `uname` = "Linux"; then \
+- if test $(LIBDIR) = "/lib" || test $(LIBDIR) = "/usr/lib"; then \
+- echo "" > /dev/null; \
+- elif grep -q $(LIBDIR) /etc/ld.so.conf > /dev/null 2>&1; then \
+- echo "" > /dev/null; \
+- else \
+- echo "Unable to find $(LIBDIR) in ld.so.conf. In order to use "; \
+- echo "$(LIB_SHARED), you may need to add it or set LD_LIBRARY_PATH."; \
+- fi; \
+- echo "$(LDCONFIG)"; \
+- $(LDCONFIG); \
+- fi \
+ )
+
+ install.cyg:
+@@ -221,7 +194,7 @@
+ )
+
+ install.apps: install.lib
+- cd apps; make install; cd ..
++ cd apps; $(MAKE) install; cd ..
+
+ uninstall.bin:
+
+@@ -286,7 +259,7 @@
+ cd apps; make deps; cd ..
+
+ apps: @LIBPROG@ $(LIB_OBJS) $(LIB_INCS) $(APPS_SRCS) $(APPS_INCS)
+- cd apps; make ; cd ..
++ cd apps; $(MAKE) ; cd ..
+
+
+ $(LIB_STATIC): $(LIB_OBJS) $(LIB_INCS) config.h
+@@ -325,10 +298,10 @@
+
+ $(LIB_SHARED_CYG): $(LIB_OBJS) $(LIB_INCS)
+ $(CC) -shared -o $(LIB_SHARED_CYG) \
+- -Wl,--out-implib=$(LIB_SHARED_CYG_AR) \
+- -Wl,--export-all-symbols -Wl,--enable-auto-import \
+- -Wl,--whole-archive ${LIB_OBJS} \
+- $(USER_LD_FLAGS) -Wl,--no-whole-archive $(LIBRARIES)
++ -Wl,--out-implib=$(LIB_SHARED_CYG_AR) \
++ -Wl,--export-all-symbols -Wl,--enable-auto-import \
++ -Wl,--whole-archive ${LIB_OBJS} \
++ $(USER_LD_FLAGS) -Wl,--no-whole-archive $(LIBRARIES)
+
+ $(LIB_SHARED): $(LIB_SHARED).$(LIBVERMAJOR)
+ $(LN_S) -f $(LIB_SHARED).$(LIBVERMAJOR) $(LIB_SHARED)
+@@ -349,7 +322,6 @@
+ $(INSTALL_DATA) $$page_name.man $(AFTER_MAN_DIR)/$$page_name.1x; \
+ done; cd ../..; \
+ fi
+-
+
+ install.doc:
+ @if [ -d doc/html ] ; then \
+@@ -364,7 +336,7 @@
+ cd ../..; \
+ fi
+
+-install: install.lib install.man install.doc install.apps
++install: install.lib
+
+
+ uninstall: uninstall.lib
+diff -Nur libAfterImage-1.07/Makefile.in~ libAfterImage-1.07.new/Makefile.in~
+--- libAfterImage-1.07/Makefile.in~ 1970-01-01 01:00:00.000000000 +0100
++++ libAfterImage-1.07.new/Makefile.in~ 2007-02-04 16:56:24.000000000 +0000
+@@ -0,0 +1,343 @@
++#
++# Copyright (c) 2001, Sasha Vasko <sasha at aftercode.net>
++# Copyright (c) 1998, Guylhem AZNAR <guylhem@oeil.qc.ca>
++#
++
++subdirs = libjpeg libpng libungif zlib
++
++LIBJPEG_OBJS = libjpeg/jcapimin.o libjpeg/jcapistd.o libjpeg/jccoefct.o \
++ libjpeg/jccolor.o libjpeg/jcdctmgr.o libjpeg/jchuff.o \
++ libjpeg/jcinit.o libjpeg/jcmainct.o libjpeg/jcmarker.o \
++ libjpeg/jcmaster.o libjpeg/jcomapi.o libjpeg/jcparam.o \
++ libjpeg/jcphuff.o libjpeg/jcprepct.o libjpeg/jcsample.o \
++ libjpeg/jctrans.o libjpeg/jdapimin.o libjpeg/jdapistd.o \
++ libjpeg/jdatadst.o libjpeg/jdatasrc.o libjpeg/jdcoefct.o \
++ libjpeg/jdcolor.o libjpeg/jddctmgr.o libjpeg/jdhuff.o \
++ libjpeg/jdinput.o libjpeg/jdmainct.o libjpeg/jdmarker.o \
++ libjpeg/jdmaster.o libjpeg/jdmerge.o libjpeg/jdphuff.o \
++ libjpeg/jdpostct.o libjpeg/jdsample.o libjpeg/jdtrans.o \
++ libjpeg/jerror.o libjpeg/jfdctflt.o libjpeg/jfdctfst.o \
++ libjpeg/jfdctint.o libjpeg/jidctflt.o libjpeg/jidctfst.o \
++ libjpeg/jidctint.o libjpeg/jidctred.o libjpeg/jquant1.o \
++ libjpeg/jquant2.o libjpeg/jutils.o libjpeg/jmemmgr.o libjpeg/jmemnobs.o
++
++LIBPNG_OBJS = libpng/png.o libpng/pngset.o libpng/pngget.o libpng/pngrutil.o \
++ libpng/pngtrans.o libpng/pngwutil.o libpng/pngread.o libpng/pngrio.o \
++ libpng/pngwio.o libpng/pngwrite.o libpng/pngrtran.o \
++ libpng/pngwtran.o libpng/pngmem.o libpng/pngerror.o \
++ libpng/pngpread.o libpng/pnggccrd.o
++
++ZLIB_OBJS = zlib/adler32.o zlib/compress.o zlib/crc32.o \
++ zlib/gzio.o zlib/uncompr.o zlib/deflate.o \
++ zlib/trees.o zlib/zutil.o zlib/inflate.o \
++ zlib/infback.o zlib/inftrees.o zlib/inffast.o
++
++LIBUNGIF_OBJS = libungif/dgif_lib.o libungif/egif_lib.o libungif/gifalloc.o libungif/gif_err.o
++
++AFTERIMAGE_OBJS= @AFTERBASE_C@ asimage.o ascmap.o asfont.o asimagexml.o asstorage.o \
++ asvisual.o blender.o bmp.o char2uni.o draw.o export.o imencdec.o import.o \
++ pixmap.o transform.o ungif.o xcf.o ximage.o xpm.o
++
++################################################################
++# library specifics :
++
++LIB_INCS= afterimage.h config.h afterbase.h ascmap.h asfont.h asim_afterbase.h \
++ asimage.h asimagexml.h asstorage.h asvisual.h blender.h bmp.h char2uni.h \
++ draw.h export.h imencdec.h import.h pixmap.h transform.h ungif.h \
++ xcf.h ximage.h xpm.h xwrap.h
++
++LIB_OBJS= @JPEG_OBJS@ @ZLIB_OBJS@ @PNG_OBJS@ @UNGIF_OBJS@ $(AFTERIMAGE_OBJS)
++
++APPS_SRCS=apps/common.c apps/ascompose.c apps/asview.c \
++ apps/asscale.c apps/astile.c apps/asmerge.c \
++ apps/asgrad.c apps/asflip.c apps/astext.c
++
++APPS_INCS=apps/common.h
++
++# end specifics
++################################################################
++# generic makefile stuff :
++
++LIB_DIR_NAME = libAfterImage
++LIB_NAME = LIBAFTERIMAGE
++LIB_STATIC = libAfterImage.a
++LIB_SHARED = libAfterImage.so
++LIB_SHARED_CYG = cygAfterImage.dll
++LIB_SHARED_CYG_AR = libAfterImage.dll.a
++LIBVER = 0.99
++LIBVERMAJOR = 0
++
++CC = @CC@
++CCFLAGS = @CFLAGS@
++# -march=pentiumpro -mcpu=pentiumpro
++EXTRA_DEFINES = @DEFINE_XLOCALE@
++
++RANLIB = @RANLIB@
++AR = ar clq
++CP = @CP@
++MV = @MV@
++RM = @RM@
++RMF = @RM@ -f
++MKDIR = @MKDIR@ -p
++FIND = @FIND@
++XARGS = @XARGS@
++LDCONFIG = @LDCONFIG@
++ROBODOC = robodoc
++LN_S = @LN_S@
++
++YACC = @YACC@
++LEX = @LEX@
++YACCFLAGS = -d
++LEXFLAGS =
++
++INSTALL = @INSTALL@
++INSTALL_PROGRAM = @INSTALL@ -s -m 755
++INSTALL_DATA = @INSTALL@ -m 644
++INSTALL_HEADER = @INSTALL@ -m 644
++INSTALL_LIB = @INSTALL@ -m 755
++INSTALL_SCRIPT = @INSTALL@ -m 755
++
++INCS_EXTRA = @XPM_CFLAGS@ @JPEG_CFLAGS@ @PNG_CFLAGS@ @GIF_CFLAGS@ @TIFF_CFLAGS@ @TTF_INCLUDES@
++INCS_X = @X_CFLAGS@
++INCS_PRIVATE =
++INCLUDES = $(INCS_EXTRA) $(INCS_PRIVATE) $(INCS_X)
++
++USER_LD_FLAGS = @user_ldflags@
++LIBS_X = @x_libs@
++LIBS_XEXTS =
++LIBS_TEST = @AFTERIMAGE_TEST_LIBS@
++LIBS_AFTERIMAGE = @AFTERIMAGE_LIB_LIBS@
++LIBRARIES = $(LIBS_AFTERIMAGE) $(LIBS_X) $(LIBS_XEXTS)
++LIBRARIES_TEST = $(LIBS_TEST) $(LIBS_X) $(LIBS_XEXTS)
++
++prefix = @prefix@
++exec_prefix = @exec_prefix@
++LIBDIR = $(DESTDIR)@libdir@
++INCLUDEDIR = $(DESTDIR)@includedir@
++AFTER_INC_DIR = $(DESTDIR)@includedir@/$(LIB_DIR_NAME)
++AFTER_BIN_DIR = $(DESTDIR)@bindir@
++AFTER_MAN_DIR = $(DESTDIR)@mandir@/man3
++AFTER_APP_MAN_DIR = $(DESTDIR)@mandir@/man1
++AFTER_SHAREDIR = $(DESTDIR)@datadir@/$(LIB_DIR_NAME)
++AFTER_DOC_DIR = $(AFTER_SHAREDIR)/doc
++
++# We want to build both static and dynamic libs, as some service apps may need
++# static library as they gets run at compile time (ASDocGen for example)
++# but we only install whats selected
++all: $(LIB_STATIC) @LIBPROG@ $(INSTALLONBUILD) apps
++
++install.bin:
++
++install.lib: @LIBPROG@ @LIBINSTALL@ install.inc
++
++install.static:
++ $(INSTALL_SCRIPT) afterimage-libs afterimage-config $(AFTER_BIN_DIR)
++ @(if [ -d $(LIBDIR) ] && [ -w $(LIBDIR) ]; then \
++ echo "$(INSTALL_LIB) $(LIB_STATIC) $(LIBDIR)"; \
++ $(INSTALL_LIB) $(LIB_STATIC) $(LIBDIR); \
++ )
++
++install.script:
++
++install.dyn:
++ @( echo "$(INSTALL_LIB) $(LIB_SHARED).$(LIBVER) $(LIBDIR)"; \
++ $(INSTALL_LIB) $(LIB_SHARED).$(LIBVER) $(LIBDIR); \
++ $(INSTALL_SCRIPT) afterimage-libs afterimage-config $(AFTER_BIN_DIR); \
++ $(RM) -f $(LIBDIR)/$(LIB_SHARED).$(LIBVERMAJOR) $(LIBDIR)/$(LIB_SHARED); \
++ $(LN_S) -f $(LIB_SHARED).$(LIBVER) $(LIBDIR)/$(LIB_SHARED).$(LIBVERMAJOR); \
++ $(LN_S) -f $(LIB_SHARED).$(LIBVERMAJOR) $(LIBDIR)/$(LIB_SHARED); \
++ )
++
++install.cyg:
++ @( echo "$(INSTALL_LIB) $(LIB_SHARED_CYG) $(AFTER_BIN_DIR)"; \
++ $(INSTALL_LIB) $(LIB_SHARED_CYG) $(AFTER_BIN_DIR); \
++ echo "$(INSTALL_LIB) $(LIB_SHARED_CYG) $(LIBDIR)"; \
++ $(INSTALL_LIB) $(LIB_SHARED_CYG) $(LIBDIR); \
++ echo "$(INSTALL_LIB) $(LIB_SHARED_CYG_AR) $(LIBDIR)"; \
++ $(INSTALL_LIB) $(LIB_SHARED_CYG_AR) $(LIBDIR); \
++ echo "$(INSTALL_SCRIPT) afterimage-libs afterimage-config $(AFTER_BIN_DIR)"; \
++ $(INSTALL_SCRIPT) afterimage-libs afterimage-config $(AFTER_BIN_DIR); \
++ )
++
++install.inc:
++ @(if [ -d $(AFTER_INC_DIR) ]; then \
++ echo "$(RM) $(AFTER_INC_DIR)/*"; \
++ $(RM) $(AFTER_INC_DIR)/*; \
++ else \
++ if [ -d $(INCLUDEDIR) ]; then \
++ echo "$(MKDIR) $(AFTER_INC_DIR)"; \
++ if $(MKDIR) $(AFTER_INC_DIR); then \
++ echo " ">/dev/null; \
++ else \
++ echo "failed to create include directory: $(AFTER_INC_DIR)"; \
++ fi; \
++ else \
++ echo "$(MKDIR) $(INCLUDEDIR)"; \
++ if $(MKDIR) $(INCLUDEDIR); then \
++ echo "$(MKDIR) $(AFTER_INC_DIR)"; \
++ if $(MKDIR) $(AFTER_INC_DIR) >/dev/null; then \
++ echo " ">/dev/null; \
++ else \
++ echo "failed to create include directory: $(AFTER_INC_DIR)"; \
++ fi; \
++ else \
++ echo "failed to create include directory: $(INCLUDEDIR)"; \
++ fi; \
++ fi; \
++ fi; \
++ if [ -d $(AFTER_INC_DIR) ]; then \
++ for file in $(LIB_INCS) ; do \
++ echo "$(INSTALL_HEADER) $$file $(AFTER_INC_DIR)"; \
++ $(INSTALL_HEADER) $$file $(AFTER_INC_DIR); \
++ done; \
++ fi \
++ )
++
++install.apps: install.lib
++ cd apps; $(MAKE) install; cd ..
++
++uninstall.bin:
++
++uninstall.lib:
++
++uninstall.man:
++
++uninstall.script:
++
++clean:
++ $(RMF) $(LIB_SHARED) $(LIB_SHARED_CYG) $(LIB_SHARED_CYG_AR) $(LIB_STATIC) *.so.* *.so *.o *~ *% *.bak \#* core ; \
++ for I in ${subdirs}; do $(RMF) $$I/*.o $$I/*.obj $$I/*.bak; done; \
++ cd apps; make clean; cd ..
++
++distclean: clean
++ $(RMF) $(LIB_SHARED) $(LIB_SHARED_CYG) $(LIB_SHARED_CYG_AR) $(LIB_STATIC) *.o *.so.* *~ *% *.bak \#* *.orig core Makefile ; \
++ cd apps; make distclean; cd ..
++
++indent:
++ @SRCS=`echo "$(AFTERIMAGE_OBJS) " | sed "s/.o /.c /g"`; \
++ if test "x$$SRCS" == "x"; then exit; fi; \
++ for i in $$SRCS; do \
++ if (indent -di14 -ts4 -i4 -l120 -lc80 -bad -nbbb -bli0 -c48 -cd48 -ce -cli1 -ncs -nbs -nbbo -hnl < $$i > /tmp/$$i); then \
++ echo "indent $$i"; \
++ mv /tmp/$$i $$i; \
++ fi; \
++ done ; \
++ cd apps; make indent; cd ..
++
++deps:
++ echo -n > .depend ; \
++ buf="" ; \
++ SRCS=`echo "$(AFTERIMAGE_OBJS) " | sed "s/.o /.c /g"`; \
++ echo -n $(LIB_NAME)_OBJS = > .shared ; \
++ for file in $$SRCS; do \
++ echo " \\" >> .shared ; \
++ echo -n ' $$('$(LIB_NAME)_PATH')'/$$file >> .shared ; \
++ if test "x$$buf" != "x"; then \
++ echo $$buf >>.depend ; \
++ echo >>.depend ; \
++ fi; \
++ buf="./"`echo "$$file " | sed "s/.c /.o /g"`: ; \
++ for d in `grep "#include \"" < $$file | awk -F \" '{print $$2}'`; do \
++ if test "x$$buf" != "x"; then \
++ echo $$buf \\ >>.depend ; \
++ fi; \
++ echo -n " " >>.depend ; \
++ buf="$$d "; \
++ done; \
++ done; \
++ if test "x$$buf" != "x"; then \
++ echo $$buf >>.depend ; \
++ fi; \
++ echo "">> .shared ; \
++ echo "">> .shared ; \
++ echo -n $(LIB_NAME)_INCS = >> .shared ; \
++ for f in $(LIB_INCS); do \
++ echo " \\" >> .shared ; \
++ echo -n ' $$('$(LIB_NAME)_PATH')'/$$f >> .shared ; \
++ done; \
++ echo "" >> .shared ; \
++ cd apps; make deps; cd ..
++
++apps: @LIBPROG@ $(LIB_OBJS) $(LIB_INCS) $(APPS_SRCS) $(APPS_INCS)
++ cd apps; make ; cd ..
++
++
++$(LIB_STATIC): $(LIB_OBJS) $(LIB_INCS) config.h
++ $(RMF) $(LIB_STATIC)
++ $(AR) $(LIB_STATIC) $(LIB_OBJS)
++ $(RANLIB) $(LIB_STATIC)
++
++test_asstorage.o: asstorage.c
++ $(CC) $(CCFLAGS) $(EXTRA_DEFINES) -DTEST_ASSTORAGE $(INCLUDES) $(EXTRA_INCLUDES) -c asstorage.c -o test_asstorage.o
++
++test_asstorage: test_asstorage.o
++ $(CC) test_asstorage.o $(USER_LD_FLAGS) $(LIBRARIES_TEST) $(EXTRA_LIBRARIES) -o test_asstorage
++
++test_asdraw.o: draw.c
++ $(CC) $(CCFLAGS) $(EXTRA_DEFINES) -DTEST_ASDRAW $(INCLUDES) $(EXTRA_INCLUDES) -c draw.c -o test_asdraw.o
++
++test_asdraw: test_asdraw.o
++ $(CC) test_asdraw.o $(USER_LD_FLAGS) $(LIBRARIES_TEST) $(EXTRA_LIBRARIES) -o test_asdraw
++
++
++
++.c.o:
++ $(CC) $(CCFLAGS) $(EXTRA_DEFINES) $(INCLUDES) $(EXTRA_INCLUDES) -c $*.c -o $@
++
++.c.s:
++ $(CC) $(CCFLAGS) $(EXTRA_DEFINES) $(INCLUDES) $(EXTRA_INCLUDES) -S $*.c
++
++#
++# include dependency files if they exist
++#
++# this is merely a precaution, but as it does not work with ansi make
++# we took it out
++#ifneq ($(wildcard .depend),)
++include .depend
++#endif
++
++$(LIB_SHARED_CYG): $(LIB_OBJS) $(LIB_INCS)
++ $(CC) -shared -o $(LIB_SHARED_CYG) \
++ -Wl,--out-implib=$(LIB_SHARED_CYG_AR) \
++ -Wl,--export-all-symbols -Wl,--enable-auto-import \
++ -Wl,--whole-archive ${LIB_OBJS} \
++ $(USER_LD_FLAGS) -Wl,--no-whole-archive $(LIBRARIES)
++
++$(LIB_SHARED): $(LIB_SHARED).$(LIBVERMAJOR)
++ $(LN_S) -f $(LIB_SHARED).$(LIBVERMAJOR) $(LIB_SHARED)
++
++$(LIB_SHARED).$(LIBVERMAJOR): $(LIB_SHARED).$(LIBVER)
++ $(LN_S) -f $(LIB_SHARED).$(LIBVER) $(LIB_SHARED).$(LIBVERMAJOR)
++
++$(LIB_SHARED).$(LIBVER): $(LIB_OBJS) $(LIB_INCS) config.h
++ $(CC) -shared -Wl,-soname,$(LIB_SHARED).$(LIBVERMAJOR) -o $(LIB_SHARED).$(LIBVER) \
++ $(LIB_OBJS)
++
++install.man:
++ @if [ -d doc/man ] ; then \
++ cd doc/man; \
++ for f in `ls *.man`; do \
++ page_name=`echo $$f| awk -F . '{print $$1}'`; \
++ echo $(INSTALL_DATA) $$page_name.man $(AFTER_MAN_DIR)/$$page_name.1x; \
++ $(INSTALL_DATA) $$page_name.man $(AFTER_MAN_DIR)/$$page_name.1x; \
++ done; cd ../..; \
++ fi
++
++install.doc:
++ @if [ -d doc/html ] ; then \
++ if [ ! -d $(AFTER_DOC_DIR)/html ] ; then \
++ $(MKDIR) -p $(AFTER_DOC_DIR)/html; \
++ fi; \
++ cd doc/html; \
++ for f in `ls *.html`; do \
++ echo $(INSTALL_DATA) $$f $(AFTER_DOC_DIR)/html/$$f; \
++ $(INSTALL_DATA) $$f $(AFTER_DOC_DIR)/html/$$f; \
++ done; \
++ cd ../..; \
++ fi
++
++install: install.lib install.man install.apps
++
++
++uninstall: uninstall.lib
++
diff --git a/media-libs/libafterimage/libafterimage-1.07.ebuild b/media-libs/libafterimage/libafterimage-1.07.ebuild
new file mode 100644
index 000000000000..ce90f84170aa
--- /dev/null
+++ b/media-libs/libafterimage/libafterimage-1.07.ebuild
@@ -0,0 +1,84 @@
+# Copyright 1999-2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/media-libs/libafterimage/libafterimage-1.07.ebuild,v 1.1 2007/02/05 16:00:43 bicatali Exp $
+
+inherit eutils autotools
+
+MY_PN="libAfterImage"
+
+DESCRIPTION="Afterstep's standalone generic image manipulation library"
+HOMEPAGE="http://www.afterstep.org/afterimage/index.php"
+SRC_URI="ftp://ftp.afterstep.org/stable/${MY_PN}/${MY_PN}-${PV}.tar.bz2"
+
+LICENSE="LGPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="gif jpeg mmx nls png tiff examples"
+
+RDEPEND="media-libs/freetype
+ || ( ( x11-libs/libICE
+ x11-libs/libSM
+ x11-libs/libXext
+ x11-libs/libXrender
+ x11-libs/libX11
+ )
+ virtual/x11
+ )
+ png? ( >=media-libs/libpng-1.2.5 )
+ jpeg? ( >=media-libs/jpeg-6b )
+ gif? ( >=media-libs/giflib-4.1 )
+ tiff? ( >=media-libs/tiff-3.5.7 )"
+
+DEPEND="${RDEPEND}
+ !x11-wm/afterstep"
+
+S="${WORKDIR}/${MY_PN}-${PV}"
+
+
+src_unpack() {
+ unpack ${A}
+ # patch to build the test apps examples if use=test
+ epatch "${FILESDIR}"/${PN}-examples.patch
+ cd "${S}"
+ # patch for afterimage-config
+ epatch "${FILESDIR}"/${PN}-config.patch
+ # remove forced flags
+ sed -i \
+ -e 's/CFLAGS="-O3"//' \
+ -e 's/ -rdynamic//' \
+ configure || die "sed failed"
+
+ eautomake
+}
+
+src_compile() {
+ econf \
+ $(use_enable nls i18n) \
+ $(use_enable mmx mmx-optimization) \
+ $(use_with png) \
+ $(use_with jpeg) \
+ $(use_with gif) \
+ $(use_with tiff) \
+ --enable-glx \
+ --enable-sharedlibs \
+ --disable-staticlibs \
+ --with-x \
+ --with-xpm \
+ --without-builtin-ungif \
+ --without-afterbase \
+ || die "econf failed"
+
+ emake || die "emake failed"
+}
+
+src_install() {
+ dodir /usr/include
+ dodir /usr/bin
+ dodir /usr/$(get_libdir)
+ emake DESTDIR="${D}" install || die "emake install failed"
+ dodoc ChangeLog README
+ if use examples; then
+ insinto /usr/share/doc/${PF}/examples
+ doins apps/*
+ fi
+}
diff --git a/media-libs/libafterimage/metadata.xml b/media-libs/libafterimage/metadata.xml
new file mode 100644
index 000000000000..0c277fd8522f
--- /dev/null
+++ b/media-libs/libafterimage/metadata.xml
@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>graphics</herd>
+<maintainer>
+<email>bicatali@gentoo.org</email>
+<name>Sébastien Fabbro</name>
+</maintainer>
+<longdescription>
+libAfterImage is a generic image manipulation library.
+It was initially implemented to address AfterStep Window Manager's needs for
+image handling, but it evolved into software suitable for project
+that has needs for handling images. Most of the popular image formats are
+supported using standard libraries, with XCF, XPM, PPM/PNM, BMP, ICO,
+TGA and GIF being supported internally. PNG, JPEG and TIFF formats are
+supported via standard libraries. Text rendering capabilities
+included, providing support for TrueType fonts using FreeType library,
+and anti-aliasing of standard fonts from X window system.
+</longdescription>
+</pkgmetadata>