components/perl_modules/perl-tk/Makefile
branchs11u3-sru
changeset 7711 48f87ff8204e
parent 3996 20c0f21bbe1e
equal deleted inserted replaced
7709:e38357099235 7711:48f87ff8204e
    16 # fields enclosed by brackets "[]" replaced with your own identifying
    16 # fields enclosed by brackets "[]" replaced with your own identifying
    17 # information: Portions Copyright [yyyy] [name of copyright owner]
    17 # information: Portions Copyright [yyyy] [name of copyright owner]
    18 #
    18 #
    19 # CDDL HEADER END
    19 # CDDL HEADER END
    20 #
    20 #
    21 # Copyright (c) 2014, 2015, Oracle and/or its affiliates. All rights reserved.
    21 # Copyright (c) 2014, 2017, Oracle and/or its affiliates. All rights reserved.
    22 #
    22 #
    23 include ../../../make-rules/shared-macros.mk
    23 include ../../../make-rules/shared-macros.mk
    24 
    24 
    25 COMPONENT_NAME=		Tk
    25 COMPONENT_NAME=		Tk
    26 # pkg does not like leading zeros, removed zero after dot.
    26 # pkg does not like leading zeros, removed zero after dot.
    27 COMPONENT_VERSION=	804.31
    27 COMPONENT_VERSION=	804.33
    28 HUMAN_VERSION=		804.031
    28 HUMAN_VERSION=		804.033
    29 COMPONENT_SRC=		$(COMPONENT_NAME)-$(HUMAN_VERSION)
    29 COMPONENT_SRC=		$(COMPONENT_NAME)-$(HUMAN_VERSION)
    30 COMPONENT_ARCHIVE=	$(COMPONENT_SRC).tar.gz
    30 COMPONENT_ARCHIVE=	$(COMPONENT_SRC).tar.gz
    31 COMPONENT_PROJECT_URL=	http://search.cpan.org/~srezic/Tk
    31 COMPONENT_PROJECT_URL=	http://search.cpan.org/~srezic/Tk
    32 COMPONENT_ARCHIVE_HASH=	\
    32 COMPONENT_ARCHIVE_HASH=	\
    33     sha256:ce8d857a82a77f6bad3f94c1a8c3e3f32d5489bfb41619c3b8cae00103428054
    33     sha256:84756e9b07a2555c8eecf88e63d5cbbba9b1aa97b1e71a3d4aa524a7995a88ad
    34 COMPONENT_ARCHIVE_URL=	http://search.cpan.org/CPAN/authors/id/S/SR/SREZIC/$(COMPONENT_ARCHIVE)
    34 COMPONENT_ARCHIVE_URL=	http://search.cpan.org/CPAN/authors/id/S/SR/SREZIC/$(COMPONENT_ARCHIVE)
    35 COMPONENT_BUGDB=	perl-mod/tk
    35 COMPONENT_BUGDB=	perl-mod/tk
    36 
    36 
    37 TPNO=			13259
    37 TPNO=			22548
    38 
    38 
    39 # Only build for the default version, since 5.8.4 is almost dead
    39 # Only build for the default version, since 5.8.4 is almost dead
    40 PERL_VERSIONS = $(PERL_VERSION)
    40 PERL_VERSIONS = $(PERL_VERSION) 5.22
    41 
    41 
    42 include $(WS_MAKE_RULES)/prep.mk
    42 include $(WS_MAKE_RULES)/prep.mk
    43 include $(WS_MAKE_RULES)/ips.mk
    43 include $(WS_MAKE_RULES)/ips.mk
    44 include $(WS_MAKE_RULES)/makemaker.mk
    44 include $(WS_MAKE_RULES)/makemaker.mk
    45 
    45 
    46 # override LIBS so that the Tk.so RunPATH doesn't get set.
    46 # This component loves openwin.
    47 CONFIGURE_OPTIONS += LIBS="-lXft -lX11 -lfontconfig -lm -lc"
    47 CONFIGURE_OPTIONS += X11INC=/usr/X11/include
       
    48 CONFIGURE_OPTIONS += X11LIB=/usr/X11/lib/64
    48 
    49 
    49 # Disbale ASLR for this module.
       
    50 ASLR_MODE = $(ASLR_NOT_APPLICABLE)
    50 ASLR_MODE = $(ASLR_NOT_APPLICABLE)
    51 
    51 
    52 COMPONENT_TEST_TARGETS = test
    52 COMPONENT_TEST_ENV =		DISPLAY=:1
       
    53 COMPONENT_TEST_TARGETS =	test
    53 
    54 
    54 build:		$(BUILD_32)
    55 # Tests are run using an X virtual framebuffer.
       
    56 # When we have the equivalent of REQUIRED_PACKAGES for test dependencies,
       
    57 # then we will need to make sure that x11/server/xvfb is included in that list.
    55 
    58 
    56 install:	$(INSTALL_32)
    59 COMPONENT_PRE_TEST_ACTION = \
       
    60 	$(SHELL) $(COMPONENT_DIR)/start_Xvfb $(COMPONENT_DIR)
       
    61 COMPONENT_POST_TEST_ACTION = \
       
    62 	$(SHELL) $(COMPONENT_DIR)/stop_Xvfb $(COMPONENT_DIR)
    57 
    63 
    58 test:		$(TEST_32)
    64 build:		$(BUILD_32_and_64_PERL)
    59 
    65 
       
    66 install:	$(INSTALL_32_and_64_PERL)
    60 
    67 
    61 REQUIRED_PACKAGES += runtime/perl-512
    68 test:		$(TEST_32_and_64_PERL)
    62 REQUIRED_PACKAGES += runtime/perl-584
    69 
    63 REQUIRED_PACKAGES += runtime/tk-8
    70 REQUIRED_PACKAGES += runtime/tk-8
    64 REQUIRED_PACKAGES += system/library
    71 REQUIRED_PACKAGES += system/library
    65 REQUIRED_PACKAGES += system/library/fontconfig
    72 REQUIRED_PACKAGES += system/library/fontconfig
    66 REQUIRED_PACKAGES += system/library/math
    73 REQUIRED_PACKAGES += system/library/math
    67 REQUIRED_PACKAGES += x11/library/libx11
    74 REQUIRED_PACKAGES += x11/library/libx11