1 # This file is part of the OpenADK project. OpenADK is copyrighted
2 # material, please see the LICENCE file in the top-level directory.
4 include $(ADK_TOPDIR
)/rules.mk
9 PKG_HASH
:= 5d8dd0197e3ffeb427729c045382182fb28db8e045c635221b2e0e6722821ad0
10 PKG_DESCR
:= powerful http reverse proxy and webserver
11 PKG_SECTION
:= net
/http
12 PKG_BUILDDEP
:= pcre zlib
13 PKG_DEPENDS
:= libpcre zlib
15 PKG_URL
:= http
://nginx.org
/
16 PKG_SITES
:= http
://nginx.org
/download
/
18 DISTFILES
:= $(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
20 PKG_CHOICES_NGINX
:= WITH_LIBRESSL WITHOUT_SSL
21 PKGCD_WITH_LIBRESSL
:= use libressl for crypto
22 PKGCB_WITH_LIBRESSL
:= libressl
23 PKGCS_WITH_LIBRESSL
:= libressl ca-certificates
24 PKGCD_WITHOUT_SSL
:= use no ssl
26 include $(ADK_TOPDIR
)/mk
/package.mk
28 $(eval
$(call PKG_template
,NGINX
,nginx
,$(PKG_VERSION
)-$(PKG_RELEASE
),$(PKG_DEPENDS
),$(PKG_DESCR
),$(PKG_SECTION
)))
32 CONFIG_STYLE
:= minimal
33 CONFIGURE_ENV
+= ngx_force_gcc_have_atomic
=yes \
34 ngx_force_have_libatomic
=no
35 CONFIGURE_ARGS
:= --prefix=/srv
/www \
36 --sbin-path
=/usr
/sbin \
37 --crossbuild
=Linux
::$(ADK_TARGET_ARCH
) \
38 --with-cc
='$(TARGET_CC)' \
39 --with-cc-opt
='$(TARGET_CPPFLAGS) $(TARGET_CFLAGS)' \
40 --with-ld-opt
='$(TARGET_LDFLAGS)' \
41 --conf-path
=/etc
/nginx
/nginx.conf \
42 --error-log-path
=/var
/log
/nginx-error.log \
43 --pid-path
=/var
/run
/nginx.pid \
44 --lock-path
=/var
/lock
/nginx.lock \
45 --http-log-path
=/var
/log
/nginx-access.log \
46 --http-client-body-temp-path
=/var
/lib
/nginx
/body \
47 --http-proxy-temp-path
=/var
/lib
/nginx
/proxy \
48 --http-fastcgi-temp-path
=/var
/lib
/nginx
/fastcgi \
49 --http-scgi-temp-path
=/var
/lib
/nginx
/uwsgi \
50 --http-uwsgi-temp-path
=/var
/lib
/nginx
/uwsgi
52 ifeq ($(ADK_PACKAGE_NGINX_WITH_LIBRESSL
),y
)
53 CONFIGURE_ARGS
+= --with-http_ssl_module
57 XAKE_FLAGS
+= GCC_HONOUR_COPTS
=s
60 $(INSTALL_DIR
) $(IDIR_NGINX
)/usr
/sbin
$(IDIR_NGINX
)/etc
/nginx
61 $(INSTALL_BIN
) $(WRKINST
)/usr
/sbin
/nginx \
62 $(IDIR_NGINX
)/usr
/sbin
63 for f in nginx.conf mime.types fastcgi_params koi-utf koi-win win-utf
; do \
65 $(IDIR_NGINX
)/etc
/nginx
; \
67 $(INSTALL_DIR
) $(IDIR_NGINX
)/srv
/www
69 include $(ADK_TOPDIR
)/mk
/pkg-bottom.mk