components/perl_modules/perl-tk/Makefile
author Enrico Perla <enrico.perla@oracle.com>
Fri, 04 Nov 2016 05:32:50 -0700
changeset 7245 934578b959f0
parent 5797 432ac76de3b0
child 7445 41ea11d1d1e5
permissions -rw-r--r--
20029192 Userland should build with ld -z sx=nx* flags instead of map.noexstk 23118364 Enable ADIHEAP on security sensitive binaries 23118359 Build openssh as PIE
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
1677
e41bbf0b1631 PSARC 2013/271 perl-tk version 804.031
mahmood.ali@oracle.com <mahmood.ali@oracle.com>
parents:
diff changeset
     1
#
e41bbf0b1631 PSARC 2013/271 perl-tk version 804.031
mahmood.ali@oracle.com <mahmood.ali@oracle.com>
parents:
diff changeset
     2
# CDDL HEADER START
e41bbf0b1631 PSARC 2013/271 perl-tk version 804.031
mahmood.ali@oracle.com <mahmood.ali@oracle.com>
parents:
diff changeset
     3
#
e41bbf0b1631 PSARC 2013/271 perl-tk version 804.031
mahmood.ali@oracle.com <mahmood.ali@oracle.com>
parents:
diff changeset
     4
# The contents of this file are subject to the terms of the
e41bbf0b1631 PSARC 2013/271 perl-tk version 804.031
mahmood.ali@oracle.com <mahmood.ali@oracle.com>
parents:
diff changeset
     5
# Common Development and Distribution License (the "License").
e41bbf0b1631 PSARC 2013/271 perl-tk version 804.031
mahmood.ali@oracle.com <mahmood.ali@oracle.com>
parents:
diff changeset
     6
# You may not use this file except in compliance with the License.
e41bbf0b1631 PSARC 2013/271 perl-tk version 804.031
mahmood.ali@oracle.com <mahmood.ali@oracle.com>
parents:
diff changeset
     7
#
e41bbf0b1631 PSARC 2013/271 perl-tk version 804.031
mahmood.ali@oracle.com <mahmood.ali@oracle.com>
parents:
diff changeset
     8
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
e41bbf0b1631 PSARC 2013/271 perl-tk version 804.031
mahmood.ali@oracle.com <mahmood.ali@oracle.com>
parents:
diff changeset
     9
# or http://www.opensolaris.org/os/licensing.
e41bbf0b1631 PSARC 2013/271 perl-tk version 804.031
mahmood.ali@oracle.com <mahmood.ali@oracle.com>
parents:
diff changeset
    10
# See the License for the specific language governing permissions
e41bbf0b1631 PSARC 2013/271 perl-tk version 804.031
mahmood.ali@oracle.com <mahmood.ali@oracle.com>
parents:
diff changeset
    11
# and limitations under the License.
e41bbf0b1631 PSARC 2013/271 perl-tk version 804.031
mahmood.ali@oracle.com <mahmood.ali@oracle.com>
parents:
diff changeset
    12
#
e41bbf0b1631 PSARC 2013/271 perl-tk version 804.031
mahmood.ali@oracle.com <mahmood.ali@oracle.com>
parents:
diff changeset
    13
# When distributing Covered Code, include this CDDL HEADER in each
e41bbf0b1631 PSARC 2013/271 perl-tk version 804.031
mahmood.ali@oracle.com <mahmood.ali@oracle.com>
parents:
diff changeset
    14
# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
e41bbf0b1631 PSARC 2013/271 perl-tk version 804.031
mahmood.ali@oracle.com <mahmood.ali@oracle.com>
parents:
diff changeset
    15
# If applicable, add the following below this CDDL HEADER, with the
e41bbf0b1631 PSARC 2013/271 perl-tk version 804.031
mahmood.ali@oracle.com <mahmood.ali@oracle.com>
parents:
diff changeset
    16
# fields enclosed by brackets "[]" replaced with your own identifying
e41bbf0b1631 PSARC 2013/271 perl-tk version 804.031
mahmood.ali@oracle.com <mahmood.ali@oracle.com>
parents:
diff changeset
    17
# information: Portions Copyright [yyyy] [name of copyright owner]
e41bbf0b1631 PSARC 2013/271 perl-tk version 804.031
mahmood.ali@oracle.com <mahmood.ali@oracle.com>
parents:
diff changeset
    18
#
e41bbf0b1631 PSARC 2013/271 perl-tk version 804.031
mahmood.ali@oracle.com <mahmood.ali@oracle.com>
parents:
diff changeset
    19
# CDDL HEADER END
e41bbf0b1631 PSARC 2013/271 perl-tk version 804.031
mahmood.ali@oracle.com <mahmood.ali@oracle.com>
parents:
diff changeset
    20
#
5682
94c0ca64c022 15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 5577
diff changeset
    21
94c0ca64c022 15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 5577
diff changeset
    22
#
5577
09a6352d52ad 22897315 add perl modules support for perl 5.22
Craig Mohrman <craig.mohrman@oracle.com>
parents: 4746
diff changeset
    23
