components/elinks/Makefile
author John Beck <John.Beck@Oracle.COM>
Mon, 02 Mar 2015 16:15:04 -0800
changeset 3898 acd7f120a52a
parent 3817 30b42c38bbc4
child 4339 6501cf9c29f9
permissions -rw-r--r--
20632171 Mailman should publish its .pyc files
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
74
7e35801ce8b8 7016379 migrate elinks to userland
Kevin Crowe <Kevin.Crowe@oracle.com>
parents:
diff changeset
     1
#
7e35801ce8b8 7016379 migrate elinks to userland
Kevin Crowe <Kevin.Crowe@oracle.com>
parents:
diff changeset
     2
# CDDL HEADER START
7e35801ce8b8 7016379 migrate elinks to userland
Kevin Crowe <Kevin.Crowe@oracle.com>
parents:
diff changeset
     3
#
7e35801ce8b8 7016379 migrate elinks to userland
Kevin Crowe <Kevin.Crowe@oracle.com>
parents:
diff changeset
     4
# The contents of this file are subject to the terms of the
7e35801ce8b8 7016379 migrate elinks to userland
Kevin Crowe <Kevin.Crowe@oracle.com>
parents:
diff changeset
     5
# Common Development and Distribution License (the "License").
7e35801ce8b8 7016379 migrate elinks to userland
Kevin Crowe <Kevin.Crowe@oracle.com>
parents:
diff changeset
     6
# You may not use this file except in compliance with the License.
7e35801ce8b8 7016379 migrate elinks to userland
Kevin Crowe <Kevin.Crowe@oracle.com>
parents:
diff changeset
     7
#
7e35801ce8b8 7016379 migrate elinks to userland
Kevin Crowe <Kevin.Crowe@oracle.com>
parents:
diff changeset
     8
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
7e35801ce8b8 7016379 migrate elinks to userland
Kevin Crowe <Kevin.Crowe@oracle.com>
parents:
diff changeset
     9
# or http://www.opensolaris.org/os/licensing.
7e35801ce8b8 7016379 migrate elinks to userland
Kevin Crowe <Kevin.Crowe@oracle.com>
parents:
diff changeset
    10
# See the License for the specific language governing permissions
7e35801ce8b8 7016379 migrate elinks to userland
Kevin Crowe <Kevin.Crowe@oracle.com>
parents:
diff changeset
    11
# and limitations under the License.
7e35801ce8b8 7016379 migrate elinks to userland
Kevin Crowe <Kevin.Crowe@oracle.com>
parents:
diff changeset
    12
#
7e35801ce8b8 7016379 migrate elinks to userland
Kevin Crowe <Kevin.Crowe@oracle.com>
parents:
diff changeset
    13
# When distributing Covered Code, include this CDDL HEADER in each
7e35801ce8b8 7016379 migrate elinks to userland
Kevin Crowe <Kevin.Crowe@oracle.com>
parents:
diff changeset
    14
# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
7e35801ce8b8 7016379 migrate elinks to userland
Kevin Crowe <Kevin.Crowe@oracle.com>
parents:
diff changeset
    15
# If applicable, add the following below this CDDL HEADER, with the
7e35801ce8b8 7016379 migrate elinks to userland
Kevin Crowe <Kevin.Crowe@oracle.com>
parents:
diff changeset
    16
# fields enclosed by brackets "[]" replaced with your own identifying
7e35801ce8b8 7016379 migrate elinks to userland
Kevin Crowe <Kevin.Crowe@oracle.com>
parents:
diff changeset
    17
# information: Portions Copyright [yyyy] [name of copyright owner]
7e35801ce8b8 7016379 migrate elinks to userland
Kevin Crowe <Kevin.Crowe@oracle.com>
parents:
diff changeset
    18
#
7e35801ce8b8 7016379 migrate elinks to userland
Kevin Crowe <Kevin.Crowe@oracle.com>
parents:
diff changeset
    19
# CDDL HEADER END
7e35801ce8b8 7016379 migrate elinks to userland
Kevin Crowe <Kevin.Crowe@oracle.com>
parents:
diff changeset
    20
