Makefile 1.5 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 ${ADK_TOPDIR}/rules.mk
  4. PKG_NAME:= axtls
  5. PKG_VERSION:= 1.4.9
  6. PKG_RELEASE:= 2
  7. PKG_HASH:= 9bc08f4c7a6bda3079af8e3f5ceee6b2ee92af34e8efbc9acfeee6c27b1f7cc3
  8. PKG_DESCR:= small embedded webserver with tls
  9. PKG_SECTION:= net/http
  10. PKG_DEPENDS:= libaxtls
  11. PKG_URL:= http://axtls.sourceforge.net/
  12. PKG_SITES:= ${MASTER_SITE_SOURCEFORGE:=axtls/}
  13. PKG_LIBNAME:= libaxtls
  14. PKG_OPTS:= dev
  15. PKG_SUBPKGS:= AXHTTPD LIBAXTLS
  16. PKGSD_LIBAXTLS:= small tls library
  17. PKGSC_LIBAXTLS:= libs/crypto
  18. DISTFILES:= axTLS-${PKG_VERSION}.tar.gz
  19. WRKDIST= ${WRKDIR}/axTLS
  20. include ${ADK_TOPDIR}/mk/package.mk
  21. $(eval $(call PKG_template,AXHTTPD,axhttpd,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  22. $(eval $(call PKG_template,LIBAXTLS,libaxtls,${PKG_VERSION}-${PKG_RELEASE},,${PKGSD_LIBAXTLS},${PKGSC_LIBAXTLS},${PKG_OPTS}))
  23. CONFIG_STYLE:= manual
  24. INSTALL_STYLE:= manual
  25. TARGET_CFLAGS+= -fPIC
  26. XAKE_FLAGS+= STRIP='' \
  27. CC='${TARGET_CC}'
  28. do-configure:
  29. ${CP} ./files/config ${WRKBUILD}/config/.config
  30. ${MAKE} -C ${WRKBUILD} oldconfig
  31. do-install:
  32. # axtls library
  33. ${INSTALL_DIR} ${IDIR_LIBAXTLS}/usr/lib
  34. $(CP) $(WRKBUILD)/_stage/libaxtls.so* $(IDIR_LIBAXTLS)/usr/lib/
  35. # awhttpd server
  36. ${INSTALL_DIR} ${IDIR_AXHTTPD}/www
  37. ${INSTALL_DIR} ${IDIR_AXHTTPD}/usr/sbin
  38. ${INSTALL_BIN} $(WRKBUILD)/_stage/axhttpd $(IDIR_AXHTTPD)/usr/sbin/
  39. include ${ADK_TOPDIR}/mk/pkg-bottom.mk