usr/src/lib/gd2/Makefile.sfw
changeset 7 f96733ecc878
parent 0 b34509ac961f
child 9 502b128296a2
equal deleted inserted replaced
6:1fb1123973f8 7:f96733ecc878
    17 # information: Portions Copyright [yyyy] [name of copyright owner]
    17 # information: Portions Copyright [yyyy] [name of copyright owner]
    18 #
    18 #
    19 # CDDL HEADER END
    19 # CDDL HEADER END
    20 #
    20 #
    21 #
    21 #
    22 # Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
    22 # Copyright 2010 Sun Microsystems, Inc.  All rights reserved.
    23 # Use is subject to license terms.
    23 # Use is subject to license terms.
    24 #
    24 #
    25 # ident	"@(#)Makefile.sfw	1.5	09/02/08 SMI"
    25 # ident	"@(#)Makefile.sfw	1.6	10/01/22 SMI"
    26 
    26 
    27 #
    27 #
    28 # This makefile builds both 32 and 64 bit versions of the library.
    28 # This makefile builds both 32 and 64 bit versions of the library.
    29 # Builds occur in separate directories.
    29 # Builds occur in separate directories.
    30 #
    30 #
    35 LARGEFILES=	-D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE
    35 LARGEFILES=	-D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE
    36 PREFIX = /usr
    36 PREFIX = /usr
    37 
    37 
    38 # We need to do this because of missing freetype-config for 64-bit,
    38 # We need to do this because of missing freetype-config for 64-bit,
    39 # and because gd's libtool generator adds the wrong RPATH to LDFLAGS
    39 # and because gd's libtool generator adds the wrong RPATH to LDFLAGS
    40 EXTRA_LDFLAGS32 = -Y P,/usr/openwin/lib:/usr/sfw/lib:/usr/lib -i
    40 EXTRA_LDFLAGS32 = -Y P,/usr/sfw/lib:/usr/lib -i
    41 EXTRA_LDFLAGS32 += -L/usr/sfw/lib
    41 EXTRA_LDFLAGS32 += -L/usr/sfw/lib
    42 EXTRA_LDFLAGS32 += -L/usr/openwin/lib
       
    43 EXTRA_LDFLAGS32 += -R/usr/sfw/lib
    42 EXTRA_LDFLAGS32 += -R/usr/sfw/lib
    44 EXTRA_LDFLAGS32 += -R/usr/openwin/lib
       
    45 
    43 
    46 EXTRA_LDFLAGS64 = -Y P,/usr/openwin/lib/$(MACH64):/usr/sfw/lib/$(MACH64):/usr/lib/$(MACH64) -i
    44 EXTRA_LDFLAGS64 = -Y P,/usr/sfw/lib/$(MACH64):/usr/lib/$(MACH64) -i
    47 EXTRA_LDFLAGS64 += -L/usr/sfw/lib/$(MACH64)
    45 EXTRA_LDFLAGS64 += -L/usr/sfw/lib/$(MACH64)
    48 EXTRA_LDFLAGS64 += -L/usr/openwin/lib/$(MACH64)
       
    49 EXTRA_LDFLAGS64 += -R/usr/sfw/lib/$(MACH64)
    46 EXTRA_LDFLAGS64 += -R/usr/sfw/lib/$(MACH64)
    50 EXTRA_LDFLAGS64 += -R/usr/openwin/lib/$(MACH64)
       
    51 
    47 
    52 include ../Makefile.lib
    48 include ../Makefile.lib
    53 
    49 
    54 all: real-all
    50 all: real-all
    55 
    51 
   100 	    --with-libiconv-prefix=$(PREFIX) \
    96 	    --with-libiconv-prefix=$(PREFIX) \
   101 	    --with-png=$(PREFIX) \
    97 	    --with-png=$(PREFIX) \
   102 	    --with-jpeg=$(PREFIX) \
    98 	    --with-jpeg=$(PREFIX) \
   103 	    --with-fontconfig=$(PREFIX) \
    99 	    --with-fontconfig=$(PREFIX) \
   104 	    --with-freetype=$(PREFIX)/sfw \
   100 	    --with-freetype=$(PREFIX)/sfw \
   105 	    --with-xpm=$(PREFIX)/openwin \
   101 	    --with-xpm=$(PREFIX)/X11 \
   106 	    --with-x \
   102 	    --with-x \
   107 	    --with-pic)
   103 	    --with-pic)
   108 
   104 
   109 $(VER64)/config.status: $(VER64)/configure
   105 $(VER64)/config.status: $(VER64)/configure
   110 	(cd $(VER64); \
   106 	(cd $(VER64); \
   134 	    --with-libiconv-prefix=$(PREFIX) \
   130 	    --with-libiconv-prefix=$(PREFIX) \
   135 	    --with-png=$(PREFIX) \
   131 	    --with-png=$(PREFIX) \
   136 	    --with-jpeg=$(PREFIX) \
   132 	    --with-jpeg=$(PREFIX) \
   137 	    --with-fontconfig=$(PREFIX) \
   133 	    --with-fontconfig=$(PREFIX) \
   138 	    --with-freetype=$(PREFIX)/sfw \
   134 	    --with-freetype=$(PREFIX)/sfw \
   139 	    --with-xpm=$(PREFIX)/openwin \
   135 	    --with-xpm=$(PREFIX)/X11 \
   140 	    --with-x \
   136 	    --with-x \
   141 	    --with-pic)
   137 	    --with-pic)
   142 
   138 
   143 $(VER)/configure: $(VER).tar.gz
   139 $(VER)/configure: $(VER).tar.gz
   144 	mkdir -p tmp; gzip -dc $(VER).tar.gz | (cd tmp; tar xopf -)
   140 	mkdir -p tmp; gzip -dc $(VER).tar.gz | (cd tmp; tar xopf -)