aboutsummaryrefslogtreecommitdiff
path: root/textproc/expat2/Makefile
blob: 42f3343489360567015b0eda409bfb83729a90bb (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
PORTNAME=	expat
DISTVERSION=	2.6.0
CATEGORIES=	textproc
MASTER_SITES=	https://github.com/libexpat/libexpat/releases/download/R_${DISTVERSION:S|.|_|g}/

MAINTAINER=	desktop@FreeBSD.org
COMMENT=	XML 1.0 parser written in C
WWW=		https://github.com/libexpat/libexpat

LICENSE=	MIT
LICENSE_FILE=	${WRKSRC}/COPYING

TEST_DEPENDS=	bash:shells/bash

USES=		cpe libtool pathfix python:test tar:xz
CPE_VENDOR=	libexpat_project
CPE_PRODUCT=	libexpat
USE_LDCONFIG=	yes
GNU_CONFIGURE=	yes
GNU_CONFIGURE_MANPREFIX=${PREFIX}/share

INSTALL_TARGET=	install-strip
TEST_TARGET=	check

PLIST_SUB=	EXPAT_VERSION=${DISTVERSION}

CONFIGURE_ARGS=	--without-docbook \
		--without-examples

OPTIONS_DEFINE=	DOCS STATIC TEST
OPTIONS_SUB=	yes

STATIC_CONFIGURE_ENABLE=	static

TEST_USES=	shebangfix
SHEBANG_FILES=	test-driver-wrapper.sh tests/udiffer.py tests/xmltest.sh
TEST_CONFIGURE_WITH=	tests

.include <bsd.port.mk>