[packages] clearsilver: fix parallel build, don't install static libraries
[openwrt/svn-archive/archive.git] / libs / clearsilver / Makefile
1 #
2 # Copyright (C) 2006-2010 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:=3
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 PKG_INSTALL:=1
19
20 include $(INCLUDE_DIR)/package.mk
21
22 define Package/clearsilver
23 SECTION:=libs
24 CATEGORY:=Libraries
25 TITLE:=ClearSilver template system
26 URL:=http://www.clearsilver.net/
27 MENU:=1
28 endef
29
30 define Package/clearsilver/description
31 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.
32 endef
33
34 TARGET_CFLAGS += $(FPIC)
35
36 CONFIGURE_ARGS += \
37 --disable-wdb \
38 --disable-apache \
39 --disable-python \
40 --disable-perl \
41 --disable-ruby \
42 --disable-java \
43 --disable-csharp \
44 --prefix=/usr
45
46 ifneq ($(SDK)$(CONFIG_CLEARSILVER_ENABLE_COMPRESSION),y)
47 CONFIGURE_ARGS+= \
48 --disable-compression
49 else
50 CONFIGURE_ARGS+= \
51 --enable-compression
52 endif
53
54 ifneq ($(SDK)$(CONFIG_CLEARSILVER_ENABLE_REMOTE_DEBUGGER),y)
55 CONFIGURE_ARGS+= \
56 --disable-remote-debugger
57 else
58 CONFIGURE_ARGS+= \
59 --enable-remote-debugger
60 endif
61
62 ifneq ($(SDK)$(CONFIG_CLEARSILVER_ENABLE_GETTEXT),y)
63 CONFIGURE_ARGS+= \
64 --disable-gettext
65 else
66 CONFIGURE_ARGS+= \
67 --enable-gettext
68 endif
69
70 MAKE_FLAGS += \
71 $(TARGET_CONFIGURE_OPTS) \
72 AR="$(AR) cr" \
73 LD="$(TARGET_CC) -o"
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 endef
88
89 $(eval $(call BuildPackage,clearsilver))