Changeset View
Changeset View
Standalone View
Standalone View
audio/baresip/Makefile
# $FreeBSD$ | # $FreeBSD$ | ||||
PORTNAME= baresip | PORTNAME= baresip | ||||
PORTVERSION= 0.4.8 | PORTVERSION= 0.4.19 | ||||
PORTREVISION= 4 | |||||
CATEGORIES= audio | CATEGORIES= audio | ||||
MASTER_SITES= http://www.creytiv.com/pub/ | MASTER_SITES= http://www.creytiv.com/pub/ | ||||
MAINTAINER= crees@FreeBSD.org | MAINTAINER= crees@FreeBSD.org | ||||
COMMENT= Small SIP client | COMMENT= Small SIP client | ||||
LICENSE= BSD3CLAUSE | LICENSE= BSD3CLAUSE | ||||
LICENSE_FILE= ${WRKSRC}/docs/COPYING | LICENSE_FILE= ${WRKSRC}/docs/COPYING | ||||
BUILD_DEPENDS= re>=0.4.6:audio/re \ | BUILD_DEPENDS= re>=0.4.6:audio/re \ | ||||
rem>=0.4.4:audio/rem | rem>=0.4.4:audio/rem | ||||
RUN_DEPENDS:= ${BUILD_DEPENDS} | RUN_DEPENDS:= ${BUILD_DEPENDS} | ||||
USES= gmake pkgconfig | USES= gmake pkgconfig | ||||
USE_OPENSSL= yes | USE_OPENSSL= yes | ||||
CFLAGS+= -I${LOCALBASE}/include -I${LOCALBASE}/include/ilbc | CFLAGS+= -I${LOCALBASE}/include -I${LOCALBASE}/include/ilbc | ||||
MAKE_ARGS= MOD_AUTODETECT="" | MAKE_ARGS= MOD_AUTODETECT="" | ||||
PLIST_FILES= bin/baresip | PLIST_FILES= bin/baresip | ||||
PORTDATA= * | PORTDATA= * | ||||
PORTDOCS= * | PORTDOCS= COPYING ChangeLog README TODO | ||||
adamw: Why? Your message shows the what, but not the why. | |||||
matUnsubmitted Done Inline ActionsI disagree with that change and the change line 124. mat: I disagree with that change and the change line 124. | |||||
creesUnsubmitted Done Inline ActionsCan I disagree also? I don't think it's worth alphabetising pkg-plist either, but since it's done I won't complain about that bit. crees: Can I disagree also? I don't think it's worth alphabetising pkg-plist either, but since it's… | |||||
woodsb02AuthorUnsubmitted Done Inline ActionsIndeed, I should have specified why. The reason why I made this change, and the change on line 124, is because the build was failing with a stage failure. Line 124 had ${INSTALL_DATA} ${WRKSRC}/docs/*, but the docs/ directory contained 4 files and a sub-directory. Believing it was the sub-directory that was causing the error, I changed the PORTDOCS setting and the INSTALL_DATA command to only install the files in the docs/ directory, and not the sub-directory. install -s -m 555 /wrkdirs/usr/ports/audio/baresip/work/baresip-0.4.19/baresip /wrkdirs/usr/ports/audio/baresip/work/stage/usr/local/bin /bin/mkdir -p /wrkdirs/usr/ports/audio/baresip/work/stage/usr/local/share/baresip install -m 0644 /wrkdirs/usr/ports/audio/baresip/work/baresip-0.4.19/share/* /wrkdirs/usr/ports/audio/baresip/work/stage/usr/local/share/baresip /bin/mkdir -p /wrkdirs/usr/ports/audio/baresip/work/stage/usr/local/lib/baresip/modules for m in $(/usr/bin/env OPENSSLBASE=/usr OPENSSLDIR=/etc/ssl OPENSSLINC=/usr/include OPENSSLLIB=/usr/lib XDG_DATA_HOME=/wrkdirs/usr/ports/audio/baresip/work XDG_CONFIG_HOME=/wrkdirs/usr/ports/audio/baresip/work HOME=/wrkdirs/usr/ports/audio/baresip/work TMPDIR="/tmp" NO_PIE=yes MK_DEBUG_FILES=no MK_KERNEL_SYMBOLS=no SHELL=/bin/sh NO_LINT=YES PREFIX=/usr/local LOCALBASE=/usr/local LIBDIR="/usr/lib" CC="cc" CFLAGS="-O2 -pipe -I/usr/local/include -I/usr/local/include/ilbc -fstack-protector -fno-strict-aliasing" CPP="cpp" CPPFLAGS="" LDFLAGS=" -fstack-protector" LIBS="" CXX="c++" CXXFLAGS="-O2 -pipe -I/usr/local/include -I/usr/local/include/ilbc -fstack-protector -fno-strict-aliasing " MANPREFIX="/usr/local" BSD_INSTALL_PROGRAM="install -s -m 555" BSD_INSTALL_LIB="install -s -m 444" BSD_INSTALL_SCRIPT="install -m 555" BSD_INSTALL_DATA="install -m 0644" BSD_INSTALL_MAN="install -m 444" gmake -sC /wrkdirs/usr/ports/audio/baresip/work/baresip-0.4.19 MOD_AUTODETECT="" USE_CONS=yes USE_DOCS=yes USE_EXAMPLES=yes USE_FFMPEG=yes USE_G711=yes USE_G722=yes USE_G726=yes USE_IPV6=yes USE_L16=yes USE_NLS=yes OPENSSL_CFLAGS="-DNO_IDEA" DESTDIR=/wrkdirs/usr/ports/audio/baresip/work/stage showmodules); do install -s -m 444 /wrkdirs/usr/ports/audio/baresip/work/baresip-0.4.19/$m.so /wrkdirs/usr/ports/audio/baresip/work/stage/usr/local/lib/baresip/modules; echo lib/baresip/modules/$m.so >> /wrkdirs/usr/ports/audio/baresip/work/.PLIST.mktmp; done /bin/mkdir -p /wrkdirs/usr/ports/audio/baresip/work/stage/usr/local/share/doc/baresip install -m 0644 /wrkdirs/usr/ports/audio/baresip/work/baresip-0.4.19/docs/* /wrkdirs/usr/ports/audio/baresip/work/stage/usr/local/share/doc/baresip install: /wrkdirs/usr/ports/audio/baresip/work/baresip-0.4.19/docs/examples: Inappropriate file type or format *** Error code 71 woodsb02: Indeed, I should have specified why.
The reason why I made this change, and the change on line… | |||||
woodsb02AuthorUnsubmitted Done Inline ActionsFYI, the ${WRKSRC}/docs/examples sub-directory is new with this update. woodsb02: FYI, the ${WRKSRC}/docs/examples sub-directory is new with this update. | |||||
#OPTIONS_NOT_YET_WORKING= ALSA BV32 G722_1 PLC ISAC OPENGLES | #OPTIONS_NOT_YET_WORKING= ALSA BV32 G722_1 PLC ISAC OPENGLES | ||||
OPTIONS_DEFINE= CELT CONS DOCS FFMPEG G711 G722 G726 GSM GSTREAMER ILBC L16 \ | OPTIONS_DEFINE= CONS DOCS FFMPEG G711 G722 G726 GSM GSTREAMER ILBC L16 \ | ||||
OPUS OSS PORTAUDIO SDL SNDFILE SPEEX SRTP STDIO UUID V4L V4L2 X11 \ | OPUS OSS PORTAUDIO SDL SNDFILE SPEEX SRTP STDIO UUID V4L V4L2 X11 \ | ||||
DTLS_SRTP AUBRIDGE VIDBRIDGE HTTPD DSHOW DIRECTFB ACCOUNT \ | DTLS_SRTP AUBRIDGE VIDBRIDGE HTTPD DSHOW DIRECTFB ACCOUNT \ | ||||
NATPMP SDL MIW SNAPSHOT SELFVIEW VUMETER AULOOP CONTACT \ | NATPMP SDL MIW SNAPSHOT SELFVIEW VUMETER AULOOP CONTACT \ | ||||
MENU PRESENCE SYSLOG VIDLOOP | MENU PRESENCE SYSLOG VIDLOOP | ||||
OPTIONS_DEFAULT=CONS G711 G722 G726 L16 | OPTIONS_DEFAULT=CONS G711 G722 G726 L16 | ||||
AULOOP_DESC= Audio-loop test module | AULOOP_DESC= Audio-loop test module | ||||
BV32_DESC= BroadVoice32 Wideband Audio codec | BV32_DESC= BroadVoice32 Wideband Audio codec | ||||
CELT_DESC= Celt support [broken] | |||||
CONTACT_DESC= Contacts module | CONTACT_DESC= Contacts module | ||||
CONS_DESC= Console input driver | CONS_DESC= Console input driver | ||||
DTLS_SRTP_DESC= DTLS Secure RTP module [broken] | DTLS_SRTP_DESC= DTLS Secure RTP module [broken] | ||||
G711_DESC= G.711 audio codec | G711_DESC= G.711 audio codec | ||||
G722_DESC= G.722 audio codec | G722_DESC= G.722 audio codec | ||||
G722_1_DESC= G.722.1 audio codec | G722_1_DESC= G.722.1 audio codec | ||||
G726_DESC= G.726 audio codec | G726_DESC= G.726 audio codec | ||||
ILBC_DESC= iLBC audio codec | ILBC_DESC= iLBC audio codec | ||||
Show All 33 Lines | |||||
# SPEEX forces install of speex, therefore may as well enable all methods | # SPEEX forces install of speex, therefore may as well enable all methods | ||||
.if ${PORT_OPTIONS:MSPEEX} | .if ${PORT_OPTIONS:MSPEEX} | ||||
. for s in SPEEX_AEC SPEEX_PP SPEEX_RESAMP | . for s in SPEEX_AEC SPEEX_PP SPEEX_RESAMP | ||||
MAKE_ARGS+= USE_$s=yes | MAKE_ARGS+= USE_$s=yes | ||||
. endfor | . endfor | ||||
MAKE_ARGS+= HAVE_SPEEXDSP=yes | MAKE_ARGS+= HAVE_SPEEXDSP=yes | ||||
.endif | .endif | ||||
.for o in CELT SRTP V4L DTLS_SRTP V4L2 X11 | .for o in SRTP V4L DTLS_SRTP V4L2 X11 | ||||
. if ${PORT_OPTIONS:M$o} | . if ${PORT_OPTIONS:M$o} | ||||
BROKEN= OPTIONS marked as BROKEN have not been updated to the new Baresip API | BROKEN= OPTIONS marked as BROKEN have not been updated to the new Baresip API | ||||
. endif | . endif | ||||
.endfor | .endfor | ||||
.if ${PORT_OPTIONS:MX11} | .if ${PORT_OPTIONS:MX11} | ||||
USE_XORG= x11 | USE_XORG= x11 | ||||
.endif | .endif | ||||
.for o in ${PORT_OPTIONS} | .for o in ${PORT_OPTIONS} | ||||
MAKE_ARGS+= USE_$o=yes | MAKE_ARGS+= USE_$o=yes | ||||
BUILD_DEPENDS+= ${$o_DEPEND} | BUILD_DEPENDS+= ${$o_DEPEND} | ||||
RUN_DEPENDS+= ${$o_DEPEND} | RUN_DEPENDS+= ${$o_DEPEND} | ||||
.endfor | .endfor | ||||
# GNU Make does not do make -V, which makes life difficult | # GNU Make does not do make -V, which makes life difficult | ||||
post-patch: | post-patch: | ||||
${ECHO_CMD} >> ${WRKSRC}/Makefile | ${ECHO_CMD} >> ${WRKSRC}/Makefile | ||||
${ECHO_CMD} ".PHONY: showmodules" >> ${WRKSRC}/Makefile | ${ECHO_CMD} ".PHONY: showmodules" >> ${WRKSRC}/Makefile | ||||
${ECHO_CMD} "showmodules:" >> ${WRKSRC}/Makefile | ${ECHO_CMD} "showmodules:" >> ${WRKSRC}/Makefile | ||||
${ECHO_CMD} ' @${ECHO_CMD} $$(MODULES)' >> ${WRKSRC}/Makefile | ${ECHO_CMD} ' @${ECHO_CMD} $$(MODULES)' >> ${WRKSRC}/Makefile | ||||
${REINPLACE_CMD} 's,-lcelt[0-9]*,$$(pkg-config --libs celt),' \ | |||||
${WRKSRC}/modules/celt/module.mk | |||||
${REINPLACE_CMD} 's,-lportaudio[0-9]*,-L${LOCALBASE}/lib -lportaudio,' \ | ${REINPLACE_CMD} 's,-lportaudio[0-9]*,-L${LOCALBASE}/lib -lportaudio,' \ | ||||
${WRKSRC}/modules/portaudio/module.mk | ${WRKSRC}/modules/portaudio/module.mk | ||||
do-install: | do-install: | ||||
${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin | ${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin | ||||
${MKDIR} ${STAGEDIR}${DATADIR} | ${MKDIR} ${STAGEDIR}${DATADIR} | ||||
${INSTALL_DATA} ${WRKSRC}/share/* ${STAGEDIR}${DATADIR} | ${INSTALL_DATA} ${WRKSRC}/share/* ${STAGEDIR}${DATADIR} | ||||
# Install modules and add to plist | # Install modules and add to plist | ||||
post-install: | post-install: | ||||
${MKDIR} ${STAGEDIR}${PREFIX}/lib/${PORTNAME}/modules | ${MKDIR} ${STAGEDIR}${PREFIX}/lib/${PORTNAME}/modules | ||||
for m in $$(${SETENV} ${MAKE_ENV} ${MAKE_CMD} -sC ${WRKSRC} ${MAKE_ARGS} showmodules); \ | for m in $$(${SETENV} ${MAKE_ENV} ${MAKE_CMD} -sC ${WRKSRC} ${MAKE_ARGS} showmodules); \ | ||||
do ${INSTALL_LIB} ${WRKSRC}/$$m.so \ | do ${INSTALL_LIB} ${WRKSRC}/$$m.so \ | ||||
${STAGEDIR}${PREFIX}/lib/baresip/modules; \ | ${STAGEDIR}${PREFIX}/lib/baresip/modules; \ | ||||
${ECHO_CMD} lib/${PORTNAME}/modules/$$m.so >> ${TMPPLIST}; \ | ${ECHO_CMD} lib/${PORTNAME}/modules/$$m.so >> ${TMPPLIST}; \ | ||||
done | done | ||||
${MKDIR} ${STAGEDIR}${DOCSDIR} | ${MKDIR} ${STAGEDIR}${DOCSDIR} | ||||
${INSTALL_DATA} ${WRKSRC}/docs/* ${STAGEDIR}${DOCSDIR} | (cd ${WRKSRC}/docs &&${INSTALL_DATA} ${PORTDOCS} ${STAGEDIR}${DOCSDIR}) | ||||
.include <bsd.port.mk> | .include <bsd.port.mk> |
Why? Your message shows the what, but not the why.