blob: bc4c08a4732a23f68a1dc6c39b8998a706e5ee11 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
|
# This file is part of the OpenADK project. OpenADK is copyrighted
# material, please see the LICENCE file in the top-level directory.
include $(ADK_TOPDIR)/rules.mk
PKG_NAME:= nginx
PKG_VERSION:= 1.8.0
PKG_RELEASE:= 1
PKG_HASH:= 23cca1239990c818d8f6da118320c4979aadf5386deda691b1b7c2c96b9df3d5
PKG_DESCR:= powerful http reverse proxy and webserver
PKG_SECTION:= net/http
PKG_BUILDDEP:= pcre zlib
PKG_DEPENDS:= libpcre zlib
PKG_NEEDS:= threads
PKG_URL:= http://nginx.org/
PKG_SITES:= http://nginx.org/download/
DISTFILES:= $(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_CHOICES_NGINX:= WITHOUT_SSL WITH_LIBRESSL WITH_OPENSSL
PKGCD_WITHOUT_SSL:= use no ssl
PKGCD_WITH_LIBRESSL:= use libressl for crypto
PKGCB_WITH_LIBRESSL:= libressl
PKGCS_WITH_LIBRESSL:= libressl ca-certificates
PKGCD_WITH_OPENSSL:= use openssl for crypto
PKGCB_WITH_OPENSSL:= openssl
PKGCS_WITH_OPENSSL:= libopenssl ca-certificates
include $(ADK_TOPDIR)/mk/package.mk
$(eval $(call PKG_template,NGINX,nginx,$(PKG_VERSION)-$(PKG_RELEASE),$(PKG_DEPENDS),$(PKG_DESCR),$(PKG_SECTION)))
CONFIG_STYLE:= minimal
TARGET_CFLAGS+= -fPIC
CONFIGURE_ARGS:= --prefix=/srv/www \
--sbin-path=/usr/sbin \
--crossbuild=Linux::$(ADK_TARGET_ARCH) \
--with-cc='$(TARGET_CC)' \
--with-cc-opt='$(TARGET_CPPFLAGS) $(TARGET_CFLAGS)' \
--with-ld-opt='$(TARGET_LDFLAGS)' \
--conf-path=/etc/nginx/nginx.conf \
--error-log-path=/var/log/nginx-error.log \
--pid-path=/var/run/nginx.pid \
--lock-path=/var/lock/nginx.lock \
--http-log-path=/var/log/nginx-access.log \
--http-client-body-temp-path=/var/lib/nginx/body \
--http-proxy-temp-path=/var/lib/nginx/proxy \
--http-fastcgi-temp-path=/var/lib/nginx/fastcgi \
--http-scgi-temp-path=/var/lib/nginx/uwsgi \
--http-uwsgi-temp-path=/var/lib/nginx/uwsgi
ifeq ($(ADK_PACKAGE_NGINX_WITH_OPENSSL),y)
CONFIGURE_ARGS+= --with-http_ssl_module
endif
ifeq ($(ADK_PACKAGE_NGINX_WITH_LIBRESSL),y)
CONFIGURE_ARGS+= --with-http_ssl_module
endif
ALL_TARGET:=
XAKE_FLAGS+= GCC_HONOUR_COPTS=s
nginx-install:
$(INSTALL_DIR) $(IDIR_NGINX)/usr/sbin $(IDIR_NGINX)/etc/nginx
$(INSTALL_BIN) $(WRKINST)/usr/sbin/nginx \
$(IDIR_NGINX)/usr/sbin
for f in nginx.conf mime.types fastcgi_params koi-utf koi-win win-utf; do \
cp ./files/$${f} \
$(IDIR_NGINX)/etc/nginx ; \
done
$(INSTALL_DIR) $(IDIR_NGINX)/srv/www
include $(ADK_TOPDIR)/mk/pkg-bottom.mk
|