pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/graphics/SDL2_image This is a simple library to load i...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/6c0fccde74ab
branches:  trunk
changeset: 632547:6c0fccde74ab
user:      adam <adam%pkgsrc.org@localhost>
date:      Mon Mar 31 10:10:14 2014 +0000

description:
This is a simple library to load images of various formats as SDL surfaces.
This library supports BMP, PNM (PPM/PGM/PBM), XPM, LBM, PCX, GIF, JPEG, PNG,
TGA, and TIFF formats.

diffstat:

 graphics/SDL2_image/DESCR                     |   3 ++
 graphics/SDL2_image/Makefile                  |  31 +++++++++++++++++++++++++++
 graphics/SDL2_image/PLIST                     |   5 ++++
 graphics/SDL2_image/buildlink3.mk             |  16 +++++++++++++
 graphics/SDL2_image/distinfo                  |   7 ++++++
 graphics/SDL2_image/patches/patch-Makefile.in |  15 +++++++++++++
 graphics/SDL2_image/patches/patch-configure   |  14 ++++++++++++
 7 files changed, 91 insertions(+), 0 deletions(-)

diffs (119 lines):

diff -r 16d716a23770 -r 6c0fccde74ab graphics/SDL2_image/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/graphics/SDL2_image/DESCR Mon Mar 31 10:10:14 2014 +0000
@@ -0,0 +1,3 @@
+This is a simple library to load images of various formats as SDL surfaces.
+This library supports BMP, PNM (PPM/PGM/PBM), XPM, LBM, PCX, GIF, JPEG, PNG,
+TGA, and TIFF formats.
diff -r 16d716a23770 -r 6c0fccde74ab graphics/SDL2_image/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/graphics/SDL2_image/Makefile      Mon Mar 31 10:10:14 2014 +0000
@@ -0,0 +1,31 @@
+# $NetBSD: Makefile,v 1.1 2014/03/31 10:10:14 adam Exp $
+
+DISTNAME=      SDL2_image-2.0.0
+CATEGORIES=    graphics devel
+MASTER_SITES=  http://www.libsdl.org/projects/SDL_image/release/
+
+MAINTAINER=    pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE=      http://www.libsdl.org/projects/SDL_image/
+COMMENT=       Load images as SDL surfaces
+LICENSE=       zlib
+
+PKG_INSTALLATION_TYPES=        overwrite pkgviews
+
+USE_LANGUAGES=         c
+USE_LIBTOOL=           yes
+GNU_CONFIGURE=         yes
+
+INSTALLATION_DIRS=     bin
+PKGCONFIG_OVERRIDE=    SDL_image.pc.in
+CHECK_PORTABILITY_SKIP=        external/tiff-4.0.3/configure
+
+post-install:
+       ${LIBTOOL} --mode=install ${INSTALL_PROGRAM} ${WRKSRC}/showimage \
+               ${DESTDIR}${PREFIX}/bin/showimage2
+
+.include "../../devel/SDL2/buildlink3.mk"
+.include "../../graphics/libwebp/buildlink3.mk"
+.include "../../graphics/png/buildlink3.mk"
+.include "../../graphics/tiff/buildlink3.mk"
+.include "../../mk/jpeg.buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff -r 16d716a23770 -r 6c0fccde74ab graphics/SDL2_image/PLIST
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/graphics/SDL2_image/PLIST Mon Mar 31 10:10:14 2014 +0000
@@ -0,0 +1,5 @@
+@comment $NetBSD: PLIST,v 1.1 2014/03/31 10:10:14 adam Exp $
+bin/showimage2
+include/SDL2/SDL_image.h
+lib/libSDL2_image.la
+lib/pkgconfig/SDL2_image.pc
diff -r 16d716a23770 -r 6c0fccde74ab graphics/SDL2_image/buildlink3.mk
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/graphics/SDL2_image/buildlink3.mk Mon Mar 31 10:10:14 2014 +0000
@@ -0,0 +1,16 @@
+# $NetBSD: buildlink3.mk,v 1.1 2014/03/31 10:10:14 adam Exp $
+
+BUILDLINK_TREE+=       SDL2_image
+
+.if !defined(SDL2_IMAGE_BUILDLINK3_MK)
+SDL2_IMAGE_BUILDLINK3_MK:=
+
+BUILDLINK_API_DEPENDS.SDL2_image+=     SDL2_image>=2.0.0
+BUILDLINK_ABI_DEPENDS.SDL2_image+=     SDL2_image>=2.0.0
+BUILDLINK_PKGSRCDIR.SDL2_image?=       ../../graphics/SDL2_image
+BUILDLINK_INCDIRS.SDL2_image?=         include/SDL2
+
+.include "../../devel/SDL2/buildlink3.mk"
+.endif # SDL2_IMAGE_BUILDLINK3_MK
+
+BUILDLINK_TREE+=       -SDL2_image
diff -r 16d716a23770 -r 6c0fccde74ab graphics/SDL2_image/distinfo
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/graphics/SDL2_image/distinfo      Mon Mar 31 10:10:14 2014 +0000
@@ -0,0 +1,7 @@
+$NetBSD: distinfo,v 1.1 2014/03/31 10:10:14 adam Exp $
+
+SHA1 (SDL2_image-2.0.0.tar.gz) = 20b1b0db9dd540d6d5e40c7da8a39c6a81248865
+RMD160 (SDL2_image-2.0.0.tar.gz) = 1bd3e383bada30852fe1bcc4ac1f5d144a9158ca
+Size (SDL2_image-2.0.0.tar.gz) = 8398016 bytes
+SHA1 (patch-Makefile.in) = dbe3c8578e6b2be2ab1ed82c170817417f30e021
+SHA1 (patch-configure) = 78123313737fe09eed0d80e5c30eef63e16e908b
diff -r 16d716a23770 -r 6c0fccde74ab graphics/SDL2_image/patches/patch-Makefile.in
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/graphics/SDL2_image/patches/patch-Makefile.in     Mon Mar 31 10:10:14 2014 +0000
@@ -0,0 +1,15 @@
+$NetBSD: patch-Makefile.in,v 1.1 2014/03/31 10:10:14 adam Exp $
+
+Explicitly tell libtool the compiler type.
+
+--- Makefile.in.orig   2014-03-21 08:02:25.000000000 +0000
++++ Makefile.in
+@@ -124,7 +124,7 @@ AM_V_lt = $(am__v_lt_@AM_V@)
+ am__v_lt_ = $(am__v_lt_@AM_DEFAULT_V@)
+ am__v_lt_0 = --silent
+ am__v_lt_1 = 
+-libSDL2_image_la_LINK = $(LIBTOOL) $(AM_V_lt) $(AM_LIBTOOLFLAGS) \
++libSDL2_image_la_LINK = $(LIBTOOL) --tag CC $(AM_V_lt) $(AM_LIBTOOLFLAGS) \
+       $(LIBTOOLFLAGS) --mode=link $(OBJCLD) $(AM_OBJCFLAGS) \
+       $(OBJCFLAGS) $(libSDL2_image_la_LDFLAGS) $(LDFLAGS) -o $@
+ PROGRAMS = $(noinst_PROGRAMS)
diff -r 16d716a23770 -r 6c0fccde74ab graphics/SDL2_image/patches/patch-configure
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/graphics/SDL2_image/patches/patch-configure       Mon Mar 31 10:10:14 2014 +0000
@@ -0,0 +1,14 @@
+$NetBSD: patch-configure,v 1.1 2014/03/31 10:10:14 adam Exp $
+
+Add frameworks required to link under OS X.
+
+--- configure.orig     2014-03-19 15:55:16.000000000 +0000
++++ configure
+@@ -12024,6 +12024,7 @@ fi
+ 
+         if test x$enable_imageio = xyes; then
+             IMG_LIBS="-Wl,-framework,ApplicationServices $IMG_LIBS"
++            IMG_LIBS="-Wl,-framework,Cocoa -Wl,-framework,Carbon -Wl,-framework,IOKit -Wl,-framework,ForceFeedback $IMG_LIBS"
+         else
+             CFLAGS="$CFLAGS -DSDL_IMAGE_USE_COMMON_BACKEND"
+         fi



Home | Main Index | Thread Index | Old Index