2019-07-12 20:48:23 +00:00
|
|
|
# $OpenBSD: Makefile,v 1.6 2019/07/12 20:48:50 sthen Exp $
|
2018-04-29 11:16:30 +00:00
|
|
|
|
|
|
|
COMMENT = ncurses-based Tox client
|
|
|
|
|
|
|
|
GH_ACCOUNT = Jfreegman
|
|
|
|
GH_PROJECT = toxic
|
|
|
|
GH_TAGNAME = v0.8.2
|
2019-04-28 20:51:26 +00:00
|
|
|
REVISION = 3
|
2018-04-29 11:16:30 +00:00
|
|
|
|
|
|
|
CATEGORIES = net
|
|
|
|
|
|
|
|
# GPLv3+
|
2019-07-12 20:48:23 +00:00
|
|
|
PERMIT_PACKAGE = Yes
|
2018-04-29 11:16:30 +00:00
|
|
|
|
2018-07-17 13:49:23 +00:00
|
|
|
WANTLIB += alut c config curses curl intl m openal png pthread
|
|
|
|
WANTLIB += qrencode toxcore util z ${MODPY_WANTLIB}
|
2018-04-29 11:16:30 +00:00
|
|
|
|
|
|
|
LIB_DEPENDS = audio/freealut \
|
|
|
|
net/toxcore \
|
|
|
|
devel/libconfig \
|
|
|
|
net/curl \
|
|
|
|
graphics/libqrencode
|
|
|
|
|
2018-07-17 13:49:23 +00:00
|
|
|
MAKE_ENV += ENABLE_PYTHON=1 \
|
|
|
|
USER_CFLAGS="${CFLAGS}"
|
2018-04-29 11:16:30 +00:00
|
|
|
MODULES = lang/python
|
|
|
|
MODPY_VERSION = ${MODPY_DEFAULT_VERSION_3}
|
|
|
|
CONFIGURE_STYLE = none
|
|
|
|
|
|
|
|
USE_GMAKE = yes
|
|
|
|
|
2018-07-17 13:49:23 +00:00
|
|
|
FLAVORS = no_x11
|
|
|
|
FLAVOR ?=
|
|
|
|
|
|
|
|
.if ${FLAVOR:Mno_x11}
|
|
|
|
MAKE_ENV += DISABLE_DESKTOP_NOTIFY=1 \
|
|
|
|
DISABLE_X11=1
|
|
|
|
.else
|
|
|
|
WANTLIB += X11 gdk_pixbuf-2.0 gio-2.0 glib-2.0 gobject-2.0
|
|
|
|
WANTLIB += notify vpx
|
|
|
|
LIB_DEPENDS += devel/libnotify
|
|
|
|
|
|
|
|
RUN_DEPENDS = devel/desktop-file-utils
|
|
|
|
.endif
|
|
|
|
|
2018-04-29 11:16:30 +00:00
|
|
|
NO_TEST = Yes
|
|
|
|
|
2018-07-17 13:49:23 +00:00
|
|
|
.if ${FLAVOR:Mno_x11}
|
|
|
|
post-install:
|
|
|
|
rm -Rf ${PREFIX}/share/applications/
|
|
|
|
.endif
|
|
|
|
|
2018-04-29 11:16:30 +00:00
|
|
|
.include <bsd.port.mk>
|