Makefile 2.0 KB

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