|
1 # |
|
2 # CDDL HEADER START |
|
3 # |
|
4 # The contents of this file are subject to the terms of the |
|
5 # Common Development and Distribution License (the "License"). |
|
6 # You may not use this file except in compliance with the License. |
|
7 # |
|
8 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE |
|
9 # or http://www.opensolaris.org/os/licensing. |
|
10 # See the License for the specific language governing permissions |
|
11 # and limitations under the License. |
|
12 # |
|
13 # When distributing Covered Code, include this CDDL HEADER in each |
|
14 # file and include the License file at usr/src/OPENSOLARIS.LICENSE. |
|
15 # If applicable, add the following below this CDDL HEADER, with the |
|
16 # fields enclosed by brackets "[]" replaced with your own identifying |
|
17 # information: Portions Copyright [yyyy] [name of copyright owner] |
|
18 # |
|
19 # CDDL HEADER END |
|
20 # |
|
21 # Copyright (c) 2010, Oracle and/or it's affiliates. All rights reserved. |
|
22 # |
|
23 include ../../make-rules/shared-macros.mk |
|
24 |
|
25 COMPONENT_NAME= libmng |
|
26 COMPONENT_VERSION= 1.0.10 |
|
27 IPS_PKG_NAME= library/libmng |
|
28 COMPONENT_DESCRIPTION= "Multiple-image Network Graphics (MNG) format image files." |
|
29 COMPONENT_CLASSIFICATION="System/Multimedia Libraries" |
|
30 COMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION) |
|
31 COMPONENT_PROJECT_URL= http://www.libmng.com/ |
|
32 COMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz |
|
33 COMPONENT_ARCHIVE_HASH= sha1:78ad516a1de79d00de720bf2a7c9afea2c896b09 |
|
34 COMPONENT_ARCHIVE_URL= http://prdownloads.sourceforge.net/libmng/$(COMPONENT_ARCHIVE) |
|
35 |
|
36 # The tarball doesn't come with a configure script. We have to use the |
|
37 # GNU auto* tools to generate one when we prep the code. |
|
38 COMPONENT_PREP_ACTION = (cd $(COMPONENT_SRC) ; \ |
|
39 $(CP) makefiles/configure.in makefiles/Makefile.am . ;\ |
|
40 aclocal-1.10 ; \ |
|
41 libtoolize ; \ |
|
42 automake-1.10 --add-missing ; \ |
|
43 autoconf ) |
|
44 |
|
45 CONFIGURE_OPTIONS += --includedir=/usr/include/libmng |
|
46 CONFIGURE_OPTIONS += --localstatedir=/var |
|
47 CONFIGURE_OPTIONS += --disable-static |
|
48 CONFIGURE_OPTIONS += --disable-libtool-lock |
|
49 CONFIGURE_OPTIONS += --enable-largefile |
|
50 CONFIGURE_OPTIONS += --enable-buildso |
|
51 CONFIGURE_OPTIONS += --enable-read |
|
52 CONFIGURE_OPTIONS += --enable-write |
|
53 CONFIGURE_OPTIONS += --enable-display |
|
54 CONFIGURE_OPTIONS += --enable-dynamic |
|
55 CONFIGURE_OPTIONS += --enable-chunks |
|
56 CONFIGURE_OPTIONS += --enable-storechunks |
|
57 CONFIGURE_OPTIONS += --with-lcms |
|
58 CONFIGURE_OPTIONS += --with-pic |
|
59 |
|
60 # because Solaris puts the headers in a non-standard place |
|
61 CONFIGURE_ENV += CPPFLAGS=-I/usr/include/lcms |
|
62 |
|
63 |
|
64 include ../../make-rules/prep.mk |
|
65 include ../../make-rules/configure.mk |
|
66 include ../../make-rules/ips.mk |
|
67 |
|
68 PKGMOGRIFY_TRANSFORMS += $(WS_TOP)/transforms/archive-libraries-drop |
|
69 PKGMOGRIFY_TRANSFORMS += $(WS_TOP)/transforms/libtool-drop |
|
70 |
|
71 # common targets |
|
72 build: $(BUILD_32_and_64) |
|
73 |
|
74 install: $(INSTALL_32_and_64) |
|
75 |
|
76 BUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS) |
|
77 |
|
78 |
|
79 REQUIRED_TOOL += /opt/sunstudio12.1/prod/bin/CC |
|
80 REQUIRED_TOOL += /opt/sunstudio12.1/prod/bin/cc |
|
81 REQUIRED_TOOL += /sbin/uname |
|
82 REQUIRED_TOOL += /usr/bin/aclocal-1.10 |
|
83 REQUIRED_TOOL += /usr/bin/amd64/ld |
|
84 REQUIRED_TOOL += /usr/bin/amd64/nm |
|
85 REQUIRED_TOOL += /usr/bin/amd64/sort |
|
86 REQUIRED_TOOL += /usr/bin/amd64/strip |
|
87 REQUIRED_TOOL += /usr/bin/arch |
|
88 REQUIRED_TOOL += /usr/bin/autoconf |
|
89 REQUIRED_TOOL += /usr/bin/autom4te |
|
90 REQUIRED_TOOL += /usr/bin/automake-1.10 |
|
91 REQUIRED_TOOL += /usr/bin/basename |
|
92 REQUIRED_TOOL += /usr/bin/bash |
|
93 REQUIRED_TOOL += /usr/bin/chmod |
|
94 REQUIRED_TOOL += /usr/bin/cp |
|
95 REQUIRED_TOOL += /usr/bin/diff |
|
96 REQUIRED_TOOL += /usr/bin/dirname |
|
97 REQUIRED_TOOL += /usr/bin/echo |
|
98 REQUIRED_TOOL += /usr/bin/env |
|
99 REQUIRED_TOOL += /usr/bin/expr |
|
100 REQUIRED_TOOL += /usr/bin/gawk |
|
101 REQUIRED_TOOL += /usr/bin/gfind |
|
102 REQUIRED_TOOL += /usr/bin/ggrep |
|
103 REQUIRED_TOOL += /usr/bin/ginstall |
|
104 REQUIRED_TOOL += /usr/bin/gmake |
|
105 REQUIRED_TOOL += /usr/bin/grep |
|
106 REQUIRED_TOOL += /usr/bin/gsed |
|
107 REQUIRED_TOOL += /usr/bin/gtar |
|
108 REQUIRED_TOOL += /usr/bin/gzip |
|
109 REQUIRED_TOOL += /usr/bin/hostname |
|
110 REQUIRED_TOOL += /usr/bin/i86/ksh93 |
|
111 REQUIRED_TOOL += /usr/bin/ld |
|
112 REQUIRED_TOOL += /usr/bin/libtoolize |
|
113 REQUIRED_TOOL += /usr/bin/ln |
|
114 REQUIRED_TOOL += /usr/bin/ls |
|
115 REQUIRED_TOOL += /usr/bin/make |
|
116 REQUIRED_TOOL += /usr/bin/mkdir |
|
117 REQUIRED_TOOL += /usr/bin/mv |
|
118 REQUIRED_TOOL += /usr/bin/nm |
|
119 REQUIRED_TOOL += /usr/bin/rm |
|
120 REQUIRED_TOOL += /usr/bin/rmdir |
|
121 REQUIRED_TOOL += /usr/bin/sed |
|
122 REQUIRED_TOOL += /usr/bin/sort |
|
123 REQUIRED_TOOL += /usr/bin/strip |
|
124 REQUIRED_TOOL += /usr/bin/touch |
|
125 REQUIRED_TOOL += /usr/bin/tr |
|
126 REQUIRED_TOOL += /usr/gnu/bin/as |
|
127 REQUIRED_TOOL += /usr/gnu/bin/echo |
|
128 REQUIRED_TOOL += /usr/gnu/bin/m4 |
|
129 REQUIRED_TOOL += /usr/gnu/bin/mkdir |
|
130 REQUIRED_TOOL += /usr/gnu/bin/sort |
|
131 REQUIRED_TOOL += /usr/gnu/bin/uname |
|
132 |
|
133 REQUIRED_FILE += /usr/include/jpeglib.h |
|
134 REQUIRED_FILE += /usr/include/lcms/lcms.h |
|
135 REQUIRED_FILE += /usr/include/limits.h |
|
136 REQUIRED_FILE += /usr/include/math.h |
|
137 REQUIRED_FILE += /usr/include/memory.h |
|
138 REQUIRED_FILE += /usr/include/setjmp.h |
|
139 REQUIRED_FILE += /usr/include/stddef.h |
|
140 REQUIRED_FILE += /usr/include/stdio.h |
|
141 REQUIRED_FILE += /usr/include/stdlib.h |
|
142 REQUIRED_FILE += /usr/include/string.h |
|
143 REQUIRED_FILE += /usr/include/strings.h |
|
144 REQUIRED_FILE += /usr/include/zlib.h |
|
145 |
|
146 include ../../make-rules/depend.mk |