From e1ffdff6964514515fc640544ccb39e2140d4ca5 Mon Sep 17 00:00:00 2001 From: John Mark Bell Date: Wed, 29 Dec 2010 16:51:07 +0000 Subject: Build runes for an SDK containing the upstream packages we need svn path=/toolchains/; revision=11136 --- sdk/recipes/patches/libmng/makefile.unix.p | 50 ++++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 sdk/recipes/patches/libmng/makefile.unix.p (limited to 'sdk/recipes/patches/libmng') 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 -- cgit v1.2.3