Root/libtcod/Makefile

1include $(TOPDIR)/rules.mk
2
3PKG_NAME:=libtcod
4PKG_REV:=522
5PKG_VERSION:=r$(PKG_REV)
6PKG_RELEASE:=1
7
8PKG_SOURCE_PROTO:=svn
9PKG_SOURCE_VERSION:=$(PKG_REV)
10PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
11PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
12PKG_SOURCE_URL:=http://doryen.eptalys.net/svn-libtcod/tags/1.5.0/
13PKG_BUILD_DIR=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)/
14
15include $(INCLUDE_DIR)/package.mk
16
17define Package/libtcod
18    MAINTAINER:="Xiangfu Liu" <xiangfu@sharism.cc>
19    SECTION:=libs
20    CATEGORY:=Libraries
21    TITLE:=Libtcod
22    URL:=http://www.autistici.org/bakunin/libtcod/doc/
23    DEPENDS:=+libpng +zlib +libsdl
24endef
25
26define Package/libtcod/description
27    libtcod, a.k.a. “The Doryen Library”, is a free, fast, portable and uncomplicated API for roguelike developpers providing an advanced true color console, input, and lots of other utilities frequently used in roguelikes.
28endef
29
30TARGET_CFLAGS+=-fPIC
31TARGET_LDFLAGS+=-Wl,-rpath-link=$(STAGING_DIR)/usr/lib
32
33MAKE_VARS+=TEMP=$(PKG_BUILD_DIR)/obj
34
35define Build/Compile
36    $(MAKE_VARS) $(MAKE) -C $(PKG_BUILD_DIR) \
37        $(MAKE_FLAGS) \
38        -f makefiles/makefile-linux \
39        release
40endef
41
42define Build/InstallDev
43    $(INSTALL_DIR) $(1)/usr/lib
44    $(CP) $(PKG_BUILD_DIR)/libtcod.so* $(1)/usr/lib/
45    $(CP) $(PKG_BUILD_DIR)/libtcodxx.so* $(1)/usr/lib/
46    $(CP) $(PKG_BUILD_DIR)/libtcodgui.so* $(1)/usr/lib/
47endef
48
49define Package/libtcod/install
50    $(INSTALL_DIR) $(1)/usr/lib
51    $(CP) $(PKG_BUILD_DIR)/libtcod.so* $(1)/usr/lib/
52    $(CP) $(PKG_BUILD_DIR)/libtcodxx.so* $(1)/usr/lib/
53    $(CP) $(PKG_BUILD_DIR)/libtcodgui.so* $(1)/usr/lib/
54endef
55
56$(eval $(call BuildPackage,libtcod))
57

Archive Download this file



interactive