#
3625
43b658b2e7cf 20345318 elinks should have some master test results to compare against
Rich Burridge <rich.burridge@oracle.com>
parents: 3552
diff changeset
    21
# Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved.
74
7e35801ce8b8 7016379 migrate elinks to userland
Kevin Crowe <Kevin.Crowe@oracle.com>
parents:
diff changeset
    22
#
3817
30b42c38bbc4 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 3625
diff changeset
    23
30b42c38bbc4 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 3625
diff changeset
    24
# Because the Studio compiler generates thousands of lines of warnings.
30b42c38bbc4 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 3625
diff changeset
    25
COMPILER=gcc
30b42c38bbc4 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 3625
diff changeset
    26
74
7e35801ce8b8 7016379 migrate elinks to userland
Kevin Crowe <Kevin.Crowe@oracle.com>
parents:
diff changeset
    27
include ../../make-rules/shared-macros.mk
7e35801ce8b8 7016379 migrate elinks to userland
Kevin Crowe <Kevin.Crowe@oracle.com>
parents:
diff changeset
    28
7e35801ce8b8 7016379 migrate elinks to userland
Kevin Crowe <Kevin.Crowe@oracle.com>
parents:
diff changeset
    29
COMPONENT_NAME=		elinks
7e35801ce8b8 7016379 migrate elinks to userland
Kevin Crowe <Kevin.Crowe@oracle.com>
parents:
diff changeset
    30
COMPONENT_VERSION=	0.11.7
609
775168282b2f 7037821 Userland migration of data from Makefile to manifest may have been a little overzealous
Rich Burridge <rich.burridge@oracle.com>
parents: 181
diff changeset
    31
COMPONENT_PROJECT_URL=	http://elinks.or.cz/
74
7e35801ce8b8 7016379 migrate elinks to userland
Kevin Crowe <Kevin.Crowe@oracle.com>
parents:
diff changeset
    32
COMPONENT_SRC=		$(COMPONENT_NAME)-$(COMPONENT_VERSION)
7e35801ce8b8 7016379 migrate elinks to userland
Kevin Crowe <Kevin.Crowe@oracle.com>
parents:
diff changeset
    33
COMPONENT_ARCHIVE=	$(COMPONENT_SRC).tar.bz2
800
2ad056ed89ec 7163771 sha1 should not be used in userland-fetch and userland component/*/Makefile
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents: 609
diff changeset
    34
COMPONENT_ARCHIVE_HASH=	\
2ad056ed89ec 7163771 sha1 should not be used in userland-fetch and userland component/*/Makefile
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents: 609
diff changeset
    35
    sha256:456db6f704c591b1298b0cd80105f459ff8a1fc07a0ec1156a36c4da6f898979
609
775168282b2f 7037821 Userland migration of data from Makefile to manifest may have been a little overzealous
Rich Burridge <rich.burridge@oracle.com>
parents: 181
diff changeset
    36
COMPONENT_ARCHIVE_URL=	$(COMPONENT_PROJECT_URL)download/$(COMPONENT_ARCHIVE)
1058
34d7aaa03423 15886624 Auto-generation of Userland gate list - Phase 3
Rich Burridge <rich.burridge@oracle.com>
parents: 800
diff changeset
    37
COMPONENT_BUGDB=	utility/elinks
74
7e35801ce8b8 7016379 migrate elinks to userland
Kevin Crowe <Kevin.Crowe@oracle.com>
parents:
diff changeset
    38
1948
2d1537e7942d 18978320 Userland components should specify TPNOs in Makefiles instead of pkg manifests
John Beck <John.Beck@Oracle.COM>
parents: 1232
diff changeset
    39
TPNO=			8340
2d1537e7942d 18978320 Userland components should specify TPNOs in Makefiles instead of pkg manifests
John Beck <John.Beck@Oracle.COM>
parents: 1232
diff changeset
    40
3817
30b42c38bbc4 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 3625
diff changeset
    41
include $(WS_MAKE_RULES)/prep.mk
30b42c38bbc4 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 3625
diff changeset
    42
include $(WS_MAKE_RULES)/configure.mk
30b42c38bbc4 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 3625
diff changeset
    43
