summaryrefslogtreecommitdiff
path: root/textproc/libxmlbird/Makefile
blob: 1b72305003833fc729b008f1909b23cfb708d9f5 (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
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
WWW=		https://birdfont.org/xmlbird.php

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

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

USES=		gettext-runtime gnome pkgconfig python:build shebangfix tar:xz vala:build
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>