components/desktop/libjpeg/Makefile
author Rich Burridge <rich.burridge@oracle.com>
Thu, 04 Aug 2016 10:41:57 -0700
changeset 6552 402379bc1b60
parent 6412 4e700eaededa
child 7687 1093e2a9adbd
permissions -rw-r--r--
24385703 Turn on ASLR by default, even for Userland "library" components
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
5622
b0275c75884a 22916341 move libjpeg from desktop to userland
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
     1
#
b0275c75884a 22916341 move libjpeg from desktop to userland
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
     2
# CDDL HEADER START
b0275c75884a 22916341 move libjpeg from desktop to userland
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
     3
#
b0275c75884a 22916341 move libjpeg from desktop to userland
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
     4
# The contents of this file are subject to the terms of the
b0275c75884a 22916341 move libjpeg from desktop to userland
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
     5
# Common Development and Distribution License (the "License").
b0275c75884a 22916341 move libjpeg from desktop to userland
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
     6
# You may not use this file except in compliance with the License.
b0275c75884a 22916341 move libjpeg from desktop to userland
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
     7
#
b0275c75884a 22916341 move libjpeg from desktop to userland
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
     8
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
b0275c75884a 22916341 move libjpeg from desktop to userland
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
     9
# or http://www.opensolaris.org/os/licensing.
b0275c75884a 22916341 move libjpeg from desktop to userland
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    10
# See the License for the specific language governing permissions
b0275c75884a 22916341 move libjpeg from desktop to userland
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    11
# and limitations under the License.
b0275c75884a 22916341 move libjpeg from desktop to userland
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    12
#
b0275c75884a 22916341 move libjpeg from desktop to userland
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    13
# When distributing Covered Code, include this CDDL HEADER in each
b0275c75884a 22916341 move libjpeg from desktop to userland
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    14
# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
b0275c75884a 22916341 move libjpeg from desktop to userland
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    15
# If applicable, add the following below this CDDL HEADER, with the
b0275c75884a 22916341 move libjpeg from desktop to userland
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    16
# fields enclosed by brackets "[]" replaced with your own identifying
b0275c75884a 22916341 move libjpeg from desktop to userland
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    17
# information: Portions Copyright [yyyy] [name of copyright owner]
b0275c75884a 22916341 move libjpeg from desktop to userland
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    18
#
b0275c75884a 22916341 move libjpeg from desktop to userland
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    19
# CDDL HEADER END
b0275c75884a 22916341 move libjpeg from desktop to userland
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    20
#
b0275c75884a 22916341 move libjpeg from desktop to userland
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    21
b0275c75884a 22916341 move libjpeg from desktop to userland
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    22
#
b0275c75884a 22916341 move libjpeg from desktop to userland
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    23
# Copyright (c) 2015, 2016, Oracle and/or its affiliates. All rights reserved.
b0275c75884a 22916341 move libjpeg from desktop to userland
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    24
#
b0275c75884a 22916341 move libjpeg from desktop to userland
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    25
6412
4e700eaededa 23858100 jpegtran lost in move of libjpeg to Userland
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents: 5622
diff changeset
    26
BUILD_BITS = 	64_and_32
5622
b0275c75884a 22916341 move libjpeg from desktop to userland
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    27
COMPILER =	gcc
b0275c75884a 22916341 move libjpeg from desktop to userland
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    28
b0275c75884a 22916341 move libjpeg from desktop to userland
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    29
include ../../../make-rules/shared-macros.mk
b0275c75884a 22916341 move libjpeg from desktop to userland
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    30
b0275c75884a 22916341 move libjpeg from desktop to userland
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    31
COMPONENT_NAME=         jpeg
b0275c75884a 22916341 move libjpeg from desktop to userland
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    32
COMPONENT_VERSION=      6.0.2
b0275c75884a 22916341 move libjpeg from desktop to userland
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    33
HUMAN_VERSION=          v6b
b0275c75884a 22916341 move libjpeg from desktop to userland
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    34
COMPONENT_PROJECT_URL=  https://sourceforge.net/projects/libjpeg/
b0275c75884a 22916341 move libjpeg from desktop to userland
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    35
COMPONENT_SRC=          jpeg-6b
b0275c75884a 22916341 move libjpeg from desktop to userland
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    36
COMPONENT_SRC_NAME=     jpegsrc.$(HUMAN_VERSION)
b0275c75884a 22916341 move libjpeg from desktop to userland
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    37
COMPONENT_ARCHIVE=      $(COMPONENT_SRC_NAME).tar.gz
b0275c75884a 22916341 move libjpeg from desktop to userland
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    38
COMPONENT_ARCHIVE_HASH= \
b0275c75884a 22916341 move libjpeg from desktop to userland
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    39
    sha256:75c3ec241e9996504fe02a9ed4d12f16b74ade713972f3db9e65ce95cd27e35d
