OpenWrt packages
Sign in or create your account | Project List | Help
OpenWrt packages Git Source Tree
Root/
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 | |
8 | include $(TOPDIR)/rules.mk |
9 | |
10 | PKG_NAME:=tntnet |
11 | PKG_VERSION:=1.6.991.20091227-1 |
12 | PKG_RELEASE:=1 |
13 | |
14 | PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz |
15 | PKG_SOURCE_URL:=http://www.tntnet.org/download |
16 | |
17 | PKG_INSTALL:=1 |
18 | |
19 | include $(INCLUDE_DIR)/host-build.mk |
20 | include $(INCLUDE_DIR)/package.mk |
21 | include $(INCLUDE_DIR)/nls.mk |
22 | |
23 | PKG_BUILD_DEPENDS:=cxxtools/host |
24 | |
25 | TARGET_LDFLAGS+=-Wl,-rpath-link=$(STAGING_DIR)/usr/lib |
26 | |
27 | define Package/tntnet |
28 | TITLE:=tntnet |
29 | SECTION:=libs |
30 | CATEGORY:=Libraries |
31 | DEPENDS:=+zlib +cxxtools |
32 | endef |
33 | |
34 | define Build/Configure |
35 | $(call Build/Configure/Default, \ |
36 | --with-epoll=no \ |
37 | --with-ssl=no \ |
38 | --with-cgi=no \ |
39 | --with-demos=no \ |
40 | --with-server=no \ |
41 | --with-sdk=no \ |
42 | --disable-unittest \ |
43 | ) |
44 | endef |
45 | |
46 | define Build/InstallDev |
47 | $(INSTALL_DIR) $(1)/usr/include $(1)/usr/lib |
48 | $(CP) $(PKG_INSTALL_DIR)/usr/include/tnt $(1)/usr/include/ |
49 | #$(CP) $(PKG_INSTALL_DIR)/usr/lib/libtntnet.{a,so*,la} $(1)/usr/lib/ # no static library is created (bug?) |
50 | $(CP) $(PKG_INSTALL_DIR)/usr/lib/libtntnet.{so*,la} $(1)/usr/lib/ |
51 | endef |
52 | |
53 | define Package/tntnet/install |
54 | $(INSTALL_DIR) $(1)/usr/lib |
55 | $(CP) $(PKG_INSTALL_DIR)/usr/lib/libtntnet.so* $(1)/usr/lib/ |
56 | endef |
57 | |
58 | $(eval $(call HostBuild)) |
59 | $(eval $(call BuildPackage,tntnet)) |
60 |