include $(WS_MAKE_RULES)/ips.mk
2194
2d2ebbb58fbb 19982829 Elinks says it has tests but doesn't
Rich Burridge <rich.burridge@oracle.com>
parents: 1948
diff changeset
    44
2d2ebbb58fbb 19982829 Elinks says it has tests but doesn't
Rich Burridge <rich.burridge@oracle.com>
parents: 1948
diff changeset
    45
# Always show the build and link lines for easier debugging.
2d2ebbb58fbb 19982829 Elinks says it has tests but doesn't
Rich Burridge <rich.burridge@oracle.com>
parents: 1948
diff changeset
    46
COMPONENT_BUILD_ARGS +=		V=1
2d2ebbb58fbb 19982829 Elinks says it has tests but doesn't
Rich Burridge <rich.burridge@oracle.com>
parents: 1948
diff changeset
    47
2d2ebbb58fbb 19982829 Elinks says it has tests but doesn't
Rich Burridge <rich.burridge@oracle.com>
parents: 1948
diff changeset
    48
# Fixup warnings about -Bdirect and -zignore being incompatible options when
2d2ebbb58fbb 19982829 Elinks says it has tests but doesn't
Rich Burridge <rich.burridge@oracle.com>
parents: 1948
diff changeset
    49
# building a relocatable object.
2d2ebbb58fbb 19982829 Elinks says it has tests but doesn't
Rich Burridge <rich.burridge@oracle.com>
parents: 1948
diff changeset
    50
LD_B_DIRECT=
2d2ebbb58fbb 19982829 Elinks says it has tests but doesn't
Rich Burridge <rich.burridge@oracle.com>
parents: 1948
diff changeset
    51
LD_Z_IGNORE=
2d2ebbb58fbb 19982829 Elinks says it has tests but doesn't
Rich Burridge <rich.burridge@oracle.com>
parents: 1948
diff changeset
    52
74
7e35801ce8b8 7016379 migrate elinks to userland
Kevin Crowe <Kevin.Crowe@oracle.com>
parents:
diff changeset
    53
CONFIGURE_OPTIONS  +=		--enable-bittorrent
7e35801ce8b8 7016379 migrate elinks to userland
Kevin Crowe <Kevin.Crowe@oracle.com>
parents:
diff changeset
    54
CONFIGURE_OPTIONS  +=		--enable-html-highlight
7e35801ce8b8 7016379 migrate elinks to userland
Kevin Crowe <Kevin.Crowe@oracle.com>
parents:
diff changeset
    55
CONFIGURE_OPTIONS  +=		--enable-256-colors
7e35801ce8b8 7016379 migrate elinks to userland
Kevin Crowe <Kevin.Crowe@oracle.com>
parents:
diff changeset
    56
CONFIGURE_OPTIONS  +=		CFLAGS="$(CFLAGS)"
7e35801ce8b8 7016379 migrate elinks to userland
Kevin Crowe <Kevin.Crowe@oracle.com>
parents:
diff changeset
    57
3625
43b658b2e7cf 20345318 elinks should have some master test results to compare against
Rich Burridge <rich.burridge@oracle.com>
parents: 3552
diff changeset
    58
# Use the HTML and CSS styling external test suite as referenced at
43b658b2e7cf 20345318 elinks should have some master test results to compare against
Rich Burridge <rich.burridge@oracle.com>
parents: 3552
diff changeset
    59
# http://www.w3.org/2005/MWI/Tests/
43b658b2e7cf 20345318 elinks should have some master test results to compare against
Rich Burridge <rich.burridge@oracle.com>
parents: 3552
diff changeset
    60
COMPONENT_TEST_CMD = $(@D)/src/elinks
43b658b2e7cf 20345318 elinks should have some master test results to compare against
Rich Burridge <rich.burridge@oracle.com>
parents: 3552
diff changeset
    61
COMPONENT_TEST_ARGS = -dump \
43b658b2e7cf 20345318 elinks should have some master test results to compare against
Rich Burridge <rich.burridge@oracle.com>
parents: 3552
diff changeset
    62
	http://www.cameronmoll.com/mobile/mkp/pg1.html \
