blob: 2d955100c107f3a1001b9c7f9cd410bd2c3a29b9 (
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
|
# Created by: Thierry Thomas <thierry@pompo.net>
# $FreeBSD$
PORTNAME= toxic
PORTVERSION= 0.5.0.140908
PORTREVISION= 2
CATEGORIES= net-im
MAINTAINER= thierry@FreeBSD.org
COMMENT= Console client for Tox
LICENSE= GPLv3
BUILD_DEPENDS= ${LOCALBASE}/lib/libtoxcore.a:${PORTSDIR}/net-im/tox
LIB_DEPENDS= libvpx.so:${PORTSDIR}/multimedia/libvpx \
libopus.so:${PORTSDIR}/audio/opus \
libconfig.so:${PORTSDIR}/devel/libconfig
RUN_DEPENDS= ${LOCALBASE}/lib/libtoxcore.a:${PORTSDIR}/net-im/tox
USE_GITHUB= yes
GH_ACCOUNT= tox
GH_TAGNAME= ${GH_COMMIT}
GH_COMMIT= 09f90d0
OPTIONS_DEFINE= X11
OPTIONS_DEFAULT=X11
X11_USE= XORG=x11
X11_MAKE_ARGS_OFF= DISABLE_X11=1 DISABLE_DESKTOP_NOTIFY=1
X11_LIB_DEPENDS=libnotify.so:${PORTSDIR}/devel/libnotify
WRKSRC= ${WRKDIR}/Tox-${PORTNAME}-${GH_COMMIT}
BUILD_WRKSRC= ${WRKSRC}/build
INSTALL_WRKSRC= ${BUILD_WRKSRC}
MAKE_ENV= USER_CFLAGS="${CFLAGS}" USER_LDFLAGS="${LDFLAGS}"
SUB_FILES= pkg-message
USES= ncurses openal:al,alut gmake pkgconfig
.include <bsd.port.pre.mk>
.if ${OSVERSION} < 900033
USE_BINUTILS= yes
LDFLAGS+= -B${LOCALBASE}/bin
.endif
pre-configure:
${REINPLACE_CMD} -e 's|PREFIX =|PREFIX?=|;s|$$(shell git rev-list HEAD --count)|${GH_COMMIT}|' \
${WRKSRC}/cfg/global_vars.mk
post-install:
${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/toxic
.include <bsd.port.post.mk>
|