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.illumos.org/license/CDDL.
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]
21 # Copyright (c) 2013, Aurelien Larcher. All rights reserved.
22 # Copyright (c) 2016 Jim Klimov
26 include ..
/..
/..
/make-rules
/shared-macros.mk
28 COMPONENT_NAME
= giflib
29 COMPONENT_VERSION
= 5.1.4
31 COMPONENT_SUMMARY
= GIFLIB
- A library and utilities for processing GIFs
32 COMPONENT_SRC
= $(COMPONENT_NAME
)-$(COMPONENT_VERSION
)
33 COMPONENT_PROJECT_URL
= https
://giflib.sourceforge.net
/
34 COMPONENT_ARCHIVE
= $(COMPONENT_SRC
).
tar.bz2
35 COMPONENT_ARCHIVE_HASH
= sha256
:df27ec3ff24671f80b29e6ab1c4971059c14ac3db95406884fc26574631ba8d5
36 COMPONENT_ARCHIVE_URL
= https
://sourceforge.net
/projects
/giflib
/files
/$(COMPONENT_ARCHIVE
)/download
37 COMPONENT_FMRI
= library
/giflib
38 COMPONENT_CLASSIFICATION
=System
/Libraries
39 COMPONENT_LICENSE
= MIT
40 COMPONENT_LICENSE_FILE
= COPYING
42 # For backwards compatibility, deliver shared lib of previous version SO number
43 COMPONENT_VERSION_1
= 5.0.6
44 COMPONENT_SRC_1
= $(COMPONENT_NAME
)-$(COMPONENT_VERSION_1
)
45 COMPONENT_ARCHIVE_1
= $(COMPONENT_SRC_1
).
tar.bz2
46 COMPONENT_ARCHIVE_HASH_1
= sha256
:8909839ccbdfca75cfbe6a4db907b55978e11fb268a8f3cde24bd923a0f669ea
47 COMPONENT_ARCHIVE_URL_1
= https
://sourceforge.net
/projects
/giflib
/files
/$(COMPONENT_ARCHIVE_1
)/download
48 CLEAN_PATHS
+= $(COMPONENT_SRC_1
)
49 SOURCE_DIR_1
= $(COMPONENT_DIR
)/$(COMPONENT_SRC_1
)
51 TEST_TARGET
=$(NO_TESTS
)
52 include $(WS_MAKE_RULES
)/common.mk
56 CONFIGURE_OPTIONS
+= --enable-shared
57 CONFIGURE_OPTIONS
+= --disable-static
59 # Macros to configure, build, and install the old version for the time being.
60 # Snatched from libreadline recipe
61 BUILD_OLD_DIR_32
= $(COMPONENT_DIR
)/build
/$(COMPONENT_VERSION_1
)-$(MACH32
)
62 BUILD_OLD_DIR_64
= $(COMPONENT_DIR
)/build
/$(COMPONENT_VERSION_1
)-$(MACH64
)
64 $(BUILD_OLD_DIR_32
)/.configured
: CONFIGURE_SCRIPT
= $(SOURCE_DIR_1
)/configure
65 $(BUILD_OLD_DIR_64
)/.configured
: CONFIGURE_SCRIPT
= $(SOURCE_DIR_1
)/configure
66 $(BUILD_OLD_DIR_32
)/.configured
: BITS
=32
67 $(BUILD_OLD_DIR_64
)/.configured
: BITS
=64
69 BUILD_32
+= $(BUILD_OLD_DIR_32
)/.built
70 BUILD_64
+= $(BUILD_OLD_DIR_64
)/.built
72 INSTALL_32
+= $(BUILD_OLD_DIR_32
)/.installed
73 INSTALL_64
+= $(BUILD_OLD_DIR_64
)/.installed
75 # install the old version first
76 $(BUILD_DIR_32
)/.installed
: $(BUILD_OLD_DIR_32
)/.installed
77 $(BUILD_DIR_64
)/.installed
: $(BUILD_OLD_DIR_64
)/.installed
80 REQUIRED_PACKAGES
+= text
/xmlto
82 # Auto-generated dependencies
83 REQUIRED_PACKAGES
+= system
/library
84 REQUIRED_PACKAGES
+= system
/library
/math