summaryrefslogtreecommitdiff
path: root/misc/libcomps/Makefile
blob: 133085bb10b5c5524b7f2b6a245484347d868deb (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
PORTNAME=	libcomps
DISTVERSION=	0.1.17
PORTREVISION=	1
CATEGORIES=	misc

MAINTAINER=	yuri@FreeBSD.org
COMMENT=	Comps XML file manipulation library

LICENSE=	GPLv2
LICENSE_FILE=	${WRKSRC}/../COPYING

LIB_DEPENDS=	libexpat.so:textproc/expat2

USES=		cmake cpe gnome
CPE_VENDOR=	rpm
USE_GNOME=	libxml2
USE_LDCONFIG=	yes

USE_GITHUB=	yes
GH_ACCOUNT=	rpm-software-management

WRKSRC_SUBDIR=	${PORTNAME}

CMAKE_OFF=	ENABLE_TESTS ENABLE_DOCS

OPTIONS_DEFINE=		PYTHON
OPTIONS_DEFAULT=	PYTHON
OPTIONS_SUB=		yes

PYTHON_CMAKE_BOOL=	BUILD_PYTHON_MODULE
PYTHON_USES=		python
PYTHON_BUILD_DEPENDS=	${PYTHON_PKGNAMEPREFIX}setuptools>0:devel/py-setuptools@${PY_FLAVOR}
PYTHON_CMAKE_ON=	-DPYTHON_DESIRED=${PYTHON_MAJOR_VER}

.include <bsd.port.mk>