summaryrefslogtreecommitdiff
path: root/sdk/recipes/patches/libmng/makefile.unix.p
diff options
context:
space:
mode:
authorJohn Mark Bell <jmb@netsurf-browser.org>2010-12-29 16:51:07 +0000
committerJohn Mark Bell <jmb@netsurf-browser.org>2010-12-29 16:51:07 +0000
commite1ffdff6964514515fc640544ccb39e2140d4ca5 (patch)
treea09eb9d6fe3135a60e20727b8f5dc36053bfd104 /sdk/recipes/patches/libmng/makefile.unix.p
parenta22da7444bb8db2d988e3074fc90c05066726e79 (diff)
downloadtoolchains-e1ffdff6964514515fc640544ccb39e2140d4ca5.tar.gz
toolchains-e1ffdff6964514515fc640544ccb39e2140d4ca5.tar.bz2
Build runes for an SDK containing the upstream packages we need
svn path=/toolchains/; revision=11136
Diffstat (limited to 'sdk/recipes/patches/libmng/makefile.unix.p')
-rw-r--r--sdk/recipes/patches/libmng/makefile.unix.p50
1 files changed, 50 insertions, 0 deletions
diff --git a/sdk/recipes/patches/libmng/makefile.unix.p b/sdk/recipes/patches/libmng/makefile.unix.p
new file mode 100644
index 0000000..46c2cb7
--- /dev/null
+++ b/sdk/recipes/patches/libmng/makefile.unix.p
@@ -0,0 +1,50 @@
+--- makefiles/makefile.unix.org 2007-12-26 16:20:25.000000000 +0100
++++ makefiles/makefile.unix 2007-12-26 16:18:02.000000000 +0100
+@@ -7,20 +7,24 @@
+ # Configuration options are now in libmng_conf.h
+
+ # The name of your C compiler:
+-CC= cc
++CC= $(wildcard $(GCCSDK_INSTALL_CROSSBIN)/*gcc)
++AR= $(wildcard $(GCCSDK_INSTALL_CROSSBIN)/*ar)
++
++# where "make install" puts libmng.a,libmng.so*,libmng.h,libmng_conf.h,libmng_types.h
++prefix=$(GCCSDK_INSTALL_ENV)
+
+ # Location of jpeg header files
+-JPEG_INC= /cs/include/jpeg
++JPEG_INC= $(prefix)/include
+
+ # Location of zlib header files
+-ZLIB_INC= /cs/include
++ZLIB_INC= $(prefix)/include
+
+ # Location of lcms header files
+ # (switch on MNG_FULL_CMS in libmng_conf.h if you want to use this)
+-LCMS_INC= /ltmp/lcms-1.06/source
++LCMS_INC= $(prefix)/include
+
+ # compiler options:
+-CFLAGS= -O -I. -I$(ZLIB_INC) -I$(JPEG_INC) -I$(LCMS_INC)
++CFLAGS= -O3 -I. -I$(ZLIB_INC) -I$(JPEG_INC) -I$(LCMS_INC)
+
+ # source files
+ SOURCES= \
+@@ -59,7 +63,16 @@
+ /bin/rm -f *~ core
+
+ libmng.a: $(OBJECTS)
+- ar r libmng.a $(OBJECTS)
++ $(AR) r libmng.a $(OBJECTS)
++
++INCPATH=$(prefix)/include
++LIBPATH=$(prefix)/lib
++
++install: libmng.a
++ -@mkdir -p $(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 $(LIBPATH)
+
+ depend:
+ makedepend -- $(CFLAGS) $(IFLAGS) -- *.c