blob: a06b091b7fa1d0838a8769322f20a2a4129ad5c8 (
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
|
# Created by: Joe Marcus Clarke <marcus@FreeBSD.org>
# $FreeBSD$
# $MCom: ports/devel/libsoup/Makefile,v 1.116 2013/01/15 02:25:57 kwm Exp $
PORTNAME= libsoup
PORTVERSION= 2.40.3
PORTREVISION?= 0
CATEGORIES= devel gnome
MASTER_SITES= GNOME
DIST_SUBDIR= gnome2
MAINTAINER= gnome@FreeBSD.org
COMMENT= A SOAP (Simple Object Access Protocol) implementation in C
BUILD_DEPENDS= glib-networking>=2.29.18:${PORTSDIR}/net/glib-networking
LIB_DEPENDS= gcrypt:${PORTSDIR}/security/libgcrypt
RUN_DEPENDS= glib-networking>=2.29.18:${PORTSDIR}/net/glib-networking
USE_XZ= yes
.if !defined(REFERENCE_PORT)
USES= gettext
USE_GNOME= gnomehier gnomehack glib20 libxml2 ltverhack referencehack \
intltool
USE_LDCONFIG= yes
USE_AUTOTOOLS= libtool
USE_GMAKE= yes
CPPFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib
PLIST_SUB= VERSION="2.4"
.if defined(SOUP_SLAVE)
USE_SQLITE= yes
LIB_DEPENDS+= soup-2.4:${PORTSDIR}/devel/libsoup \
gnome-keyring:${PORTSDIR}/security/libgnome-keyring
CONFIGURE_ARGS+=--with-gnome
.else
BUILD_DEPENDS+= g-ir-scanner:${PORTSDIR}/devel/gobject-introspection
CONFIGURE_ARGS+=--without-gnome
.endif
post-patch:
@${REINPLACE_CMD} -e 's|-Wmissing-include-dirs||g' \
${WRKSRC}/configure
.if defined(SOUP_SLAVE)
do-build:
cd ${WRKSRC}/libsoup && ${GMAKE} libsoup-gnome-2.4.la
do-install:
${INSTALL_DATA} ${WRKSRC}/libsoup/.libs/libsoup-gnome-2.4.a ${PREFIX}/lib/
${INSTALL_DATA} ${WRKSRC}/libsoup/.libs/libsoup-gnome-2.4.la ${PREFIX}/lib/
${INSTALL_DATA} ${WRKSRC}/libsoup/.libs/libsoup-gnome-2.4.so ${PREFIX}/lib/
${INSTALL_DATA} ${WRKSRC}/libsoup/.libs/libsoup-gnome-2.4.so.1 ${PREFIX}/lib/
cd ${WRKSRC}/libsoup && ${GMAKE} install-libsoupgnomeincludeHEADERS
.endif
post-install:
.if defined(SOUP_SLAVE)
@${MKDIR} ${PREFIX}/libdata/pkgconfig
@${INSTALL_DATA} ${WRKSRC}/libsoup-gnome-2.4.pc \
${PREFIX}/libdata/pkgconfig/
.else
@${INSTALL_DATA} ${WRKSRC}/libsoup/soup-connection.h \
${PREFIX}/include/libsoup-2.4/libsoup/soup-connection.h
.endif
.include <bsd.port.mk>
.endif
|