[package] cleanup clearsilver makefile and allow configuration options to be selected (#5166)
git-svn-id: svn://svn.openwrt.org/openwrt/packages@16091 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
82bf1e8ed5
commit
08cff51cae
@ -1,5 +1,5 @@
|
||||
#
|
||||
# Copyright (C) 2007 OpenWrt.org
|
||||
# Copyright (C) 2006-2009 OpenWrt.org
|
||||
#
|
||||
# This is free software, licensed under the GNU General Public License v2.
|
||||
# See /LICENSE for more information.
|
||||
@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
|
||||
|
||||
PKG_NAME:=clearsilver
|
||||
PKG_VERSION:=0.10.5
|
||||
PKG_RELEASE:=1
|
||||
PKG_RELEASE:=2
|
||||
|
||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
||||
PKG_SOURCE_URL:=http://www.clearsilver.net/downloads/
|
||||
@ -20,92 +20,72 @@ include $(INCLUDE_DIR)/package.mk
|
||||
define Package/clearsilver
|
||||
SECTION:=libs
|
||||
CATEGORY:=Libraries
|
||||
DEPENDS:=+libneon +zlib
|
||||
TITLE:=ClearSilver template system
|
||||
URL:=http://www.clearsilver.net/
|
||||
MENU:=1
|
||||
endef
|
||||
|
||||
define Package/clearsilver/description
|
||||
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.
|
||||
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.
|
||||
endef
|
||||
|
||||
TARGET_CFLAGS += $(FPIC)
|
||||
|
||||
CONFIGURE_ARGS += \
|
||||
--disable-wdb \
|
||||
--disable-apache \
|
||||
--disable-python \
|
||||
--disable-perl \
|
||||
--disable-ruby \
|
||||
--disable-java \
|
||||
--disable-csharp \
|
||||
--prefix=/usr
|
||||
--disable-wdb \
|
||||
--disable-apache \
|
||||
--disable-python \
|
||||
--disable-perl \
|
||||
--disable-ruby \
|
||||
--disable-java \
|
||||
--disable-csharp \
|
||||
--prefix=/usr
|
||||
|
||||
ifneq ($(SDK)$(CONFIG_CLEARSILVER_ENABLE_COMPRESSION),y)
|
||||
CONFIGURE_ARGS+= \
|
||||
--disable-compression
|
||||
else
|
||||
CONFIGURE_ARGS+= \
|
||||
--enable-compression
|
||||
endif
|
||||
|
||||
ifneq ($(SDK)$(CONFIG_CLEARSILVER_ENABLE_REMOTE_DEBUGGER),y)
|
||||
CONFIGURE_ARGS+= \
|
||||
--disable-remote-debugger
|
||||
else
|
||||
CONFIGURE_ARGS+= \
|
||||
--enable-remote-debugger
|
||||
endif
|
||||
|
||||
ifneq ($(SDK)$(CONFIG_CLEARSILVER_ENABLE_GETTEXT),y)
|
||||
CONFIGURE_ARGS+= \
|
||||
--disable-gettext
|
||||
else
|
||||
CONFIGURE_ARGS+= \
|
||||
--enable-gettext
|
||||
endif
|
||||
|
||||
MAKE_FLAGS += \
|
||||
$(TARGET_CONFIGURE_OPTS) \
|
||||
AR="$(AR) cr" \
|
||||
LD="$(TARGET_CROSS)ld -o" \
|
||||
LIBS="-lneo_cgi -lneo_cs -lneo_utl -lz $(LIBGCC_S)" \
|
||||
LD="$(TARGET_CC) -o" \
|
||||
DESTDIR="$(PKG_INSTALL_DIR)" \
|
||||
all install
|
||||
|
||||
define Build/InstallDev
|
||||
$(INSTALL_DIR) $(1)/usr/include/ClearSilver
|
||||
$(INSTALL_DIR) $(1)/usr/include/ClearSilver/cs
|
||||
$(INSTALL_DIR) $(1)/usr/include/ClearSilver/cgi
|
||||
$(INSTALL_DIR) $(1)/usr/include/ClearSilver/util
|
||||
|
||||
$(CP) $(PKG_BUILD_DIR)/ClearSilver.h $(1)/usr/include/ClearSilver/
|
||||
$(CP) $(PKG_BUILD_DIR)/cs_config.h $(1)/usr/include/ClearSilver/
|
||||
|
||||
$(CP) $(PKG_BUILD_DIR)/cs/cs.h $(1)/usr/include/ClearSilver/cs/
|
||||
|
||||
$(CP) $(PKG_BUILD_DIR)/cgi/cgi.h $(1)/usr/include/ClearSilver/cgi/
|
||||
$(CP) $(PKG_BUILD_DIR)/cgi/cgiwrap.h $(1)/usr/include/ClearSilver/cgi/
|
||||
$(CP) $(PKG_BUILD_DIR)/cgi/date.h $(1)/usr/include/ClearSilver/cgi/
|
||||
$(CP) $(PKG_BUILD_DIR)/cgi/html.h $(1)/usr/include/ClearSilver/cgi/
|
||||
|
||||
$(CP) $(PKG_BUILD_DIR)/util/neo_err.h $(1)/usr/include/ClearSilver/util/
|
||||
$(CP) $(PKG_BUILD_DIR)/util/neo_files.h $(1)/usr/include/ClearSilver/util/
|
||||
$(CP) $(PKG_BUILD_DIR)/util/neo_misc.h $(1)/usr/include/ClearSilver/util/
|
||||
$(CP) $(PKG_BUILD_DIR)/util/neo_rand.h $(1)/usr/include/ClearSilver/util/
|
||||
$(CP) $(PKG_BUILD_DIR)/util/ulist.h $(1)/usr/include/ClearSilver/util/
|
||||
$(CP) $(PKG_BUILD_DIR)/util/neo_hdf.h $(1)/usr/include/ClearSilver/util/
|
||||
$(CP) $(PKG_BUILD_DIR)/util/neo_str.h $(1)/usr/include/ClearSilver/util/
|
||||
$(CP) $(PKG_BUILD_DIR)/util/neo_date.h $(1)/usr/include/ClearSilver/util/
|
||||
$(CP) $(PKG_BUILD_DIR)/util/wildmat.h $(1)/usr/include/ClearSilver/util/
|
||||
$(CP) $(PKG_BUILD_DIR)/util/neo_hash.h $(1)/usr/include/ClearSilver/util/
|
||||
$(CP) $(PKG_BUILD_DIR)/util/ulocks.h $(1)/usr/include/ClearSilver/util/
|
||||
$(CP) $(PKG_BUILD_DIR)/util/rcfs.h $(1)/usr/include/ClearSilver/util/
|
||||
$(CP) $(PKG_BUILD_DIR)/util/skiplist.h $(1)/usr/include/ClearSilver/util/
|
||||
$(CP) $(PKG_BUILD_DIR)/util/dict.h $(1)/usr/include/ClearSilver/util/
|
||||
$(CP) $(PKG_BUILD_DIR)/util/filter.h $(1)/usr/include/ClearSilver/util/
|
||||
$(CP) $(PKG_BUILD_DIR)/util/neo_net.h $(1)/usr/include/ClearSilver/util/
|
||||
$(CP) $(PKG_BUILD_DIR)/util/neo_server.h $(1)/usr/include/ClearSilver/util/
|
||||
$(INSTALL_DIR) $(1)/usr/include
|
||||
$(CP) $(PKG_INSTALL_DIR)/usr/include/ClearSilver $(1)/usr/include/
|
||||
|
||||
$(INSTALL_DIR) $(1)/usr/lib
|
||||
|
||||
$(CP) $(PKG_BUILD_DIR)/libs/libneo_cs.a $(1)/usr/lib/
|
||||
$(CP) $(PKG_BUILD_DIR)/libs/libneo_cgi.a $(1)/usr/lib/
|
||||
$(CP) $(PKG_BUILD_DIR)/libs/libneo_utl.a $(1)/usr/lib/
|
||||
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libneo_*.a $(1)/usr/lib/
|
||||
|
||||
$(INSTALL_DIR) $(1)/usr/bin
|
||||
|
||||
$(CP) $(PKG_BUILD_DIR)/cs/cs $(1)/usr/bin/
|
||||
$(CP) $(PKG_BUILD_DIR)/cs/cstest $(1)/usr/bin/
|
||||
$(CP) $(PKG_BUILD_DIR)/cgi/cs_static.cgi $(1)/usr/bin/
|
||||
$(CP) $(PKG_INSTALL_DIR)/usr/bin/* $(1)/usr/bin/
|
||||
endef
|
||||
|
||||
define Package/clearsilver/install
|
||||
$(INSTALL_DIR) $(1)/usr/lib
|
||||
$(INSTALL_BIN) $(PKG_BUILD_DIR)/libs/libneo_cs.a $(1)/usr/lib/
|
||||
$(INSTALL_BIN) $(PKG_BUILD_DIR)/libs/libneo_cgi.a $(1)/usr/lib/
|
||||
$(INSTALL_BIN) $(PKG_BUILD_DIR)/libs/libneo_utl.a $(1)/usr/lib/
|
||||
|
||||
$(INSTALL_DIR) $(1)/usr/bin
|
||||
$(INSTALL_BIN) $(PKG_BUILD_DIR)/cs/cs $(1)/usr/bin/
|
||||
$(INSTALL_BIN) $(PKG_BUILD_DIR)/cs/cstest $(1)/usr/bin/
|
||||
$(INSTALL_BIN) $(PKG_BUILD_DIR)/cgi/cs_static.cgi $(1)/usr/bin/
|
||||
$(CP) $(PKG_BUILD_DIR)/libs/libneo_*.a $(1)/usr/lib/
|
||||
endef
|
||||
|
||||
$(eval $(call BuildPackage,clearsilver))
|
||||
|
Loading…
x
Reference in New Issue
Block a user