summaryrefslogtreecommitdiff
path: root/package/axtls/Makefile
blob: df231bc1908e4128cc8a0d0610b46c1ba2486da1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
# This file is part of the OpenADK project. OpenADK is copyrighted
# material, please see the LICENCE file in the top-level directory.

include ${TOPDIR}/rules.mk

PKG_NAME:=		axtls
PKG_VERSION:=		1.2.2
PKG_RELEASE:=		1
PKG_MD5SUM:=		03471b5a5874e2ce86025f24b3fa0958
PKG_DESCR:=		small embedded webserver
PKG_SECTION:=		net
PKG_DEPENDS:=		libaxtls
PKG_URL:=		http://axtls.sourceforge.net
PKG_SITES:=		${MASTER_SITE_SOURCEFORGE:=axtls/}

PKG_DESCR_1:=		small tls library
PKG_SECTION_1:=		libs

DISTFILES:=		axTLS-${PKG_VERSION}.tar.gz
WRKDIST=		${WRKDIR}/axTLS

include ${TOPDIR}/mk/package.mk

$(eval $(call PKG_template,AXHTTPD,axhttpd,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
$(eval $(call PKG_template,LIBAXTLS,libaxtls,${PKG_VERSION}-${PKG_RELEASE},,${PKG_DESCR_1},${PKG_SECTION_1}))

BUILD_STYLE=		auto
XAKE_FLAGS+=		STRIP='' \
			CC='${TARGET_CC}' \
			OPT_CFLAGS='${TARGET_CFLAGS}' \
			OPT_LDFLAGS=""

do-configure:
	${CP} ./files/config ${WRKBUILD}/config/.config
	${MAKE} -C ${WRKBUILD} oldconfig

do-install:
	# axtls library
	${INSTALL_DIR} ${IDIR_LIBAXTLS}/usr/lib
	$(CP) $(WRKBUILD)/_stage/libaxtls.so.* $(IDIR_LIBAXTLS)/usr/lib/
	# awhttpd server
	${INSTALL_DIR} ${IDIR_AXHTTPD}/www
	${INSTALL_DIR} ${IDIR_AXHTTPD}/usr/sbin
	${INSTALL_BIN} $(WRKBUILD)/_stage/axhttpd $(IDIR_AXHTTPD)/usr/sbin/

include ${TOPDIR}/mk/pkg-bottom.mk