1
0

Makefile 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  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.2
  6. PKG_RELEASE:= 1
  7. PKG_MD5SUM:= b2cdafaa93c033cd4f3ebfca2c7e66b4
  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. TARGET_CFLAGS+= -fPIC
  24. XAKE_FLAGS+= STRIP='' \
  25. CC='${TARGET_CC}'
  26. do-configure:
  27. ${CP} ./files/config ${WRKBUILD}/config/.config
  28. ${MAKE} -C ${WRKBUILD} oldconfig
  29. do-install:
  30. # axtls library
  31. ${INSTALL_DIR} ${IDIR_LIBAXTLS}/usr/lib
  32. $(CP) $(WRKBUILD)/_stage/libaxtls.so* $(IDIR_LIBAXTLS)/usr/lib/
  33. # awhttpd server
  34. ${INSTALL_DIR} ${IDIR_AXHTTPD}/www
  35. ${INSTALL_DIR} ${IDIR_AXHTTPD}/usr/sbin
  36. ${INSTALL_BIN} $(WRKBUILD)/_stage/axhttpd $(IDIR_AXHTTPD)/usr/sbin/
  37. include ${TOPDIR}/mk/pkg-bottom.mk