components/nethack/Makefile
author Rich Burridge <rich.burridge@oracle.com>
Mon, 05 Dec 2011 11:48:52 -0800
changeset 609 775168282b2f
parent 485 9b12cda204fe
child 774 d0cbca26a17c
permissions -rw-r--r--
7037821 Userland migration of data from Makefile to manifest may have been a little overzealous
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
#
ab9eef4f4029 7054109 Move nethack to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    23
# Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved.
ab9eef4f4029 7054109 Move nethack to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    24
#
ab9eef4f4029 7054109 Move nethack to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    25
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
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
    28
PATH=$(dir $(CC)):/usr/bin:/usr/gnu/bin
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
ab9eef4f4029 7054109 Move nethack to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    31
COMPONENT_VERSION=	3.4.3
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/
301
ab9eef4f4029 7054109 Move nethack to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    33
COMPONENT_SRC=		$(COMPONENT_NAME)-$(COMPONENT_VERSION)
ab9eef4f4029 7054109 Move nethack to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    34
COMPONENT_ARCHIVE=	$(COMPONENT_NAME)-343-src.tgz
ab9eef4f4029 7054109 Move nethack to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    35
COMPONENT_ARCHIVE_HASH=	sha1:c26537093c38152bc0fbcec20468d975b35f59fd
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
ab9eef4f4029 7054109 Move nethack to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    38
include ../../make-rules/prep.mk
ab9eef4f4029 7054109 Move nethack to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    39
include ../../make-rules/justmake.mk
ab9eef4f4029 7054109 Move nethack to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    40
include ../../make-rules/ips.mk
ab9eef4f4029 7054109 Move nethack to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    41
ab9eef4f4029 7054109 Move nethack to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    42
PATCH_LEVEL=0
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
# 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
    45
# other directories.
ab9eef4f4029 7054109 Move nethack to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    46
#
ab9eef4f4029 7054109 Move nethack to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    47
COMPONENT_PREP_ACTION= (cd $(SOURCE_DIR)/sys/unix ; sh setup.sh)
ab9eef4f4029 7054109 Move nethack to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    48
ab9eef4f4029 7054109 Move nethack to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    49
COMPONENT_INSTALL_ARGS += CHOWN=true
ab9eef4f4029 7054109 Move nethack to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    50
COMPONENT_INSTALL_ARGS += CHGRP=true
ab9eef4f4029 7054109 Move nethack to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    51
COMPONENT_INSTALL_ARGS += ROOT=$(PROTO_DIR)
ab9eef4f4029 7054109 Move nethack to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    52
ab9eef4f4029 7054109 Move nethack to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    53
PKG_PROTO_DIRS += $(COMPONENT_SRC)/doc
ab9eef4f4029 7054109 Move nethack to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    54
ab9eef4f4029 7054109 Move nethack to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    55
# common targets
ab9eef4f4029 7054109 Move nethack to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    56
build:		$(BUILD_32)
ab9eef4f4029 7054109 Move nethack to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    57
ab9eef4f4029 7054109 Move nethack to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    58
install:	$(INSTALL_32)
ab9eef4f4029 7054109 Move nethack to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    59
	sed -e 's/^!\(NetHack.tomb\)/\1/' -e 's/^!\(NetHack.pet\)/\1/' \
ab9eef4f4029 7054109 Move nethack to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    60
		-e 's/^!\(NetHack.tile_file\)/\1/' \
ab9eef4f4029 7054109 Move nethack to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    61
		$(COMPONENT_SRC)/win/X11/NetHack.ad \
ab9eef4f4029 7054109 Move nethack to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    62
		> $(PROTO_DIR)/usr/lib/nethack/NetHack.ad
ab9eef4f4029 7054109 Move nethack to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    63
ab9eef4f4029 7054109 Move nethack to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    64
test:		$(NO_TESTS)
ab9eef4f4029 7054109 Move nethack to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    65
ab9eef4f4029 7054109 Move nethack to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    66
BUILD_PKG_DEPENDENCIES =	$(BUILD_TOOLS)
ab9eef4f4029 7054109 Move nethack to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    67
ab9eef4f4029 7054109 Move nethack to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    68
include ../../make-rules/depend.mk