aboutsummaryrefslogtreecommitdiff
path: root/devel/librest/Makefile
blob: 1977f48d78bbe45939bf6b60fd51f0970716bd64 (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
# Created by: Christoph Moench-Tegeder <cmt@burggraben.net>

PORTNAME=	rest
PORTVERSION=	0.8.1
PORTREVISION=	2
CATEGORIES=	devel www
MASTER_SITES=	GNOME

MAINTAINER=	cmt@burggraben.net
COMMENT=	Easy access to RESTful web services

LICENSE=	LGPL21
LICENSE_FILE=	${WRKSRC}/COPYING

BUILD_DEPENDS=	ca_root_nss>0:security/ca_root_nss
LIB_DEPENDS=	libsoup-2.4.so:devel/libsoup
RUN_DEPENDS:=	${BUILD_DEPENDS}

USES=		gmake gnome libtool pathfix pkgconfig tar:xz
GNU_CONFIGURE=	yes
CONFIGURE_ARGS=	--with-ca-certificates=${LOCALBASE}/share/certs/ca-root-nss.crt
USE_LDCONFIG=	yes
USE_GNOME=	glib20 libxml2 introspection:build
INSTALL_TARGET=	install-strip
TEST_TARGET=	check

PORTEXAMPLES=	*.c

OPTIONS_DEFINE=	EXAMPLES

post-install:
	@${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/librest-0.7.so.0
	@${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/librest-extras-0.7.so.0

post-install-EXAMPLES-on:
	@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
	${INSTALL_DATA} ${WRKSRC}/examples/*.c ${STAGEDIR}${EXAMPLESDIR}

.include <bsd.port.mk>