--- libmng-1.0.9.orig/libmng_types.h +++ libmng-1.0.9/libmng_types.h @@ -173,7 +173,11 @@ #ifndef ZLIB_DLL #undef FAR #endif -#include +#if defined(WIN32) || defined(linux) || defined(__GNU__) || defined(__FreeBSD_kernel__) /* different header locations */ +#include "lcms.h" +#else +#include "lcms/lcms.h" +#endif #endif /* MNG_INCLUDE_LCMS */ #ifdef MNG_INCLUDE_IJG6B /* IJG's jpgsrc6b */ --- libmng-1.0.9.orig/debian/libmng-dev.README.debian +++ libmng-1.0.9/debian/libmng-dev.README.debian @@ -0,0 +1,10 @@ +Configuration options in libmng +=============================== +The libmng library is fairly configurable through the use of a number of defines. + +This libmng version is compiled with following options: +OPTIONS = -DMNG_BUILD_SO -DMNG_FULL_CMS + +For a summary of options that can be used externally to define the functionality of the +library, see /usr/share/doc/libmng-dev/README.config + --- libmng-1.0.9.orig/debian/shlibs +++ libmng-1.0.9/debian/shlibs @@ -0,0 +1 @@ +libmng 1 libmng1 (>= 1.0.3-1) --- libmng-1.0.9.orig/debian/libmng-dev.files +++ libmng-1.0.9/debian/libmng-dev.files @@ -0,0 +1,3 @@ +usr/include/* +usr/lib/lib*.a +usr/lib/lib*.so --- libmng-1.0.9.orig/debian/rules +++ libmng-1.0.9/debian/rules @@ -0,0 +1,93 @@ +#!/usr/bin/make -f +# Sample debian/rules that uses debhelper. +# GNU copyright 1997 to 1999 by Joey Hess. + +# Uncomment this to turn on verbose mode. +#export DH_VERBOSE=1 + +# This is the debhelper compatability version to use. +export DH_COMPAT=4 +ARCH = $(shell dpkg-architecture -qDEB_BUILD_ARCH) +ifeq ($(ARCH),alpha) + COMPILER_FLAGS=CFLAGS="-Wall -O0 -funroll-loops -fno-exceptions -pipe -mieee" CXXFLAGS="-Wall -O0 -funroll-loops -fno-exceptions -pipe -mieee" +else + COMPILER_FLAGS=CFLAGS="-Wall -O2 -funroll-loops -fno-exceptions -pipe" CXXFLAGS="-Wall -O2 -funroll-loops -fno-exceptions -pipe" +endif + +configure: configure-stamp +configure-stamp: + dh_testdir + #/bin/sh ./autogen.sh + cp -f makefiles/makefile.linux makefile + # Add here commands to configure the package. + # $(COMPILER_FLAGS) \ + # ./configure --prefix=/usr --mandir=\$${prefix}/share/man --infodir=\$${prefix}/share/info --with-zlib --with-jpeg --with-lcms=/usr + + touch configure-stamp + +build: configure-stamp build-stamp +build-stamp: + dh_testdir + + touch build-stamp + +clean: + dh_testdir + rm -f build-stamp configure-stamp + + # Add here commands to clean up after the build process. + -$(MAKE) clean + rm -rf missing ltmain.sh mkinstalldirs configure.in install-sh aclocal.m4 + rm -rf config.sub makefile config.guess configure config.sub Makefile.am Makefile.in autom4te.cache + + + dh_clean + +install: build + dh_testdir + dh_testroot + dh_clean -k + dh_installdirs + + # Add here commands to install the package into debian/tmp. + mkdir `pwd`/debian/libmng1/usr + $(MAKE) install prefix=`pwd`/debian/libmng1/usr + #Added to modify libmng.la (removing /home/.....usr/lib) + # sed -e "s/libdir.*usr\/lib/libdir='\/usr\/lib/" debian/libmng1/usr/lib/libmng.la >debian/libmng1/usr/lib/libmng.la1 + # mv debian/libmng1/usr/lib/libmng.la1 debian/libmng1/usr/lib/libmng.la + + -$(MAKE) clean + rm -rf missing ltmain.sh mkinstalldirs configure.in install-sh aclocal.m4 + rm -rf config.sub makefile config.guess configure config.sub Makefile.am Makefile.in autom4te.cache + + +# Build architecture-independent files here. +binary-indep: build install +# We have nothing to do by default. + +# Build architecture-dependent files here. +binary-arch: build install +# dh_testversion + dh_testdir + dh_testroot + dh_movefiles --sourcedir=debian/libmng1 -plibmng-dev + dh_installman + dh_installdocs + dh_installexamples + dh_installinfo + dh_undocumented + dh_installchangelogs CHANGES + dh_link + dh_strip + dh_compress + dh_fixperms + dh_makeshlibs -V + dh_installdeb + dh_perl + dh_shlibdeps + dh_gencontrol + dh_md5sums + dh_builddeb + +binary: binary-indep binary-arch +.PHONY: build clean binary-indep binary-arch binary install --- libmng-1.0.9.orig/debian/libmng-dev.manpages +++ libmng-1.0.9/debian/libmng-dev.manpages @@ -0,0 +1,3 @@ +doc/man/jng.5 +doc/man/libmng.3 +doc/man/mng.5 --- libmng-1.0.9.orig/debian/control +++ libmng-1.0.9/debian/control @@ -0,0 +1,32 @@ +Source: libmng +Build-Depends: autoconf, automake1.7, libtool, debhelper (>> 4.0.0), libjpeg62-dev | libjpeg-dev, liblcms1-dev, zlib1g-dev +Section: libs +Priority: optional +Maintainer: Shiju p. Nair +Standards-Version: 3.6.1 + +Package: libmng1 +Architecture: any +Section: libs +Replaces: libmng-dev (<< 1.0.0-3), libmng +Depends: ${shlibs:Depends} +Description: Multiple-image Network Graphics library + The libmng library supports decoding, displaying, encoding, and various + other manipulations of the Multiple-image Network Graphics (MNG) format + image files. It uses the zlib compression library, and optionally the + JPEG library by the Independent JPEG Group (IJG) and/or + lcms (little cms), a color-management library by Marti Maria Saguar. + +Package: libmng-dev +Architecture: any +Section: libdevel +Replaces: libmng +Depends: libmng1 (= ${Source-Version}), liblcms1-dev, libjpeg62-dev | libjpeg-dev, zlib1g-dev +Description: M-N-G library (Development headers) + The libmng library supports decoding, displaying, encoding, and various + other manipulations of the Multiple-image Network Graphics (MNG) format + image files. It uses the zlib compression library, and optionally the + JPEG library by the Independent JPEG Group (IJG) and/or + lcms (little cms), a color-management library by Marti Maria Saguar. + . + Development headers --- libmng-1.0.9.orig/debian/changelog +++ libmng-1.0.9/debian/changelog @@ -0,0 +1,220 @@ +libmng (1.0.9-1build1) karmic; urgency=low + + * No-change rebuild to gain FORTIFY defaults. + + -- Kees Cook Mon, 11 May 2009 12:07:32 -0700 + +libmng (1.0.9-1) unstable; urgency=low + + * New upstream release. (closes: #303968, #271979) + * Patch from Aurelien Jarno to support GNU/kFreeBSD. + Closes: #314696) + * Patch from Christopher Bodenstein to support + hurd-i386. (closes: #361103) + * README.Debian provide information on what options are compiled in to + libmng.(closes: #174523) + + -- Shiju p. Nair Wed, 7 Apr 2006 09:49:11 +0300 + +libmng (1.0.8-1) unstable; urgency=low + + * New upstream release (closes: #250106). + * Removed unwanted dependencies (closes: #256526, #218469) + + -- Shiju p. Nair Mon, 27 Sep 2004 10:29:48 +0300 + +libmng (1.0.5-1) unstable; urgency=low + + * New upstream version. + * Fixes several Mozilla crashes (closes: #187069) + + -- Shiju p. Nair Tue, 1 Apr 2003 09:57:22 +0300 + +libmng (1.0.4-4) unstable; urgency=low + + * New Maintainer (closes: #168565). + * Patch from H. S. Teoh apllied to correct mng.5 + format (closes: #174552). + + -- Shiju p. Nair Sun, 5 Jan 2003 10:23:47 +0300 + +libmng (1.0.4-3) unstable; urgency=low + + * Orphaned. + + -- Luis Arocha Sun, 29 Dec 2002 20:51:53 +0000 + +libmng (1.0.4-2) unstable; urgency=low + + * Patch from Julien PUYDT applied. Solve compilation problem on Hurd + (closes: #163994). + + -- Luis Arocha Thu, 10 Oct 2002 17:01:09 +0100 + +libmng (1.0.4-1) unstable; urgency=low + + * New upstream version. + * Solved problem with different versions of automake (closes: #156449). + * Modified libdir in file libmng.la (closes: #161164). + + -- Luis Arocha Sun, 29 Sep 2002 20:36:28 +0100 + +libmng (1.0.3-4) unstable; urgency=low + + * Build with renamed version of lcms. + + -- Luis Arocha Mon, 3 Jun 2002 18:27:19 +0100 + +libmng (1.0.3-3) unstable; urgency=low + + * New Maintainer (closes: #127702). + + -- Luis Arocha Fri, 4 Jan 2002 19:33:44 +0000 + +libmng (1.0.3-2) unstable; urgency=low + + * Build with new version of lcms + * Cleanup build-deps/deps and lintian errors + * This will also make sure that we build properly on all archs prior to + release. + + -- Ivan E. Moore II Mon, 26 Oct 2001 22:43:00 -0700 + +libmng (1.0.3-1) unstable; urgency=low + + * New upstream version + + -- Ivan E. Moore II Fri, 19 Oct 2001 22:50:00 -0700 + +libmng (1.0.2-2) unstable; urgency=low + + * Don't use gcc3 anymore for alpha + + -- Ivan E. Moore II Mon, 03 Sep 2001 12:20:00 -0700 + +libmng (1.0.2-1) unstable; urgency=low + + * New upstream version + + -- Ivan E. Moore II Sat, 25 Aug 2001 04:20:00 -0700 + +libmng (1.0.1-3) unstable; urgency=low + + * Fix libtool bits for hurd (Closes: #105880) + + -- Ivan E. Moore II Thu, 19 Jul 2001 10:13:00 -0700 + +libmng (1.0.1-2) unstable; urgency=low + + * Autobuild and build properly for alpha + + -- Ivan E. Moore II Sat, 07 Jul 2001 02:18:00 -0700 + +libmng (1.0.1-1) unstable; urgency=low + + * New upstream version + + -- Ivan E. Moore II Mon, 30 Apr 2001 02:48:00 -0700 + +libmng (1.0.0-4) unstable; urgency=low + + * Adding in a replaces for libmng (Closes: #95061) + + -- Ivan E. Moore II Mon, 23 Apr 2001 20:07:00 -0700 + +libmng (1.0.0-3) unstable; urgency=low + + * Update config.* files for hppa and ia64 builds + * Update Build-Depends + * Update Standards Version + * Update debian/rules + + -- Ivan E. Moore II Sun, 22 Apr 2001 03:19:00 -0700 + +libmng (1.0.0-2) unstable; urgency=low + + * Update build-deps to build with new liblcms package + + -- Ivan E. Moore II Sat, 17 Feb 2001 05:43:00 -0700 + +libmng (1.0.0-1) unstable; urgency=low + + * New upstream version + * Moving man pages into -dev package + + -- Ivan E. Moore II Fri, 09 Feb 2001 04:30:00 -0700 + +libmng (0.9.4-2) unstable; urgency=low + + * Fixing Build-Depends and Depends for -dev package + * Fixing Sections for individual Packages + + -- Ivan E. Moore II Wed, 24 Jan 2001 01:54:00 -0700 + +libmng (0.9.4-1) unstable; urgency=low + + * New upstream version + + -- Ivan E. Moore II Sat, 20 Jan 2001 01:15:00 -0700 + +libmng (0.9.3-4) unstable; urgency=low + + * Update build-depends + * Also (Closes: #82531) + + -- Ivan E. Moore II Tue, 16 Jan 2001 10:03:00 -0700 + +libmng (0.9.3-3) unstable; urgency=low + + * more build-depends work - adding missing xlibs-dev + * fixing shlibs + + -- Ivan E. Moore II Sat, 18 Nov 2000 20:33:00 -0700 + +libmng (0.9.3-2) unstable; urgency=low + + * Re-adding lcms support + + -- Ivan E. Moore II Wed, 08 Nov 2000 16:22:00 -0700 + +libmng (0.9.3-1.1) unstable; urgency=low + + * Build without lcms support until liblcms makes it's way into woody + + -- Ivan E. Moore II Sun, 05 Nov 2000 22:00:00 -0700 + +libmng (0.9.3-1) unstable; urgency=low + + * Build with lcms support + + -- Ivan E. Moore II Sat, 04 Nov 2000 23:45:00 -0700 + +libmng (0.9.3-0) unstable; urgency=low + + * New upstream version + + -- Ivan E. Moore II Sat, 04 Nov 2000 23:00:00 -0700 + +libmng (0.9.2-3) unstable; urgency=low + + * Minor tweaks to compiler flags + * lintian cleanups + + -- Ivan E. Moore II Mon, 16 Oct 2000 21:30:00 -0700 + +libmng (0.9.2-2) unstable; urgency=low + + * Just in case build...against new libc6 + * More build-depends cleanup + + -- Ivan E. Moore II Tue, 26 Sep 2000 22:30:50 -0700 + +libmng (0.9.2-1) unstable; urgency=low + + * Initial Release. + + -- Ivan E. Moore II Sat, 23 Sep 2000 01:58:50 -0700 + +Local variables: +mode: debian-changelog +End: --- libmng-1.0.9.orig/debian/copyright +++ libmng-1.0.9/debian/copyright @@ -0,0 +1,63 @@ +This package was debianized by Ivan E. Moore II on +Sat, 23 Sep 2000 01:58:50 -0600. +Current Maintainer: Shiju p. Nair +It was downloaded from + + + +/* ************************************************************************** */ +/* * * */ +/* * COPYRIGHT NOTICE: * */ +/* * * */ +/* * Copyright (c) 2000 Gerard Juyn (gerard@libmng.com) * */ +/* * [You may insert additional notices after this sentence if you modify * */ +/* * this source] * */ +/* * * */ +/* * For the purposes of this copyright and license, "Contributing Authors" * */ +/* * is defined as the following set of individuals: * */ +/* * * */ +/* * Gerard Juyn * */ +/* * * */ +/* * The MNG Library is supplied "AS IS". The Contributing Authors * */ +/* * disclaim all warranties, expressed or implied, including, without * */ +/* * limitation, the warranties of merchantability and of fitness for any * */ +/* * purpose. The Contributing Authors assume no liability for direct, * */ +/* * indirect, incidental, special, exemplary, or consequential damages, * */ +/* * which may result from the use of the MNG Library, even if advised of * */ +/* * the possibility of such damage. * */ +/* * * */ +/* * Permission is hereby granted to use, copy, modify, and distribute this * */ +/* * source code, or portions hereof, for any purpose, without fee, subject * */ +/* * to the following restrictions: * */ +/* * * */ +/* * 1. The origin of this source code must not be misrepresented; * */ +/* * you must not claim that you wrote the original software. * */ +/* * * */ +/* * 2. Altered versions must be plainly marked as such and must not be * */ +/* * misrepresented as being the original source. * */ +/* * * */ +/* * 3. This Copyright notice may not be removed or altered from any source * */ +/* * or altered source distribution. * */ +/* * * */ +/* * The Contributing Authors specifically permit, without fee, and * */ +/* * encourage the use of this source code as a component to supporting * */ +/* * the MNG and JNG file format in commercial products. If you use this * */ +/* * source code in a product, acknowledgment would be highly appreciated. * */ +/* * * */ +/* ************************************************************************** */ +/* * * */ +/* * Parts of this software have been adapted from the libpng package. * */ +/* * Although this library supports all features from the PNG specification * */ +/* * (as MNG descends from it) it does not require the libpng package. * */ +/* * It does require the zlib library and optionally the IJG jpeg library, * */ +/* * and/or the "little-cms" library by Marti Maria (depending on the * */ +/* * inclusion of support for JNG and Full-Color-Management respectively. * */ +/* * * */ +/* * This library's function is primarily to read and display MNG * */ +/* * animations. It is not meant as a full-featured image-editing * */ +/* * component! It does however offer creation and editing functionality * */ +/* * at the chunk level. * */ +/* * (future modifications may include some more support for creation * */ +/* * and or editing) * */ +/* * * */ +/* ************************************************************************** */ --- libmng-1.0.9.orig/debian/libmng-dev.docs +++ libmng-1.0.9/debian/libmng-dev.docs @@ -0,0 +1,5 @@ +README +README.config +doc/libmng.txt +doc/Plan1.png +doc/Plan2.png --- libmng-1.0.9.orig/debian/libmng1.docs +++ libmng-1.0.9/debian/libmng1.docs @@ -0,0 +1 @@ +README --- libmng-1.0.9.orig/debian/patches/header.patch +++ libmng-1.0.9/debian/patches/header.patch @@ -0,0 +1,15 @@ +--- libmng_types.h.orig 2006-04-07 23:44:06.000000000 +0300 ++++ libmng_types.h 2006-04-07 23:37:12.000000000 +0300 +@@ -173,7 +173,11 @@ + #ifndef ZLIB_DLL + #undef FAR + #endif +-#include ++#if defined(WIN32) || defined(linux) || defined(__GNU__) /* different header locations */ ++#include "lcms.h" ++#else ++#include "lcms/lcms.h" ++#endif + #endif /* MNG_INCLUDE_LCMS */ + + #ifdef MNG_INCLUDE_IJG6B /* IJG's jpgsrc6b */ --- libmng-1.0.9.orig/makefiles/makefile.linux +++ libmng-1.0.9/makefiles/makefile.linux @@ -1,180 +1,180 @@ -# -# For conditions of distribution and use, see copyright notice in libmng.h -# -# makefile for libmng - THE MNG library -# this makefile is suitable for Linux ELF with gcc -# -# (this file is heavily copied from makefile.linux in the libpng package) - -# compiler -CC=gcc - -# default build options (this forces shared library compatibility!!) -#OPTIONS = -DMNG_BUILD_SO -OPTIONS = -DMNG_BUILD_SO -DMNG_FULL_CMS - -# where "make install" puts libmng.a,libmng.so*,libmng.h,libmng_conf.h,libmng_types.h -prefix=/usr/local - -# Where the zlib library and include files are located -#ZLIBLIB=../zlib -#ZLIBINC=../zlib -ZLIBLIB=/usr/local/lib -ZLIBINC=/usr/local/include - -# Where the jpeg library and include files are located -#JPEGLIB=../jpgsrc -#JPEGINC=../jpgsrc -JPEGLIB=/usr/local/lib -JPEGINC=/usr/local/include - -# Where the lcms library and include files are located -#LCMSLIB=../lcms/lib -#LCMSINC=../lcms/source -LCMSLIB=/usr/local/lib -LCMSINC=/usr/local/include - -ALIGN= -# for i386: -#ALIGN=-malign-loops=2 -malign-functions=2 - -WARNMORE=-Wwrite-strings -Wpointer-arith -Wshadow \ - -Wmissing-declarations -Wtraditional -Wcast-align \ - -Wstrict-prototypes -Wmissing-prototypes #-Wconversion - -# for pgcc version 2.95.1, -O3 is buggy; don't use it. - -CFLAGS=-I$(ZLIBINC) -I$(JPEGINC) -I$(LCMSINC) -Wall -O3 -funroll-loops \ - $(OPTIONS) $(ALIGN) # $(WARNMORE) -g -LDFLAGS=-L. -Wl,-rpath,. \ - -L$(ZLIBLIB) -Wl,-rpath,$(ZLIBLIB) \ - -L$(JPEGLIB) -Wl,-rpath,$(JPEGLIB) \ - -L$(LCMSLIB) -Wl,-rpath,$(LCMSLIB) \ - -lmng -lz -ljpeg -llcms -lm - -RANLIB=ranlib -#RANLIB=echo - -# current version numbers -MNGMAJ = 1 -MNGMIN = 1.0.9 -MNGVER = $(MNGMAJ).$(MNGMIN) - -INCPATH=$(prefix)/include -LIBPATH=$(prefix)/lib - -OBJS = \ - libmng_callback_xs.o \ - libmng_chunk_io.o \ - libmng_chunk_descr.o \ - libmng_chunk_prc.o \ - libmng_chunk_xs.o \ - libmng_cms.o \ - libmng_display.o \ - libmng_dither.o \ - libmng_error.o \ - libmng_filter.o \ - libmng_hlapi.o \ - libmng_jpeg.o \ - libmng_object_prc.o \ - libmng_pixels.o \ - libmng_prop_xs.o \ - libmng_read.o \ - libmng_trace.o \ - libmng_write.o \ - libmng_zlib.o - -OBJSDLL = $(OBJS:.0=.pic.o) - -.SUFFIXES: .c .o .pic.o - -.c.pic.o: - $(CC) -c $(CFLAGS) -fPIC -o $@ $*.c - -all: libmng.a libmng.so - -libmng.a: $(OBJS) - ar rc $@ $(OBJS) - $(RANLIB) $@ - -libmng.so: libmng.so.$(MNGMAJ) - ln -sf libmng.so.$(MNGMAJ) libmng.so - -libmng.so.$(MNGMAJ): libmng.so.$(MNGVER) - ln -sf libmng.so.$(MNGVER) libmng.so.$(MNGMAJ) - -libmng.so.$(MNGVER): $(OBJSDLL) -# $(CC) -shared -Wl,-soname,libmng.so.$(MNGMAJ) -o libmng.so.$(MNGVER) \ -# $(OBJSDLL) -L$(ZLIBLIB) -L$(JPEGLIB) -L$(LCMSLIB) -lz -lm -lc - $(CC) -shared -Wl,-soname,libmng.so.$(MNGMAJ) -o libmng.so.$(MNGVER) \ - $(OBJSDLL) -L$(ZLIBLIB) -L$(JPEGLIB) -ljpeg -L$(LCMSLIB) -llcms \ - -lz -lm -lc - -install: libmng.a libmng.so.$(MNGVER) - -@mkdir $(INCPATH) $(LIBPATH) - cp libmng.h libmng_conf.h libmng_types.h $(INCPATH) - chmod 644 $(INCPATH)/libmng.h $(INCPATH)/libmng_conf.h $(INCPATH)/libmng_types.h - cp libmng.a libmng.so.$(MNGVER) $(LIBPATH) - chmod 755 $(LIBPATH)/libmng.so.$(MNGVER) - -@/bin/rm -f $(LIBPATH)/libmng.so.$(MNGMAJ) $(LIBPATH)/libmng.so - (cd $(LIBPATH); ln -sf libmng.so.$(MNGVER) libmng.so.$(MNGMAJ); \ - ln -sf libmng.so.$(MNGMAJ) libmng.so) - -clean: - /bin/rm -f *.o libmng.a libmng.so* - -# DO NOT DELETE THIS LINE -- make depend depends on it. - -libmng_hlapi.o libmng_hlapi.pic.o: libmng_hlapi.c libmng.h libmng_conf.h libmng_types.h \ - libmng_data.h libmng_objects.h libmng_object_prc.h \ - libmng_chunks.h libmng_memory.h libmng_error.h libmng_trace.h libmng_read.h \ - libmng_write.h libmng_display.h libmng_zlib.h libmng_cms.h libmng_zlib.h -libmng_callback_xs.o libmng_callback_xs.pic.o: libmng_callback_xs.c libmng.h \ - libmng_conf.h libmng_types.h libmng_data.h libmng_error.h libmng_trace.h -libmng_prop_xs.o libmng_prop_xs.pic.o: libmng_prop_xs.c libmng.h libmng_conf.h \ - libmng_types.h libmng_data.h libmng_error.h libmng_trace.h libmng_cms.h -libmng_chunk_xs.o libmng_chunk_xs.pic.o: libmng_chunk_xs.c libmng.h libmng_conf.h \ - libmng_types.h libmng_data.h libmng_chunks.h libmng_chunk_prc.h \ - libmng_error.h libmng_trace.h -libmng_read.o libmng_read.pic.o: libmng_read.c libmng.h libmng_conf.h libmng_types.h \ - libmng_data.h libmng_objects.h libmng_object_prc.h \ - libmng_chunks.h libmng_chunk_prc.h libmng_chunk_io.h libmng_memory.h \ - libmng_error.h libmng_trace.h libmng_read.h libmng_display.h -libmng_write.o libmng_write.pic.o: libmng_write.c libmng.h libmng_conf.h libmng_types.h \ - libmng_data.h libmng_error.h libmng_trace.h libmng_write.h -libmng_display.o libmng_display.pic.o: libmng_display.c libmng.h libmng_conf.h \ - libmng_types.h libmng_data.h libmng_objects.h libmng_object_prc.h libmng_memory.h \ - libmng_error.h libmng_trace.h libmng_zlib.h libmng_cms.h libmng_pixels.h \ - libmng_display.h -libmng_object_prc.o libmng_object_prc.pic.o: libmng_object_prc.c libmng.h libmng_conf.h \ - libmng_types.h libmng_data.h libmng_objects.h libmng_object_prc.h libmng_memory.h \ - libmng_error.h libmng_trace.h libmng_display.h libmng_pixels.h -libmng_chunk_descr.o libmng_chunk_descr.pic.o: libmng_chunk_descr.c libmng.h libmng_conf.h \ - libmng_types.h libmng_data.h libmng_chunks.h libmng_chunk_descr.h libmng_memory.h \ - libmng_chunk_prc.h libmng_error.h libmng_trace.h -libmng_chunk_prc.o libmng_chunk_prc.pic.o: libmng_chunk_prc.c libmng.h libmng_conf.h \ - libmng_types.h libmng_data.h libmng_chunks.h libmng_chunk_prc.h libmng_memory.h \ - libmng_error.h libmng_trace.h -libmng_chunk_io.o libmng_chunk_io.pic.o: libmng_chunk_io.c libmng.h libmng_conf.h \ - libmng_types.h libmng_data.h libmng_objects.h libmng_object_prc.h \ - libmng_chunks.h libmng_chunk_io.h libmng_chunk_prc.h libmng_memory.h libmng_error.h \ - libmng_trace.h libmng_display.h libmng_zlib.h libmng_pixels.h -libmng_error.o libmng_error.pic.o: libmng_error.c libmng.h libmng_conf.h libmng_types.h \ - libmng_data.h libmng_error.h libmng_trace.h -libmng_trace.o libmng_trace.pic.o: libmng_trace.c libmng.h libmng_conf.h libmng_types.h \ - libmng_data.h libmng_error.h libmng_trace.h -libmng_pixels.o libmng_pixels.pic.o: libmng_pixels.c libmng.h libmng_conf.h libmng_types.h \ - libmng_data.h libmng_objects.h libmng_memory.h libmng_error.h libmng_trace.h \ - libmng_cms.h libmng_filter.h libmng_pixels.h -libmng_filter.o libmng_filter.pic.o: libmng_filter.c libmng.h libmng_conf.h libmng_types.h \ - libmng_data.h libmng_error.h libmng_trace.h libmng_filter.h -libmng_dither.o libmng_dither.pic.o: libmng_dither.c libmng.h libmng_conf.h libmng_types.h \ - libmng_data.h libmng_error.h libmng_trace.h libmng_dither.h -libmng_zlib.o libmng_zlib.pic.o: libmng_zlib.c libmng.h libmng_conf.h libmng_types.h \ - libmng_data.h libmng_memory.h libmng_error.h libmng_trace.h libmng_pixels.h \ - libmng_filter.h libmng_zlib.h -libmng_jpeg.o libmng_jpeg.pic.o: libmng_jpeg.c libmng.h libmng_conf.h libmng_types.h \ - libmng_data.h libmng_memory.h libmng_error.h libmng_trace.h libmng_pixels.h libmng_jpeg.h -libmng_cms.o libmng_cms.pic.o: libmng_cms.c libmng.h libmng_conf.h libmng_types.h \ - libmng_data.h libmng_objects.h libmng_error.h libmng_trace.h libmng_cms.h - +# +# For conditions of distribution and use, see copyright notice in libmng.h +# +# makefile for libmng - THE MNG library +# this makefile is suitable for Linux ELF with gcc +# +# (this file is heavily copied from makefile.linux in the libpng package) + +# compiler +CC=gcc + +# default build options (this forces shared library compatibility!!) +#OPTIONS = -DMNG_BUILD_SO +OPTIONS = -DMNG_BUILD_SO -DMNG_FULL_CMS + +# where "make install" puts libmng.a,libmng.so*,libmng.h,libmng_conf.h,libmng_types.h +prefix=/usr + +# Where the zlib library and include files are located +#ZLIBLIB=../zlib +#ZLIBINC=../zlib +ZLIBLIB=/usr/lib +ZLIBINC=/usr/include + +# Where the jpeg library and include files are located +#JPEGLIB=../jpgsrc +#JPEGINC=../jpgsrc +JPEGLIB=/usr/lib +JPEGINC=/usr/include + +# Where the lcms library and include files are located +#LCMSLIB=../lcms/lib +#LCMSINC=../lcms/source +LCMSLIB=/usr/lib +LCMSINC=/usr/include + +ALIGN= +# for i386: +#ALIGN=-malign-loops=2 -malign-functions=2 + +WARNMORE=-Wwrite-strings -Wpointer-arith -Wshadow \ + -Wmissing-declarations -Wtraditional -Wcast-align \ + -Wstrict-prototypes -Wmissing-prototypes #-Wconversion + +# for pgcc version 2.95.1, -O3 is buggy; don't use it. + +CFLAGS=-I$(ZLIBINC) -I$(JPEGINC) -I$(LCMSINC) -Wall -O3 -fPIC -funroll-loops \ + $(OPTIONS) $(ALIGN) # $(WARNMORE) -g +LDFLAGS=-L. -Wl,-rpath,. \ + -L$(ZLIBLIB) -Wl,-rpath,$(ZLIBLIB) \ + -L$(JPEGLIB) -Wl,-rpath,$(JPEGLIB) \ + -L$(LCMSLIB) -Wl,-rpath,$(LCMSLIB) \ + -lmng -lz -ljpeg -llcms -lm + +RANLIB=ranlib +#RANLIB=echo + +# current version numbers +MNGMAJ = 1 +MNGMIN = 1.0.9 +MNGVER = $(MNGMAJ).$(MNGMIN) + +INCPATH=$(prefix)/include +LIBPATH=$(prefix)/lib + +OBJS = \ + libmng_callback_xs.o \ + libmng_chunk_io.o \ + libmng_chunk_descr.o \ + libmng_chunk_prc.o \ + libmng_chunk_xs.o \ + libmng_cms.o \ + libmng_display.o \ + libmng_dither.o \ + libmng_error.o \ + libmng_filter.o \ + libmng_hlapi.o \ + libmng_jpeg.o \ + libmng_object_prc.o \ + libmng_pixels.o \ + libmng_prop_xs.o \ + libmng_read.o \ + libmng_trace.o \ + libmng_write.o \ + libmng_zlib.o + +OBJSDLL = $(OBJS:.0=.pic.o) + +.SUFFIXES: .c .o .pic.o + +.c.pic.o: + $(CC) -c $(CFLAGS) -fPIC -o $@ $*.c + +all: libmng.a libmng.so + +libmng.a: $(OBJS) + ar rc $@ $(OBJS) + $(RANLIB) $@ + +libmng.so: libmng.so.$(MNGMAJ) + ln -sf libmng.so.$(MNGMAJ) libmng.so + +libmng.so.$(MNGMAJ): libmng.so.$(MNGVER) + ln -sf libmng.so.$(MNGVER) libmng.so.$(MNGMAJ) + +libmng.so.$(MNGVER): $(OBJSDLL) +# $(CC) -shared -Wl,-soname,libmng.so.$(MNGMAJ) -o libmng.so.$(MNGVER) \ +# $(OBJSDLL) -L$(ZLIBLIB) -L$(JPEGLIB) -L$(LCMSLIB) -lz -lm -lc + $(CC) -shared -Wl,-soname,libmng.so.$(MNGMAJ) -o libmng.so.$(MNGVER) \ + $(OBJSDLL) -L$(ZLIBLIB) -L$(JPEGLIB) -ljpeg -L$(LCMSLIB) -llcms \ + -lz -lm -lc + +install: libmng.a libmng.so.$(MNGVER) + -@mkdir $(INCPATH) $(LIBPATH) + cp libmng.h libmng_conf.h libmng_types.h $(INCPATH) + chmod 644 $(INCPATH)/libmng.h $(INCPATH)/libmng_conf.h $(INCPATH)/libmng_types.h + cp libmng.a libmng.so.$(MNGVER) $(LIBPATH) + chmod 755 $(LIBPATH)/libmng.so.$(MNGVER) + -@/bin/rm -f $(LIBPATH)/libmng.so.$(MNGMAJ) $(LIBPATH)/libmng.so + (cd $(LIBPATH); ln -sf libmng.so.$(MNGVER) libmng.so.$(MNGMAJ); \ + ln -sf libmng.so.$(MNGMAJ) libmng.so) + +clean: + /bin/rm -f *.o libmng.a libmng.so* + +# DO NOT DELETE THIS LINE -- make depend depends on it. + +libmng_hlapi.o libmng_hlapi.pic.o: libmng_hlapi.c libmng.h libmng_conf.h libmng_types.h \ + libmng_data.h libmng_objects.h libmng_object_prc.h \ + libmng_chunks.h libmng_memory.h libmng_error.h libmng_trace.h libmng_read.h \ + libmng_write.h libmng_display.h libmng_zlib.h libmng_cms.h libmng_zlib.h +libmng_callback_xs.o libmng_callback_xs.pic.o: libmng_callback_xs.c libmng.h \ + libmng_conf.h libmng_types.h libmng_data.h libmng_error.h libmng_trace.h +libmng_prop_xs.o libmng_prop_xs.pic.o: libmng_prop_xs.c libmng.h libmng_conf.h \ + libmng_types.h libmng_data.h libmng_error.h libmng_trace.h libmng_cms.h +libmng_chunk_xs.o libmng_chunk_xs.pic.o: libmng_chunk_xs.c libmng.h libmng_conf.h \ + libmng_types.h libmng_data.h libmng_chunks.h libmng_chunk_prc.h \ + libmng_error.h libmng_trace.h +libmng_read.o libmng_read.pic.o: libmng_read.c libmng.h libmng_conf.h libmng_types.h \ + libmng_data.h libmng_objects.h libmng_object_prc.h \ + libmng_chunks.h libmng_chunk_prc.h libmng_chunk_io.h libmng_memory.h \ + libmng_error.h libmng_trace.h libmng_read.h libmng_display.h +libmng_write.o libmng_write.pic.o: libmng_write.c libmng.h libmng_conf.h libmng_types.h \ + libmng_data.h libmng_error.h libmng_trace.h libmng_write.h +libmng_display.o libmng_display.pic.o: libmng_display.c libmng.h libmng_conf.h \ + libmng_types.h libmng_data.h libmng_objects.h libmng_object_prc.h libmng_memory.h \ + libmng_error.h libmng_trace.h libmng_zlib.h libmng_cms.h libmng_pixels.h \ + libmng_display.h +libmng_object_prc.o libmng_object_prc.pic.o: libmng_object_prc.c libmng.h libmng_conf.h \ + libmng_types.h libmng_data.h libmng_objects.h libmng_object_prc.h libmng_memory.h \ + libmng_error.h libmng_trace.h libmng_display.h libmng_pixels.h +libmng_chunk_descr.o libmng_chunk_descr.pic.o: libmng_chunk_descr.c libmng.h libmng_conf.h \ + libmng_types.h libmng_data.h libmng_chunks.h libmng_chunk_descr.h libmng_memory.h \ + libmng_chunk_prc.h libmng_error.h libmng_trace.h +libmng_chunk_prc.o libmng_chunk_prc.pic.o: libmng_chunk_prc.c libmng.h libmng_conf.h \ + libmng_types.h libmng_data.h libmng_chunks.h libmng_chunk_prc.h libmng_memory.h \ + libmng_error.h libmng_trace.h +libmng_chunk_io.o libmng_chunk_io.pic.o: libmng_chunk_io.c libmng.h libmng_conf.h \ + libmng_types.h libmng_data.h libmng_objects.h libmng_object_prc.h \ + libmng_chunks.h libmng_chunk_io.h libmng_chunk_prc.h libmng_memory.h libmng_error.h \ + libmng_trace.h libmng_display.h libmng_zlib.h libmng_pixels.h +libmng_error.o libmng_error.pic.o: libmng_error.c libmng.h libmng_conf.h libmng_types.h \ + libmng_data.h libmng_error.h libmng_trace.h +libmng_trace.o libmng_trace.pic.o: libmng_trace.c libmng.h libmng_conf.h libmng_types.h \ + libmng_data.h libmng_error.h libmng_trace.h +libmng_pixels.o libmng_pixels.pic.o: libmng_pixels.c libmng.h libmng_conf.h libmng_types.h \ + libmng_data.h libmng_objects.h libmng_memory.h libmng_error.h libmng_trace.h \ + libmng_cms.h libmng_filter.h libmng_pixels.h +libmng_filter.o libmng_filter.pic.o: libmng_filter.c libmng.h libmng_conf.h libmng_types.h \ + libmng_data.h libmng_error.h libmng_trace.h libmng_filter.h +libmng_dither.o libmng_dither.pic.o: libmng_dither.c libmng.h libmng_conf.h libmng_types.h \ + libmng_data.h libmng_error.h libmng_trace.h libmng_dither.h +libmng_zlib.o libmng_zlib.pic.o: libmng_zlib.c libmng.h libmng_conf.h libmng_types.h \ + libmng_data.h libmng_memory.h libmng_error.h libmng_trace.h libmng_pixels.h \ + libmng_filter.h libmng_zlib.h +libmng_jpeg.o libmng_jpeg.pic.o: libmng_jpeg.c libmng.h libmng_conf.h libmng_types.h \ + libmng_data.h libmng_memory.h libmng_error.h libmng_trace.h libmng_pixels.h libmng_jpeg.h +libmng_cms.o libmng_cms.pic.o: libmng_cms.c libmng.h libmng_conf.h libmng_types.h \ + libmng_data.h libmng_objects.h libmng_error.h libmng_trace.h libmng_cms.h +