blob: 35f0727b93cf4156ec29b92ec11b2053aa9568c8 (
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: meitolake@gmail.com
# $FreeBSD$
PORTNAME= barry
PORTVERSION= 0.12
PORTREVISION= 5
CATEGORIES= palm
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/${PORTNAME}-${PORTVERSION}
MAINTAINER= ports@FreeBSD.org
COMMENT= C++ library for interfacing with the BlackBerry Handheld
LIB_DEPENDS= boost_thread:${PORTSDIR}/devel/boost-libs
USE_BZIP2= yes
USE_LDCONFIG= yes
USES= pkgconfig
GNU_CONFIGURE= yes
CONFIGURE_ENV= OPENSSL_CFLAGS=-I/usr/include \
OPENSSL_LIBS="-L/lib -lssl -lcrypto"
MAN1= bcharge.1 bidentify.1 bs11nread.1 btool.1
OPTIONS_DEFINE= GUI OPENSYNC DOXYGEN DOCS
OPTIONS_DEFAULT= GUI OPENSYNC
OPENSYNC_DESC= Build the OpenSync plugin
.include <bsd.port.options.mk>
CONFIGURE_ENV+= LIBUSB_LIBS="-lusb" LIBUSB_CFLAGS="-I/usr/include"
BROKEN= does not configure
.if ${PORT_OPTIONS:MGUI}
LIB_DEPENDS+= glademm-2.4.1:${PORTSDIR}/devel/libglademm24 \
tar.0:${PORTSDIR}/devel/libtar
CONFIGURE_ARGS+= --enable-gui
PLIST_SUB+= GUI=""
.else
PLIST_SUB+= GUI="@comment "
.endif
.if ${PORT_OPTIONS:MOPENSYNC}
LIB_DEPENDS+= opensync.0:${PORTSDIR}/devel/libopensync022
CONFIGURE_ARGS+= --enable-opensync-plugin
PLIST_SUB+= OPENSYNC=""
.else
PLIST_SUB+= OPENSYNC="@comment "
.endif
.if ${PORT_OPTIONS:MDOXYGEN}
BUILD_DEPENDS+= doxygen:${PORTSDIR}/devel/doxygen
PLIST_SUB+= DOXYGEN=""
.else
PLIST_SUB+= DOXYGEN="@comment "
.endif
post-patch:
@${REINPLACE_CMD} -e 's|{libdir}/pkgconfig|{prefix}/libdata/pkgconfig|' ${WRKSRC}/configure
@${REINPLACE_CMD} -e 's| -Werror||' ${WRKSRC}/opensync-plugin/src/Makefile.in
post-build:
.if ${PORT_OPTIONS:MDOXYGEN}
@(cd ${WRKSRC}/src && ${LOCALBASE}/bin/doxygen)
.endif
post-install:
.if ${PORT_OPTIONS:MDOCS}
${MKDIR} ${DOCSDIR}
${CP} -R ${WRKSRC}/doc/ ${DOCSDIR}
.endif
.include <bsd.port.mk>
|