18 # |
18 # |
19 # CDDL HEADER END |
19 # CDDL HEADER END |
20 # |
20 # |
21 |
21 |
22 # |
22 # |
23 # Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved. |
23 # Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved. |
24 # |
24 # |
25 |
25 BUILD_BITS= 64_and_32 |
26 include ../../make-rules/shared-macros.mk |
26 include ../../make-rules/shared-macros.mk |
27 |
27 |
28 COMPONENT_NAME= libmng |
28 COMPONENT_NAME= libmng |
29 COMPONENT_VERSION= 1.0.10 |
29 COMPONENT_VERSION= 1.0.10 |
30 COMPONENT_PROJECT_URL= http://www.libmng.com/ |
30 COMPONENT_PROJECT_URL= http://www.libmng.com/ |
31 COMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION) |
|
32 COMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz |
|
33 COMPONENT_ARCHIVE_HASH= \ |
31 COMPONENT_ARCHIVE_HASH= \ |
34 sha256:03a79dac9b9316d37227057614a248a946f997c4d1a3437fb569e9a63897f911 |
32 sha256:03a79dac9b9316d37227057614a248a946f997c4d1a3437fb569e9a63897f911 |
35 COMPONENT_ARCHIVE_URL= http://sourceforge.net/projects/libmng/files/libmng-devel/$(COMPONENT_VERSION)/$(COMPONENT_ARCHIVE) |
33 COMPONENT_ARCHIVE_URL= http://sourceforge.net/projects/libmng/files/libmng-devel/$(COMPONENT_VERSION)/$(COMPONENT_ARCHIVE) |
36 COMPONENT_ARCHIVE_1 = mng-1.0-20010209-pdg.html |
34 COMPONENT_ARCHIVE_1 = mng-1.0-20010209-pdg.html |
37 COMPONENT_ARCHIVE_HASH_1 = \ |
35 COMPONENT_ARCHIVE_HASH_1 = \ |
56 |
54 |
57 COMPONENT_BUGDB= library/libmng |
55 COMPONENT_BUGDB= library/libmng |
58 |
56 |
59 TPNO= 5583 |
57 TPNO= 5583 |
60 |
58 |
61 include $(WS_MAKE_RULES)/prep.mk |
59 INSTALL_TARGET= |
62 include $(WS_MAKE_RULES)/configure.mk |
60 TEST_TARGET= $(NO_TESTS) |
63 include $(WS_MAKE_RULES)/ips.mk |
61 include $(WS_MAKE_RULES)/common.mk |
64 include $(WS_MAKE_RULES)/lint-libraries.mk |
|
65 |
62 |
66 # because Solaris installed the lcms headers elsewhere |
63 # because Solaris installed the lcms headers elsewhere |
67 CFLAGS += `pkg-config --cflags lcms` |
64 CFLAGS += `pkg-config --cflags lcms` |
68 # because it's unclear that --enable-largefile works properly |
65 # because it's unclear that --enable-largefile works properly |
69 CFLAGS += $(CPP_LARGEFILES) |
66 CFLAGS += $(CPP_LARGEFILES) |
70 |
67 |
71 CONFIGURE_OPTIONS += CFLAGS="$(CFLAGS)" |
68 CONFIGURE_OPTIONS += --includedir=$(USRINCDIR)/libmng |
72 |
|
73 CONFIGURE_OPTIONS += --includedir=/usr/include/libmng |
|
74 CONFIGURE_OPTIONS += --disable-static |
69 CONFIGURE_OPTIONS += --disable-static |
75 CONFIGURE_OPTIONS += --with-pic |
70 CONFIGURE_OPTIONS += --with-pic |
76 CONFIGURE_OPTIONS += --enable-shared |
71 CONFIGURE_OPTIONS += --enable-shared |
77 CONFIGURE_OPTIONS += --disable-static |
72 CONFIGURE_OPTIONS += --disable-static |
78 CONFIGURE_OPTIONS += --disable-libtool-lock |
73 CONFIGURE_OPTIONS += --disable-libtool-lock |
92 COMPONENT_PREP_ACTION = \ |
87 COMPONENT_PREP_ACTION = \ |
93 ( cd $(@D) ; \ |
88 ( cd $(@D) ; \ |
94 $(CP) makefiles/configure.in makefiles/Makefile.am . ; \ |
89 $(CP) makefiles/configure.in makefiles/Makefile.am . ; \ |
95 ACLOCAL=aclocal-1.11 AUTOMAKE=automake-1.11 autoreconf -fiv) |
90 ACLOCAL=aclocal-1.11 AUTOMAKE=automake-1.11 autoreconf -fiv) |
96 |
91 |
97 ASLR_MODE = $(ASLR_NOT_APPLICABLE) |
|
98 |
|
99 $(BUILD_DIR)/libmng-64.pc: Solaris/libmng-64.pc |
92 $(BUILD_DIR)/libmng-64.pc: Solaris/libmng-64.pc |
100 /bin/sed -e "s#MACH64#$(MACH64)#g" <$< >$@ |
93 /bin/sed -e "s#MACH64#$(MACH64)#g" <$< >$@ |
101 |
94 |
102 # common targets |
95 # common targets |
103 configure: $(CONFIGURE_32_and_64) |
|
104 |
|
105 build: $(BUILD_32_and_64) |
|
106 |
|
107 install: $(INSTALL_32_and_64) $(BUILD_DIR)/libmng-64.pc |
96 install: $(INSTALL_32_and_64) $(BUILD_DIR)/libmng-64.pc |
108 |
97 |
109 test: $(NO_TESTS) |
98 REQUIRED_PACKAGES += developer/build/automake-111 |
110 |
|
111 system-test: $(NO_TESTS) |
|
112 |
|
113 |
|
114 REQUIRED_PACKAGES += image/library/libjpeg |
99 REQUIRED_PACKAGES += image/library/libjpeg |
115 REQUIRED_PACKAGES += library/lcms |
100 REQUIRED_PACKAGES += library/lcms |
116 REQUIRED_PACKAGES += library/zlib |
101 REQUIRED_PACKAGES += library/zlib |
117 REQUIRED_PACKAGES += system/library |
|
118 REQUIRED_PACKAGES += system/library/math |
102 REQUIRED_PACKAGES += system/library/math |