components/nethack/Makefile
author Danek Duvall <danek.duvall@oracle.com>
Mon, 25 Apr 2016 10:20:40 -0700
changeset 5859 98bc99958997
parent 5682 94c0ca64c022
child 7687 1093e2a9adbd
permissions -rw-r--r--
23141914 nethack 3.6.0
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
301
ab9eef4f4029 7054109 Move nethack to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
     1
#
ab9eef4f4029 7054109 Move nethack to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
     2
# CDDL HEADER START
ab9eef4f4029 7054109 Move nethack to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
     3
#
ab9eef4f4029 7054109 Move nethack to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
     4
# The contents of this file are subject to the terms of the
ab9eef4f4029 7054109 Move nethack to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
     5
# Common Development and Distribution License (the "License").
ab9eef4f4029 7054109 Move nethack to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
     6
# You may not use this file except in compliance with the License.
ab9eef4f4029 7054109 Move nethack to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
     7
#
ab9eef4f4029 7054109 Move nethack to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
     8
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
ab9eef4f4029 7054109 Move nethack to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
     9
# or http://www.opensolaris.org/os/licensing.
ab9eef4f4029 7054109 Move nethack to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    10
# See the License for the specific language governing permissions
ab9eef4f4029 7054109 Move nethack to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    11
# and limitations under the License.
ab9eef4f4029 7054109 Move nethack to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    12
#
ab9eef4f4029 7054109 Move nethack to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    13
# When distributing Covered Code, include this CDDL HEADER in each
ab9eef4f4029 7054109 Move nethack to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    14
# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
ab9eef4f4029 7054109 Move nethack to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    15
# If applicable, add the following below this CDDL HEADER, with the
ab9eef4f4029 7054109 Move nethack to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    16
# fields enclosed by brackets "[]" replaced with your own identifying
ab9eef4f4029 7054109 Move nethack to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    17
# information: Portions Copyright [yyyy] [name of copyright owner]
ab9eef4f4029 7054109 Move nethack to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    18
#
ab9eef4f4029 7054109 Move nethack to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    19
# CDDL HEADER END
ab9eef4f4029 7054109 Move nethack to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    20
#
ab9eef4f4029 7054109 Move nethack to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    21
ab9eef4f4029 7054109 Move nethack to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    22
#
5682
94c0ca64c022 15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 4339
diff changeset
    23
# Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved.
301
ab9eef4f4029 7054109 Move nethack to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    24
#
5682
94c0ca64c022 15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 4339
diff changeset
    25
BUILD_BITS= 64
301
ab9eef4f4029 7054109 Move nethack to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    26
include ../../make-rules/shared-macros.mk
ab9eef4f4029 7054109 Move nethack to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    27
5859
98bc99958997 23141914 nethack 3.6.0
Danek Duvall <danek.duvall@oracle.com>
parents: 5682
diff changeset
    28
PATH=$(dir $(CC)):$(USRBINDIR)
485
9b12cda204fe 7080213 gcc-3 should not deliver /usr/gnu/bin/cc and its man page.
Rich Burridge <rich.burridge@oracle.com>
parents: 301
diff changeset
    29
301
ab9eef4f4029 7054109 Move nethack to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    30
COMPONENT_NAME=		nethack
5859
98bc99958997 23141914 nethack 3.6.0
Danek Duvall <danek.duvall@oracle.com>
parents: 5682
diff changeset
    31
COMPONENT_VERSION=	3.6.0
609
775168282b2f 7037821 Userland migration of data from Makefile to manifest may have been a little overzealous
Rich Burridge <rich.burridge@oracle.com>
parents: 485
diff changeset
    32
COMPONENT_PROJECT_URL=	http://www.nethack.org/
5859
98bc99958997 23141914 nethack 3.6.0
Danek Duvall <danek.duvall@oracle.com>
parents: 5682
diff changeset
    33
