Makefile 1.4 KB

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