|
Lines 21-27
CONFIGURE_LOG= config.err
Link Here
|
| 21 |
USES= compiler cpe gmake perl5 pkgconfig tar:bzip2 |
21 |
USES= compiler cpe gmake perl5 pkgconfig tar:bzip2 |
| 22 |
USE_LDCONFIG= yes |
22 |
USE_LDCONFIG= yes |
| 23 |
USE_PERL5= build |
23 |
USE_PERL5= build |
| 24 |
WANT_SDL= yes |
|
|
| 25 |
|
24 |
|
| 26 |
OPTIONS_DEFINE= AACPLUS ALSA AMR_NB AMR_WB ASS CDIO CELT DEBUG DOCS FAAC \ |
25 |
OPTIONS_DEFINE= AACPLUS ALSA AMR_NB AMR_WB ASS CDIO CELT DEBUG DOCS FAAC \ |
| 27 |
FDK_AAC FFSERVER FONTCONFIG FREETYPE FREI0R GSM ICONV \ |
26 |
FDK_AAC FFSERVER FONTCONFIG FREETYPE FREI0R GSM ICONV \ |
|
Lines 92-97
CELT_CONFIGURE_ENABLE= libcelt
Link Here
|
| 92 |
DEBUG_CONFIGURE_ON= --disable-stripping |
91 |
DEBUG_CONFIGURE_ON= --disable-stripping |
| 93 |
DEBUG_CONFIGURE_OFF= --disable-debug |
92 |
DEBUG_CONFIGURE_OFF= --disable-debug |
| 94 |
|
93 |
|
|
|
94 |
# docs |
| 95 |
DOCS_BUILD_DEPENDS= texi2html:${PORTSDIR}/textproc/texi2html |
| 96 |
DOCS_VARS= DOC_DOCFILES+="*.html" |
| 97 |
|
| 95 |
# faac |
98 |
# faac |
| 96 |
FAAC_LIB_DEPENDS= libfaac.so:${PORTSDIR}/audio/faac |
99 |
FAAC_LIB_DEPENDS= libfaac.so:${PORTSDIR}/audio/faac |
| 97 |
FAAC_CONFIGURE_ENABLE= libfaac |
100 |
FAAC_CONFIGURE_ENABLE= libfaac |
|
Lines 104-110
FDK_AAC_IMPLIES= NONFREE
Link Here
|
| 104 |
|
107 |
|
| 105 |
# ffserver |
108 |
# ffserver |
| 106 |
FFSERVER_CONFIGURE_ENABLE= ffserver |
109 |
FFSERVER_CONFIGURE_ENABLE= ffserver |
| 107 |
FFSERVER_VARS= USE_RC_SUBR+=ffserver |
110 |
FFSERVER_VARS= FFPROGS+=ffserver USE_RC_SUBR+=ffserver |
| 108 |
|
111 |
|
| 109 |
# fontconfig |
112 |
# fontconfig |
| 110 |
FONTCONFIG_LIB_DEPENDS= libfontconfig.so:${PORTSDIR}/x11-fonts/fontconfig |
113 |
FONTCONFIG_LIB_DEPENDS= libfontconfig.so:${PORTSDIR}/x11-fonts/fontconfig |
|
Lines 198-203
RTMP_CONFIGURE_ENABLE= librtmp
Link Here
|
| 198 |
SCHROEDINGER_LIB_DEPENDS= libschroedinger-1.0.so:${PORTSDIR}/multimedia/schroedinger |
201 |
SCHROEDINGER_LIB_DEPENDS= libschroedinger-1.0.so:${PORTSDIR}/multimedia/schroedinger |
| 199 |
SCHROEDINGER_CONFIGURE_ENABLE= libschroedinger |
202 |
SCHROEDINGER_CONFIGURE_ENABLE= libschroedinger |
| 200 |
|
203 |
|
|
|
204 |
# sdl |
| 205 |
SDL_USE= SDL=sdl |
| 206 |
SDL_CONFIGURE_ENABLE= ffplay |
| 207 |
SDL_VARS= FFPROGS+=ffplay |
| 208 |
SDL_CONFIGURE_OFF= --disable-outdev=sdl |
| 209 |
|
| 201 |
# smbclient |
210 |
# smbclient |
| 202 |
SMB_LIB_DEPENDS= libsmbclient.so:${PORTSDIR}/net/samba-libsmbclient |
211 |
SMB_LIB_DEPENDS= libsmbclient.so:${PORTSDIR}/net/samba-libsmbclient |
| 203 |
SMB_CONFIGURE_ENABLE= libsmbclient |
212 |
SMB_CONFIGURE_ENABLE= libsmbclient |
|
Lines 273-291
INSTALL_TARGET= install-progs install-data install-libs install-headers
Link Here
|
| 273 |
|
282 |
|
| 274 |
DATADIR= ${PREFIX}/share/${PORTNAME}${PKGNAMESUFFIX} |
283 |
DATADIR= ${PREFIX}/share/${PORTNAME}${PKGNAMESUFFIX} |
| 275 |
|
284 |
|
| 276 |
.include <bsd.port.pre.mk> |
|
|
| 277 |
|
| 278 |
.if ${OPSYS} == "FreeBSD" && ${OSVERSION} < 1000000 |
| 279 |
CONFIGURE_ARGS+= --enable-memalign-hack |
| 280 |
.endif |
| 281 |
|
| 282 |
.if ${ARCH} == "armv6" |
| 283 |
CONFIGURE_ARGS+= --disable-fast-unaligned |
| 284 |
.if ${CHOSEN_COMPILER_TYPE} == "clang" |
| 285 |
CONFIGURE_ENV+= ASFLAGS=-no-integrated-as |
| 286 |
.endif |
| 287 |
.endif |
| 288 |
|
| 289 |
DATADIR= ${PREFIX}/share/${PORTNAME}${PKGNAMESUFFIX} |
285 |
DATADIR= ${PREFIX}/share/${PORTNAME}${PKGNAMESUFFIX} |
| 290 |
DOCSDIR= ${PREFIX}/share/doc/${PORTNAME}${PKGNAMESUFFIX} |
286 |
DOCSDIR= ${PREFIX}/share/doc/${PORTNAME}${PKGNAMESUFFIX} |
| 291 |
CONFIGURE_ENV+= COMPILER_PATH=${LOCALBASE}/bin |
287 |
CONFIGURE_ENV+= COMPILER_PATH=${LOCALBASE}/bin |
|
Lines 309-343
CONFIGURE_ARGS+=--prefix="${PREFIX}" \
Link Here
|
| 309 |
--extra-ldflags="-L${LOCALBASE}/lib ${FFMPEG_LDFLAGS}" \ |
305 |
--extra-ldflags="-L${LOCALBASE}/lib ${FFMPEG_LDFLAGS}" \ |
| 310 |
--extra-libs="-lpthread" |
306 |
--extra-libs="-lpthread" |
| 311 |
|
307 |
|
|
|
308 |
CONFIGURE_ENV_armv6_clang= ASFLAGS=-no-integrated-as |
| 309 |
CONFIGURE_ARGS_armv6= --disable-fast-unaligned |
| 310 |
CONFIGURE_ARGS_FreeBSD_9= --enable-memalign-hack |
| 311 |
|
| 312 |
DOC_FILES= Changelog CREDITS INSTALL.md LICENSE.md MAINTAINERS \ |
312 |
DOC_FILES= Changelog CREDITS INSTALL.md LICENSE.md MAINTAINERS \ |
| 313 |
README.md RELEASE_NOTES |
313 |
README.md RELEASE_NOTES |
| 314 |
# under doc subdirectory |
314 |
# under doc subdirectory |
| 315 |
DOC_DOCFILES= APIchanges *.txt |
315 |
DOC_DOCFILES= APIchanges *.txt |
| 316 |
PORTDOCS= * |
316 |
PORTDOCS= * |
| 317 |
|
317 |
|
| 318 |
.if ${PORT_OPTIONS:MDOCS} |
318 |
# Custom helpers. FOO_${ARCH} style from bsd.port.mk |
| 319 |
DOC_DOCFILES+= *.html |
319 |
CONFIGURE_ENV+= ${CONFIGURE_ENV_${ARCH}_${CHOSEN_COMPILER_TYPE}} |
| 320 |
BUILD_DEPENDS+= texi2html:${PORTSDIR}/textproc/texi2html |
320 |
CONFIGURE_ARGS+=${CONFIGURE_ARGS_${OPSYS}_${OSREL:R}} |
| 321 |
.endif |
321 |
CONFIGURE_ARGS+=${CONFIGURE_ARGS_${ARCH}} |
| 322 |
|
|
|
| 323 |
# ffserver |
| 324 |
.if ${PORT_OPTIONS:MFFSERVER} |
| 325 |
FFPROGS+= ffserver |
| 326 |
.if ${PORT_OPTIONS:MDOCS} |
| 327 |
DOC_DOCFILES+= ffserver.html |
| 328 |
.endif |
| 329 |
.endif |
| 330 |
|
| 331 |
# sdl |
| 332 |
.if ${PORT_OPTIONS:MSDL} |
| 333 |
USE_SDL+= sdl |
| 334 |
FFPROGS+= ffplay |
| 335 |
.if ${PORT_OPTIONS:MDOCS} |
| 336 |
DOC_DOCFILES+= ffplay.html |
| 337 |
.endif |
| 338 |
.else |
| 339 |
CONFIGURE_ARGS+= --disable-ffplay --disable-outdev=sdl |
| 340 |
.endif |
| 341 |
|
322 |
|
| 342 |
post-patch: |
323 |
post-patch: |
| 343 |
# {C,LD}FLAGS safeness |
324 |
# {C,LD}FLAGS safeness |
|
Lines 369-388
post-configure-THEORA-off:
Link Here
|
| 369 |
${WRKSRC}/config.mak |
350 |
${WRKSRC}/config.mak |
| 370 |
|
351 |
|
| 371 |
post-install: |
352 |
post-install: |
| 372 |
.for PROG in ${FFPROGS} |
353 |
(cd ${WRKSRC}/doc && ${COPYTREE_SHARE} \ |
| 373 |
@${MKDIR} ${STAGEDIR}${MAN1PREFIX}/man/man1 |
354 |
"${FFPROGS:S/$/*.1/}" ${STAGEDIR}${MAN1PREFIX}/man/man1) |
| 374 |
${INSTALL_MAN} ${WRKSRC}/doc/${PROG}*.1 ${STAGEDIR}${MAN1PREFIX}/man/man1/ |
355 |
(cd ${WRKSRC} && ${COPYTREE_SHARE} \ |
| 375 |
.endfor |
356 |
"${DOC_FILES}" ${STAGEDIR}${DOCSDIR}) |
| 376 |
@${MKDIR} ${STAGEDIR}${DOCSDIR} |
357 |
(cd ${WRKSRC}/doc && ${COPYTREE_SHARE} \ |
| 377 |
.for FILE in ${DOC_FILES} |
358 |
"${DOC_DOCFILES}" ${STAGEDIR}${DOCSDIR}) |
| 378 |
${INSTALL_DATA} ${WRKSRC}/${FILE} ${STAGEDIR}${DOCSDIR} |
|
|
| 379 |
.endfor |
| 380 |
.for FILE in ${DOC_DOCFILES} |
| 381 |
${INSTALL_DATA} ${WRKSRC}/doc/${FILE} ${STAGEDIR}${DOCSDIR} |
| 382 |
.endfor |
| 383 |
|
359 |
|
| 384 |
post-install-FFSERVER-on: |
360 |
post-install-FFSERVER-on: |
| 385 |
${INSTALL_DATA} ${WRKSRC}/doc/ffserver.conf \ |
361 |
${INSTALL_DATA} ${WRKSRC}/doc/ffserver.conf \ |
| 386 |
${STAGEDIR}${PREFIX}/etc/ffserver.conf.sample |
362 |
${STAGEDIR}${PREFIX}/etc/ffserver.conf.sample |
| 387 |
|
363 |
|
| 388 |
.include <bsd.port.post.mk> |
364 |
.include <bsd.port.mk> |