Changeset View
Standalone View
net/sems/Makefile
Property | Old Value | New Value |
---|---|---|
svn:eol-style | null | native \ No newline at end of property |
svn:keywords | null | FreeBSD=%H \ No newline at end of property |
svn:mime-type | null | text/plain \ No newline at end of property |
# Created by: Nathan Whitehon <nwhitehorn@freebsd.org> | |||||
# $FreeBSD$ | |||||
PORTNAME= sems | |||||
DISTVERSION= 1.7.0.g20190822 | |||||
CATEGORIES= net | |||||
MAINTAINER= nwhitehorn@FreeBSD.org | |||||
COMMENT= SIP Express Media Server | |||||
LICENSE= GPLv2 | |||||
koobs: If a license file exists in the source distribution (distfile), add `LICENSE_FILE=/path/to/file` | |||||
LIB_DEPENDS= libopus.so:audio/opus \ | |||||
libcodec2.so:audio/codec2 \ | |||||
libevent.so:devel/libevent \ | |||||
librtmp.so:multimedia/librtmp \ | |||||
libilbc.so:net/ilbc \ | |||||
libgsm.so:audio/gsm \ | |||||
libsamplerate.so:audio/libsamplerate \ | |||||
libspeex.so:audio/speex \ | |||||
libspandsp.so:comms/spandsp | |||||
USES= cmake python shebangfix | |||||
koobsUnsubmitted Not Done Inline ActionsDoes SEMS support *both* Python 2 and 3? If so, this is fine, otherwise define version-spec in USES=python:<version-spec> as accurately as possible (per upstream python support declarations) given the syntax we support here. Also, nothing in this port explicitly sets the python version to use/build with. In most if not all cases, build systems, in particular autoconf and cmake do Python auto-detection with their own / custom find order, so accordingly, explicitly setting the specific Python version to use is warranted. This, for CMake programs, usually takes the form of setting PYTHON_* variables [1] and there are examples in the tree you can use koobs: Does SEMS support *both* Python 2 and 3? If so, this is fine, otherwise define version-spec in… | |||||
koobsUnsubmitted Not Done Inline ActionsAlso, if python is a build or run time only dependency (i didnt check), qualify USES=python with ,build or ,run respectively koobs: Also, if python is a build or run time only dependency (i didnt check), qualify USES=python… | |||||
nwhitehornAuthorUnsubmitted Done Inline ActionsIt's run-time dependency only: there are some admin utility scripts installed that are written in Python. They are each about 5 lines long and seem to be 2/3 bilingual. I've added the ",run". nwhitehorn: It's run-time dependency only: there are some admin utility scripts installed that are written… | |||||
SHEBANG_GLOB= sems-* | |||||
USE_GITHUB= yes | |||||
GH_ACCOUNT= sems-server | |||||
GH_TAGNAME= 7400051 | |||||
CFLAGS+= -Wno-reorder | |||||
CMAKE_ARGS= -DSEMS_CFG_PREFIX=${PREFIX} -DSEMS_AUDIO_PREFIX=${PREFIX}/lib \ | |||||
-DSEMS_EXEC_PREFIX=${PREFIX} -DSEMS_DOC_PREFIX=${PREFIX}/share/doc | |||||
CMAKE_ON= SEMS_USE_SPANDSP SEMS_USE_LIBSAMPLERATE SEMS_USE_OPUS | |||||
USE_RC_SUBR= sems | |||||
USERS= sems | |||||
GROUPS= sems | |||||
post-install: | |||||
cd ${STAGEDIR}${ETCDIR} && ${FIND} . \ | |||||
-type f -exec ${MV} {} {}.sample \; | |||||
.include <bsd.port.mk> |
If a license file exists in the source distribution (distfile), add LICENSE_FILE=/path/to/file