summaryrefslogtreecommitdiff
path: root/textproc/libxmlbird/Makefile
blob: 6ef41df5443e9b623af9c6bd258109b064c1e565 (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

PORTNAME=	libxmlbird
DISTVERSION=	1.2.12
CATEGORIES=	textproc devel
MASTER_SITES=	https://birdfont.org/xmlbird-releases/

MAINTAINER=	0mp@FreeBSD.org
COMMENT=	XML parser for Vala and C programs

LICENSE=	LGPL3
LICENSE_FILE=	${WRKSRC}/LGPLv3.txt

BUILD_DEPENDS=	${PYTHON_PKGNAMEPREFIX}doit>0:devel/py-doit@${PY_FLAVOR} \
		valac:lang/vala

USES=		gettext-runtime gnome pkgconfig python:3.7+,build shebangfix tar:xz
USE_GNOME=	glib20
USE_LDCONFIG=	yes
SHEBANG_FILES=	configure install.py

HAS_CONFIGURE=	yes
CONFIGURE_ARGS=	--cc="${CC}" \
		--cflags="${CFLAGS}" \
		--dest="${STAGEDIR}" \
		--ldflags="${LDFLAGS}" \
		--prefix="${PREFIX}"

PLIST_FILES=	include/xmlbird.h \
		lib/libxmlbird.so \
		lib/libxmlbird.so.1 \
		libdata/pkgconfig/xmlbird.pc \
		share/vala/vapi/xmlbird.vapi

do-build:
	(cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${LOCALBASE}/bin/doit)

do-install:
	(cd ${WRKSRC} && ./install.py --dest="${STAGEDIR}")
	@${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libxmlbird.so.1

.include <bsd.port.mk>