source: packages/libs/clearsilver/Makefile @ 19843

Last change on this file since 19843 was 19843, checked in by rhk, 6 years ago

[packages] clearsilver: fix Config.in handling and refresh patches

File size: 2.3 KB
Line 
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
8include $(TOPDIR)/rules.mk
9
10PKG_NAME:=clearsilver
11PKG_VERSION:=0.10.5
12PKG_RELEASE:=4
13
14PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15PKG_SOURCE_URL:=http://www.clearsilver.net/downloads/
16PKG_MD5SUM:=b8c0c7fbe0ef5e06e0c935f134304d44
17
18PKG_CONFIG_DEPENDS:= \
19        CONFIG_CLEARSILVER_ENABLE_COMPRESSION \
20        CONFIG_CLEARSILVER_ENABLE_REMOTE_DEBUGGER \
21        CONFIG_CLEARSILVER_ENABLE_GETTEXT
22
23PKG_FIXUP:=libtool
24PKG_INSTALL:=1
25
26include $(INCLUDE_DIR)/package.mk
27
28define Package/clearsilver
29  SECTION:=libs
30  CATEGORY:=Libraries
31  TITLE:=ClearSilver template system
32  URL:=http://www.clearsilver.net/
33  MAINTAINER:=Raphaël HUCK <rhk@cksum.org>
34  DEPENDS:=+CLEARSILVER_ENABLE_COMPRESSION:zlib
35endef
36
37define Package/clearsilver/config
38  menu "Configuration"
39  depends on PACKAGE_clearsilver
40  source "$(SOURCE)/Config.in"
41  endmenu
42endef
43
44define Package/clearsilver/description
45Clearsilver is a fast, powerful, and language-neutral HTML template system. In
46both static content sites and dynamic HTML applications, it provides a separation
47between presentation code and application logic which makes working with your
48project easier.
49endef
50
51CONFIGURE_ARGS+= \
52        --disable-wdb \
53        --disable-apache \
54        --disable-python \
55        --disable-perl \
56        --disable-ruby \
57        --disable-java \
58        --disable-csharp \
59        --prefix=/usr
60
61ifeq ($(SDK)$(CONFIG_CLEARSILVER_ENABLE_COMPRESSION),y)
62        CONFIGURE_ARGS+= \
63                --enable-compression
64else
65        CONFIGURE_ARGS+= \
66                --disable-compression
67endif
68
69ifeq ($(SDK)$(CONFIG_CLEARSILVER_ENABLE_REMOTE_DEBUGGER),y)
70        CONFIGURE_ARGS+= \
71                --enable-remote-debugger
72else
73        CONFIGURE_ARGS+= \
74                --disable-remote-debugger
75endif
76
77ifeq ($(SDK)$(CONFIG_CLEARSILVER_ENABLE_GETTEXT),y)
78        CONFIGURE_ARGS+= \
79                --enable-gettext
80else
81        CONFIGURE_ARGS+= \
82                --disable-gettext
83endif
84
85TARGET_CFLAGS+=$(FPIC)
86
87MAKE_FLAGS+= \
88        $(TARGET_CONFIGURE_OPTS) \
89        AR="$(AR) cr" \
90        LD="$(TARGET_CC) -o"
91
92define Build/InstallDev
93        $(INSTALL_DIR) $(1)/usr/include
94        $(CP) $(PKG_INSTALL_DIR)/usr/include/ClearSilver $(1)/usr/include/
95
96        $(INSTALL_DIR) $(1)/usr/lib
97        $(CP) $(PKG_INSTALL_DIR)/usr/lib/libneo_*.a $(1)/usr/lib/
98
99        $(INSTALL_DIR) $(1)/usr/bin
100        $(CP) $(PKG_INSTALL_DIR)/usr/bin/* $(1)/usr/bin/
101endef
102
103define Package/clearsilver/install
104endef
105
106$(eval $(call BuildPackage,clearsilver))
Note: See TracBrowser for help on using the repository browser.