1
0

Makefile 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  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.4.9
  6. PKG_RELEASE:= 2
  7. PKG_MD5SUM:= 6d519bc3b5f20faa6ef8d423f5062241
  8. PKG_DESCR:= small embedded webserver with TLS
  9. PKG_SECTION:= www
  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
  18. DISTFILES:= axTLS-${PKG_VERSION}.tar.gz
  19. WRKDIST= ${WRKDIR}/axTLS
  20. ifeq ($(ADK_STATIC),y)
  21. PKG_OPTS+= libmix
  22. endif
  23. include ${TOPDIR}/mk/package.mk
  24. $(eval $(call PKG_template,AXHTTPD,axhttpd,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  25. $(eval $(call PKG_template,LIBAXTLS,libaxtls,${PKG_VERSION}-${PKG_RELEASE},,${PKGSD_LIBAXTLS},${PKGSC_LIBAXTLS},${PKG_OPTS}))
  26. CONFIG_STYLE:= manual
  27. INSTALL_STYLE:= manual
  28. TARGET_CFLAGS+= -fPIC
  29. XAKE_FLAGS+= STRIP='' \
  30. CC='${TARGET_CC}'
  31. do-configure:
  32. ${CP} ./files/config ${WRKBUILD}/config/.config
  33. ${MAKE} -C ${WRKBUILD} oldconfig
  34. do-install:
  35. # axtls library
  36. ${INSTALL_DIR} ${IDIR_LIBAXTLS}/usr/lib
  37. $(CP) $(WRKBUILD)/_stage/libaxtls.so* $(IDIR_LIBAXTLS)/usr/lib/
  38. # awhttpd server
  39. ${INSTALL_DIR} ${IDIR_AXHTTPD}/www
  40. ${INSTALL_DIR} ${IDIR_AXHTTPD}/usr/sbin
  41. ${INSTALL_BIN} $(WRKBUILD)/_stage/axhttpd $(IDIR_AXHTTPD)/usr/sbin/
  42. include ${TOPDIR}/mk/pkg-bottom.mk