Makefile 1.4 KB

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