SOURCES: libtpccurveio-shared.patch (NEW), libtpcimgio-shared.patc...
qboosh
qboosh at pld-linux.org
Sun Jan 20 12:37:59 CET 2008
Author: qboosh Date: Sun Jan 20 11:37:59 2008 GMT
Module: SOURCES Tag: HEAD
---- Log message:
- build shared library
---- Files affected:
SOURCES:
libtpccurveio-shared.patch (NONE -> 1.1) (NEW), libtpcimgio-shared.patch (NONE -> 1.1) (NEW), libtpcimgp-shared.patch (NONE -> 1.1) (NEW), libtpcmisc-shared.patch (NONE -> 1.1) (NEW)
---- Diffs:
================================================================
Index: SOURCES/libtpccurveio-shared.patch
diff -u /dev/null SOURCES/libtpccurveio-shared.patch:1.1
--- /dev/null Sun Jan 20 12:37:59 2008
+++ SOURCES/libtpccurveio-shared.patch Sun Jan 20 12:37:53 2008
@@ -0,0 +1,36 @@
+--- libtpccurveio/Makefile.orig 2007-09-13 10:40:54.000000000 +0200
++++ libtpccurveio/Makefile 2008-01-20 12:12:17.931357569 +0100
+@@ -73,8 +73,8 @@
+ LIBRARY = libtpccurveio
+ SOURCES = dft.c dftio.c dftunit.c petunits.c mathfunc.c ncifile.c \
+ result.c dftres.c cpt.c idwc.c if.c libtpccurveiov.c
+-OBJECTS = ${SOURCES:.c=.o}
+-LIBARCHIVE = ${LIBRARY}.a
++OBJECTS = ${SOURCES:.c=.lo}
++LIBARCHIVE = ${LIBRARY}.la
+ DOXYGEN = doxygen
+ CC = gcc
+ CFLAGS = -std=gnu99 -s -Wall -O ${INCLUDE}
+@@ -98,9 +98,12 @@
+ # ------------- Compilation: --------------------------------------------------#
+ compile: ${LIBARCHIVE} ${LIBEXEC}
+
++%.lo: %.c
++ libtool --tag=CC --mode=compile $(CC) $(CFLAGS) -c $<
++
+ # Compile library
+ ${LIBARCHIVE}: ${OBJECTS}
+- ${AR} -rvs ${LIBARCHIVE} ${OBJECTS}
++ libtool --tag=CC --mode=link $(CC) $(LDFLAGS) $(CFLAGS) -o $@ $^ -ltpcmisc -rpath $(PET_LIB)
+
+ # Compile executable
+ ${LIBEXEC}: ${LIBARCHIVE} ${LIBRARY}.c
+@@ -120,7 +123,7 @@
+ install: libversion libinstall execinstall
+
+ libinstall: ${LIBARCHIVE}
+- ${ADDDATE} -i=${LIBRARY}.version -o=${PET_LIB} -nodate ${LIBARCHIVE}
++ libtool --tag=CC --mode=install install $(LIBARCHIVE) $(DESTDIR)$(PET_LIB)
+
+ execinstall: ${LIBEXEC}
+ ${ADDDATE} -i=${LIBRARY}.version -o=${PET_BIN} -nodate -copy ${LIBEXEC}
================================================================
Index: SOURCES/libtpcimgio-shared.patch
diff -u /dev/null SOURCES/libtpcimgio-shared.patch:1.1
--- /dev/null Sun Jan 20 12:37:59 2008
+++ SOURCES/libtpcimgio-shared.patch Sun Jan 20 12:37:53 2008
@@ -0,0 +1,36 @@
+--- libtpcimgio/Makefile.orig 2007-09-10 06:53:15.000000000 +0200
++++ libtpcimgio/Makefile 2008-01-20 11:55:29.769905722 +0100
+@@ -63,8 +63,8 @@
+ imgfile.c img_ana.c img_e63.c img_e7.c \
+ imgunit.c imgmax.c imgdecay.c vol.c img.c \
+ sifio.c sif.c weight.c libtpcimgiov.c
+-OBJECTS = ${SOURCES:.c=.o}
+-LIBARCHIVE = ${LIBRARY}.a
++OBJECTS = ${SOURCES:.c=.lo}
++LIBARCHIVE = ${LIBRARY}.la
+ DOXYGEN = doxygen
+ CC = gcc
+ CFLAGS = -std=gnu99 -s -Wall ${ANSI} -O ${INCLUDE}
+@@ -89,9 +89,12 @@
+ # ------------- Compilation: --------------------------------------------------#
+ compile: ${LIBARCHIVE} ${LIBEXEC}
+
++%.lo: %.c
++ libtool --tag=CC --mode=compile $(CC) $(CFLAGS) -c $<
++
+ # Compile library
+ ${LIBARCHIVE}: ${OBJECTS}
+- ${AR} -rvs ${LIBARCHIVE} ${OBJECTS}
++ libtool --tag=CC --mode=link $(CC) $(LDFLAGS) $(CFLAGS) -o $@ $^ -ltpcmisc -rpath $(PET_LIB)
+
+ # Compile executable
+ ${LIBEXEC}: ${LIBARCHIVE} ${LIBRARY}.c
+@@ -115,7 +118,7 @@
+ install: libversion libinstall execinstall
+
+ libinstall: ${LIBARCHIVE}
+- ${ADDDATE} -i=${LIBRARY}.version -o=${PET_LIB} -nodate ${LIBARCHIVE}
++ libtool --tag=CC --mode=install install $(LIBARCHIVE) $(DESTDIR)$(PET_LIB)
+
+ execinstall: ${LIBEXEC}
+ ${ADDDATE} -i=${LIBRARY}.version -o=${PET_BIN} -nodate -copy ${LIBEXEC}
================================================================
Index: SOURCES/libtpcimgp-shared.patch
diff -u /dev/null SOURCES/libtpcimgp-shared.patch:1.1
--- /dev/null Sun Jan 20 12:37:59 2008
+++ SOURCES/libtpcimgp-shared.patch Sun Jan 20 12:37:53 2008
@@ -0,0 +1,38 @@
+--- libtpcimgp_1_3_2/Makefile.orig 2007-02-11 08:07:33.000000000 +0100
++++ libtpcimgp_1_3_2/Makefile 2008-01-20 12:20:51.924648377 +0100
+@@ -47,9 +47,9 @@
+ LIBRARY = libtpcimgp
+ SOURCES = imgarithm.c imgmatch.c imgscanner.c imgflip.c \
+ imgtransform.c point.c imgfilter.c \
+- imgthrs.c imgframe.c libtpcimgp.c libtpcimgpv.c
+-OBJECTS = ${SOURCES:.c=.o}
+-LIBARCHIVE = ${LIBRARY}.a
++ imgthrs.c imgframe.c libtpcimgpv.c
++OBJECTS = ${SOURCES:.c=.lo}
++LIBARCHIVE = ${LIBRARY}.la
+ DOXYGEN = doxygen
+ CC = gcc
+ CFLAGS = -std=gnu99 -s -Wall -O ${INCLUDE}
+@@ -73,9 +73,12 @@
+ # ------------- Compilation: --------------------------------------------------#
+ compile: ${LIBARCHIVE} ${LIBEXEC}
+
++%.lo: %.c
++ libtool --tag=CC --mode=compile $(CC) $(CFLAGS) -c $<
++
+ # Compile library
+ ${LIBARCHIVE}: ${OBJECTS}
+- ${AR} -rvs ${LIBARCHIVE} ${OBJECTS}
++ libtool --tag=CC --mode=link $(CC) $(LDFLAGS) $(CFLAGS) -o $@ $^ -ltpcimgio -ltpcmisc -lm -rpath $(PET_LIB)
+
+ # Compile executable
+ ${LIBEXEC}: ${LIBARCHIVE} ${LIBRARY}.c
+@@ -100,7 +103,7 @@
+ install: libversion libinstall execinstall
+
+ libinstall: ${LIBARCHIVE}
+- ${ADDDATE} -i=${LIBRARY}.version -o=${PET_LIB} -nodate ${LIBARCHIVE}
++ libtool --tag=CC --mode=install install $(LIBARCHIVE) $(DESTDIR)$(PET_LIB)
+
+ execinstall: ${LIBEXEC}
+ ${ADDDATE} -i=${LIBRARY}.version -o=${PET_BIN} -nodate -copy ${LIBEXEC}
================================================================
Index: SOURCES/libtpcmisc-shared.patch
diff -u /dev/null SOURCES/libtpcmisc-shared.patch:1.1
--- /dev/null Sun Jan 20 12:37:59 2008
+++ SOURCES/libtpcmisc-shared.patch Sun Jan 20 12:37:53 2008
@@ -0,0 +1,47 @@
+--- libtpcmisc-1.3.0/Makefile.orig 2007-09-07 13:22:34.000000000 +0200
++++ libtpcmisc-1.3.0/Makefile 2008-01-20 11:31:45.948766780 +0100
+@@ -37,8 +37,8 @@
+ SOURCES = substitutions.c idcrypt.c intex.c petc99.c studynr.c swap.c halflife.c \
+ ift.c iftfile.c iftsrch.c decpoint.c quots.c \
+ memory_handler.c libtpcmiscv.c
+-OBJECTS = ${SOURCES:.c=.o}
+-LIBARCHIVE = ${LIBRARY}.a
++OBJECTS = ${SOURCES:.c=.lo}
++LIBARCHIVE = ${LIBRARY}.la
+ DOXYGEN = doxygen
+ CC = gcc
+ CFLAGS = -std=gnu99 -s -Wall -O2 ${INCLUDE} ${ANSI}
+@@ -60,9 +60,12 @@
+ # ------------- Compilation: --------------------------------------------------#
+ compile: ${LIBARCHIVE} ${LIBEXEC}
+
++%.lo: %.c
++ libtool --tag=CC --mode=compile $(CC) $(CFLAGS) -c $<
++
+ # Compile library
+ ${LIBARCHIVE}: ${OBJECTS}
+- ${AR} -rvs ${LIBARCHIVE} ${OBJECTS}
++ libtool --tag=CC --mode=link $(CC) $(LDFLAGS) $(CFLAGS) -o $@ $^ -lm -rpath $(PET_LIB)
+
+ # Compile executable
+ ${LIBEXEC}: ${LIBARCHIVE} ${LIBRARY}.c
+@@ -82,7 +85,7 @@
+ install: libversion libinstall execinstall
+
+ libinstall: ${LIBARCHIVE}
+- ${ADDDATE} -i=${LIBRARY}.version -o=${PET_LIB} -nodate ${LIBARCHIVE}
++ libtool --tag=CC --mode=install install $(LIBARCHIVE) $(DESTDIR)$(PET_LIB)
+
+ execinstall: ${LIBEXEC}
+ ${ADDDATE} -i=${LIBRARY}.version -o=${PET_BIN} -nodate -copy ${LIBEXEC}
+--- libtpcmisc-1.3.0/memory_handler.c.orig 2007-09-07 13:22:33.000000000 +0200
++++ libtpcmisc-1.3.0/memory_handler.c 2008-01-20 11:47:17.861873481 +0100
+@@ -60,7 +60,7 @@
+
+ #include "include/memory_handler.h"
+
+-extern int DEBUG;
++int DEBUG __attribute__((weak));
+
+
+ /** Structure for one-way list to keep track of used memory */
================================================================
More information about the pld-cvs-commit
mailing list