arc: use the release for binutils/gcc
[openadk.git] / package / nginx / Makefile
blobfc43d851d696c30745a1ab06ef92ecac090cca16
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
6 PKG_NAME:= nginx
7 PKG_VERSION:= 1.12.0
8 PKG_RELEASE:= 1
9 PKG_HASH:= b4222e26fdb620a8d3c3a3a8b955e08b713672e1bc5198d1e4f462308a795b30
10 PKG_DESCR:= powerful http reverse proxy and webserver
11 PKG_SECTION:= net/http
12 PKG_BUILDDEP:= pcre zlib
13 PKG_DEPENDS:= libpcre zlib
14 PKG_NEEDS:= threads
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)))
30 TARGET_CFLAGS+= -fPIC
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
54 endif
56 ALL_TARGET:=
58 nginx-install:
59 $(INSTALL_DIR) $(IDIR_NGINX)/usr/sbin $(IDIR_NGINX)/etc/nginx
60 $(INSTALL_BIN) $(WRKINST)/usr/sbin/nginx \
61 $(IDIR_NGINX)/usr/sbin
62 for f in nginx.conf mime.types fastcgi_params koi-utf koi-win win-utf; do \
63 cp ./files/$${f} \
64 $(IDIR_NGINX)/etc/nginx ; \
65 done
66 $(INSTALL_DIR) $(IDIR_NGINX)/srv/www
68 include $(ADK_TOPDIR)/mk/pkg-bottom.mk