summaryrefslogtreecommitdiff
path: root/devel/liborcus/Makefile
blob: 76f1c530c1f7826c1ad576d337b34e4eadec5874 (plain) (blame)
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
47
48
PORTNAME=	liborcus
DISTVERSION=	0.20.2
CATEGORIES=	devel misc
#MASTER_SITES=	https://kohei.us/files/orcus/src/

MAINTAINER=	office@FreeBSD.org
COMMENT=	Standalone file import filter library for spreadsheet documents
WWW=		https://gitlab.com/orcus/orcus

LICENSE=	MPL20
LICENSE_FILE=	${WRKSRC}/LICENSE

BUILD_DEPENDS=	mdds>=${MDDS_VERSION}:devel/mdds
LIB_DEPENDS=	libboost_date_time.so:devel/boost-libs \
		libixion-0.20.so:textproc/libixion

USES=		autoreconf compiler:c++17-lang gmake libtool localbase:ldflags \
		pathfix pkgconfig tar:xz
USE_LDCONFIG=	yes

USE_GITLAB=	yes
GL_ACCOUNT=	orcus
GL_PROJECT=	orcus

GNU_CONFIGURE=	yes
INSTALL_TARGET=	install-strip

CXXFLAGS+=	-Wno-narrowing

CONFIGURE_ARGS=	--disable-werror \
		--with-boost="${LOCALBASE}" \
		--with-boost-system=boost_system \
		--disable-python

OPTIONS_DEFINE=	STATIC
OPTIONS_DEFAULT=STATIC
OPTIONS_SUB=	yes

STATIC_CONFIGURE_ENABLE=	static

PLIST_SUB=	VERSION=${PORTVERSION:R}

MDDS_VERSION=	3.1

post-patch:
	${REINPLACE_CMD} -e 's/mdds-3.0/mdds-${MDDS_VERSION}/' ${WRKSRC}/configure.ac

.include <bsd.port.mk>