# Copyright (c) 2014, 2016, Oracle and/or its affiliates. All rights reserved.
1677
e41bbf0b1631 PSARC 2013/271 perl-tk version 804.031
mahmood.ali@oracle.com <mahmood.ali@oracle.com>
parents:
diff changeset
    24
#
5797
432ac76de3b0 23078956 adjust the remainder of the userland components to use perl 5.22
Craig Mohrman <craig.mohrman@oracle.com>
parents: 5682
diff changeset
    25
BUILD_BITS= 64
1677
e41bbf0b1631 PSARC 2013/271 perl-tk version 804.031
mahmood.ali@oracle.com <mahmood.ali@oracle.com>
parents:
diff changeset
    26
include ../../../make-rules/shared-macros.mk
e41bbf0b1631 PSARC 2013/271 perl-tk version 804.031
mahmood.ali@oracle.com <mahmood.ali@oracle.com>
parents:
diff changeset
    27
e41bbf0b1631 PSARC 2013/271 perl-tk version 804.031
mahmood.ali@oracle.com <mahmood.ali@oracle.com>
parents:
diff changeset
    28
COMPONENT_NAME=		Tk
e41bbf0b1631 PSARC 2013/271 perl-tk version 804.031
mahmood.ali@oracle.com <mahmood.ali@oracle.com>
parents:
diff changeset
    29
# pkg does not like leading zeros, removed zero after dot.
4746
8e237ffd0a48 20995635 Perl TK needs to be upgraded to work with Perl 5.20
Bill Rushmore <bill.rushmore@oracle.com>
parents: 4339
diff changeset
    30
COMPONENT_VERSION=	804.33
8e237ffd0a48 20995635 Perl TK needs to be upgraded to work with Perl 5.20
Bill Rushmore <bill.rushmore@oracle.com>
parents: 4339
diff changeset
    31
HUMAN_VERSION=		804.033
1677
e41bbf0b1631 PSARC 2013/271 perl-tk version 804.031
mahmood.ali@oracle.com <mahmood.ali@oracle.com>
parents:
diff changeset
    32
COMPONENT_SRC=		$(COMPONENT_NAME)-$(HUMAN_VERSION)
e41bbf0b1631 PSARC 2013/271 perl-tk version 804.031
mahmood.ali@oracle.com <mahmood.ali@oracle.com>
parents:
diff changeset
    33
COMPONENT_ARCHIVE=	$(COMPONENT_SRC).tar.gz
e41bbf0b1631 PSARC 2013/271 perl-tk version 804.031
mahmood.ali@oracle.com <mahmood.ali@oracle.com>
parents:
diff changeset
    34
COMPONENT_PROJECT_URL=	http://search.cpan.org/~srezic/Tk
e41bbf0b1631 PSARC 2013/271 perl-tk version 804.031
mahmood.ali@oracle.com <mahmood.ali@oracle.com>
parents:
diff changeset
    35
COMPONENT_ARCHIVE_HASH=	\
4746
8e237ffd0a48 20995635 Perl TK needs to be upgraded to work with Perl 5.20
Bill Rushmore <bill.rushmore@oracle.com>
parents: 4339
diff changeset
    36
    sha256:84756e9b07a2555c8eecf88e63d5cbbba9b1aa97b1e71a3d4aa524a7995a88ad
1677
e41bbf0b1631 PSARC 2013/271 perl-tk version 804.031
mahmood.ali@oracle.com <mahmood.ali@oracle.com>
parents:
diff changeset
    37
COMPONENT_ARCHIVE_URL=	http://search.cpan.org/CPAN/authors/id/S/SR/SREZIC/$(COMPONENT_ARCHIVE)
e41bbf0b1631 PSARC 2013/271 perl-tk version 804.031
mahmood.ali@oracle.com <mahmood.ali@oracle.com>
parents:
diff changeset
    38
COMPONENT_BUGDB=	perl-mod/tk
e41bbf0b1631 PSARC 2013/271 perl-tk version 804.031
mahmood.ali@oracle.com <mahmood.ali@oracle.com>
parents:
diff changeset
    39
4746
8e237ffd0a48 20995635 Perl TK needs to be upgraded to work with Perl 5.20
Bill Rushmore <bill.rushmore@oracle.com>
parents: 4339
diff changeset
    40
TPNO=			22548
1948
2d1537e7942d 18978320 Userland components should specify TPNOs in Makefiles instead of pkg manifests
John Beck <John.Beck@Oracle.COM>
parents: 1708
diff changeset
    41
3817
30b42c38bbc4 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 1948
diff changeset
    42
include $(WS_MAKE_RULES)/prep.mk
30b42c38bbc4 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 1948
diff changeset
    43
include $(WS_MAKE_RULES)/ips.mk
30b42c38bbc4 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 1948
diff changeset
    44
include $(WS_MAKE_RULES)/makemaker.mk
1677
e41bbf0b1631 PSARC 2013/271 perl-tk version 804.031
mahmood.ali@oracle.com <mahmood.ali@oracle.com>
parents:
diff changeset
    45
