2010-11-15 19:30:36 +02:00
|
|
|
#
|
|
|
|
# Copyright (C) 2009 Qi Hardware Inc.
|
|
|
|
# Author: Xiangfu Liu <xiangfu@sharism.cc>
|
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=nethack
|
|
|
|
PKG_VERSION:=343
|
|
|
|
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-src.tgz
|
|
|
|
PKG_SOURCE_URL:=http://downloads.sourceforge.net/project/nethack/nethack/3.4.3/
|
|
|
|
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-3.4.3
|
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
|
|
|
|
define Package/nethack
|
2011-01-17 05:39:00 +02:00
|
|
|
MAINTAINER:="Xiangfu Liu" <xiangfu@sharism.cc>
|
2010-11-15 19:30:36 +02:00
|
|
|
SECTION:=games
|
|
|
|
CATEGORY:=Games
|
|
|
|
DEPENDS:=nethack
|
|
|
|
TITLE:=single player dungeon exploration game
|
2012-10-12 16:15:32 +03:00
|
|
|
DEPENDS:=+libncurses +libstdcpp
|
2010-11-15 19:30:36 +02:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/nethack/description
|
|
|
|
NetHack is a single player dungeon exploration game
|
|
|
|
endef
|
|
|
|
|
|
|
|
TARGET_CFLAGS+=-I$(STAGING_DIR)/usr/include
|
|
|
|
TARGET_LDFLAGS+= -Wl,-rpath-link=$(STAGING_DIR)/usr/lib
|
|
|
|
|
2010-12-27 08:46:32 +02:00
|
|
|
define Build/Prepare
|
|
|
|
$(call Build/Prepare/Default)
|
2011-02-15 10:15:51 +02:00
|
|
|
# (mkdir -p $(PKG_BUILD_DIR)/jemarch-bin; \
|
|
|
|
# cd $(PKG_BUILD_DIR)/; \
|
|
|
|
# wget http://www.jemarch.net/downloads/nanonote/nethack-3.4.3-nanonote-bin.tar.gz; \
|
|
|
|
# tar xf nethack-3.4.3-nanonote-bin.tar.gz -C jemarch-bin/; \
|
|
|
|
# )
|
2010-12-27 08:46:32 +02:00
|
|
|
endef
|
|
|
|
|
2010-11-15 19:30:36 +02:00
|
|
|
define Build/Compile
|
|
|
|
(cd $(PKG_BUILD_DIR)/sys/unix; \
|
|
|
|
sh setup.sh; \
|
|
|
|
cd ../../; \
|
|
|
|
export CFLAGS="${TARGET_CFLAGS}";\
|
|
|
|
export LDFLAGS="${TARGET_LDFLAGS}";\
|
|
|
|
export PREFIX="${PKG_INSTALL_DIR}";\
|
|
|
|
make;\
|
|
|
|
)
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/nethack/install
|
|
|
|
$(INSTALL_DIR) \
|
|
|
|
$(1)/usr/bin \
|
2011-01-19 04:53:21 +02:00
|
|
|
$(1)/usr/games/lib/nethackdir
|
2010-11-15 19:30:36 +02:00
|
|
|
|
|
|
|
$(INSTALL_BIN) \
|
2010-12-27 08:46:32 +02:00
|
|
|
$(PKG_BUILD_DIR)/src/nethack \
|
2011-01-19 04:53:21 +02:00
|
|
|
$(1)/usr/bin/
|
2010-12-27 08:46:32 +02:00
|
|
|
|
2011-02-15 10:15:51 +02:00
|
|
|
# $(CP) \
|
|
|
|
# $(PKG_BUILD_DIR)/jemarch-bin/nethack-3.4.3-nanonote-bin/lib/nethackdir/* \
|
|
|
|
# $(1)/usr/games/lib/nethackdir
|
2010-11-15 19:30:36 +02:00
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call BuildPackage,nethack))
|