Add weechat, a lightweight IRC client, thanks kolter !
[openwrt.git] / openwrt / package / lighttpd / Makefile
1 # $Id$
2
3 include $(TOPDIR)/rules.mk
4
5 PKG_NAME:=lighttpd
6 PKG_VERSION:=1.4.11
7 PKG_RELEASE:=1
8 PKG_MD5SUM:=f55eebb9815c94a7de35906bb557ecd3
9
10 PKG_SOURCE_URL:=http://www.lighttpd.net/download/
11 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
12 PKG_CAT:=zcat
13
14 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
15 PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
16
17 include $(TOPDIR)/package/rules.mk
18
19 define PKG_mod_template
20
21 $$(IPKG_$(1)):
22 install -d -m0755 $$(IDIR_$(1))/usr/lib/lighttpd
23 install -m0755 $(PKG_INSTALL_DIR)/usr/lib/lighttpd/mod_$(2).so $$(IDIR_$(1))/usr/lib/lighttpd/
24 $(RSTRIP) $$(IDIR_$(1))
25 $(IPKG_BUILD) $$(IDIR_$(1)) $(PACKAGE_DIR)
26
27 endef
28
29 $(eval $(call PKG_template,LIGHTTPD,lighttpd,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
30 $(eval $(call PKG_template,LIGHTTPD_MOD_ACCESSLOG,lighttpd-mod-accesslog,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
31 $(eval $(call PKG_template,LIGHTTPD_MOD_ALIAS,lighttpd-mod-alias,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
32 $(eval $(call PKG_template,LIGHTTPD_MOD_AUTH,lighttpd-mod-auth,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
33 $(eval $(call PKG_template,LIGHTTPD_MOD_CGI,lighttpd-mod-cgi,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
34 $(eval $(call PKG_template,LIGHTTPD_MOD_EVASIVE,lighttpd-mod-evasive,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
35 $(eval $(call PKG_template,LIGHTTPD_MOD_EXPIRE,lighttpd-mod-expire,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
36 $(eval $(call PKG_template,LIGHTTPD_MOD_FASTCGI,lighttpd-mod-fastcgi,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
37 $(eval $(call PKG_template,LIGHTTPD_MOD_PROXY,lighttpd-mod-proxy,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
38 $(eval $(call PKG_template,LIGHTTPD_MOD_REDIRECT,lighttpd-mod-redirect,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
39 $(eval $(call PKG_template,LIGHTTPD_MOD_REWRITE,lighttpd-mod-rewrite,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
40 $(eval $(call PKG_template,LIGHTTPD_MOD_SETENV,lighttpd-mod-setenv,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
41 $(eval $(call PKG_template,LIGHTTPD_MOD_SIMPLE_VHOST,lighttpd-mod-simple-vhost,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
42 $(eval $(call PKG_template,LIGHTTPD_MOD_SSI,lighttpd-mod-ssi,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
43 $(eval $(call PKG_template,LIGHTTPD_MOD_STATUS,lighttpd-mod-status,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
44 $(eval $(call PKG_template,LIGHTTPD_MOD_USERTRACK,lighttpd-mod-usertrack,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
45
46 $(eval $(call PKG_mod_template,LIGHTTPD_MOD_ACCESSLOG,accesslog))
47 $(eval $(call PKG_mod_template,LIGHTTPD_MOD_ALIAS,alias))
48 $(eval $(call PKG_mod_template,LIGHTTPD_MOD_AUTH,auth))
49 $(eval $(call PKG_mod_template,LIGHTTPD_MOD_CGI,cgi))
50 $(eval $(call PKG_mod_template,LIGHTTPD_MOD_EVASIVE,evasive))
51 $(eval $(call PKG_mod_template,LIGHTTPD_MOD_EXPIRE,expire))
52 $(eval $(call PKG_mod_template,LIGHTTPD_MOD_FASTCGI,fastcgi))
53 $(eval $(call PKG_mod_template,LIGHTTPD_MOD_PROXY,proxy))
54 $(eval $(call PKG_mod_template,LIGHTTPD_MOD_REDIRECT,redirect))
55 $(eval $(call PKG_mod_template,LIGHTTPD_MOD_REWRITE,rewrite))
56 $(eval $(call PKG_mod_template,LIGHTTPD_MOD_SETENV,setenv))
57 $(eval $(call PKG_mod_template,LIGHTTPD_MOD_SIMPLE_VHOST,simple_vhost))
58 $(eval $(call PKG_mod_template,LIGHTTPD_MOD_SSI,ssi))
59 $(eval $(call PKG_mod_template,LIGHTTPD_MOD_STATUS,status))
60 $(eval $(call PKG_mod_template,LIGHTTPD_MOD_USERTRACK,usertrack))
61
62 $(PKG_BUILD_DIR)/.configured:
63 (cd $(PKG_BUILD_DIR); rm -rf config.{cache,status} ; \
64 $(TARGET_CONFIGURE_OPTS) \
65 CFLAGS="$(TARGET_CFLAGS)" \
66 CPPFLAGS="-I$(STAGING_DIR)/usr/include -I$(STAGING_DIR)/include" \
67 LDFLAGS="-L$(STAGING_DIR)/usr/lib -L$(STAGING_DIR)/lib" \
68 PCRE_LIB="-lpcre" \
69 PKG_CONFIG_PATH="$(STAGING_DIR)/usr/lib/pkgconfig" \
70 ./configure \
71 --target=$(GNU_TARGET_NAME) \
72 --host=$(GNU_TARGET_NAME) \
73 --build=$(GNU_HOST_NAME) \
74 --program-prefix="" \
75 --program-suffix="" \
76 --prefix=/usr \
77 --exec-prefix=/usr \
78 --bindir=/usr/bin \
79 --datadir=/usr/share \
80 --includedir=/usr/include \
81 --infodir=/usr/share/info \
82 --libdir=/usr/lib/lighttpd \
83 --libexecdir=/usr/lib \
84 --localstatedir=/var \
85 --mandir=/usr/share/man \
86 --sbindir=/usr/sbin \
87 --sysconfdir=/etc/lighttpd \
88 $(DISABLE_LARGEFILE) \
89 $(DISABLE_NLS) \
90 --enable-shared \
91 --enable-static \
92 --disable-rpath \
93 --without-attr \
94 --without-bzip2 \
95 --without-fam \
96 --without-gdbm \
97 --without-ldap \
98 --without-lua \
99 --without-memcache \
100 --without-mysql \
101 --with-openssl="$(STAGING_DIR)/usr" \
102 --with-pcre \
103 --without-valgrind \
104 --without-webdav-props \
105 )
106 touch $@
107
108 $(PKG_BUILD_DIR)/.built:
109 rm -rf $(PKG_INSTALL_DIR)
110 mkdir -p $(PKG_INSTALL_DIR)
111 $(MAKE) -C $(PKG_BUILD_DIR) \
112 DESTDIR="$(PKG_INSTALL_DIR)" \
113 all install
114 touch $@
115
116 $(IPKG_LIGHTTPD):
117 install -m0755 -d $(IDIR_LIGHTTPD)/etc
118 install -m0644 ./files/lighttpd.conf $(IDIR_LIGHTTPD)/etc/
119 install -m0755 -d $(IDIR_LIGHTTPD)/etc/default
120 install -m0644 ./files/lighttpd.default $(IDIR_LIGHTTPD)/etc/default/lighttpd
121 install -m0755 -d $(IDIR_LIGHTTPD)/etc/init.d
122 install -m0755 ./files/lighttpd.init $(IDIR_LIGHTTPD)/etc/init.d/lighttpd
123 install -m0755 -d $(IDIR_LIGHTTPD)/usr/lib/lighttpd
124 for m in dirlisting indexfile staticfile; do \
125 $(CP) $(PKG_INSTALL_DIR)/usr/lib/lighttpd/mod_$$m.so $(IDIR_LIGHTTPD)/usr/lib/lighttpd/ ; \
126 done
127 install -m0755 -d $(IDIR_LIGHTTPD)/usr/sbin
128 $(CP) $(PKG_INSTALL_DIR)/usr/sbin/lighttpd $(IDIR_LIGHTTPD)/usr/sbin/
129 $(RSTRIP) $(IDIR_LIGHTTPD)
130 $(IPKG_BUILD) $(IDIR_LIGHTTPD) $(PACKAGE_DIR)
131
This page took 0.043389 seconds and 5 git commands to generate.