mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-22 03:30:05 +02:00
Add recipe for gdk-pixbuf.
This commit is contained in:
85
x11-libs/gdk-pixbuf/gdk_pixbuf-2.31.5.recipe
Normal file
85
x11-libs/gdk-pixbuf/gdk_pixbuf-2.31.5.recipe
Normal file
@@ -0,0 +1,85 @@
|
||||
SUMMARY="Bitmap rendering and loading support"
|
||||
DESCRIPTION="The GdkPixBuf library provides a number of features:
|
||||
* Reference counting for libart's ArtPixBuf structure.
|
||||
* Image loading facilities.
|
||||
* Rendering of a GdkPixBuf into various formats: drawables (windows, pixmaps), \
|
||||
GdkRGB buffers.
|
||||
* Fast scaling and compositing of pixbufs.
|
||||
* Simple animation loading (ie. animated GIFs)"
|
||||
HOMEPAGE="https://launchpad.net/gdk-pixbuf"
|
||||
COPYRIGHT="1999-2015 Gnome Project"
|
||||
LICENSE="GNU LGPL v2.1"
|
||||
|
||||
SOURCE_URI="https://download.gnome.org/sources/gdk-pixbuf/2.31/gdk-pixbuf-2.31.5.tar.xz"
|
||||
CHECKSUM_SHA256="0a76e70497cd25ef2ac0da63a489c158ea3926724eb83d5254f9a0bc985ff7a6"
|
||||
SOURCE_DIR="gdk-pixbuf-$portVersion"
|
||||
PATCHES="gdk_pixbuf-$portVersion.patchset"
|
||||
REVISION="1"
|
||||
|
||||
ARCHITECTURES="?x86"
|
||||
SECONDARY_ARCHITECTURES="x86"
|
||||
|
||||
PROVIDES="
|
||||
gdk_pixbuf$secondaryArchSuffix = $portVersion
|
||||
cmd:gdk_pixbuf_csource$secondaryArchSuffix
|
||||
cmd:gdk_pixbuf_pixdata$secondaryArchSuffix
|
||||
cmd:gdk_pixbuf_query_loaders$secondaryArchSuffix
|
||||
lib:libgdk_pixbuf_2.0$secondaryArchSuffix = 0.3100.5 compat = 0
|
||||
"
|
||||
|
||||
REQUIRES="
|
||||
haiku$secondaryArchSuffix
|
||||
lib:libiconv$secondaryArchSuffix
|
||||
lib:libintl$secondaryArchSuffix
|
||||
lib:libffi$secondaryArchSuffix
|
||||
lib:libgio_2.0$secondaryArchSuffix
|
||||
lib:libglib_2.0$secondaryArchSuffix
|
||||
lib:libgmodule_2.0$secondaryArchSuffix
|
||||
lib:libgobject_2.0$secondaryArchSuffix
|
||||
lib:libpng16$secondaryArchSuffix
|
||||
lib:libz$secondaryArchSuffix
|
||||
"
|
||||
|
||||
PROVIDES_devel="
|
||||
gdk_pixbuf${secondaryArchSuffix}_devel = $portVersion
|
||||
devel:libgdk_pixbuf_2.0$secondaryArchSuffix = 0.3100.5 compat = 0
|
||||
"
|
||||
REQUIRES_devel="
|
||||
gdk_pixbuf$secondaryArchSuffix == $portVersion base
|
||||
"
|
||||
|
||||
BUILD_REQUIRES="
|
||||
haiku${secondaryArchSuffix}_devel
|
||||
devel:libjpeg$secondaryArchSuffix
|
||||
devel:libglib_2.0$secondaryArchSuffix
|
||||
devel:libpng$secondaryArchSuffix
|
||||
devel:libtiff$secondaryArchSuffix
|
||||
"
|
||||
BUILD_PREREQUIRES="
|
||||
cmd:aclocal
|
||||
cmd:autoconf
|
||||
cmd:awk
|
||||
cmd:make
|
||||
cmd:gcc$secondaryArchSuffix
|
||||
cmd:pkg_config$secondaryArchSuffix
|
||||
"
|
||||
|
||||
BUILD()
|
||||
{
|
||||
aclocal
|
||||
autoconf
|
||||
runConfigure ./configure
|
||||
make $jobArgs
|
||||
}
|
||||
|
||||
INSTALL()
|
||||
{
|
||||
make install
|
||||
|
||||
prepareInstalledDevelLibs \
|
||||
libgdk_pixbuf-2.0
|
||||
rm $developLibDir/*.la
|
||||
fixPkgconfig
|
||||
packageEntries devel \
|
||||
$developDir
|
||||
}
|
||||
60
x11-libs/gdk-pixbuf/patches/gdk_pixbuf-2.31.5.patchset
Normal file
60
x11-libs/gdk-pixbuf/patches/gdk_pixbuf-2.31.5.patchset
Normal file
@@ -0,0 +1,60 @@
|
||||
From 88f76cb678ded50df15c3381e7e464151facdbcc Mon Sep 17 00:00:00 2001
|
||||
From: Adrien Destugues <pulkomandy@gmail.com>
|
||||
Date: Thu, 13 Aug 2015 21:26:06 +0200
|
||||
Subject: Fix hardcoded -lm.
|
||||
|
||||
|
||||
diff --git a/configure.ac b/configure.ac
|
||||
index 88a5d47..6083c0f 100644
|
||||
--- a/configure.ac
|
||||
+++ b/configure.ac
|
||||
@@ -106,6 +106,10 @@ AC_MSG_CHECKING([for native Win32])
|
||||
LIB_EXE_MACHINE_FLAG=X86
|
||||
EXE_MANIFEST_ARCHITECTURE=X86
|
||||
case "$host" in
|
||||
+ *-*-haiku*)
|
||||
+ os_win32=no
|
||||
+ MATH_LIB=
|
||||
+ ;;
|
||||
*-*-mingw*)
|
||||
os_win32=yes
|
||||
gio_can_sniff=no
|
||||
@@ -352,7 +356,7 @@ dnl -std1 is given to the native cc.
|
||||
AC_MSG_CHECKING([for extra flags to get ANSI library prototypes])
|
||||
|
||||
gtk_save_LIBS=$LIBS
|
||||
-LIBS="$LIBS -lm"
|
||||
+LIBS="$LIBS $MATH_LIB"
|
||||
AC_TRY_RUN([#include <math.h>
|
||||
int main (void) { return (log(1) != log(1.)); }],
|
||||
AC_MSG_RESULT(none needed),
|
||||
@@ -539,7 +543,7 @@ if test x$os_win32 = xno || test x$with_gdiplus = xno; then
|
||||
[AC_CHECK_HEADER(tiffio.h,
|
||||
TIFF='tiff'; LIBTIFF='-ltiff34 -ljpeg -lz',
|
||||
AC_MSG_WARN(*** TIFF loader will not be built (TIFF header files not found) ***))],
|
||||
- AC_MSG_WARN(*** TIFF loader will not be built (TIFF library not found) ***), -ljpeg -lz -lm)], -ljpeg -lz -lm)], -lm)
|
||||
+ AC_MSG_WARN(*** TIFF loader will not be built (TIFF library not found) ***), -ljpeg -lz $MATH_LIB)], -ljpeg -lz $MATH_LIB)], $MATH_LIB)
|
||||
fi
|
||||
|
||||
if test x$with_libtiff != xno && test -z "$LIBTIFF"; then
|
||||
@@ -608,7 +612,7 @@ dnl Test for libpng
|
||||
[AC_CHECK_HEADER(png.h,
|
||||
png_ok=yes,
|
||||
png_ok=no)],
|
||||
- AC_MSG_WARN(*** PNG loader will not be built (PNG library not found) ***), -lz -lm)
|
||||
+ AC_MSG_WARN(*** PNG loader will not be built (PNG library not found) ***), -lz $MATH_LIB)
|
||||
if test "$png_ok" = yes; then
|
||||
AC_MSG_CHECKING([for png_structp in png.h])
|
||||
AC_TRY_COMPILE([#include <png.h>],
|
||||
@@ -637,7 +641,7 @@ dnl Test for libpng
|
||||
|
||||
dnl Test for libjasper
|
||||
if test x$with_libjasper = xyes && test -z "$LIBJASPER"; then
|
||||
- AC_CHECK_LIB(jasper, jas_init, LIBJASPER=-ljasper, [], -ljpeg -lm)
|
||||
+ AC_CHECK_LIB(jasper, jas_init, LIBJASPER=-ljasper, [], -ljpeg $MATH_LIB)
|
||||
fi
|
||||
|
||||
if test x$with_libjasper = xyes && test -z "$LIBJASPER"; then
|
||||
--
|
||||
2.2.2
|
||||
|
||||
Reference in New Issue
Block a user