summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'media-libs/jpgalleg')
-rw-r--r--media-libs/jpgalleg/ChangeLog6
-rw-r--r--media-libs/jpgalleg/Manifest4
-rw-r--r--media-libs/jpgalleg/files/digest-jpgalleg-1.1-r12
-rw-r--r--media-libs/jpgalleg/jpgalleg-1.1-r1.ebuild58
4 files changed, 68 insertions, 2 deletions
diff --git a/media-libs/jpgalleg/ChangeLog b/media-libs/jpgalleg/ChangeLog
index 688116a675b3..a9b72df9fe2b 100644
--- a/media-libs/jpgalleg/ChangeLog
+++ b/media-libs/jpgalleg/ChangeLog
@@ -1,4 +1,10 @@
# ChangeLog for media-libs/jpgalleg
+*jpgalleg-1.1-r1 (22 Aug 2003)
+
+ 22 Aug 2003; Michael Sterrett <msterret@gentoo.org> jpgalleg-1.1-r1.ebuild:
+ tidy; unpack, patch and sed in src_unpack; be more selective for examples; use
+ sed >= 4
+
*jpgalleg-1.1 (27 Oct 2002)
Thomas Raschbacher<lordvan@lordvan.com>: created ebuild
diff --git a/media-libs/jpgalleg/Manifest b/media-libs/jpgalleg/Manifest
index d59df482a27d..57bf4bdd6306 100644
--- a/media-libs/jpgalleg/Manifest
+++ b/media-libs/jpgalleg/Manifest
@@ -1,5 +1,5 @@
-MD5 15525bfbf897d251cf1ab6dcd23bd731 ChangeLog 123
-MD5 16f3e146be0106c9de3cee1aba35c878 jpgalleg-1.1-r1.ebuild 1304
+MD5 d51ddaf97585c228d41a9b41b826123d ChangeLog 326
+MD5 d6dddf0f9241286f270979dcb89b141d jpgalleg-1.1-r1.ebuild 1309
MD5 19dccb68abd1c578c8e69c43d1b4f19d jpgalleg-1.1.ebuild 1232
MD5 ce07dc77998f88ba139410e60ad88061 files/digest-jpgalleg-1.1 112
MD5 ce07dc77998f88ba139410e60ad88061 files/digest-jpgalleg-1.1-r1 112
diff --git a/media-libs/jpgalleg/files/digest-jpgalleg-1.1-r1 b/media-libs/jpgalleg/files/digest-jpgalleg-1.1-r1
new file mode 100644
index 000000000000..4a1823fa82f7
--- /dev/null
+++ b/media-libs/jpgalleg/files/digest-jpgalleg-1.1-r1
@@ -0,0 +1,2 @@
+MD5 68d8f8922db7cbc1715a695ac650fded jpgalleg.zip 247782
+MD5 00d0d227404f46b5def471d7a567e69b jpgal11b.zip 1378
diff --git a/media-libs/jpgalleg/jpgalleg-1.1-r1.ebuild b/media-libs/jpgalleg/jpgalleg-1.1-r1.ebuild
new file mode 100644
index 000000000000..90b2bd7ce072
--- /dev/null
+++ b/media-libs/jpgalleg/jpgalleg-1.1-r1.ebuild
@@ -0,0 +1,58 @@
+# Copyright 1999-2003 Gentoo Technologies, Inc.
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/media-libs/jpgalleg/jpgalleg-1.1-r1.ebuild,v 1.1 2003/08/22 11:04:55 msterret Exp $
+
+DESCRIPTION="The jpeg loading routines are able to load almost any JPG image file with Allegro."
+HOMEPAGE="http://orbflux.com/jpgalleg/"
+SRC_URI="http://orbflux.com/jpgalleg/${PN}.zip
+ http://www.dribin.org/dave/game_launcher/jpgal11b.zip"
+
+LICENSE="GPL-2"
+KEYWORDS="x86"
+SLOT="0"
+IUSE=""
+
+DEPEND=">=media-libs/allegro-4.0.0
+ >=app-arch/unzip-5.50
+ >=sys-apps/sed-4"
+S="${WORKDIR}"
+
+src_unpack() {
+ unpack ${A}
+ cd ${S}
+
+ sed -i \
+ -e 's:jpgal11b/::' jpgal11b.pat || \
+ die "sed jpgal11b.pat failed"
+
+ edos2unix jpgal11b.pat
+
+ epatch jpgal11b.pat || die
+
+ sed -i \
+ -e 's:allegro/aintern.h:allegro/internal/aintern.h:' jpeg.c || \
+ die "sed jpeg.c failed"
+
+ sed -i \
+ -e "s/-O3/${CFLAGS}/" makefile.dj || \
+ die "sed makefile.dj failed"
+}
+
+src_compile() {
+ emake -f makefile.dj libjpgal.a || die "emake failed"
+}
+
+src_install() {
+ cd ${S}/
+
+ insinto /usr/include
+ doins jpgalleg.h
+
+ insinto /usr/lib
+ doins libjpgal.a
+
+ dodoc README
+
+ insinto /usr/share/doc/${P}/examples
+ doins *.jpg ex*.c jpeg{data,demo}* makefile*
+}