mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-24 00:45:52 +00:00
- Provide a comment about what we are reinplacing here for
- Fix a typo (NIPORTEXAMPLES -> NOPORTEXAMPLES) - Merge two options of cpio(1) so that line does not touch screen boundary Feature safe: yes
This commit is contained in:
parent
644fa5f909
commit
94d74c6da5
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=293797
@ -26,16 +26,18 @@ LDFLAGS+= ${PTHREAD_LIBS}
|
||||
MAN1= nickle.1
|
||||
|
||||
post-patch:
|
||||
@${REINPLACE_CMD} -e \
|
||||
'/^SUBDIRS/s|examples|| ; \
|
||||
s| -O2||' ${WRKSRC}/Makefile.in
|
||||
# Do not descend into "examples" subdirectory to prevent them being installed
|
||||
# under DATADIR (instead, we manually install them later in post-install into
|
||||
# EXAMPLESDIR; also remove extra -O2 since we provide our own CFLAGS.
|
||||
@${REINPLACE_CMD} -e '/^SUBDIRS/s|examples|| ; s| -O2||' \
|
||||
${WRKSRC}/Makefile.in
|
||||
|
||||
post-install:
|
||||
.if !defined(NIPORTEXAMPLES)
|
||||
.if !defined(NOPORTEXAMPLES)
|
||||
@${MKDIR} ${EXAMPLESDIR}
|
||||
@(cd ${WRKSRC}/examples && ${FIND} . ! \( -name "*Makefile*" -or \
|
||||
-name "*.sgml" \) | ${CPIO} -pdm -L -R ${SHAREOWN}:${SHAREGRP} \
|
||||
${EXAMPLESDIR})
|
||||
-name "*.sgml" \) | ${CPIO} -pdm -LR ${SHAREOWN}:${SHAREGRP} \
|
||||
${EXAMPLESDIR})
|
||||
@${FIND} ${EXAMPLESDIR} -type d | ${XARGS} ${CHMOD} a+rx
|
||||
@${FIND} ${EXAMPLESDIR} -type f | ${XARGS} ${CHMOD} ${SHAREMODE}
|
||||
.endif
|
||||
|
Loading…
Reference in New Issue
Block a user