Changeset View
Changeset View
Standalone View
Standalone View
head/Mk/Uses/perl5.mk
| Show First 20 Lines • Show All 268 Lines • ▼ Show 20 Lines | |||||
| .endif # !target(do-install) | .endif # !target(do-install) | ||||
| .endif # ! USES=gmake | .endif # ! USES=gmake | ||||
| .endif # modbuild | .endif # modbuild | ||||
| PACKLIST_DIR?= ${PREFIX}/${SITE_ARCH_REL}/auto | PACKLIST_DIR?= ${PREFIX}/${SITE_ARCH_REL}/auto | ||||
| # In all those, don't use - before the command so that the user does | # In all those, don't use - before the command so that the user does | ||||
| # not wonder what has been ignored by this message "*** Error code 1 (ignored)" | # not wonder what has been ignored by this message "*** Error code 1 (ignored)" | ||||
| _USES_install+= 560:fix-perl-things | |||||
| fix-perl-things: | fix-perl-things: | ||||
| # Remove STAGEDIR from .packlist and add the file to the plist. | # Remove STAGEDIR from .packlist and add the file to the plist. | ||||
| @(if [ -d ${STAGEDIR}${PACKLIST_DIR} ] ; then \ | @(if [ -d ${STAGEDIR}${PACKLIST_DIR} ] ; then \ | ||||
| ${FIND} ${STAGEDIR}${PACKLIST_DIR} -name .packlist | while read f ; do \ | ${FIND} ${STAGEDIR}${PACKLIST_DIR} -name .packlist | while read f ; do \ | ||||
| ${SED} -i '' 's|^${STAGEDIR}||' "$$f"; \ | ${SED} -i '' 's|^${STAGEDIR}||' "$$f"; \ | ||||
| ${ECHO} $$f | ${SED} -e 's|^${STAGEDIR}||' >> ${TMPPLIST}; \ | ${ECHO} $$f | ${SED} -e 's|^${STAGEDIR}||' >> ${TMPPLIST}; \ | ||||
| done \ | done \ | ||||
| fi) || : | fi) || : | ||||
| Show All 30 Lines | |||||