COMPONENT_ARCHIVE=	$(COMPONENT_NAME)-$(subst .,,$(COMPONENT_VERSION))-src.tgz
800
2ad056ed89ec 7163771 sha1 should not be used in userland-fetch and userland component/*/Makefile
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents: 774
diff changeset
    34
COMPONENT_ARCHIVE_HASH=	\
5859
98bc99958997 23141914 nethack 3.6.0
Danek Duvall <danek.duvall@oracle.com>
parents: 5682
diff changeset
    35
    sha256:1ade698d8458b8d87a4721444cb73f178c74ed1b6fde537c12000f8edf2cb18a
301
ab9eef4f4029 7054109 Move nethack to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    36
COMPONENT_ARCHIVE_URL=	http://sourceforge.net/projects/$(COMPONENT_NAME)/files/$(COMPONENT_NAME)/$(COMPONENT_VERSION)/$(COMPONENT_ARCHIVE)/download
ab9eef4f4029 7054109 Move nethack to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    37
5859
98bc99958997 23141914 nethack 3.6.0
Danek Duvall <danek.duvall@oracle.com>
parents: 5682
diff changeset
    38
TPNO=			27856
1948
2d1537e7942d 18978320 Userland components should specify TPNOs in Makefiles instead of pkg manifests
John Beck <John.Beck@Oracle.COM>
parents: 1058
diff changeset
    39
5682
94c0ca64c022 15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 4339
diff changeset
    40
BUILD_STYLE= justmake
94c0ca64c022 15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 4339
diff changeset
    41
TEST_TARGET= $(NO_TESTS)
94c0ca64c022 15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 4339
diff changeset
    42
include $(WS_MAKE_RULES)/common.mk
301
ab9eef4f4029 7054109 Move nethack to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    43
ab9eef4f4029 7054109 Move nethack to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    44
PATCH_LEVEL=0
ab9eef4f4029 7054109 Move nethack to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    45
5859
98bc99958997 23141914 nethack 3.6.0
Danek Duvall <danek.duvall@oracle.com>
parents: 5682
diff changeset
    46
# This file contains the configuration we need
98bc99958997 23141914 nethack 3.6.0
Danek Duvall <danek.duvall@oracle.com>
parents: 5682
diff changeset
    47
COMPONENT_POST_UNPACK_ACTION = $(CP) files/solaris $(SOURCE_DIR)/sys/unix/hints
98bc99958997 23141914 nethack 3.6.0
Danek Duvall <danek.duvall@oracle.com>
parents: 5682
diff changeset
    48
301
ab9eef4f4029 7054109 Move nethack to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    49
# Need to use Makefiles in the sys/unix directory and copy them into various
ab9eef4f4029 7054109 Move nethack to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    50
# other directories.
ab9eef4f4029 7054109 Move nethack to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    51
#
5859
98bc99958997 23141914 nethack 3.6.0
Danek Duvall <danek.duvall@oracle.com>
parents: 5682
diff changeset
    52
COMPONENT_PREP_ACTION= (cd $(SOURCE_DIR)/sys/unix; sh setup.sh hints/solaris)
301
ab9eef4f4029 7054109 Move nethack to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    53
5859
98bc99958997 23141914 nethack 3.6.0
Danek Duvall <danek.duvall@oracle.com>
parents: 5682
diff changeset
    54
COMPONENT_BUILD_TARGETS = all
774
d0cbca26a17c 7035978 parfait support for userland bits
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents: 609
diff changeset
    55
COMPONENT_BUILD_ENV += CC=$(CC)
5859
98bc99958997 23141914 nethack 3.6.0
Danek Duvall <danek.duvall@oracle.com>
parents: 5682
diff changeset
    56
COMPONENT_BUILD_ENV += TOP_CFLAGS="$(CFLAGS)"
4029
d0b41e7f3e31 20781120 nethack fails to compile 64-bit
Danek Duvall <danek.duvall@oracle.com>
parents: 3817
diff changeset
    57
COMPONENT_BUILD_ENV += LFLAGS="$(CC_BITS)"
774
d0cbca26a17c 7035978 parfait support for userland bits
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents: 609
diff changeset
    58
5859
98bc99958997 23141914 nethack 3.6.0
Danek Duvall <danek.duvall@oracle.com>
parents: 5682
diff changeset
    59
# Uncomment out a few lines in the resources file
5682
94c0ca64c022 15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 4339
diff changeset
    60
COMPONENT_POST_INSTALL_ACTION += \
94c0ca64c022 15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 4339
diff changeset
    61
	$(GSED) -e 's/^!\(NetHack.tomb\)/\1/' -e 's/^!\(NetHack.pet\)/\1/' \
5859
98bc99958997 23141914 nethack 3.6.0
Danek Duvall <danek.duvall@oracle.com>
parents: 5682
diff changeset
    62
		-e 's/^!\(NetHack.pilemark\)/\1/' \
301
ab9eef4f4029 7054109 Move nethack to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    63
		$(COMPONENT_SRC)/win/X11/NetHack.ad \
ab9eef4f4029 7054109 Move nethack to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    64
		> $(PROTO_DIR)/usr/lib/nethack/NetHack.ad
ab9eef4f4029 7054109 Move nethack to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    65
5682
94c0ca64c022 15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 4339
diff changeset
    66
PKG_PROTO_DIRS += $(COMPONENT_SRC)/doc
301
ab9eef4f4029 7054109 Move nethack to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    67
3817
30b42c38bbc4 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 1948
diff changeset
    68
REQUIRED_PACKAGES += shell/ksh93
30b42c38bbc4 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 1948
diff changeset
    69
REQUIRED_PACKAGES += x11/compatibility/links-xorg
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/libx11
30b42c38bbc4 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 1948
diff changeset
    71
REQUIRED_PACKAGES += x11/library/libxpm
30b42c38bbc4 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 1948
diff changeset
    72
REQUIRED_PACKAGES += x11/library/toolkit/libxaw7
30b42c38bbc4 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 1948
diff changeset
    73
REQUIRED_PACKAGES += x11/library/toolkit/libxt