summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2005-09-30 02:16:07 +0000
committerMike Frysinger <vapier@gentoo.org>2005-09-30 02:16:07 +0000
commit24e2fc5c5b634d000795b0ecc301e9f3ef7941a6 (patch)
treef86f3de8a51f68e1d92a50e581aede21320ed85a /media-libs/jbigkit/files
parentmake sure python was built with USE=gdbm #107657 (diff)
downloadhistorical-24e2fc5c5b634d000795b0ecc301e9f3ef7941a6.tar.gz
historical-24e2fc5c5b634d000795b0ecc301e9f3ef7941a6.tar.bz2
historical-24e2fc5c5b634d000795b0ecc301e9f3ef7941a6.zip
Build a shared library since imagemagick tries to link against libjbig #107542.
Package-Manager: portage-2.0.52-r1 http://www.bash.org/?136501
Diffstat (limited to 'media-libs/jbigkit/files')
-rw-r--r--media-libs/jbigkit/files/digest-jbigkit-1.6-r11
-rw-r--r--media-libs/jbigkit/files/jbigkit-1.6-shared-lib.patch32
2 files changed, 33 insertions, 0 deletions
diff --git a/media-libs/jbigkit/files/digest-jbigkit-1.6-r1 b/media-libs/jbigkit/files/digest-jbigkit-1.6-r1
new file mode 100644
index 000000000000..95e57285e490
--- /dev/null
+++ b/media-libs/jbigkit/files/digest-jbigkit-1.6-r1
@@ -0,0 +1 @@
+MD5 ce196e45f293d40ba76af3dc981ccfd7 jbigkit-1.6.tar.gz 405712
diff --git a/media-libs/jbigkit/files/jbigkit-1.6-shared-lib.patch b/media-libs/jbigkit/files/jbigkit-1.6-shared-lib.patch
new file mode 100644
index 000000000000..98895ecc276f
--- /dev/null
+++ b/media-libs/jbigkit/files/jbigkit-1.6-shared-lib.patch
@@ -0,0 +1,32 @@
+--- libjbig/Makefile
++++ libjbig/Makefile
+@@ -7,7 +7,10 @@
+ # Options for the compiler: A high optimization level is suggested
+ CFLAGS = -O -Wall -ansi -pedantic
+
++AR = ar
++RANLIB = ranlib
++
+-all: libjbig.a tstcodec
++all: libjbig.a libjbig.so tstcodec
+
+ tstcodec: tstcodec.c jbig.c jbig.h jbig_tab.o
+ $(CC) $(CFLAGS) -o tstcodec -DTEST_CODEC tstcodec.c jbig.c \
+@@ -15,8 +18,15 @@
+
+ libjbig.a: jbig.o jbig_tab.o
+ rm -f libjbig.a
+- ar rc libjbig.a jbig.o jbig_tab.o
+- -ranlib libjbig.a
++ $(AR) rc libjbig.a jbig.o jbig_tab.o
++ $(RANLIB) libjbig.a
++
++SOBJS = jbig.lo jbig_tab.lo
++libjbig.so: $(SOBJS)
++ $(CC) -shared $(LDFLAGS) -o $@ -Wl,-soname -Wl,$@ $(SOBJS)
++
++%.lo: %.c jbig.h
++ $(CC) $(CFLAGS) -fPIC -c $< -o $@
+
+ jbig.o: jbig.c jbig.h
+