summaryrefslogtreecommitdiffstats
path: root/textproc/scew/Makefile
blob: d55400d630533bd06706141a37fbf38ac612094e (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
# Created by: Pietro Cerutti <gahr@gahr.ch>
# $FreeBSD$

PORTNAME=	scew
PORTVERSION=	1.1.7
PORTREVISION=	1
CATEGORIES=	textproc
MASTER_SITES=	SAVANNAH/${PORTNAME}/

MAINTAINER=	ports@FreeBSD.org
COMMENT=	Simple C Expat Wrapper

LICENSE=	LGPL21

LIB_DEPENDS=	libexpat.so:${PORTSDIR}/textproc/expat2

USES=		gmake libtool pathfix pkgconfig
GNU_CONFIGURE=	yes
USE_LDCONFIG=	yes
INSTALL_TARGET=	install-strip

CPPFLAGS+=	-I${LOCALBASE}/include
LDFLAGS+=	-L${LOCALBASE}/lib

SCEW_EXAMPLES=	print stream write

post-install:
.for ex in ${SCEW_EXAMPLES}
	${INSTALL_SCRIPT} \
		${WRKSRC}/examples/${PORTNAME}_${ex}/${PORTNAME}_${ex} \
		${STAGEDIR}${PREFIX}/bin
.endfor

.ifdef MAINTAINER_MODE
LIB_DEPENDS+=	libcheck.so:${PORTSDIR}/devel/libcheck
regression-test: build
	${MAKE_CMD} -C ${WRKSRC}/tests check
.endif

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