Makefile 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. # This file is part of the OpenADK project. OpenADK is copyrighted
  2. # material, please see the LICENCE file in the top-level directory.
  3. include $(ADK_TOPDIR)/rules.mk
  4. PKG_NAME:= nginx
  5. PKG_VERSION:= 1.7.1
  6. PKG_RELEASE:= 1
  7. PKG_MD5SUM:= 9659cbb26f226f6390b18ef991a79233
  8. PKG_DESCR:= powerful http reverse proxy and webserver
  9. PKG_SECTION:= net/http
  10. PKG_BUILDDEP:= openssl pcre zlib
  11. PKG_DEPENDS:= libopenssl libpcre libpthread zlib
  12. PKG_URL:= http://nginx.org/
  13. PKG_SITES:= http://nginx.org/download/
  14. DISTFILES:= ${PKG_NAME}-${PKG_VERSION}.tar.gz
  15. # flavours for speedy and ssl
  16. include $(ADK_TOPDIR)/mk/package.mk
  17. $(eval $(call PKG_template,NGINX,nginx,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  18. CONFIG_STYLE:= minimal
  19. TARGET_CFLAGS+= -fPIC
  20. CONFIGURE_ARGS:= --prefix=/srv/nginx \
  21. --sbin-path=/usr/sbin \
  22. --user=nginx \
  23. --group=nginx \
  24. --crossbuild=Linux::$(ADK_TARGET_ARCH) \
  25. --with-cc="$(TARGET_CC)" \
  26. --with-cc-opt="$(TARGET_CPPFLAGS) $(TARGET_CFLAGS)" \
  27. --with-ld-opt="$(TARGET_LDFLAGS)" \
  28. --conf-path=/etc/nginx/nginx.conf \
  29. --error-log-path=/var/log/nginx/error.log \
  30. --pid-path=/var/run/nginx.pid \
  31. --lock-path=/var/lock/nginx.lock \
  32. --http-log-path=/var/log/nginx/access.log \
  33. --http-client-body-temp-path=/var/lib/nginx/body \
  34. --http-proxy-temp-path=/var/lib/nginx/proxy \
  35. --http-fastcgi-temp-path=/var/lib/nginx/fastcgi \
  36. --with-http_ssl_module
  37. ALL_TARGET:=
  38. XAKE_FLAGS+= GCC_HONOUR_COPTS=s
  39. nginx-install:
  40. $(INSTALL_DIR) $(IDIR_NGINX)/usr/sbin $(IDIR_NGINX)/etc/nginx
  41. $(INSTALL_BIN) $(WRKINST)/usr/sbin/nginx \
  42. $(IDIR_NGINX)/usr/sbin
  43. for f in nginx.conf mime.types fastcgi_params koi-utf koi-win win-utf; do \
  44. cp $(WRKINST)/etc/nginx/$${f} \
  45. $(IDIR_NGINX)/etc/nginx ; \
  46. done
  47. $(INSTALL_DIR) $(IDIR_NGINX)/srv/nginx/html
  48. $(CP) $(WRKINST)/srv/nginx/html/* $(IDIR_NGINX)/srv/nginx/html
  49. include ${ADK_TOPDIR}/mk/pkg-bottom.mk