summaryrefslogtreecommitdiff
path: root/devel/confuse/Makefile
blob: dea384478a784616b326cbe6bd7ccc2b0852e7e7 (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
# $NetBSD: Makefile,v 1.16 2015/11/25 22:10:16 wiedi Exp $

DISTNAME=	confuse-2.8
CATEGORIES=	devel
MASTER_SITES=	https://github.com/martinh/
GITHUB_TAG=	v2.8
GITHUB_PROJECT=	libconfuse

MAINTAINER=	pkgsrc-users@NetBSD.org
HOMEPAGE=	http://github.org/martinh/libconfuse/
COMMENT=	Configuration file parser library
LICENSE=	isc

BUILD_DEPENDS+=		gettext-m4-[0-9]*:../../devel/gettext-m4
BUILD_DEPENDS+=		gettext-tools-[0-9]*:../../devel/gettext-tools

GNU_CONFIGURE=		YES
CONFIGURE_ARGS+=	--enable-shared
USE_LIBTOOL=		YES
USE_PKGLOCALEDIR=	YES
USE_TOOLS+=		pkg-config msgfmt autoconf automake flex

PKGCONFIG_OVERRIDE+=	libconfuse.pc.in
INSTALLATION_DIRS=	lib include

# the included, but generated, lexer.c includes a
# definition of a function which is then not used.
BUILDLINK_TRANSFORM+=	rm:-Werror

pre-configure:
	cd ${WRKSRC} && ./autogen.sh

.include "../../devel/gettext-lib/buildlink3.mk"
.include "../../mk/fetch/github.mk"
.include "../../mk/bsd.pkg.mk"