1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-24 09:25:01 +00:00

- Switch to options helpers

- Fix shebangs

Approved by:	portmgr blanket
This commit is contained in:
Dmitry Marakasov 2015-09-23 18:52:19 +00:00
parent 8e3e878a3d
commit 192f681a13
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=397631

View File

@ -3,8 +3,9 @@
PORTNAME= lives
PORTVERSION= 2.4.2
PORTREVISION= 1
CATEGORIES= multimedia
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/${PORTVERSION}/
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/${PORTVERSION}/
MAINTAINER= pawel@FreeBSD.org
COMMENT= Video editing system
@ -44,7 +45,8 @@ WRKSRC= ${WRKDIR}/${DISTNAME:tl}
USES= ghostscript:run libtool pathfix perl5 pkgconfig python \
shebangfix tar:bzip2
SHEBANG_FILES= build-lives-rfx-plugin build-lives-rfx-plugin-multi \
smogrify tools/autolives.pl
smogrify tools/autolives.pl lives-plugins/plugins/encoders/*_encoder \
lives-plugins/plugins/playback/audiostream/audiostreamer.pl
GNU_CONFIGURE= yes
USE_CSTD= gnu89
USE_GNOME= gtk30 intltool
@ -71,17 +73,14 @@ DOXYGEN_BUILD_DEPENDS= doxygen:${PORTSDIR}/devel/doxygen
DOXYGEN_CONFIGURE_OFF= --disable-doxygen
FREI0R_BUILD_DEPENDS= frei0r>0:${PORTSDIR}/graphics/frei0r
FREI0R_RUN_DEPENDS= frei0r>0:${PORTSDIR}/graphics/frei0r
FREI0R_CONFIGURE_ENV_OFF= ac_cv_header_frei0r_h=no
MATROSKA_RUN_DEPENDS= mkvmerge:${PORTSDIR}/multimedia/mkvtoolnix
NLS_USES= gettext
NLS_CONFIGURE_OFF= --disable-nls
.include <bsd.port.options.mk>
.if ! ${PORT_OPTIONS:MFREI0R}
CONFIGURE_ENV+= ac_cv_header_frei0r_h=no
.endif
post-patch:
@${REINPLACE_CMD} -e 's|${perl_OLD_CMD}|${perl_CMD}|' \
${WRKSRC}/build-lives-rfx-plugin
@${REINPLACE_CMD} -e 's| install-docDATA||g; s|-$$(VERSION)||g' \
${WRKSRC}/Makefile.in
@${REINPLACE_CMD} -e 's|: install-data-local |: |g; s|-ldl||' \
@ -95,17 +94,15 @@ post-patch:
@${REINPLACE_CMD} '/selectRandom/d' \
${WRKSRC}/lives-plugins/weed-plugins/projectM.cpp
pre-build:
.if ${PORT_OPTIONS:MNLS}
pre-build-NLS-on:
@cd ${WRKSRC}/po && ${DO_MAKE_BUILD} update-po
.endif
post-install:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${DOC_FILES:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}
.if ${PORT_OPTIONS:MDOXYGEN}
post-install-DOXYGEN-on:
@(cd ${STAGEDIR}${PREFIX} && ${FIND} ${DOCSDIR:S|${PREFIX}/||}/html \
! -type d >> ${TMPPLIST})
.endif
.include <bsd.port.mk>