Makefile 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  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:= mini-httpd
  5. PKG_VERSION:= 1.19
  6. PKG_RELEASE:= 10
  7. PKG_HASH:= f7f36533b1338ea16d916ea525ea7006ab38fdd3544ac7df93a4688a8e270241
  8. PKG_DESCR:= small webserver with ssl
  9. PKG_SECTION:= net/http
  10. PKG_URL:= http://www.acme.com/software/mini_httpd/
  11. PKG_SITES:= http://www.acme.com/software/mini_httpd/
  12. DISTFILES:= mini_httpd-${PKG_VERSION}.tar.gz
  13. WRKDIST= ${WRKDIR}/mini_httpd-${PKG_VERSION}
  14. PKG_CHOICES_MINI_HTTPD:=WITH_LIBRESSL WITH_OPENSSL
  15. PKGCD_WITH_LIBRESSL:= use libressl for crypto
  16. PKGCB_WITH_LIBRESSL:= libressl
  17. PKGCS_WITH_LIBRESSL:= libressl
  18. PKGCD_WITH_OPENSSL:= use openssl for crypto
  19. PKGCB_WITH_OPENSSL:= openssl
  20. PKGCS_WITH_OPENSSL:= libopenssl
  21. include ${ADK_TOPDIR}/mk/package.mk
  22. $(eval $(call PKG_template,MINI_HTTPD,mini-httpd,${PKG_VERSION}-${PKG_RELEASE},,${PKG_DESCR},${PKG_SECTION}))
  23. CONFIG_STYLE:= manual
  24. BUILD_STYLE:= manual
  25. INSTALL_STYLE:= manual
  26. do-build:
  27. ${MAKE} -C ${WRKBUILD} \
  28. CC="${TARGET_CC}" \
  29. SSL_DEFS="-DUSE_SSL -DHAVE_OPENSSL" \
  30. SSL_INC="-I${STAGING_TARGET_DIR}/usr/include" \
  31. SSL_LIBS="-L${STAGING_TARGET_DIR}/usr/lib -lssl -lcrypto" \
  32. all
  33. do-install:
  34. ${INSTALL_DIR} ${IDIR_MINI_HTTPD}/etc
  35. ${INSTALL_DATA} ./files/mini_httpd-ssl.conf \
  36. ${IDIR_MINI_HTTPD}/etc/mini_httpd.conf
  37. install -m0600 ./files/mini_httpd.pem ${IDIR_MINI_HTTPD}/etc/
  38. ${INSTALL_DIR} ${IDIR_MINI_HTTPD}/usr/sbin
  39. ${INSTALL_BIN} ${WRKBUILD}/mini_httpd \
  40. ${IDIR_MINI_HTTPD}/usr/sbin/mini_httpd
  41. include ${ADK_TOPDIR}/mk/pkg-bottom.mk