b0275c75884a 22916341 move libjpeg from desktop to userland
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    40
COMPONENT_ARCHIVE_URL=  $(COMPONENT_PROJECT_URL)files/libjpeg/6b/$(COMPONENT_ARCHIVE)
b0275c75884a 22916341 move libjpeg from desktop to userland
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    41
COMPONENT_BUGDB=	library/libjpeg
b0275c75884a 22916341 move libjpeg from desktop to userland
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    42
b0275c75884a 22916341 move libjpeg from desktop to userland
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    43
TPNO=			9298
b0275c75884a 22916341 move libjpeg from desktop to userland
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    44
6412
4e700eaededa 23858100 jpegtran lost in move of libjpeg to Userland
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents: 5622
diff changeset
    45
include $(WS_MAKE_RULES)/common.mk
5622
b0275c75884a 22916341 move libjpeg from desktop to userland
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    46
b0275c75884a 22916341 move libjpeg from desktop to userland
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    47
LDFLAGS +=		$(CC_BITS)
b0275c75884a 22916341 move libjpeg from desktop to userland
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    48
6412
4e700eaededa 23858100 jpegtran lost in move of libjpeg to Userland
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents: 5622
diff changeset
    49
CONFIGURE_OPTIONS +=	--prefix=$(PROTOUSRDIR)
5622
b0275c75884a 22916341 move libjpeg from desktop to userland
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    50
CONFIGURE_OPTIONS +=	--enable-shared
6412
4e700eaededa 23858100 jpegtran lost in move of libjpeg to Userland
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents: 5622
diff changeset
    51
4e700eaededa 23858100 jpegtran lost in move of libjpeg to Userland
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents: 5622
diff changeset
    52
CONFIGURE_ENV += INSTALL="$(INSTALL) -D"
5622
b0275c75884a 22916341 move libjpeg from desktop to userland
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    53
6412
4e700eaededa 23858100 jpegtran lost in move of libjpeg to Userland
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents: 5622
diff changeset
    54
# Prevent libtool from embedding runpath (via -R).
4e700eaededa 23858100 jpegtran lost in move of libjpeg to Userland
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents: 5622
diff changeset
    55
COMPONENT_POST_CONFIGURE_ACTION += \
4e700eaededa 23858100 jpegtran lost in move of libjpeg to Userland
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents: 5622
diff changeset
    56
	$(GSED) -i -e 's/hardcode_into_libs=yes/hardcode_into_libs=no/' $(@D)/libtool; \
4e700eaededa 23858100 jpegtran lost in move of libjpeg to Userland
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents: 5622
diff changeset
    57
	$(GSED) -i -e 's/hardcode_libdir_flag_spec=.*/hardcode_libdir_flag_spec=""/' $(@D)/libtool;
5622
b0275c75884a 22916341 move libjpeg from desktop to userland
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    58
b0275c75884a 22916341 move libjpeg from desktop to userland
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    59
COMPONENT_TEST_MASTER = $(COMPONENT_TEST_RESULTS_DIR)/results-all.master
b0275c75884a 22916341 move libjpeg from desktop to userland
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    60
b0275c75884a 22916341 move libjpeg from desktop to userland
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    61
REQUIRED_PACKAGES += shell/ksh93