43b658b2e7cf 20345318 elinks should have some master test results to compare against
Rich Burridge <rich.burridge@oracle.com>
parents: 3552
diff changeset
    63
	http://www.cameronmoll.com/mobile/mkp/pg2.html \
43b658b2e7cf 20345318 elinks should have some master test results to compare against
Rich Burridge <rich.burridge@oracle.com>
parents: 3552
diff changeset
    64
	http://www.cameronmoll.com/mobile/mkp/pg3.html \
43b658b2e7cf 20345318 elinks should have some master test results to compare against
Rich Burridge <rich.burridge@oracle.com>
parents: 3552
diff changeset
    65
	http://www.cameronmoll.com/mobile/mkp/pg4.html
43b658b2e7cf 20345318 elinks should have some master test results to compare against
Rich Burridge <rich.burridge@oracle.com>
parents: 3552
diff changeset
    66
COMPONENT_TEST_TARGETS =
43b658b2e7cf 20345318 elinks should have some master test results to compare against
Rich Burridge <rich.burridge@oracle.com>
parents: 3552
diff changeset
    67
1191
3bdf33525a13 16426977 Numerous components in Userland need to have ASLR enabled.
Rich Burridge <rich.burridge@oracle.com>
parents: 1058
diff changeset
    68
ASLR_MODE = $(ASLR_ENABLE)
3bdf33525a13 16426977 Numerous components in Userland need to have ASLR enabled.
Rich Burridge <rich.burridge@oracle.com>
parents: 1058
diff changeset
    69
74
7e35801ce8b8 7016379 migrate elinks to userland
Kevin Crowe <Kevin.Crowe@oracle.com>
parents:
diff changeset
    70
# common targets
2225
f064d3d3190d 20078677 Userland Makefiles should support a configure: target
John Beck <John.Beck@Oracle.COM>
parents: 2194
diff changeset
    71
configure:	$(CONFIGURE_64)
f064d3d3190d 20078677 Userland Makefiles should support a configure: target
John Beck <John.Beck@Oracle.COM>
parents: 2194
diff changeset
    72
1232
e550ed2e3065 16522201 Various Userland components should be 64-bit
Rich Burridge <rich.burridge@oracle.com>
parents: 1191
diff changeset
    73
build:		$(BUILD_64)
74
7e35801ce8b8 7016379 migrate elinks to userland
Kevin Crowe <Kevin.Crowe@oracle.com>
parents:
diff changeset
    74
1232
e550ed2e3065 16522201 Various Userland components should be 64-bit
Rich Burridge <rich.burridge@oracle.com>
parents: 1191
diff changeset
    75
install:	$(INSTALL_64)
74
7e35801ce8b8 7016379 migrate elinks to userland
Kevin Crowe <Kevin.Crowe@oracle.com>
parents:
diff changeset
    76
3625
43b658b2e7cf 20345318 elinks should have some master test results to compare against
Rich Burridge <rich.burridge@oracle.com>
parents: 3552
diff changeset
    77
test:		$(TEST_64)
83
9ab0deb97868 7017671 move patch to userland
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents: 75
diff changeset
    78
74
7e35801ce8b8 7016379 migrate elinks to userland
Kevin Crowe <Kevin.Crowe@oracle.com>
parents:
diff changeset
    79
3817
30b42c38bbc4 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 3625
diff changeset
    80
REQUIRED_PACKAGES += compress/bzip2
30b42c38bbc4 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 3625
diff changeset
    81
REQUIRED_PACKAGES += library/expat
30b42c38bbc4 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 3625
diff changeset
    82
REQUIRED_PACKAGES += library/security/openssl
30b42c38bbc4 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 3625
diff changeset
    83
REQUIRED_PACKAGES += library/zlib
30b42c38bbc4 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 3625
diff changeset
    84
REQUIRED_PACKAGES += system/library
30b42c38bbc4 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 3625
diff changeset
    85
REQUIRED_PACKAGES += system/linker
30b42c38bbc4 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 3625
diff changeset
    86
REQUIRED_PACKAGES += x11/library/libx11