remove UninstallDev
[openwrt/svn-archive/archive.git] / libs / clearsilver / Makefile
1 #
2 # Copyright (C) 2007 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:=clearsilver
11 PKG_VERSION:=0.10.5
12 PKG_RELEASE:=1
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=http://www.clearsilver.net/downloads/
16 PKG_MD5SUM:=b8c0c7fbe0ef5e06e0c935f134304d44
17
18 include $(INCLUDE_DIR)/package.mk
19
20 define Package/clearsilver
21 SECTION:=libs
22 CATEGORY:=Libraries
23 DEPENDS:=+libneon +zlib
24 TITLE:=ClearSilver template system
25 URL:=http://www.clearsilver.net/
26 endef
27
28 define Package/clearsilver/description
29 Clearsilver is a fast, powerful, and language-neutral HTML template system. In both static content sites and dynamic HTML applications, it provides a separation between presentation code and application logic which makes working with your project easier.
30 endef
31
32 CONFIGURE_ARGS += \
33 --disable-wdb \
34 --disable-apache \
35 --disable-python \
36 --disable-perl \
37 --disable-ruby \
38 --disable-java \
39 --disable-csharp \
40 --prefix=/usr
41
42 MAKE_FLAGS += \
43 $(TARGET_CONFIGURE_OPTS) \
44 AR="$(AR) cr" \
45 LD="$(TARGET_CROSS)ld -o" \
46 DESTDIR="$(PKG_INSTALL_DIR)" \
47 all install
48
49 define Build/InstallDev
50 $(INSTALL_DIR) $(1)/usr/include/ClearSilver
51 $(INSTALL_DIR) $(1)/usr/include/ClearSilver/cs
52 $(INSTALL_DIR) $(1)/usr/include/ClearSilver/cgi
53 $(INSTALL_DIR) $(1)/usr/include/ClearSilver/util
54
55 $(CP) $(PKG_BUILD_DIR)/ClearSilver.h $(1)/usr/include/ClearSilver/
56 $(CP) $(PKG_BUILD_DIR)/cs_config.h $(1)/usr/include/ClearSilver/
57
58 $(CP) $(PKG_BUILD_DIR)/cs/cs.h $(1)/usr/include/ClearSilver/cs/
59
60 $(CP) $(PKG_BUILD_DIR)/cgi/cgi.h $(1)/usr/include/ClearSilver/cgi/
61 $(CP) $(PKG_BUILD_DIR)/cgi/cgiwrap.h $(1)/usr/include/ClearSilver/cgi/
62 $(CP) $(PKG_BUILD_DIR)/cgi/date.h $(1)/usr/include/ClearSilver/cgi/
63 $(CP) $(PKG_BUILD_DIR)/cgi/html.h $(1)/usr/include/ClearSilver/cgi/
64
65 $(CP) $(PKG_BUILD_DIR)/util/neo_err.h $(1)/usr/include/ClearSilver/util/
66 $(CP) $(PKG_BUILD_DIR)/util/neo_files.h $(1)/usr/include/ClearSilver/util/
67 $(CP) $(PKG_BUILD_DIR)/util/neo_misc.h $(1)/usr/include/ClearSilver/util/
68 $(CP) $(PKG_BUILD_DIR)/util/neo_rand.h $(1)/usr/include/ClearSilver/util/
69 $(CP) $(PKG_BUILD_DIR)/util/ulist.h $(1)/usr/include/ClearSilver/util/
70 $(CP) $(PKG_BUILD_DIR)/util/neo_hdf.h $(1)/usr/include/ClearSilver/util/
71 $(CP) $(PKG_BUILD_DIR)/util/neo_str.h $(1)/usr/include/ClearSilver/util/
72 $(CP) $(PKG_BUILD_DIR)/util/neo_date.h $(1)/usr/include/ClearSilver/util/
73 $(CP) $(PKG_BUILD_DIR)/util/wildmat.h $(1)/usr/include/ClearSilver/util/
74 $(CP) $(PKG_BUILD_DIR)/util/neo_hash.h $(1)/usr/include/ClearSilver/util/
75 $(CP) $(PKG_BUILD_DIR)/util/ulocks.h $(1)/usr/include/ClearSilver/util/
76 $(CP) $(PKG_BUILD_DIR)/util/rcfs.h $(1)/usr/include/ClearSilver/util/
77 $(CP) $(PKG_BUILD_DIR)/util/skiplist.h $(1)/usr/include/ClearSilver/util/
78 $(CP) $(PKG_BUILD_DIR)/util/dict.h $(1)/usr/include/ClearSilver/util/
79 $(CP) $(PKG_BUILD_DIR)/util/filter.h $(1)/usr/include/ClearSilver/util/
80 $(CP) $(PKG_BUILD_DIR)/util/neo_net.h $(1)/usr/include/ClearSilver/util/
81 $(CP) $(PKG_BUILD_DIR)/util/neo_server.h $(1)/usr/include/ClearSilver/util/
82
83 $(INSTALL_DIR) $(1)/usr/lib
84
85 $(CP) $(PKG_BUILD_DIR)/libs/libneo_cs.a $(1)/usr/lib/
86 $(CP) $(PKG_BUILD_DIR)/libs/libneo_cgi.a $(1)/usr/lib/
87 $(CP) $(PKG_BUILD_DIR)/libs/libneo_utl.a $(1)/usr/lib/
88
89 $(INSTALL_DIR) $(1)/usr/bin
90
91 $(CP) $(PKG_BUILD_DIR)/cs/cs $(1)/usr/bin/
92 $(CP) $(PKG_BUILD_DIR)/cs/cstest $(1)/usr/bin/
93 $(CP) $(PKG_BUILD_DIR)/cgi/cs_static.cgi $(1)/usr/bin/
94 endef
95
96 define Package/clearsilver/install
97 $(INSTALL_DIR) $(1)/usr/lib
98 $(INSTALL_BIN) $(PKG_BUILD_DIR)/libs/libneo_cs.a $(1)/usr/lib/
99 $(INSTALL_BIN) $(PKG_BUILD_DIR)/libs/libneo_cgi.a $(1)/usr/lib/
100 $(INSTALL_BIN) $(PKG_BUILD_DIR)/libs/libneo_utl.a $(1)/usr/lib/
101
102 $(INSTALL_DIR) $(1)/usr/bin
103 $(INSTALL_BIN) $(PKG_BUILD_DIR)/cs/cs $(1)/usr/bin/
104 $(INSTALL_BIN) $(PKG_BUILD_DIR)/cs/cstest $(1)/usr/bin/
105 $(INSTALL_BIN) $(PKG_BUILD_DIR)/cgi/cs_static.cgi $(1)/usr/bin/
106 endef
107
108 $(eval $(call BuildPackage,clearsilver))