diff options
author | Danny van Dyk <kugelfang@gentoo.org> | 2004-09-30 21:08:46 +0000 |
---|---|---|
committer | Danny van Dyk <kugelfang@gentoo.org> | 2004-09-30 21:08:46 +0000 |
commit | b7f9422f25803d856b34f2bcda38adbac1ba53c9 (patch) | |
tree | 6827e140ebce7d29e46c1f7ae3d630d6d99648af /media-libs/libcaca | |
parent | typo (Manifest recommit) (diff) | |
download | gentoo-2-b7f9422f25803d856b34f2bcda38adbac1ba53c9.tar.gz gentoo-2-b7f9422f25803d856b34f2bcda38adbac1ba53c9.tar.bz2 gentoo-2-b7f9422f25803d856b34f2bcda38adbac1ba53c9.zip |
Added new libcaca to fix BUG #57359.
Diffstat (limited to 'media-libs/libcaca')
-rw-r--r-- | media-libs/libcaca/ChangeLog | 14 | ||||
-rw-r--r-- | media-libs/libcaca/files/digest-libcaca-0.9-r1 | 1 | ||||
-rw-r--r-- | media-libs/libcaca/files/libcaca-0.9-libtool.patch | 139 | ||||
-rw-r--r-- | media-libs/libcaca/libcaca-0.9-r1.ebuild | 53 |
4 files changed, 206 insertions, 1 deletions
diff --git a/media-libs/libcaca/ChangeLog b/media-libs/libcaca/ChangeLog index 51fab7f96b06..bea06e1f334f 100644 --- a/media-libs/libcaca/ChangeLog +++ b/media-libs/libcaca/ChangeLog @@ -1,6 +1,18 @@ # ChangeLog for media-libs/libcaca # Copyright 2000-2004 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/media-libs/libcaca/ChangeLog,v 1.11 2004/08/22 08:11:35 hardave Exp $ +# $Header: /var/cvsroot/gentoo-x86/media-libs/libcaca/ChangeLog,v 1.12 2004/09/30 21:08:46 kugelfang Exp $ + +*libcaca-0.9-r1 (30 Sep 2004) + + 30 Sep 2004; Danny van Dyk <kugelfang@gentoo.org> + +files/libcaca-0.9-libtool.patch, +libcaca-0.9-r1.ebuild: + Patched libcaca's buildsystem to use libtool instead ranlib. Builds shared + library now. Allows libsdl to be build as shared library. BUG #57359 + +*libcaca-0.9-r1 30 Sep 2004 + + 30 Sep 2004; <> + # INSERT ENTRY HERE 22 Aug 2004; Hardave Riar <hardave@gentoo.org> libcaca-0.9.ebuild: Added ~mips keyword. diff --git a/media-libs/libcaca/files/digest-libcaca-0.9-r1 b/media-libs/libcaca/files/digest-libcaca-0.9-r1 new file mode 100644 index 000000000000..059c169ff241 --- /dev/null +++ b/media-libs/libcaca/files/digest-libcaca-0.9-r1 @@ -0,0 +1 @@ +MD5 95a0a89fbd147f6610176fab66d0dd7c libcaca-0.9.tar.gz 215622 diff --git a/media-libs/libcaca/files/libcaca-0.9-libtool.patch b/media-libs/libcaca/files/libcaca-0.9-libtool.patch new file mode 100644 index 000000000000..98e59f55cb44 --- /dev/null +++ b/media-libs/libcaca/files/libcaca-0.9-libtool.patch @@ -0,0 +1,139 @@ +diff -ru libcaca-0.9.old/caca-config.in libcaca-0.9/caca-config.in +--- libcaca-0.9.old/caca-config.in 2004-02-02 04:00:20.000000000 +0100 ++++ libcaca-0.9/caca-config.in 2004-09-28 00:02:01.950094712 +0200 +@@ -63,13 +63,9 @@ + --ldflags) + echo_ldflags=yes + ;; +-@NEED_PIC_TRUE@ --libs) +-@NEED_PIC_FALSE@ --libs | --plugin-libs) ++ --libs | --plugin-libs) + echo_libs=yes + ;; +-@NEED_PIC_TRUE@ --plugin-libs) +-@NEED_PIC_TRUE@ echo_plugin_libs=yes +-@NEED_PIC_TRUE@ ;; + *) + usage 1 1>&2 + ;; +@@ -111,9 +107,3 @@ + then + echo -L@libdir@ -lcaca @CACA_LIBS@ + fi +- +-@NEED_PIC_TRUE@if test "$echo_plugin_libs" = "yes" +-@NEED_PIC_TRUE@then +-@NEED_PIC_TRUE@ echo -L@libdir@ -lcaca_pic @CACA_LIBS@ +-@NEED_PIC_TRUE@fi +- +diff -ru libcaca-0.9.old/configure.ac libcaca-0.9/configure.ac +--- libcaca-0.9.old/configure.ac 2004-09-28 00:01:20.092458040 +0200 ++++ libcaca-0.9/configure.ac 2004-09-27 23:59:22.013408784 +0200 +@@ -11,7 +11,7 @@ + + AM_PROG_CC_C_O + AC_PROG_CPP +-AC_PROG_RANLIB ++AC_PROG_LIBTOOL + + AC_C_CONST + AC_C_INLINE +diff -ru libcaca-0.9.old/examples/Makefile.am libcaca-0.9/examples/Makefile.am +--- libcaca-0.9.old/examples/Makefile.am 2004-09-28 00:01:20.093457888 +0200 ++++ libcaca-0.9/examples/Makefile.am 2004-09-27 23:59:22.013408784 +0200 +@@ -7,27 +7,27 @@ + bin_PROGRAMS = cacademo cacafire cacaball cacaplas cacaview cacamoir + + cacademo_SOURCES = demo.c +-cacademo_LDADD = ../src/libcaca.a @CACA_LIBS@ @MATH_LIBS@ ++cacademo_LDADD = ../src/.libs/libcaca.a @CACA_LIBS@ @MATH_LIBS@ + cacademo_CPPFLAGS = -I$(top_srcdir)/src -DDATADIR=\"$(pkgdatadir)\" + + cacafire_SOURCES = aafire.c +-cacafire_LDADD = ../src/libcaca.a @CACA_LIBS@ ++cacafire_LDADD = ../src/.libs/libcaca.a @CACA_LIBS@ + cacafire_CPPFLAGS = -I$(top_srcdir)/src -DLIBCACA=1 + + cacaball_SOURCES = cacaball.c +-cacaball_LDADD = ../src/libcaca.a @CACA_LIBS@ @MATH_LIBS@ ++cacaball_LDADD = ../src/.libs/libcaca.a @CACA_LIBS@ @MATH_LIBS@ + cacaball_CPPFLAGS = -I$(top_srcdir)/src + + cacaplas_SOURCES = cacaplas.c +-cacaplas_LDADD = ../src/libcaca.a @CACA_LIBS@ @MATH_LIBS@ ++cacaplas_LDADD = ../src/.libs/libcaca.a @CACA_LIBS@ @MATH_LIBS@ + cacaplas_CPPFLAGS = -I$(top_srcdir)/src + + cacamoir_SOURCES = cacamoir.c +-cacamoir_LDADD = ../src/libcaca.a @CACA_LIBS@ @MATH_LIBS@ ++cacamoir_LDADD = ../src/.libs/libcaca.a @CACA_LIBS@ @MATH_LIBS@ + cacamoir_CPPFLAGS = -I$(top_srcdir)/src + + cacaview_SOURCES = cacaview.c +-cacaview_LDADD = ../src/libcaca.a @CACA_LIBS@ ++cacaview_LDADD = ../src/.libs/libcaca.a @CACA_LIBS@ + cacaview_CPPFLAGS = -I$(top_srcdir)/src -DX_DISPLAY_MISSING=1 + if USE_IMLIB2 + cacaview_CFLAGS = `imlib2-config --cflags` +diff -ru libcaca-0.9.old/src/Makefile.am libcaca-0.9/src/Makefile.am +--- libcaca-0.9.old/src/Makefile.am 2004-09-28 00:01:20.094457736 +0200 ++++ libcaca-0.9/src/Makefile.am 2004-09-27 23:59:22.013408784 +0200 +@@ -2,8 +2,9 @@ + + include_HEADERS = caca.h + +-lib_LIBRARIES = libcaca.a $(libcaca_pic_a) +-libcaca_a_SOURCES = \ ++lib_LTLIBRARIES = libcaca.la ++libcaca_la_LDFLAGS = -version-info 0:9:0 ++libcaca_la_SOURCES = \ + caca.c \ + caca.h \ + caca_internals.h \ +@@ -18,10 +19,3 @@ + bitmap.c \ + time.c \ + $(NULL) +- +-if NEED_PIC +-libcaca_pic_a = libcaca_pic.a +-endif +-libcaca_pic_a_SOURCES = $(libcaca_a_SOURCES) +-libcaca_pic_a_CPPFLAGS = -fPIC -DPIC +- +diff -ru libcaca-0.9.old/test/Makefile.am libcaca-0.9/test/Makefile.am +--- libcaca-0.9.old/test/Makefile.am 2004-09-28 00:01:20.094457736 +0200 ++++ libcaca-0.9/test/Makefile.am 2004-09-27 23:59:22.013408784 +0200 +@@ -3,26 +3,26 @@ + noinst_PROGRAMS = colors dithering event hsv optipal spritedit + + colors_SOURCES = colors.c +-colors_LDADD = ../src/libcaca.a @CACA_LIBS@ ++colors_LDADD = ../src/.libs/libcaca.a @CACA_LIBS@ + colors_CPPFLAGS = -I$(top_srcdir)/src + + dithering_SOURCES = dithering.c +-dithering_LDADD = ../src/libcaca.a @CACA_LIBS@ ++dithering_LDADD = ../src/.libs/libcaca.a @CACA_LIBS@ + dithering_CPPFLAGS = -I$(top_srcdir)/src + + event_SOURCES = event.c +-event_LDADD = ../src/libcaca.a @CACA_LIBS@ ++event_LDADD = ../src/.libs/libcaca.a @CACA_LIBS@ + event_CPPFLAGS = -I$(top_srcdir)/src + + hsv_SOURCES = hsv.c +-hsv_LDADD = ../src/libcaca.a @CACA_LIBS@ ++hsv_LDADD = ../src/.libs/libcaca.a @CACA_LIBS@ + hsv_CPPFLAGS = -I$(top_srcdir)/src + + optipal_SOURCES = optipal.c +-optipal_LDADD = ../src/libcaca.a @CACA_LIBS@ ++optipal_LDADD = ../src/.libs/libcaca.a @CACA_LIBS@ + optipal_CPPFLAGS = -I$(top_srcdir)/src + + spritedit_SOURCES = spritedit.c +-spritedit_LDADD = ../src/libcaca.a @CACA_LIBS@ ++spritedit_LDADD = ../src/.libs/libcaca.a @CACA_LIBS@ + spritedit_CPPFLAGS = -I$(top_srcdir)/src + diff --git a/media-libs/libcaca/libcaca-0.9-r1.ebuild b/media-libs/libcaca/libcaca-0.9-r1.ebuild new file mode 100644 index 000000000000..360165a951c5 --- /dev/null +++ b/media-libs/libcaca/libcaca-0.9-r1.ebuild @@ -0,0 +1,53 @@ +# Copyright 1999-2004 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/media-libs/libcaca/libcaca-0.9-r1.ebuild,v 1.1 2004/09/30 21:08:46 kugelfang Exp $ + +inherit eutils + +DESCRIPTION="A library that creates colored ASCII-art graphics" +HOMEPAGE="http://sam.zoy.org/projects/libcaca" +SRC_URI="http://sam.zoy.org/projects/${PN}/${P}.tar.gz" + +LICENSE="LGPL-2.1" +SLOT="0" +KEYWORDS="~x86 ~ppc ~sparc ~alpha ~hppa ~amd64 ~ia64 ~ppc64 ~mips" +IUSE="ncurses slang doc imlib X" + +DEPEND="ncurses? ( >=sys-libs/ncurses-5.3 ) + slang? ( >=sys-libs/slang-1.4.2 ) + doc? ( app-doc/doxygen ) + imlib? ( media-libs/imlib2 ) + X? ( virtual/x11 )" + +src_unpack() { + unpack ${A} + cd ${WORKDIR} + # Let libtool build the libraries, see BUG #57359 + epatch ${FILESDIR}/${P}-libtool.patch +} + +src_compile() { + #57359 + libtoolize --force + aclocal + automake --add-missing + autoconf + + # temp font fix #44128 + export VARTEXFONTS="${T}/fonts" + econf \ + `use_enable doc` \ + `use_enable ncurses` \ + `use_enable slang` \ + `use_enable imlib imlib2` \ + `use_enable X x11` \ + || die + emake || die + unset VARTEXFONTS +} + +src_install() { + mv doc/man/man3caca doc/man/man3 + make install DESTDIR=${D} || die + dodoc AUTHORS BUGS ChangeLog NEWS NOTES README TODO +} |