Makefile 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  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.2.2
  6. PKG_RELEASE:= 1
  7. PKG_MD5SUM:= 53105bbe3ac9319db54d9eb46119695b
  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=/usr \
  19. --user=nginx \
  20. --group=nginx \
  21. --crossbuild=Linux::$(ARCH) \
  22. --with-cc="$(TARGET_CC)" \
  23. --with-cc-opt="$(TARGET_CPPFLAGS) $(TARGET_CFLAGS)" \
  24. --with-ld-opt="$(TARGET_LDFLAGS)" \
  25. --conf-path=/etc/nginx/nginx.conf \
  26. --error-log-path=/var/log/nginx/error.log \
  27. --pid-path=/var/run/nginx.pid \
  28. --lock-path=/var/lock/nginx.lock \
  29. --http-log-path=/var/log/nginx/access.log \
  30. --http-client-body-temp-path=/var/lib/nginx/body \
  31. --http-proxy-temp-path=/var/lib/nginx/proxy \
  32. --http-fastcgi-temp-path=/var/lib/nginx/fastcgi
  33. ALL_TARGET:=
  34. XAKE_FLAGS+= GCC_HONOUR_COPTS=s
  35. nginx-install:
  36. $(INSTALL_DIR) $(IDIR_NGINX)/usr/sbin $(IDIR_NGINX)/etc/nginx
  37. $(INSTALL_BIN) $(WRKINST)/usr/sbin/nginx \
  38. $(IDIR_NGINX)/usr/sbin
  39. for f in nginx.conf mime.types fastcgi_params koi-utf koi-win win-utf; do \
  40. cp $(WRKINST)/etc/nginx/$${f} \
  41. $(IDIR_NGINX)/etc/nginx ; \
  42. done
  43. include ${TOPDIR}/mk/pkg-bottom.mk