Root/tntnet/Makefile

Source at commit 1b3135c created 8 years 1 month ago.
By Xiangfu Liu, new package: SDL-widgets: a GUI toolkit on top of the SDL libraries
1#
2# Copyright (C) 2008 OpenWrt.org
3#
4# This is free software, licensed under the GNU General Public License v2.
5# See /LICENSE for more information.
6#
7
8include $(TOPDIR)/rules.mk
9
10PKG_NAME:=tntnet
11PKG_VERSION:=2.0
12PKG_RELEASE:=1
13
14PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15PKG_SOURCE_URL:=http://www.tntnet.org/download
16PKG_MD5SUM:=8f7185eeed23e7ae6a9be314e2fc0d36
17
18PKG_INSTALL:=1
19
20include $(INCLUDE_DIR)/host-build.mk
21include $(INCLUDE_DIR)/package.mk
22include $(INCLUDE_DIR)/nls.mk
23
24PKG_BUILD_DEPENDS:=cxxtools/host
25
26TARGET_LDFLAGS+=-Wl,-rpath-link=$(STAGING_DIR)/usr/lib
27
28define Package/tntnet
29    TITLE:=tntnet
30    SECTION:=libs
31    CATEGORY:=Libraries
32    DEPENDS:=+zlib +cxxtools
33endef
34
35define Build/Configure
36    $(call Build/Configure/Default, \
37        --with-epoll=no \
38        --with-ssl=no \
39        --with-cgi=no \
40        --with-demos=no \
41        --with-server=no \
42        --with-sdk=no \
43        --disable-unittest \
44    )
45endef
46
47define Build/InstallDev
48    $(INSTALL_DIR) $(1)/usr/include $(1)/usr/lib
49    $(CP) $(PKG_INSTALL_DIR)/usr/include/tnt $(1)/usr/include/
50    #$(CP) $(PKG_INSTALL_DIR)/usr/lib/libtntnet.{a,so*,la} $(1)/usr/lib/ # no static library is created (bug?)
51    $(CP) $(PKG_INSTALL_DIR)/usr/lib/libtntnet.{so*,la} $(1)/usr/lib/
52endef
53
54define Package/tntnet/install
55    $(INSTALL_DIR) $(1)/usr/lib
56    $(CP) $(PKG_INSTALL_DIR)/usr/lib/libtntnet.so* $(1)/usr/lib/
57endef
58
59$(eval $(call HostBuild))
60$(eval $(call BuildPackage,tntnet))
61

Archive Download this file



interactive