summaryrefslogtreecommitdiffstats
path: root/devel/ding-libs/Makefile
blob: 36ea7f8cade99d35c7603cc9e12728c24512bd38 (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
# Created by: Andrew Elble <aweits@rit.edu>
# $FreeBSD$

PORTNAME=	ding-libs
DISTVERSION=	0.1.3
CATEGORIES=	devel
MASTER_SITES=	https://fedorahosted.org/released/${PORTNAME}/

MAINTAINER=	aweits@rit.edu
COMMENT=	A collection of useful libraries for developers

LICENSE=	GPLv3

GNU_CONFIGURE=	yes
CPPFLAGS=	-I${LOCALBASE}/include -L${LOCALBASE}/lib

USES=		gettext pkgconfig
USE_LDCONFIG=	yes

CONFIGURE_ENV+=	DOXYGEN=""

.if !defined(NOPORTDOCS)
CONFIGURE_ARGS=	--docdir=${DOCSDIR}
.else
CONFIGURE_ARGS=	--docdir=/dev/null
.endif

NO_STAGE=	yes
post-patch:
	@${REINPLACE_CMD} -e 's|libdir)/pkgconfig|prefix)/libdata/pkgconfig|' ${WRKSRC}/Makefile.in
	@${REINPLACE_CMD} -e 's|malloc.h|stdlib.h|g' ${WRKSRC}/collection/collection_tools.c \
		${WRKSRC}/refarray/ref_array.c
	@${REINPLACE_CMD} -e 's|if git log -1 &>/dev/null; then|if true; then|g' \
		${WRKSRC}/configure

.include <bsd.port.mk>
OpenPOWER on IntegriCloud