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.
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.
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]
23 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
26 include ..
/..
/make-rules
/shared-macros.mk
28 COMPONENT_NAME
= libmng
29 COMPONENT_VERSION
= 1.0.10
31 COMPONENT_PROJECT_URL
= http
://www.libmng.com
/
32 COMPONENT_SRC
= $(COMPONENT_NAME
)-$(COMPONENT_VERSION
)
33 COMPONENT_ARCHIVE
= $(COMPONENT_SRC
).
tar.gz
34 COMPONENT_ARCHIVE_HASH
= \
35 sha256
:03a79dac9b9316d37227057614a248a946f997c4d1a3437fb569e9a63897f911
36 COMPONENT_ARCHIVE_URL
= http
://sourceforge.net
/projects
/libmng
/files
/libmng-devel
/$(COMPONENT_VERSION
)/$(COMPONENT_ARCHIVE
)
37 COMPONENT_ARCHIVE_1
= mng-1.0
-20010209-pdg.html
38 COMPONENT_ARCHIVE_HASH_1
= \
39 sha256
:fe8e0a7aa7371c4c1369b56485fdbd96699e53f0078d7369162c883bb7dac1ca
40 COMPONENT_ARCHIVE_URL_1
= http
://www.libpng.org
/pub
/mng
/spec
/mng-1.0
-20010209-pdg.html
41 COMPONENT_ARCHIVE_2
= mng-lc-1.0
-20010209-pdg.html
42 COMPONENT_ARCHIVE_HASH_2
= \
43 sha256
:6b6a463b50e38e89006c68e629444a6154d70ee34f5d64056c4910346a07b623
44 COMPONENT_ARCHIVE_URL_2
= http
://www.libpng.org
/pub
/mng
/spec
/mng-lc-1.0
-20010209-pdg.html
45 COMPONENT_ARCHIVE_3
= mng-vlc-1.0
-20010209-pdg.html
46 COMPONENT_ARCHIVE_HASH_3
= \
47 sha256
:77340f6f922c8c2daf2cc120812bbebb26c825e4a08c3c8be6567ef8c34e2ad0
48 COMPONENT_ARCHIVE_URL_3
= http
://www.libpng.org
/pub
/mng
/spec
/mng-vlc-1.0
-20010209-pdg.html
49 COMPONENT_ARCHIVE_4
= jng-1.0
-20010209-pdg.html
50 COMPONENT_ARCHIVE_HASH_4
= \
51 sha256
:9e5f458dadfdc32bce34dd005f76ee3592cf2cea79d6100691a5d20603f54d05
52 COMPONENT_ARCHIVE_URL_4
= http
://www.libpng.org
/pub
/mng
/spec
/jng-1.0
-20010209-pdg.html
53 COMPONENT_ARCHIVE_5
= index.html
54 COMPONENT_ARCHIVE_HASH_5
= \
55 sha256
:fe8e0a7aa7371c4c1369b56485fdbd96699e53f0078d7369162c883bb7dac1ca
56 COMPONENT_ARCHIVE_URL_5
= http
://www.libpng.org
/pub
/mng
/spec
/index.html
58 COMPONENT_BUGDB
= library
/libmng
60 include ..
/..
/make-rules
/prep.mk
61 include ..
/..
/make-rules
/configure.mk
62 include ..
/..
/make-rules
/ips.mk
64 # because Solaris installed the lcms headers elsewhere
65 CFLAGS
+= `pkg-config --cflags lcms2`
66 # because it's unclear that --enable-largefile works properly
67 CFLAGS
+= $(CPP_LARGEFILES
)
69 CONFIGURE_OPTIONS
+= --includedir=/usr
/include/libmng
70 CONFIGURE_OPTIONS
+= --disable-static
71 CONFIGURE_OPTIONS
+= --with-pic
72 CONFIGURE_OPTIONS
+= --enable-shared
73 CONFIGURE_OPTIONS
+= --disable-static
74 CONFIGURE_OPTIONS
+= --disable-libtool-lock
75 CONFIGURE_OPTIONS
+= --enable-largefile
76 CONFIGURE_OPTIONS
+= --enable-buildso
77 CONFIGURE_OPTIONS
+= --enable-read
78 CONFIGURE_OPTIONS
+= --enable-write
79 CONFIGURE_OPTIONS
+= --enable-display
80 CONFIGURE_OPTIONS
+= --enable-dynamic
81 CONFIGURE_OPTIONS
+= --enable-chunks
82 CONFIGURE_OPTIONS
+= --enable-storechunks
83 CONFIGURE_OPTIONS
+= --with-lcms
84 CONFIGURE_OPTIONS
+= --with-zlib
85 CONFIGURE_OPTIONS
+= --with-jpeg
87 COMPONENT_PREP_ACTION
= \
89 $(CP
) makefiles
/configure.in makefiles
/Makefile.am .
; \
90 libtoolize
--force --copy
; aclocal
; \
91 automake
--add-missing
--copy
; autoconf
)
93 PKG_PROTO_DIRS
+= $(USERLAND_ARCHIVES
)
95 $(BUILD_DIR
)/libmng-64.
pc: Solaris
/libmng-64.
pc
96 /bin
/sed
-e
"s#MACH64#$(MACH64)#g" <$< >$@
99 build
: $(BUILD_32_and_64
)
101 install: $(INSTALL_32_and_64
) $(BUILD_DIR
)/libmng-64.
pc
105 BUILD_PKG_DEPENDENCIES
= $(BUILD_TOOLS
)
107 include ..
/..
/make-rules
/depend.mk