blob: 94f48a3183c7839448a6879400bb7d3864348bd9 (
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
|
# $FreeBSD$
PORTNAME= pond
PORTVERSION= 20150830
PORTREVISION= 1
CATEGORIES= security
MASTER_SITES= http://c-s.li/ports/
DISTFILES= pond-20150830.tar.gz \
go-gtk-20151214.tar.gz \
ed25519-20150830.tar.gz
MAINTAINER= ports@FreeBSD.org
COMMENT= Forward secure, asynchronous messenger
LICENSE= BSD3CLAUSE
BROKEN= wrong build depends
BUILD_DEPENDS= ${LOCALBASE}/${GO_LIBDIR}/golang.org/x/crypto/bcrypt.a:security/go.crypto \
${LOCALBASE}/${GO_LIBDIR}/github.com/golang/protobuf/proto.a:devel/goprotobuf \
${LOCALBASE}/${GO_LIBDIR}/code.google.com/p/go.net/dict.a:net/go.net
RUN_DEPENDS= tor:security/tor
LIB_DEPENDS= libgtkspell.so:textproc/gtkspell \
libtspi.so:security/trousers
USES= go
PLIST_FILES= bin/pond-server bin/pond
USE_GNOME= gtk30
GO_PKGNAME= github.com/agl/pond
GO_TARGET= ${GO_PKGNAME}/pond-server \
${GO_PKGNAME}/pond
post-extract:
@${MKDIR} ${GO_WRKSRC:H}
@${LN} -sf ${WRKSRC} ${GO_WRKSRC}
@${LN} -sf ${WRKSRC}/client ${WRKSRC}/pond
@${LN} -sf ${WRKSRC}/server ${WRKSRC}/pond-server
@${LN} -sf ${WRKDIR}/go-gtk-20151214 ${GO_WRKDIR_SRC}/github.com/agl/go-gtk
@${LN} -sf ${WRKDIR}/ed25519-20150830 ${GO_WRKDIR_SRC}/github.com/agl/ed25519
post-patch:
@${REINPLACE_CMD} -e 's|\<gdk|\<gtk-3.0\/gdk|g' \
${WRKDIR}/go-gtk-20151214/gdk/gdk.go \
${WRKDIR}/go-gtk-20151214/gdk/gdk_linux.go \
${WRKDIR}/go-gtk-20151214/gdk/gdk_windows.go \
${WRKDIR}/go-gtk-20151214/gtk/gtk.go
@${REINPLACE_CMD} -e 's|\<pango|\<pango-1.0\/pango|g' \
${WRKDIR}/go-gtk-20151214/pango/pango.go
@${REINPLACE_CMD} -e 's|\<gtk|\<gtk-3.0\/gtk|g' \
${WRKDIR}/go-gtk-20151214/gtk/gtk.go \
${WRKDIR}/go-gtk-20151214/gtkspell/gtkspell_fedora.go \
${WRKDIR}/go-gtk-20151214/gtkspell/gtkspell_ubuntu.go
@${REINPLACE_CMD} -e 's|\<glib|\<glib-2.0\/glib|g' \
${WRKDIR}/go-gtk-20151214/glib/glib.go
@${REINPLACE_CMD} -e 's|\<gdk-pixbuf|\<gdk-pixbuf-2.0\/gdk-pixbuf|g' \
${WRKDIR}/go-gtk-20151214/gdkpixbuf/gdkpixbuf.go
@${REINPLACE_CMD} -e 's|\<gtkspell|\<gtkspell-2.0\/gtkspell|g' \
${WRKDIR}/go-gtk-20151214/gtkspell/gtkspell_fedora.go \
${WRKDIR}/go-gtk-20151214/gtkspell/gtkspell_ubuntu.go
@${REINPLACE_CMD} -e 's|golang.org/x/net|code.google.com\/p\/go.net|g' \
${WRKDIR}/pond-20150830/panda/appengine.go \
${WRKDIR}/pond-20150830/pond/network.go
do-build:
@(cd ${GO_WRKSRC}; ${SETENV} ${GO_ENV} ${GO_CMD} install -tags nogui -v ${GO_TARGET})
.include <bsd.port.mk>
|