mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-26 00:55:14 +00:00
47 lines
1.1 KiB
Makefile
47 lines
1.1 KiB
Makefile
# Created by: Thierry Thomas <thierry@pompo.net>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= toxic
|
|
PORTVERSION= 0.4.5.140717
|
|
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= e61d070
|
|
|
|
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 <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}|' \
|
|
${BUILD_WRKSRC}/${MAKEFILE}
|
|
|
|
post-install:
|
|
${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/toxic
|
|
|
|
.include <bsd.port.post.mk>
|