Makefile 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  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:= axtls
  5. PKG_VERSION:= 1.2.2
  6. PKG_RELEASE:= 1
  7. PKG_MD5SUM:= 03471b5a5874e2ce86025f24b3fa0958
  8. PKG_DESCR:= small embedded webserver
  9. PKG_SECTION:= net
  10. PKG_DEPENDS:= libaxtls
  11. PKG_URL:= http://axtls.sourceforge.net
  12. PKG_SITES:= ${MASTER_SITE_SOURCEFORGE:=axtls/}
  13. PKG_DESCR_1:= small tls library
  14. PKG_SECTION_1:= libs
  15. DISTFILES:= axTLS-${PKG_VERSION}.tar.gz
  16. WRKDIST= ${WRKDIR}/axTLS
  17. include ${TOPDIR}/mk/package.mk
  18. $(eval $(call PKG_template,AXHTTPD,axhttpd,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  19. $(eval $(call PKG_template,LIBAXTLS,libaxtls,${PKG_VERSION}-${PKG_RELEASE},,${PKG_DESCR_1},${PKG_SECTION_1}))
  20. BUILD_STYLE= auto
  21. XAKE_FLAGS+= STRIP='' \
  22. CC='${TARGET_CC}' \
  23. OPT_CFLAGS='${TARGET_CFLAGS} -fPIC' \
  24. OPT_LDFLAGS=""
  25. do-configure:
  26. ${CP} ./files/config ${WRKBUILD}/config/.config
  27. ${MAKE} -C ${WRKBUILD} oldconfig
  28. do-install:
  29. # axtls library
  30. ${INSTALL_DIR} ${IDIR_LIBAXTLS}/usr/lib
  31. $(CP) $(WRKBUILD)/_stage/libaxtls.so.* $(IDIR_LIBAXTLS)/usr/lib/
  32. # awhttpd server
  33. ${INSTALL_DIR} ${IDIR_AXHTTPD}/www
  34. ${INSTALL_DIR} ${IDIR_AXHTTPD}/usr/sbin
  35. ${INSTALL_BIN} $(WRKBUILD)/_stage/axhttpd $(IDIR_AXHTTPD)/usr/sbin/
  36. include ${TOPDIR}/mk/pkg-bottom.mk