Makefile 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  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. 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