aboutsummaryrefslogtreecommitdiffstats
path: root/devel/libexplain/Makefile
blob: 2c98901605e81a3c2bfe2b7090fa33e22705d30c (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
40
41
42
43
44
45
46
47
48
PORTNAME=	libexplain
PORTVERSION=	1.3.${PATCHLEVEL}
PORTREVISION=	9
CATEGORIES=	devel
MASTER_SITES=	SF/${PORTNAME}/${PORTVERSION:R}
DISTNAME=	${PORTNAME}-${PORTVERSION:R}

MAINTAINER=	ports@FreeBSD.org
COMMENT=	Library which may be used to explain Unix and Linux system call errors
WWW=		https://libexplain.sourceforge.net/

LICENSE=	LGPL3+
LICENSE_FILE=	${WRKSRC}/LICENSE

DEPRECATED=	Upstream last release was in 2014

BUILD_DEPENDS=	gsed:textproc/gsed
RUN_DEPENDS=	lsof:sysutils/lsof

USES=		bison gettext ghostscript:build gmake groff iconv libtool:build localbase
USE_LDCONFIG=	yes

GNU_CONFIGURE=	yes
CONFIGURE_ENV=	ac_cv_header_linux_kd_h=no
CFLAGS+=	-Wno-error=int-conversion

OPTIONS_DEFINE=	DOCS

PATCHLEVEL=	D012

.include <bsd.port.pre.mk>

.if empty(ICONV_LIB)
CONFIGURE_ARGS+=ac_cv_lib_iconv_iconv=no
.else
CONFIGURE_ARGS+=ac_cv_func_iconv_open=yes ac_cv_func_iconv_close=yes \
		ac_cv_lib_iconv_iconv=yes
.endif

post-patch:
	@${REINPLACE_CMD} -e \
		's|$$(libdir)/pkgconfig|$$(libdir)/../libdata/pkgconfig|g ; \
		 s|\([[:blank:]]\)sed|\1gsed|g' ${WRKSRC}/Makefile.in

post-install:
	${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libexplain.so

.include <bsd.port.post.mk>