Makefile 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  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 $(TOPDIR)/rules.mk
  4. PKG_NAME:= nginx
  5. PKG_VERSION:= 1.5.3
  6. PKG_RELEASE:= 1
  7. PKG_MD5SUM:= 1e735dd6a6ade2b5c20e924b67c3d355
  8. PKG_DESCR:= powerful http reverse proxy
  9. PKG_SECTION:= proxy
  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. include $(TOPDIR)/mk/package.mk
  15. $(eval $(call PKG_template,NGINX,nginx,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  16. CONFIG_STYLE:= minimal
  17. TARGET_CFLAGS+= -fPIC
  18. CONFIGURE_ARGS:= --prefix=/srv/nginx \
  19. --sbin-path=/usr/sbin \
  20. --user=nginx \
  21. --group=nginx \
  22. --crossbuild=Linux::$(ARCH) \
  23. --with-cc="$(TARGET_CC)" \
  24. --with-cc-opt="$(TARGET_CPPFLAGS) $(TARGET_CFLAGS)" \
  25. --with-ld-opt="$(TARGET_LDFLAGS)" \
  26. --conf-path=/etc/nginx/nginx.conf \
  27. --error-log-path=/var/log/nginx/error.log \
  28. --pid-path=/var/run/nginx.pid \
  29. --lock-path=/var/lock/nginx.lock \
  30. --http-log-path=/var/log/nginx/access.log \
  31. --http-client-body-temp-path=/var/lib/nginx/body \
  32. --http-proxy-temp-path=/var/lib/nginx/proxy \
  33. --http-fastcgi-temp-path=/var/lib/nginx/fastcgi \
  34. --with-http_ssl_module
  35. ALL_TARGET:=
  36. XAKE_FLAGS+= GCC_HONOUR_COPTS=s
  37. nginx-install:
  38. $(INSTALL_DIR) $(IDIR_NGINX)/usr/sbin $(IDIR_NGINX)/etc/nginx
  39. $(INSTALL_BIN) $(WRKINST)/usr/sbin/nginx \
  40. $(IDIR_NGINX)/usr/sbin
  41. for f in nginx.conf mime.types fastcgi_params koi-utf koi-win win-utf; do \
  42. cp $(WRKINST)/etc/nginx/$${f} \
  43. $(IDIR_NGINX)/etc/nginx ; \
  44. done
  45. $(INSTALL_DIR) $(IDIR_NGINX)/srv/nginx/html
  46. $(CP) $(WRKINST)/srv/nginx/html/* $(IDIR_NGINX)/srv/nginx/html
  47. include ${TOPDIR}/mk/pkg-bottom.mk