1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-24 04:33:24 +00:00

- Respect NOPORTEXAMPLES

PR:		124757
Submitted by:	Angel Carpintero <ack@telefonica.net>
Reported by:	ionbot
This commit is contained in:
Martin Wilke 2008-06-19 14:49:48 +00:00
parent 36b97c9a05
commit b4ee4e602f
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=215281
2 changed files with 5 additions and 9 deletions

View File

@ -35,7 +35,7 @@ USE_GCC= 3.4+
MAN1= motion.1
PORTDOCS= CHANGELOG CREDITS README.FreeBSD README \
motion_guide.html
EXAMPLES= motion-dist.conf thread1.conf thread2.conf \
PORTEXAMPLES= motion-dist.conf thread1.conf thread2.conf \
thread3.conf thread4.conf
OPTIONS= PWCBSD "PWCBSD based Webcams (disables BKTR)" off \
@ -66,12 +66,13 @@ post-install:
${INSTALL_DATA} ${PREFIX}/etc/motion.conf.sample ${PREFIX}/etc/motion.conf
.endif
${INSTALL_SCRIPT} ${WRKSRC}/${PORTNAME}.init-FreeBSD.sh ${PREFIX}/etc/rc.d/${PORTNAME}
${MKDIR} ${EXAMPLESDIR}
.if !defined(NOPORTEXAMPLES)
.for f in ${EXAMPLES}
${MKDIR} ${EXAMPLESDIR}
.for f in ${PORTEXAMPLES}
${INSTALL_DATA} ${WRKSRC}/${f} ${EXAMPLESDIR}
.endfor
@${ECHO_MSG} "===> Examples are installed in ${EXAMPLESDIR}."
.endif
.if !defined(NOPORTDOCS)
@ -79,6 +80,7 @@ post-install:
.for f in ${PORTDOCS}
${INSTALL_DATA} ${WRKSRC}/${f} ${DOCSDIR}
.endfor
@${ECHO_MSG} "===> Docs are installed in ${DOCSDIR}."
.endif
.if defined(WITH_BKTR)

View File

@ -3,9 +3,3 @@ bin/motion
etc/motion.conf.sample
@exec [ -f %B/motion.conf ] || cp %B/%f %B/motion.conf
etc/rc.d/motion
%%EXAMPLESDIR%%/motion-dist.conf
%%EXAMPLESDIR%%/thread1.conf
%%EXAMPLESDIR%%/thread2.conf
%%EXAMPLESDIR%%/thread3.conf
%%EXAMPLESDIR%%/thread4.conf
@dirrm %%EXAMPLESDIR%%