summaryrefslogtreecommitdiff
path: root/package/supl/Makefile
blob: 2fd08a1e204aadb633e3a8322763fb595b304fbd (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
# This file is part of the OpenADK project. OpenADK is copyrighted
# material, please see the LICENCE file in the top-level directory.

include $(ADK_TOPDIR)/rules.mk

PKG_NAME:=		supl
PKG_VERSION:=		1.0.6
PKG_RELEASE:=		1
PKG_HASH:=		068dc47ce818ce5634f09a88159df85a6ce3456e2467b11b8c5f8543a99bb347
PKG_DESCR:=		tools for accessing sup/rrlp server
PKG_SECTION:=		net/misc
PKG_URL:=		http://www.tajuma.com/supl/
PKG_SITES:=		$(MASTER_SITE_SOURCEFORGE:=supl/)

DISTFILES:=             $(PKG_NAME)_$(PKG_VERSION).tar.gz
WRKDIST=		$(WRKDIR)/trunk

PKG_CHOICES_SUPL:=	WITH_LIBRESSL WITH_OPENSSL
PKGCD_WITH_LIBRESSL:=	use libressl for crypto
PKGCB_WITH_LIBRESSL:=	libressl
PKGCS_WITH_LIBRESSL:=	libressl
PKGCD_WITH_OPENSSL:=	use openssl for crypto
PKGCB_WITH_OPENSSL:=	openssl
PKGCS_WITH_OPENSSL:=	libopenssl

include $(ADK_TOPDIR)/mk/package.mk

$(eval $(call PKG_template,SUPL,supl,$(PKG_VERSION)-$(PKG_RELEASE),$(PKG_DEPENDS),$(PKG_DESCR),$(PKG_SECTION)))

CONFIG_STYLE:=		minimal
CONFIGURE_ARGS+=	--precompiled-asn1=yes --prefix="$(WRKINST)/usr"

supl-install:
	$(INSTALL_DIR) $(IDIR_SUPL)/usr/{bin,lib}
	$(INSTALL_BIN) $(WRKINST)/usr/bin/supl-{cert,client,proxy} \
		$(IDIR_SUPL)/usr/bin
	$(CP) $(WRKINST)/usr/lib/lib{asnrrlp,asnsupl,supl}.so* \
		$(IDIR_SUPL)/usr/lib

include $(ADK_TOPDIR)/mk/pkg-bottom.mk