Some changes to do a "proper" install.
Some changes to do a "proper" install. Makefile doesnt work, however.
This commit is contained in:
@ -1,13 +1,7 @@
|
|||||||
|
common_ldflags = -aviod-version
|
||||||
lib_LTLIBRARIES = \
|
|
||||||
libgdk-pixbuf.la \
|
|
||||||
libpixbuf-png.la \
|
|
||||||
libpixbuf-jpeg.la \
|
|
||||||
libpixbuf-gif.la \
|
|
||||||
libpixbuf-xpm.la \
|
|
||||||
libpixbuf-tiff.la
|
|
||||||
|
|
||||||
noinst_PROGRAMS = testpixbuf
|
noinst_PROGRAMS = testpixbuf
|
||||||
|
loader_dir=$(libdir)/gdk-pixbuf/loaders
|
||||||
|
DEFS = -DPIXBUF_LIBDIR="$(loader_dir)"
|
||||||
DEPS = libgdk-pixbuf.la
|
DEPS = libgdk-pixbuf.la
|
||||||
LDADDS = libgdk-pixbuf.la @GNOME_LIBDIR@ @GNOMEUI_LIBS@
|
LDADDS = libgdk-pixbuf.la @GNOME_LIBDIR@ @GNOMEUI_LIBS@
|
||||||
|
|
||||||
@ -30,35 +24,45 @@ libgdk_pixbufinclude_HEADERS = \
|
|||||||
#
|
#
|
||||||
# The PNG plugin.
|
# The PNG plugin.
|
||||||
#
|
#
|
||||||
libpixbuf_png_la_SOURCES = \
|
libpixbuf_png_la_SOURCES = io-png.c
|
||||||
io-png.c
|
libpixbuf_png_la_LDFLAGS = $(common_ldflags)
|
||||||
libpixbuf_png_la_LDFLAGS = -avoid-version
|
libpixbuf_png_la_LIBADD = $(PNGLIBS)
|
||||||
libpixbuf_png_la_LIBADD = -lpng -lz
|
|
||||||
|
|
||||||
#
|
#
|
||||||
# The JPEG loader
|
# The JPEG loader
|
||||||
#
|
#
|
||||||
libpixbuf_jpeg_la_SOURCES = \
|
libpixbuf_jpeg_la_SOURCES = io-jpeg.c
|
||||||
io-jpeg.c
|
libpixbuf_jpeg_la_LDFLAGS = $(common_ldflags)
|
||||||
libpixbuf_jpeg_la_LDFLAGS = -avoid-version
|
libpixbuf_jpeg_la_LIBADD = $(JPEGLIBS)
|
||||||
libpixbuf_jpeg_la_LIBADD = -ljpeg
|
|
||||||
|
|
||||||
#
|
#
|
||||||
# The XPM loader
|
# The XPM loader
|
||||||
#
|
#
|
||||||
libpixbuf_xpm_la_SOURCES = \
|
libpixbuf_xpm_la_SOURCES = io-xpm.c
|
||||||
io-xpm.c
|
libpixbuf_xpm_la_LDFLAGS = $(common_ldflags)
|
||||||
|
libpixbuf_xpm_la_LIBADD =
|
||||||
|
|
||||||
|
|
||||||
#
|
#
|
||||||
# The GIF loader
|
# The GIF loader
|
||||||
#
|
#
|
||||||
libpixbuf_gif_la_SOURCES = \
|
libpixbuf_gif_la_SOURCES = io-gif.c
|
||||||
io-gif.c
|
libpixbuf_gif_la_LDFLAGS = $(common_ldflags)
|
||||||
libpixbuf_gif_la_LDFLAGS = -avoid-version
|
libpixbuf_gif_la_LIBADD= $(GIFLIB)
|
||||||
libpixbuf_gif_la_LIBADD= -lungif
|
|
||||||
|
|
||||||
#
|
#
|
||||||
# The TIFF loader
|
# The TIFF loader
|
||||||
#
|
#
|
||||||
libpixbuf_tiff_la_SOURCES= \
|
libpixbuf_tiff_la_SOURCES = io-tiff.c
|
||||||
io-tiff.c
|
libpixbuf_tiff_la_LDFLAGS = $(common_ldflags)
|
||||||
|
libpixbuf_tiff_la_LIBADD = $(TIFFLIB)
|
||||||
|
|
||||||
|
lib_LTLIBRARIES = \
|
||||||
|
libgdk-pixbuf.la
|
||||||
|
|
||||||
|
libpixbufloader_DATA = \
|
||||||
|
libpixbuf-tiff.la \
|
||||||
|
libpixbuf-gif.la \
|
||||||
|
libpixbuf-xpm.la \
|
||||||
|
libpixbuf-jpeg.la \
|
||||||
|
libpixbuf-png.la
|
||||||
|
@ -10,8 +10,6 @@
|
|||||||
#include <gmodule.h>
|
#include <gmodule.h>
|
||||||
#include "gdk-pixbuf.h"
|
#include "gdk-pixbuf.h"
|
||||||
|
|
||||||
#define PIXBUF_LIBDIR "."
|
|
||||||
|
|
||||||
static gboolean
|
static gboolean
|
||||||
pixbuf_check_png (unsigned char *buffer, int size)
|
pixbuf_check_png (unsigned char *buffer, int size)
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user