xsupplicant: fix compile errors related to iwlib.h
[openwrt/svn-archive/archive.git] / libs / clearsilver / Makefile
1 #
2 # Copyright (C) 2006-2009 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:=2
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 TITLE:=ClearSilver template system
24 URL:=http://www.clearsilver.net/
25 MENU:=1
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 TARGET_CFLAGS += $(FPIC)
33
34 CONFIGURE_ARGS += \
35 --disable-wdb \
36 --disable-apache \
37 --disable-python \
38 --disable-perl \
39 --disable-ruby \
40 --disable-java \
41 --disable-csharp \
42 --prefix=/usr
43
44 ifneq ($(SDK)$(CONFIG_CLEARSILVER_ENABLE_COMPRESSION),y)
45 CONFIGURE_ARGS+= \
46 --disable-compression
47 else
48 CONFIGURE_ARGS+= \
49 --enable-compression
50 endif
51
52 ifneq ($(SDK)$(CONFIG_CLEARSILVER_ENABLE_REMOTE_DEBUGGER),y)
53 CONFIGURE_ARGS+= \
54 --disable-remote-debugger
55 else
56 CONFIGURE_ARGS+= \
57 --enable-remote-debugger
58 endif
59
60 ifneq ($(SDK)$(CONFIG_CLEARSILVER_ENABLE_GETTEXT),y)
61 CONFIGURE_ARGS+= \
62 --disable-gettext
63 else
64 CONFIGURE_ARGS+= \
65 --enable-gettext
66 endif
67
68 MAKE_FLAGS += \
69 $(TARGET_CONFIGURE_OPTS) \
70 AR="$(AR) cr" \
71 LD="$(TARGET_CC) -o" \
72 DESTDIR="$(PKG_INSTALL_DIR)" \
73 all install
74
75 define Build/InstallDev
76 $(INSTALL_DIR) $(1)/usr/include
77 $(CP) $(PKG_INSTALL_DIR)/usr/include/ClearSilver $(1)/usr/include/
78
79 $(INSTALL_DIR) $(1)/usr/lib
80 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libneo_*.a $(1)/usr/lib/
81
82 $(INSTALL_DIR) $(1)/usr/bin
83 $(CP) $(PKG_INSTALL_DIR)/usr/bin/* $(1)/usr/bin/
84 endef
85
86 define Package/clearsilver/install
87 $(INSTALL_DIR) $(1)/usr/lib
88 $(CP) $(PKG_BUILD_DIR)/libs/libneo_*.a $(1)/usr/lib/
89 endef
90
91 $(eval $(call BuildPackage,clearsilver))