#299464 libmng1: should provide libmng-mini

Package:
libmng1
Source:
libmng
Description:
Multiple-image Network Graphics library
Submitter:
Oliver Sorge
Date:
2010-06-17 04:15:04 UTC
Severity:
wishlist
#299464#5
Date:
2005-03-14 10:11:45 UTC
From:
To:
libmng should provide libmng-mini so that aplltications can be statically
compiled with libmng. for example:

bootsplash-3.2/Utilities$ make
gcc -Os -Wall -I/usr/include/freetype2 -L/usr/lib -o splash -L/usr/lib splash.o /usr/lib/libmng-mini.a -lz -lm
gcc: /usr/lib/libmng-mini.a: No such file or directory
make: *** [splash] Error 1

#299464#10
Date:
2009-08-09 07:55:27 UTC
From:
To:
Hello Shiju p. Nair.

I am writing to you in order to ask you to consider applying a patch that I annexed
in-line so that after compilation you can re-compile the library in order to create
the file 'libmng-mini.a' . I also reported that the version '1.0.10' is now available
on the official site.

[libmng-no-jpeg.diff]
diff -ur libmng-orig/makefiles/makefile.linux libmng-1.0.10/makefiles/makefile.linux
--- makefiles/makefile.linux	2005-01-30 11:28:00.000000000 +0100
+++ makefiles/makefile.linux	2007-07-19 13:39:28.000000000 +0200
@@ -11,7 +11,7 @@

 # default build options (this forces shared library compatibility!!)
 #OPTIONS = -DMNG_BUILD_SO
-OPTIONS = -DMNG_BUILD_SO -DMNG_FULL_CMS
+OPTIONS = -DMNG_BUILD_SO -DMNG_NO_INCLUDE_JNG

 # where "make install" puts libmng.a,libmng.so*,libmng.h,libmng_conf.h,libmng_types.h
 prefix=/usr/local
@@ -50,7 +50,7 @@
 	-L$(ZLIBLIB) -Wl,-rpath,$(ZLIBLIB) \
 	-L$(JPEGLIB) -Wl,-rpath,$(JPEGLIB) \
 	-L$(LCMSLIB) -Wl,-rpath,$(LCMSLIB) \
-	-lmng -lz -ljpeg -llcms -lm
+	-lmng -lz -lm

 RANLIB=ranlib
 #RANLIB=echo
@@ -107,7 +107,7 @@
 #	$(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 \
+	$(OBJSDLL) -L$(ZLIBLIB) \
     -lz -lm -lc

 install: libmng.a libmng.so.$(MNGVER)



This patch basically instruct 'make' to compile the library without some parts of the library,
there is no other thing. After this small compilation, rename the file 'libmng.a' to
'libmng-mini.a'. I tested this in my Debian with 'libmng-1.0.10'.

#299464#15
Date:
2010-06-17 04:12:34 UTC
From:
To:
severity 299464 wishlist
thanks

Package: libmng1
Followup-For: Bug #299464

One part of bug is done. We have 1.0.10 in Debian now.

Regarding providing libmng-mini, do you think other idea apart from
patching makefile? in this case, I have to run it twice..