5797
432ac76de3b0 23078956 adjust the remainder of the userland components to use perl 5.22
Craig Mohrman <craig.mohrman@oracle.com>
parents: 5682
diff changeset
    46
# This component loves openwin.
432ac76de3b0 23078956 adjust the remainder of the userland components to use perl 5.22
Craig Mohrman <craig.mohrman@oracle.com>
parents: 5682
diff changeset
    47
CONFIGURE_OPTIONS += X11INC=/usr/X11/include
432ac76de3b0 23078956 adjust the remainder of the userland components to use perl 5.22
Craig Mohrman <craig.mohrman@oracle.com>
parents: 5682
diff changeset
    48
CONFIGURE_OPTIONS += X11LIB=/usr/X11/lib/64
1708
5f9e83d9256b 18198698 Remove myConfig.patch and tk-GENFRAG.p5m from perl-tk
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents: 1677
diff changeset
    49
1677
e41bbf0b1631 PSARC 2013/271 perl-tk version 804.031
mahmood.ali@oracle.com <mahmood.ali@oracle.com>
parents:
diff changeset
    50
ASLR_MODE = $(ASLR_NOT_APPLICABLE)
e41bbf0b1631 PSARC 2013/271 perl-tk version 804.031
mahmood.ali@oracle.com <mahmood.ali@oracle.com>
parents:
diff changeset
    51
e41bbf0b1631 PSARC 2013/271 perl-tk version 804.031
mahmood.ali@oracle.com <mahmood.ali@oracle.com>
parents:
diff changeset
    52
COMPONENT_TEST_TARGETS = test
e41bbf0b1631 PSARC 2013/271 perl-tk version 804.031
mahmood.ali@oracle.com <mahmood.ali@oracle.com>
parents:
diff changeset
    53
5797
432ac76de3b0 23078956 adjust the remainder of the userland components to use perl 5.22
Craig Mohrman <craig.mohrman@oracle.com>
parents: 5682
diff changeset
    54
build:		$(BUILD_64)
432ac76de3b0 23078956 adjust the remainder of the userland components to use perl 5.22
Craig Mohrman <craig.mohrman@oracle.com>
parents: 5682
diff changeset
    55
432ac76de3b0 23078956 adjust the remainder of the userland components to use perl 5.22
Craig Mohrman <craig.mohrman@oracle.com>
parents: 5682
diff changeset
    56
install:	$(INSTALL_64)
1677
e41bbf0b1631 PSARC 2013/271 perl-tk version 804.031
mahmood.ali@oracle.com <mahmood.ali@oracle.com>
parents:
diff changeset
    57
5797
432ac76de3b0 23078956 adjust the remainder of the userland components to use perl 5.22
Craig Mohrman <craig.mohrman@oracle.com>
parents: 5682
diff changeset
    58
# Tests work but require an X display and for some reason does not like
432ac76de3b0 23078956 adjust the remainder of the userland components to use perl 5.22
Craig Mohrman <craig.mohrman@oracle.com>
parents: 5682
diff changeset
    59
# our test harness.  Unable to connect to X display.
432ac76de3b0 23078956 adjust the remainder of the userland components to use perl 5.22
Craig Mohrman <craig.mohrman@oracle.com>
parents: 5682
diff changeset
    60
# 23107507 perl-tk tests fail to work inside the userland test framework
432ac76de3b0 23078956 adjust the remainder of the userland components to use perl 5.22
Craig Mohrman <craig.mohrman@oracle.com>
parents: 5682
diff changeset
    61
test:		$(TEST_64)
1677
e41bbf0b1631 PSARC 2013/271 perl-tk version 804.031
mahmood.ali@oracle.com <mahmood.ali@oracle.com>
parents:
diff changeset
    62
4339
6501cf9c29f9 21116842 add system-test targets to each component Makefile and to top-level Makefiles
Stacy Yeh <stacy.yeh@oracle.com>
parents: 3817
diff changeset
    63
system-test:    $(SYSTEM_TESTS_NOT_IMPLEMENTED)
6501cf9c29f9 21116842 add system-test targets to each component Makefile and to top-level Makefiles
Stacy Yeh <stacy.yeh@oracle.com>
parents: 3817
diff changeset
    64
3817
30b42c38bbc4 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 1948
diff changeset
    65
REQUIRED_PACKAGES += runtime/tk-8
30b42c38bbc4 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 1948
diff changeset
    66
REQUIRED_PACKAGES += system/library
30b42c38bbc4 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 1948
diff changeset
    67
REQUIRED_PACKAGES += system/library/fontconfig
30b42c38bbc4 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 1948
diff changeset
    68
REQUIRED_PACKAGES += system/library/math
30b42c38bbc4 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 1948
diff changeset
    69
REQUIRED_PACKAGES += x11/library/libx11
30b42c38bbc4 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 1948
diff changeset
    70
REQUIRED_PACKAGES += x11/library/libxft