author | Jon Tibble <meths@btinternet.com> |
Mon, 04 May 2015 14:04:39 +0100 | |
branch | oi_151a |
changeset 254 | 9c2a4ac793f0 |
parent 100 | 0a3c3c0e0ff2 |
permissions | -rw-r--r-- |
0 | 1 |
# |
2 |
# |
|
3 |
# CDDL HEADER START |
|
4 |
# |
|
5 |
# The contents of this file are subject to the terms of the |
|
6 |
# Common Development and Distribution License (the "License"). |
|
7 |
# You may not use this file except in compliance with the License. |
|
8 |
# |
|
9 |
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE |
|
10 |
# or http://www.opensolaris.org/os/licensing. |
|
11 |
# See the License for the specific language governing permissions |
|
12 |
# and limitations under the License. |
|
13 |
# |
|
14 |
# When distributing Covered Code, include this CDDL HEADER in each |
|
15 |
# file and include the License file at usr/src/OPENSOLARIS.LICENSE. |
|
16 |
# If applicable, add the following below this CDDL HEADER, with the |
|
17 |
# fields enclosed by brackets "[]" replaced with your own identifying |
|
18 |
# information: Portions Copyright [yyyy] [name of copyright owner] |
|
19 |
# |
|
20 |
# CDDL HEADER END |
|
21 |
# |
|
40 | 22 |
# Copyright (c) 2004, 2010, Oracle and/or its affiliates. All rights reserved. |
0 | 23 |
# |
46
9c200dad5ecc
Import sfw nuild 149
Cyril Plisko <cyril.plisko@grigale.com>
parents:
40
diff
changeset
|
24 |
#ident "@(#)Makefile.sfw 1.18 10/09/03 SMI" |
0 | 25 |
|
26 |
VER=ImageMagick-6.3.4 |
|
27 |
VER64=$(VER)-64 |
|
28 |
VERS=-2 |
|
29 |
||
30 |
include ../Makefile.cmd |
|
31 |
||
32 |
SFW_PATH="$(SPRO_VROOT)/bin:/usr/sfw/bin:$(PATH)" |
|
33 |
||
34 |
CPPFLAGS += -I$(ROOT)/usr/include/libxml2 |
|
35 |
CPPFLAGS += -I/usr/sfw/include |
|
36 |
CPPFLAGS += -I/usr/include/libxml2 |
|
40 | 37 |
CPPFLAGS += -I/usr/include/freetype2 |
0 | 38 |
CPPFLAGS += -I/usr/sfw/include/freetype2 |
39 |
CPPFLAGS += -I/usr/X/include/X11 |
|
40 |
LDFLAGS += -L/usr/X/lib -R/usr/X/lib |
|
41 |
#LDFLAGS="-L$(ROOT)/usr/lib/64 -L$(ROOT)/usr/sfw/lib/64 -R$(ROOT)/usr/sfw/lib/64" \ |
|
42 |
||
43 |
all: all-32 all-64 |
|
44 |
||
45 |
all-32: $(VER)/config.status |
|
46 |
$(INCREFIXUP) $(VER) |
|
47 |
(cd $(VER); env \ |
|
48 |
"CC=$(CC)" \ |
|
49 |
"CXX=$(CCC)" \ |
|
50 |
PATH=$(SFW_PATH) \ |
|
51 |
CFLAGS="${CFLAGS}" \ |
|
52 |
CXXFLAGS="-xO3" \ |
|
53 |
CPPFLAGS="$(CPPFLAGS)" \ |
|
54 |
LDFLAGS="$(LDFLAGS)" \ |
|
55 |
MAKE=$(CCSMAKE) $(CCSMAKE) ) |
|
56 |
@find . -name core -exec rm -f {} \; |
|
57 |
||
58 |
all-64: $(VER64)/config.status |
|
59 |
(cd $(VER64); env \ |
|
60 |
"CC=$(CC)" \ |
|
61 |
"CXX=$(CCC)" \ |
|
62 |
PATH=$(SFW_PATH) \ |
|
63 |
CFLAGS="${CFLAGS64}" \ |
|
64 |
CXXFLAGS="$(CCFLAGS64) -xO3" \ |
|
65 |
CPPFLAGS="$(CPPFLAGS)" \ |
|
66 |
LDFLAGS="$(LDFLAGS64)" \ |
|
67 |
MAKE=$(CCSMAKE) $(CCSMAKE) ) |
|
68 |
@find . -name core -exec rm -f {} \; |
|
69 |
||
70 |
# Leave in symlinks for compatibility |
|
71 |
COMPAT= Magick++-config Magick-config animate composite conjure convert \ |
|
72 |
display identify import mogrify montage |
|
73 |
||
74 |
COMPATLINKS = $(COMPAT:%=$(ROOTSFWBIN)/%) |
|
75 |
$(COMPATLINKS): |
|
76 |
$(RM) $@; $(SYMLINK) ../../bin/$(@F) $@ |
|
77 |
||
78 |
install-32: install-64 all-32 |
|
79 |
# install the bits in the proto area |
|
80 |
cd $(VER); env SRC=$(SRC) DESTDIR=$(ROOT) \ |
|
81 |
MANSCRIPT=../sunman-stability \ |
|
82 |
MAKE=$(CCSMAKE) $(CCSMAKE) install |
|
83 |
# clean up the turds: libtool .la files, .packlists, ... |
|
84 |
$(RM) $(ROOT)/usr/lib/$(VER)/modules-Q16/filters/*.la \ |
|
85 |
$(ROOT)/usr/lib/$(VER)/modules-Q16/coders/*.la \ |
|
86 |
$(ROOT)/usr/lib/libMagick.la $(ROOT)/usr/lib/libWand.la \ |
|
87 |
$(ROOT)/usr/lib/libMagick++.la |
|
100
0a3c3c0e0ff2
imported patch sfw-perl510.patch
Alasdair Lumsden <al@everycity.co.uk>
parents:
46
diff
changeset
|
88 |
$(RM) $(ROOT)/usr/perl5/5.10.0/lib/`/bin/arch`-solaris-64int/perllocal.pod |
0a3c3c0e0ff2
imported patch sfw-perl510.patch
Alasdair Lumsden <al@everycity.co.uk>
parents:
46
diff
changeset
|
89 |
- /bin/rmdir $(ROOT)/usr/perl5/5.10.0/lib/`/bin/arch`-solaris-64int |
0a3c3c0e0ff2
imported patch sfw-perl510.patch
Alasdair Lumsden <al@everycity.co.uk>
parents:
46
diff
changeset
|
90 |
$(RM) $(ROOT)/usr/perl5/site_perl/5.10.0/`/bin/arch`-solaris-64int/auto/Image/Magick/.packlist |
0 | 91 |
|
92 |
install-64: all-64 |
|
93 |
# install the bits in the proto area |
|
94 |
cd $(VER64); env SRC=$(SRC) DESTDIR=$(ROOT) \ |
|
95 |
MANSCRIPT=../sunman-stability \ |
|
96 |
MAKE=$(CCSMAKE) $(CCSMAKE) install |
|
97 |
# clean up the turds: libtool .la files, .packlists, ... |
|
98 |
$(RM) $(ROOT)/usr/lib/64/$(VER)/modules-Q16/filters/*.la \ |
|
99 |
$(ROOT)/usr/lib/64/$(VER)/modules-Q16/coders/*.la \ |
|
100 |
$(ROOT)/usr/lib/64/libMagick.la $(ROOT)/usr/lib/64/libWand.la \ |
|
101 |
$(ROOT)/usr/lib/64/libMagick++.la |
|
102 |
||
103 |
install: install-32 install-64 $(COMPATLINKS) |
|
104 |
# fix the proto area |
|
105 |
$(SRC)/tools/protofix --pkg SUNWimagick --perm |
|
106 |
||
107 |
$(VER)/config.status: $(VER)/configure |
|
108 |
(cd $(VER); env \ |
|
109 |
"CC=$(CC)" \ |
|
110 |
"CXX=$(CCC)" \ |
|
111 |
PATH=$(SFW_PATH) \ |
|
112 |
INSTALL="$(SRC)/tools/install-proto" \ |
|
113 |
CFLAGS="${CFLAGS}" \ |
|
114 |
CXXFLAGS="-xO3" \ |
|
40 | 115 |
CPPFLAGS="-I${ROOT}/usr/sfw/include -I${ROOT}/usr/include/libxml2 -I/usr/sfw/include -I/usr/include/libxml2 -I/usr/include/freetype2 -I/usr/sfw/include/freetype2 -I/usr/X/include/X11" \ |
0 | 116 |
LDFLAGS="-L${ROOT}/usr/lib -L${ROOT}/usr/sfw/lib -L/usr/sfw/lib -L/usr/X/lib -R/usr/sfw/lib:/usr/X/lib" \ |
117 |
MAKE=$(CCSMAKE) \ |
|
118 |
./configure \ |
|
119 |
--prefix=/usr \ |
|
120 |
--with-modules \ |
|
121 |
--enable-shared=yes \ |
|
122 |
--enable-static=no \ |
|
123 |
--without-gvc \ |
|
124 |
) |
|
125 |
||
126 |
$(VER64)/config.status: $(VER64)/configure |
|
127 |
(cd $(VER64); env \ |
|
128 |
"CC=$(CC)" \ |
|
129 |
"CXX=$(CCC)" \ |
|
130 |
PATH=$(SFW_PATH) \ |
|
131 |
INSTALL="$(SRC)/tools/install-proto" \ |
|
132 |
CFLAGS="${CFLAGS64}" \ |
|
133 |
CXXFLAGS="$(CCFLAGS64) -xO3" \ |
|
134 |
MAKE=$(CCSMAKE) \ |
|
135 |
./configure \ |
|
136 |
--prefix=/usr \ |
|
137 |
--libdir=/usr/lib/64 \ |
|
138 |
--with-modules \ |
|
139 |
--enable-shared=yes \ |
|
140 |
--enable-static=no \ |
|
141 |
--without-gvc \ |
|
142 |
--without-perl \ |
|
143 |
) |
|
144 |
||
145 |
# |
|
146 |
# Patches: |
|
147 |
# 1. la.patch - So it uses .so files instead of .la files |
|
46
9c200dad5ecc
Import sfw nuild 149
Cyril Plisko <cyril.plisko@grigale.com>
parents:
40
diff
changeset
|
148 |
# 2. png.patch - to cope with the latest libpng |
0 | 149 |
# |
150 |
||
151 |
$(VER)/configure: $(VER)$(VERS).tar.bz2 |
|
152 |
/usr/bin/bzip2 -dc $(VER)$(VERS).tar.bz2 | /usr/bin/tar oxpf - |
|
153 |
/usr/bin/gpatch -p0 < la.patch |
|
46
9c200dad5ecc
Import sfw nuild 149
Cyril Plisko <cyril.plisko@grigale.com>
parents:
40
diff
changeset
|
154 |
/usr/bin/gpatch -p0 < png.patch |
0 | 155 |
touch $(VER)/configure |
156 |
||
157 |
$(VER64)/configure: $(VER)$(VERS).tar.bz2 |
|
158 |
-$(RM) -r tmp ; mkdir tmp |
|
159 |
(cd tmp ; \ |
|
160 |
/usr/bin/bzip2 -dc ../$(VER)$(VERS).tar.bz2 | /usr/bin/tar oxpf - ; \ |
|
46
9c200dad5ecc
Import sfw nuild 149
Cyril Plisko <cyril.plisko@grigale.com>
parents:
40
diff
changeset
|
161 |
/usr/bin/gpatch -p0 < ../la.patch ; \ |
9c200dad5ecc
Import sfw nuild 149
Cyril Plisko <cyril.plisko@grigale.com>
parents:
40
diff
changeset
|
162 |
/usr/bin/gpatch -p0 < ../png.patch) |
9c200dad5ecc
Import sfw nuild 149
Cyril Plisko <cyril.plisko@grigale.com>
parents:
40
diff
changeset
|
163 |
-$(RM) -r $(VER64) ; mv tmp/$(VER) $(VER64) ; rmdir tmp |
0 | 164 |
touch $(VER64)/configure |
165 |
||
166 |
clean: |
|
167 |
-$(RM) -r $(VER) $(VER64) |
|
168 |
||
169 |
include ../Makefile.targ |
|
170 |
||
171 |
FRC: |