2011-04-20 14:22:21 +03:00
i n c l u d e $( TOPDIR ) / r u l e s . m k
PKG_NAME := libtcod
PKG_REV := 522
PKG_VERSION := r$( PKG_REV)
PKG_RELEASE := 1
PKG_SOURCE_PROTO := svn
PKG_SOURCE_VERSION := $( PKG_REV)
PKG_SOURCE_SUBDIR := $( PKG_NAME) -$( PKG_VERSION)
PKG_SOURCE := $( PKG_NAME) -$( PKG_VERSION) .tar.gz
2011-04-25 17:47:37 +03:00
PKG_SOURCE_URL := http://doryen.eptalys.net/svn-libtcod/tags/1.5.0/
2011-04-20 14:22:21 +03:00
PKG_BUILD_DIR = $( BUILD_DIR) /$( PKG_NAME) -$( PKG_VERSION) /
i n c l u d e $( INCLUDE_DIR ) / p a c k a g e . m k
d e f i n e P a c k a g e / l i b t c o d
MAINTAINER:= "Xiangfu Liu" <xiangfu@sharism.cc>
SECTION:= libs
CATEGORY:= Libraries
TITLE:= Libtcod
URL:= http://www.autistici.org/bakunin/libtcod/doc/
DEPENDS:= +libpng +zlib +libsdl
e n d e f
d e f i n e P a c k a g e / l i b t c o d / d e s c r i p t i o n
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.
e n d e f
TARGET_CFLAGS += -fPIC
TARGET_LDFLAGS += -Wl,-rpath-link= $( STAGING_DIR) /usr/lib
MAKE_VARS += TEMP = $( PKG_BUILD_DIR) /obj
d e f i n e B u i l d / C o m p i l e
$( MAKE_VARS) $( MAKE) -C $( PKG_BUILD_DIR) \
$( MAKE_FLAGS) \
-f makefiles/makefile-linux \
release
e n d e f
d e f i n e B u i l d / I n s t a l l D e v
$( INSTALL_DIR) $( 1) /usr/lib
$( CP) $( PKG_BUILD_DIR) /libtcod.so* $( 1) /usr/lib/
$( CP) $( PKG_BUILD_DIR) /libtcodxx.so* $( 1) /usr/lib/
$( CP) $( PKG_BUILD_DIR) /libtcodgui.so* $( 1) /usr/lib/
e n d e f
d e f i n e P a c k a g e / l i b t c o d / i n s t a l l
$( INSTALL_DIR) $( 1) /usr/lib
$( CP) $( PKG_BUILD_DIR) /libtcod.so* $( 1) /usr/lib/
$( CP) $( PKG_BUILD_DIR) /libtcodxx.so* $( 1) /usr/lib/
$( CP) $( PKG_BUILD_DIR) /libtcodgui.so* $( 1) /usr/lib/
e n d e f
$( eval $ ( call BuildPackage ,libtcod ) )