# Created by: Thierry Thomas # $FreeBSD$ PORTNAME= toxic PORTVERSION= 0.4.2.140630 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 \ libopenal.so.1:${PORTSDIR}/audio/openal-soft RUN_DEPENDS= ${LOCALBASE}/lib/libtoxcore.a:${PORTSDIR}/net-im/tox USE_GITHUB= yes GH_ACCOUNT= tox GH_TAGNAME= ${GH_COMMIT} GH_COMMIT= a126f9c 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:port gmake pkgconfig .include .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}|' \ ${BUILD_WRKSRC}/${MAKEFILE} post-install: ${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/toxic .include