Use the FIND and XARGS macros introduced in bsd.port.mk 1.391.

This commit is contained in:
Trevor Johnson 2003-11-13 14:45:08 +00:00
parent 3a5afbdcc8
commit e99ceadaf6
97 changed files with 190 additions and 163 deletions

View File

@ -41,7 +41,7 @@ post-install:
done
.if !defined(NOPORTDOCS)
@${MKDIR} ${DOCDIR}
@cd ${WRKSRC}/doc && find * | \
@cd ${WRKSRC}/doc && ${FIND} * | \
${CPIO} ${SHAREOWN}:${SHAREGRP} ${DOCDIR}
.endif
@${SED} -e "s#%%PREFIX%%#${PREFIX}#" ${PKGMESSAGE}

View File

@ -115,7 +115,7 @@ post-install:
.endfor
@ ${MKDIR} ${EXAMPLESDIR}
@ ${INSTALL_DATA} ${WRKSRC}/Doc/examples/* ${EXAMPLESDIR}
@ cd ${WRKSRC}/Scripts && find * \
@ cd ${WRKSRC}/Scripts && ${FIND} * \
| ${CPIO} ${SHAREOWN}:${SHAREGRP} ${EXAMPLESDIR}
.if defined(WITH_CORBA)
@ ${MKDIR} ${DOCSDIR}/BioCorba

View File

@ -46,7 +46,7 @@ post-install:
@ ${INSTALL_DATA} ${WRKSRC}/doc/* ${DOCSDIR}
@ ${MKDIR} ${EXAMPLESDIR}
@ ${RMDIR} ${WRKSRC}/example/aln 2>/dev/null || ${TRUE}
@ cd ${WRKSRC}/example && find * \
@ cd ${WRKSRC}/example && ${FIND} * \
| cpio --quiet -pdum -R ${SHAREOWN}:${SHAREGRP} ${EXAMPLESDIR}
@ ${SED} -e 's#%%DATADIR%%#${DATADIR}#' ${.CURDIR}/pkg-message \
> ${PKGMESSAGE}

View File

@ -39,7 +39,7 @@ CPIO?= /usr/bin/cpio --quiet -pdum -R
do-install:
@${MKDIR} ${DATADIR}
@ cd ${WRKSRC} && ${FIND} * -type f -print | ${CPIO} ${BINOWN}:${BINGRP} ${DATADIR}
@ cd ${DATADIR} && ${FIND} * -type d -print | xargs ${CHMOD} 0755
@ cd ${DATADIR} && ${FIND} * -type d -print | ${XARGS} ${CHMOD} 0755
@${LN} -sf ${DATADIR}/bin/eagle ${PREFIX}/bin/eagle
@${INSTALL_MAN} ${DATADIR}/man/eagle.1 ${PREFIX}/man/man1

View File

@ -39,7 +39,7 @@ CPIO?= /usr/bin/cpio --quiet -pdum -R
do-install:
@${MKDIR} ${DATADIR}
@ cd ${WRKSRC} && ${FIND} * -type f -print | ${CPIO} ${BINOWN}:${BINGRP} ${DATADIR}
@ cd ${DATADIR} && ${FIND} * -type d -print | xargs ${CHMOD} 0755
@ cd ${DATADIR} && ${FIND} * -type d -print | ${XARGS} ${CHMOD} 0755
@${LN} -sf ${DATADIR}/bin/eagle ${PREFIX}/bin/eagle
@${INSTALL_MAN} ${DATADIR}/man/eagle.1 ${PREFIX}/man/man1

View File

@ -26,6 +26,6 @@ BUILD_DEPENDS= xmkmf:${PORTSDIR}/devel/imake-4 \
WRKSRC= ${WRKDIR}/${PORTNAME}
post-extract:
find ${WRKSRC} -name CVS | xargs ${RM} -rf
${FIND} ${WRKSRC} -name CVS | ${XARGS} ${RM} -rf
.include <bsd.port.mk>

View File

@ -29,7 +29,7 @@ BROKEN= "Does not build"
.endif
post-extract:
find ${WRKSRC} -name CVS | xargs ${RM} -rf
${FIND} ${WRKSRC} -name CVS | ${XARGS} ${RM} -rf
post-install:
@echo

View File

@ -31,7 +31,7 @@ MAN1= halifax.1 ghfaxviewer.1
pre-patch:
@${PERL} -pi -e 's|-lpthread|${PTHREAD_LIBS}|g ; \
s|DATADIRNAME=lib|DATADIRNAME=share|g' ${WRKSRC}/configure
@find ${WRKSRC} -name "Makefile.in*" | xargs ${PERL} -pi -e \
@${FIND} ${WRKSRC} -name "Makefile.in*" | ${XARGS} ${PERL} -pi -e \
's|\$\(datadir\)/gnome/|\$\(datadir\)/|g ; \
s|\$\(datadir\)/locale|\$\(prefix\)/share/locale|g'

View File

@ -19,7 +19,7 @@ WRKSRC= ${WRKDIR}/${PORTNAME}
NO_BUILD= YES
post-extract:
find ${WRKSRC} -name '*~' -delete
${FIND} ${WRKSRC} -name '*~' -delete
do-install:
(\

View File

@ -25,7 +25,7 @@ INSTALLS_SHLIB= yes
CONFIGURE_ENV= CPPFLAGS=-I${LOCALBASE}/include LDFLAGS=-L${LOCALBASE}/lib
post-extract:
@find ${WRKSRC} -name "Makefile.in" | \
xargs ${REINPLACE_CMD} -e 's|-release \$$\(LT_RELEASE\)||g'
@${FIND} ${WRKSRC} -name "Makefile.in" | \
${XARGS} ${REINPLACE_CMD} -e 's|-release \$$\(LT_RELEASE\)||g'
.include <bsd.port.mk>

View File

@ -31,7 +31,7 @@ CONFIGURE_TARGET= --target=${MACHINE_ARCH}-unknown-freebsd${OSREL}
PLIST_SUB= VERSION=${PORTVERSION}
post-patch:
@find ${WRKSRC} -name "Makefile.in" | xargs ${REINPLACE_CMD} -e \
@${FIND} ${WRKSRC} -name "Makefile.in" | ${XARGS} ${REINPLACE_CMD} -e \
's|share/idl|share/gnome/idl|g'
.include <bsd.port.mk>

View File

@ -185,7 +185,8 @@ post-install:
# This is for the maintainer only...
make-plist:
/usr/bin/find foo -type f -or -type l | /usr/bin/cut -d / -f 2- | /usr/bin/sort > ${.CURDIR}/pkg-plist.new
${FIND} foo -type f -or -type l | /usr/bin/cut -d / -f 2- | \
/usr/bin/sort > ${.CURDIR}/pkg-plist.new
/usr/bin/perl -i -ne 'if (m#share/doc/#) { print "%%PORTDOCS%%", $$_; } else { print $$_; }' ${.CURDIR}/pkg-plist.new
.include <bsd.port.post.mk>

View File

@ -38,7 +38,7 @@ do-build:
do-install:
@${MKDIR} ${PGACCESSDIR} ; \
cd ${WRKSRC} ;\
${TAR} cf - `find * ! \( -path win32\* -o -path doc\* \)` | \
${TAR} cf - `${FIND} * ! \( -path win32\* -o -path doc\* \)` | \
( cd ${PGACCESSDIR}; ${TAR} xf - ) ; \
${CHOWN} -R 0:0 ${PGACCESSDIR}
.for file in pgaccess pgmonitor

View File

@ -27,10 +27,11 @@ CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
pre-patch:
@${PERL} -pi -e 's^-l(pthread|c_r)^${PTHREAD_LIBS}^g ; \
s|DATADIRNAME=lib|DATADIRNAME=share|g' ${WRKSRC}/configure
@find ${WRKSRC} -name "Makefile.in" | xargs ${PERL} -pi -e \
@${FIND} ${WRKSRC} -name "Makefile.in" | ${XARGS} ${PERL} -pi -e \
's^\$\(datadir\)/gnome/^\$\(datadir\)/^g ; \
s^\$\(datadir\)/locale^\$\(prefix\)/share/locale^g'
@find ${WRKSRC}/src/Plugins -name "Makefile.in" | xargs ${PERL} -pi -e \
@${FIND} ${WRKSRC}/src/Plugins -name "Makefile.in" | \
${XARGS} ${PERL} -pi -e \
's|_la_LDFLAGS =|_la_LDFLAGS = -avoid-version|g'
.include <bsd.port.mk>

View File

@ -25,10 +25,10 @@ USE_GMAKE= yes
USE_REINPLACE= yes
do-patch:
for i in `find ${WRKSRC} -name 'Makefile'`; do \
for i in `${FIND} ${WRKSRC} -name 'Makefile'`; do \
${REINPLACE_CMD} -e '/gnatmake/!s/make\ /gmake\ /' $${i}; \
done
for i in `find ${WRKSRC} -name 'make.conf_x11'`; do \
for i in `${FIND} ${WRKSRC} -name 'make.conf_x11'`; do \
${REINPLACE_CMD} \
-e 's,/usr/local,${LOCALBASE},g' \
-e 's,/usr/X11R6,${X11BASE},g' \
@ -67,33 +67,40 @@ do-build:
do-install:
${MKDIR} ${PREFIX}/lib/adaSDL
for i in `cat pkg-plist|grep "lib/adaSDL/"|grep -v framebuffer|grep -v _mixer|grep -v _image|sed "s/lib\/adaSDL\///"`; do \
find ${WRKSRC}/AdaSDL/binding -name $${i} -maxdepth 1|${INSTALL_DATA} `grep ""` ${PREFIX}/lib/adaSDL; \
${FIND} ${WRKSRC}/AdaSDL/binding -name $${i} -maxdepth 1 | \
${INSTALL_DATA} `grep ""` ${PREFIX}/lib/adaSDL; \
done
for i in `cat pkg-plist|grep "lib/adaSDL/"|grep framebuffer|sed "s/lib\/adaSDL\///"`; do \
find ${WRKSRC}/AdaSDL_framebuff -name $${i} -maxdepth 1|${INSTALL_DATA} `grep ""` ${PREFIX}/lib/adaSDL; \
${FIND} ${WRKSRC}/AdaSDL_framebuff -name $${i} -maxdepth 1 | \
${INSTALL_DATA} `grep ""` ${PREFIX}/lib/adaSDL; \
done
${MKDIR} ${PREFIX}/share/adaSDL
${MKDIR} ${PREFIX}/share/adaSDL/examples
for i in `cat pkg-plist|grep "share/adaSDL/examples"|grep -v dirrm|sed "s/share\/adaSDL\/examples\///"`; do \
find ${WRKSRC}/AdaSDL_framebuff/sdltests -name $${i} -maxdepth 1|${INSTALL_DATA} `grep ""` ${PREFIX}/share/adaSDL/examples; \
${FIND} ${WRKSRC}/AdaSDL_framebuff/sdltests -name $${i} \
-maxdepth 1 | ${INSTALL_DATA} \
`grep ""` ${PREFIX}/share/adaSDL/examples; \
done
.if !defined(WITHOUT_SDL_IMAGE)
for i in `cat pkg-plist|grep "lib/adaSDL/"|grep _image|sed "s/lib\/adaSDL\///"`; do \
find ${WRKSRC}/AdaSDL_image -name $${i} -maxdepth 1|${INSTALL_DATA} `grep ""` ${PREFIX}/lib/adaSDL; \
${FIND} ${WRKSRC}/AdaSDL_image -name $${i} -maxdepth 1 | \
${INSTALL_DATA} `grep ""` ${PREFIX}/lib/adaSDL; \
done
.endif
.if !defined(WITHOUT_SDL_MIXER)
for i in `cat pkg-plist|grep "lib/adaSDL/"|grep _mixer|sed "s/lib\/adaSDL\///"`; do \
find ${WRKSRC}/AdaSDL_mixer -name $${i} -maxdepth 1|${INSTALL_DATA} `grep ""` ${PREFIX}/lib/adaSDL; \
${FIND} ${WRKSRC}/AdaSDL_mixer -name $${i} -maxdepth 1 | \
${INSTALL_DATA} `grep ""` ${PREFIX}/lib/adaSDL; \
done
.endif
.if !defined(WITHOUT_OPENGL)
${MKDIR} ${PREFIX}/lib/adaGL
for i in `cat pkg-plist|grep "/adaGL/"|sed "s/lib\/adaGL\///"`; do \
find ${WRKSRC}/AdaGL/GL -name $${i} -maxdepth 1|${INSTALL_DATA} `grep ""` ${PREFIX}/lib/adaGL; \
${FIND} ${WRKSRC}/AdaGL/GL -name $${i} -maxdepth 1 | \
${INSTALL_DATA} `grep ""` ${PREFIX}/lib/adaGL; \
done
.endif

View File

@ -75,11 +75,11 @@ pre-everything::
@${ECHO_MSG} ""
post-patch:
@find -d ${WRKSRC} -name CVS -type d -exec ${RM} -rf {} \;
@find -d ${WRKSRC} -name sgml -type d -exec ${RM} -rf {} \;
@find ${WRKSRC} -name .cvsignore -type f -exec ${RM} -f {} \;
@find ${WRKSRC} -name README.docs -type f -exec ${RM} -f {} \;
@find ${WRKSRC} -name \*.orig -type f -exec ${RM} -f {} \;
@${FIND} -d ${WRKSRC} -name CVS -type d -exec ${RM} -rf {} \;
@${FIND} -d ${WRKSRC} -name sgml -type d -exec ${RM} -rf {} \;
@${FIND} ${WRKSRC} -name .cvsignore -type f -exec ${RM} -f {} \;
@${FIND} ${WRKSRC} -name README.docs -type f -exec ${RM} -f {} \;
@${FIND} ${WRKSRC} -name \*.orig -type f -exec ${RM} -f {} \;
.for i in ${BONSAIPERLWC}
@${REINPLACE_CMD} -e 's@#!/usr/bonsaitools/bin/perl@#!/usr/bin/perl@' \
${WRKSRC}/$i
@ -88,16 +88,16 @@ post-patch:
@${REINPLACE_CMD} -e 's@/usr/lib/sendmail@/usr/sbin/sendmail@' \
${WRKSRC}/$i
.endfor
@find ${WRKSRC} -name \*.bak -type f -exec ${RM} -f {} \;
@${FIND} ${WRKSRC} -name \*.bak -type f -exec ${RM} -f {} \;
pre-install:
@find ${WRKSRC}/docs -type d -exec ${CHMOD} 755 {} \;
@find ${WRKSRC}/docs -type f -exec ${CHMOD} ${MANMODE} {} \;
@find ${WRKSRC}/docs -type f -exec ${CHOWN} root:wheel {} \;
@${FIND} ${WRKSRC}/docs -type d -exec ${CHMOD} 755 {} \;
@${FIND} ${WRKSRC}/docs -type f -exec ${CHMOD} ${MANMODE} {} \;
@${FIND} ${WRKSRC}/docs -type f -exec ${CHOWN} root:wheel {} \;
do-install:
${MKDIR} ${PREFIX}/${BUGZILLADIR}
find ${WRKSRC} \! -type d -maxdepth 1 \! -name UPGRADING* -exec \
${FIND} ${WRKSRC} \! -type d -maxdepth 1 \! -name UPGRADING* -exec \
${INSTALL_SCRIPT} {} ${PREFIX}/${BUGZILLADIR} \;
${TAR} -C ${WRKSRC} -cf - template css | ${TAR} --unlink -C ${PREFIX}/${BUGZILLADIR} -xf -
.if !defined(NOPORTDOCS)

View File

@ -75,11 +75,11 @@ pre-everything::
@${ECHO_MSG} ""
post-patch:
@find -d ${WRKSRC} -name CVS -type d -exec ${RM} -rf {} \;
@find -d ${WRKSRC} -name sgml -type d -exec ${RM} -rf {} \;
@find ${WRKSRC} -name .cvsignore -type f -exec ${RM} -f {} \;
@find ${WRKSRC} -name README.docs -type f -exec ${RM} -f {} \;
@find ${WRKSRC} -name \*.orig -type f -exec ${RM} -f {} \;
@${FIND} -d ${WRKSRC} -name CVS -type d -exec ${RM} -rf {} \;
@${FIND} -d ${WRKSRC} -name sgml -type d -exec ${RM} -rf {} \;
@${FIND} ${WRKSRC} -name .cvsignore -type f -exec ${RM} -f {} \;
@${FIND} ${WRKSRC} -name README.docs -type f -exec ${RM} -f {} \;
@${FIND} ${WRKSRC} -name \*.orig -type f -exec ${RM} -f {} \;
.for i in ${BONSAIPERLWC}
@${REINPLACE_CMD} -e 's@#!/usr/bonsaitools/bin/perl@#!/usr/bin/perl@' \
${WRKSRC}/$i
@ -88,16 +88,16 @@ post-patch:
@${REINPLACE_CMD} -e 's@/usr/lib/sendmail@/usr/sbin/sendmail@' \
${WRKSRC}/$i
.endfor
@find ${WRKSRC} -name \*.bak -type f -exec ${RM} -f {} \;
@${FIND} ${WRKSRC} -name \*.bak -type f -exec ${RM} -f {} \;
pre-install:
@find ${WRKSRC}/docs -type d -exec ${CHMOD} 755 {} \;
@find ${WRKSRC}/docs -type f -exec ${CHMOD} ${MANMODE} {} \;
@find ${WRKSRC}/docs -type f -exec ${CHOWN} root:wheel {} \;
@${FIND} ${WRKSRC}/docs -type d -exec ${CHMOD} 755 {} \;
@${FIND} ${WRKSRC}/docs -type f -exec ${CHMOD} ${MANMODE} {} \;
@${FIND} ${WRKSRC}/docs -type f -exec ${CHOWN} root:wheel {} \;
do-install:
${MKDIR} ${PREFIX}/${BUGZILLADIR}
find ${WRKSRC} \! -type d -maxdepth 1 \! -name UPGRADING* -exec \
${FIND} ${WRKSRC} \! -type d -maxdepth 1 \! -name UPGRADING* -exec \
${INSTALL_SCRIPT} {} ${PREFIX}/${BUGZILLADIR} \;
${TAR} -C ${WRKSRC} -cf - template css | ${TAR} --unlink -C ${PREFIX}/${BUGZILLADIR} -xf -
.if !defined(NOPORTDOCS)

View File

@ -75,11 +75,11 @@ pre-everything::
@${ECHO_MSG} ""
post-patch:
@find -d ${WRKSRC} -name CVS -type d -exec ${RM} -rf {} \;
@find -d ${WRKSRC} -name sgml -type d -exec ${RM} -rf {} \;
@find ${WRKSRC} -name .cvsignore -type f -exec ${RM} -f {} \;
@find ${WRKSRC} -name README.docs -type f -exec ${RM} -f {} \;
@find ${WRKSRC} -name \*.orig -type f -exec ${RM} -f {} \;
@${FIND} -d ${WRKSRC} -name CVS -type d -exec ${RM} -rf {} \;
@${FIND} -d ${WRKSRC} -name sgml -type d -exec ${RM} -rf {} \;
@${FIND} ${WRKSRC} -name .cvsignore -type f -exec ${RM} -f {} \;
@${FIND} ${WRKSRC} -name README.docs -type f -exec ${RM} -f {} \;
@${FIND} ${WRKSRC} -name \*.orig -type f -exec ${RM} -f {} \;
.for i in ${BONSAIPERLWC}
@${REINPLACE_CMD} -e 's@#!/usr/bonsaitools/bin/perl@#!/usr/bin/perl@' \
${WRKSRC}/$i
@ -88,16 +88,16 @@ post-patch:
@${REINPLACE_CMD} -e 's@/usr/lib/sendmail@/usr/sbin/sendmail@' \
${WRKSRC}/$i
.endfor
@find ${WRKSRC} -name \*.bak -type f -exec ${RM} -f {} \;
@${FIND} ${WRKSRC} -name \*.bak -type f -exec ${RM} -f {} \;
pre-install:
@find ${WRKSRC}/docs -type d -exec ${CHMOD} 755 {} \;
@find ${WRKSRC}/docs -type f -exec ${CHMOD} ${MANMODE} {} \;
@find ${WRKSRC}/docs -type f -exec ${CHOWN} root:wheel {} \;
@${FIND} ${WRKSRC}/docs -type d -exec ${CHMOD} 755 {} \;
@${FIND} ${WRKSRC}/docs -type f -exec ${CHMOD} ${MANMODE} {} \;
@${FIND} ${WRKSRC}/docs -type f -exec ${CHOWN} root:wheel {} \;
do-install:
${MKDIR} ${PREFIX}/${BUGZILLADIR}
find ${WRKSRC} \! -type d -maxdepth 1 \! -name UPGRADING* -exec \
${FIND} ${WRKSRC} \! -type d -maxdepth 1 \! -name UPGRADING* -exec \
${INSTALL_SCRIPT} {} ${PREFIX}/${BUGZILLADIR} \;
${TAR} -C ${WRKSRC} -cf - template css | ${TAR} --unlink -C ${PREFIX}/${BUGZILLADIR} -xf -
.if !defined(NOPORTDOCS)

View File

@ -24,7 +24,7 @@ DOCDIR=${PREFIX}/share/doc/ccdoc
pre-patch:
@${ECHO} "Stripping ^M from all the files..."
@find ${WRKSRC} -type f | xargs perl -pi -e 's/\r//'
@${FIND} ${WRKSRC} -type f | ${XARGS} perl -pi -e 's/\r//'
do-build:
(cd ${WRKSRC}/ccdoc_dev/libjdl/src; ${PERL} mk.pl opt)

View File

@ -48,7 +48,7 @@ MAN1= directfb-csource.1 dfbg.1
MAN5= directfbrc.5
post-patch:
@find ${WRKSRC} -name Makefile.in | xargs ${REINPLACE_CMD} -e \
@${FIND} ${WRKSRC} -name Makefile.in | ${XARGS} ${REINPLACE_CMD} -e \
's|[(]libdir[)]/pkgconfig|(prefix)/libdata/pkgconfig|g'
.include <bsd.port.mk>

View File

@ -45,7 +45,7 @@ post-build:
post-install:
@ ${MKDIR} ${FNORB_DIR}/script
@ cd ${WRKSRC} && find *.py *.pyc *.pyo compiler cos orb parser \
@ cd ${WRKSRC} && ${FIND} *.py *.pyc *.pyo compiler cos orb parser \
script/*.py script/*.pyc script/*.pyo \! -name \*.orig \
| ${CPIO} ${BINOWN}:${BINGRP} ${FNORB_DIR}
@ ${MKDIR} ${PREFIX}/bin
@ -56,10 +56,10 @@ post-install:
${PREFIX}/etc/fnorb.cfg.sample
.if !defined(NOPORTDOCS)
@ ${MKDIR} ${EXAMPLESDIR}
@ cd ${WRKSRC}/examples && find * \
@ cd ${WRKSRC}/examples && ${FIND} * \
| ${CPIO} ${SHAREOWN}:${SHAREGRP} ${EXAMPLESDIR}
@ ${MKDIR} ${DOCSDIR}
@ cd ${WRKSRC}/doc && find . \
@ cd ${WRKSRC}/doc && ${FIND} . \
| ${CPIO} ${SHAREOWN}:${SHAREGRP} ${DOCSDIR}
@ ${CHMOD} -R u-x ${DOCSDIR} && ${CHMOD} -R u+X ${DOCSDIR}
.for file in ANNOUNCE CHANGES README LICENSE.HTML

View File

@ -28,7 +28,7 @@ USE_GNOME+= gnomelibs
.endif
pre-build:
find ${WRKSRC} -name Makefile | xargs ${PERL} \
${FIND} ${WRKSRC} -name Makefile | ${XARGS} ${PERL} \
-pi -e "s@gtk-config@${GTK_CONFIG}@g"
.include <bsd.port.post.mk>

View File

@ -48,7 +48,7 @@ LIB_DEPENDS+= fam.0:${PORTSDIR}/devel/fam
.endif
post-patch:
@${FIND} ${WRKSRC} -name "*info.in" | xargs ${REINPLACE_CMD} -e \
@${FIND} ${WRKSRC} -name "*info.in" | ${XARGS} ${REINPLACE_CMD} -e \
's|\@datadir\@/gnome|\@datadir\@|g'
@${REINPLACE_CMD} -e 's|%%LOCALBASE%%|${LOCALBASE}|g' \
${WRKSRC}/libgnomevfs/Makefile.in \

View File

@ -34,7 +34,7 @@ CONFIGURE_ENV= CPPFLAGS="${PTHREAD_CFLAGS} -I${LOCALBASE}/include" \
BSD_PTHREAD_LIBS=${PTHREAD_LIBS}
post-patch:
@find ${WRKSRC} -name 'xml-i18n-*' | xargs ${REINPLACE_CMD} -e \
@${FIND} ${WRKSRC} -name 'xml-i18n-*' | ${XARGS} ${REINPLACE_CMD} -e \
's|/usr/local/bin/perl|${PERL}|g'
@${REINPLACE_CMD} -e 's|\%\%LOCALBASE\%\%|${LOCALBASE}|g' \
${WRKSRC}/libgnomevfs/libcharset/Makefile.in

View File

@ -34,7 +34,7 @@ CONFIGURE_ENV= CPPFLAGS="${PTHREAD_CFLAGS} -I${LOCALBASE}/include" \
BSD_PTHREAD_LIBS=${PTHREAD_LIBS}
post-patch:
@find ${WRKSRC} -name 'xml-i18n-*' | xargs ${REINPLACE_CMD} -e \
@${FIND} ${WRKSRC} -name 'xml-i18n-*' | ${XARGS} ${REINPLACE_CMD} -e \
's|/usr/local/bin/perl|${PERL}|g'
@${REINPLACE_CMD} -e 's|\%\%LOCALBASE\%\%|${LOCALBASE}|g' \
${WRKSRC}/libgnomevfs/libcharset/Makefile.in

View File

@ -48,7 +48,7 @@ LIB_DEPENDS+= fam.0:${PORTSDIR}/devel/fam
.endif
post-patch:
@${FIND} ${WRKSRC} -name "*info.in" | xargs ${REINPLACE_CMD} -e \
@${FIND} ${WRKSRC} -name "*info.in" | ${XARGS} ${REINPLACE_CMD} -e \
's|\@datadir\@/gnome|\@datadir\@|g'
@${REINPLACE_CMD} -e 's|%%LOCALBASE%%|${LOCALBASE}|g' \
${WRKSRC}/libgnomevfs/Makefile.in \

View File

@ -47,7 +47,8 @@ pre-install:
do-install:
${RM} -fr ${DOCSDIR}
${MKDIR} ${DOCSDIR}
cd ${WRKSRC}; find . | ${CPIO} -pdmv -R ${DOCOWN}:${DOCGRP} ${DOCSDIR}
cd ${WRKSRC}; ${FIND} . \
| ${CPIO} -pdmv -R ${DOCOWN}:${DOCGRP} ${DOCSDIR}
${CHMOD} -R ugo-w,ugo+rX ${DOCSDIR}
.include <bsd.port.post.mk>

View File

@ -32,7 +32,7 @@ CFLAGS+= -O0
.endif
pre-configure:
@find ${WRKSRC} -name "Makefile.in" | xargs ${PERL} -pi -e \
@${FIND} ${WRKSRC} -name "Makefile.in" | ${XARGS} ${PERL} -pi -e \
's|\$$\{prefix\}/moonshine|\$$\{prefix\}/share/moonshine| ; \
s|\@INSTBIN\@|${PREFIX}/bin| ; s|moc -o|\$$\(MOC\) -o|'
@${PERL} -pi -e 's|/usr/share/moonshine|${PREFIX}/share/moonshine|' \

View File

@ -49,7 +49,7 @@ post-patch:
-e 's,!!PERFORCE_PORT!!,${PERFORCE_PORT},g;' \
-e 's,!!FQDN!!,${FQDN},g;' \
${WRKSRC}/${PORTNAME}/P4DB.conf.sample
find ${WRKSRC}/${PORTNAME} -name '*.orig' -delete
${FIND} ${WRKSRC}/${PORTNAME} -name '*.orig' -delete
do-install:
${MKDIR} ${P4DB_HOME}/www

View File

@ -22,7 +22,7 @@ MAN3= Class::Contract.3 Class::Contract::Production.3
post-patch:
@${FIND} ${WRKSRC} -type f -name "*.p[lm]" | \
xargs ${PERL} -pi -e 's/\x0d//g;'
${XARGS} ${PERL} -pi -e 's/\x0d//g;'
pre-configure:
${MKDIR} ${WRKSRC}/examples

View File

@ -26,7 +26,7 @@ pre-patch:
s|DATADIRNAME=lib|DATADIRNAME=share|g ; \
s|USE_INCLUDED_LIBINTL=yes|#USE_INCLUDED_LIBINTL=yes|g ; \
s|\$$\(top_builddir\)/intl/libintl.a|-lintl|g' ${WRKSRC}/configure
@find ${WRKSRC} -name "Makefile.in" | xargs ${PERL} -pi -e \
@${FIND} ${WRKSRC} -name "Makefile.in" | ${XARGS} ${PERL} -pi -e \
's|\$\(datadir\)/gnome/|\$\(datadir\)/|g ; \
s|\$\(datadir\)/locale|\$\(prefix\)/share/locale|g'

View File

@ -47,7 +47,7 @@ EXAMPLESDIR= ${PREFIX}/share/examples/omniORBpy
pre-configure:
@ ${MKDIR} ${CONFIGURE_WRKSRC}
@ cd ${OMNIORB_WRKSRC} && find idl | ${CPIO} ${WRKSRC}
@ cd ${OMNIORB_WRKSRC} && ${FIND} idl | ${CPIO} ${WRKSRC}
post-patch:
@${REINPLACE_CMD} -Ee 's#-pthread|-lc_r#${PTHREAD_LIBS}#' \
@ -61,7 +61,7 @@ pre-install:
@ ${INSTALL_DATA} ${WRKSRC}/doc/omniORBpy/* ${DOCSDIR}/html
@ ${INSTALL_DATA} ${WRKSRC}/doc/tex/* ${DOCSDIR}/tex
@ ${MKDIR} ${EXAMPLESDIR}
@ cd ${WRKSRC}/examples && find . \
@ cd ${WRKSRC}/examples && ${FIND} . \
| ${CPIO} -R ${SHAREOWN}:${SHAREGRP} ${EXAMPLESDIR}
.endif

View File

@ -39,7 +39,7 @@ post-patch:
s|include/qaction.h|include/${QTNAME}/qaction.h|g ; \
s|qtdir/include$$|qtdir/include/${QTNAME}|g ; \
s|-lqt|-l${QTNAME}|g' ${WRKSRC}/configure
@find ${WRKSRC} -name "Makefile.in" | xargs ${PERL} -pi -e \
@${FIND} ${WRKSRC} -name "Makefile.in" | ${XARGS} ${PERL} -pi -e \
's|doc po images|doc images|g ; \
s|prefix\)/qtez/plugins|prefix\)/lib/qtez/plugins|g ; \
s|prefix\)/qtez/img|QTEZ\)/img|g'

View File

@ -71,14 +71,15 @@ PLIST_SUB+= GNU_ARCH=${GNU_ARCH} OPSYS=${OPSYS:L}
NO_FILTER_SHLIBS= yes
post-extract:
find ${WRKSRC}/ -type f -name '.cvsignore' -delete
${FIND} ${WRKSRC}/ -type f -name '.cvsignore' -delete
post-patch:
${RUBY} -i~ -p \
-e 'gsub(/-lpthread/, "-pthread");' \
-e 'gsub(/-lgmodel/, "");' \
${WRKSRC}/Source/${MAKEFILE}
find ${WRKSRC}/ -type f | xargs ${RUBY} -i -pe 'gsub(/ ruby -/, " ${RUBY} -")'
${FIND} ${WRKSRC}/ -type f | \
${XARGS} ${RUBY} -i -pe 'gsub(/ ruby -/, " ${RUBY} -")'
post-install:
.if !defined(NOPORTDOCS)

View File

@ -25,7 +25,9 @@ do-build:
do-install:
${MKDIR} ${DOCSDIR}
cd ${WRKSRC} && find Examples Doc -type d -exec ${INSTALL} -d ${DOCSDIR}/{} \;
cd ${WRKSRC} && find Examples Doc -type f -exec ${INSTALL_DATA} {} ${DOCSDIR}/{} \;
cd ${WRKSRC} && ${FIND} Examples Doc -type d \
-exec ${INSTALL} -d ${DOCSDIR}/{} \;
cd ${WRKSRC} && ${FIND} Examples Doc -type f \
-exec ${INSTALL_DATA} {} ${DOCSDIR}/{} \;
.include <bsd.port.mk>

View File

@ -23,7 +23,7 @@ WRKSRC= ${WRKDIR}/tls1.4
pre-patch:
# Fixing the end-of-lines:
for f in `find ${WRKSRC}/.. -type f` ; do \
for f in `${FIND} ${WRKSRC}/.. -type f` ; do \
${TR} -d '\015' < $$f > $$f.noms && \
${CAT} $$f.noms > $$f && ${RM} $$f.noms; done

View File

@ -35,7 +35,8 @@ test:
.if !defined(NOPORTDOCS)
post-install:
${MKDIR} ${DOCSDIR}; \
for f in `find ${ORIGWRKSRC}/docs-tla/html -type f -name '*.html' -exec ${BASENAME} {} \;`; do \
for f in `${FIND} ${ORIGWRKSRC}/docs-tla/html -type f -name '*.html' \
-exec ${BASENAME} {} \;`; do \
${INSTALL_DATA} ${ORIGWRKSRC}/docs-tla/html/$$f ${DOCSDIR}/; \
printf "share/doc/${PORTNAME}/%s\n" $$f >> ${TMPPLIST}; \
done; \

View File

@ -23,14 +23,14 @@ do-install:
@${MKDIR} ${PYTHON_SITELIBDIR}/${PORTNAME}
(cd ${WRKSRC} && ${FIND} [^d]* \! -name ".cvsignore" -type f | cpio -R ${SHAREOWN}:${SHAREGRP} -pdum ${PYTHON_SITELIBDIR}/${PORTNAME})
${CHMOD} -R 644 ${PYTHON_SITELIBDIR}/${PORTNAME}
${FIND} ${PYTHON_SITELIBDIR}/${PORTNAME} -type d | xargs ${CHMOD} 755
${FIND} ${PYTHON_SITELIBDIR}/${PORTNAME} -type d | ${XARGS} ${CHMOD} 755
${CHMOD} 755 ${PYTHON_SITELIBDIR}/${PORTNAME}/wxglade.py \
${PYTHON_SITELIBDIR}/${PORTNAME}/xrc2wxg.py
.if !defined(NOPORTDOCS)
@${MKDIR} ${DOCSDIR}
(cd ${WRKSRC}/docs && ${FIND} . -type f | cpio -R ${SHAREOWN}:${SHAREGRP} -pdum ${DOCSDIR})
${CHMOD} -R 644 ${DOCSDIR}
${FIND} ${DOCSDIR} -type d | xargs ${CHMOD} 755
${FIND} ${DOCSDIR} -type d | ${XARGS} ${CHMOD} 755
.endif
.include <bsd.port.mk>

View File

@ -172,9 +172,9 @@ pre-install:
@${ECHO_CMD} `${BASENAME} ${i}` | \
${SED} -e "s=^=%%EXTRA_DOCSDIR%%/=" >>${PLIST}
.endfor
@(cd ${WRKSRC}/.. && find dlz_docs -type f ) | \
@(cd ${WRKSRC}/.. && ${FIND} dlz_docs -type f ) | \
${SED} -e "s=^=%%EXTRA_DOCSDIR%%/=" >>${PLIST}
@(cd ${WRKSRC}/.. && find -d dlz_docs -type d ) | \
@(cd ${WRKSRC}/.. && ${FIND} -d dlz_docs -type d ) | \
${SED} -e "s=^=@dirrm %%EXTRA_DOCSDIR%%/=" >>${PLIST}
@${ECHO_CMD} "@dirrm %%EXTRA_DOCSDIR%%" >>${PLIST}
.endif

View File

@ -83,7 +83,7 @@ pre-configure:
@cd ${WRKSRC}/ac-helpers && ${RM} -f install-sh mkinstalldirs missing
@${RM} -f ${WRKSRC}/configure.ac
@cd ${WRKSRC} && ./autogen.sh && ${TRUE}
@${FIND} ${WRKSRC} -name GNUmakefile.in | xargs ${REINPLACE_CMD} -e \
@${FIND} ${WRKSRC} -name GNUmakefile.in | ${XARGS} ${REINPLACE_CMD} -e \
's|[(]libdir[)]/@PACKAGE@|(datadir)/@PACKAGE@|g ; \
s|[(]libdir[)]/bonobo/servers|(prefix)/libdata/bonobo/servers|g; \
s|@DEFS@|-I${WRKSRC}/../libiconv/include @DEFS@|g' && ${TRUE}

View File

@ -83,7 +83,7 @@ pre-configure:
@cd ${WRKSRC}/ac-helpers && ${RM} -f install-sh mkinstalldirs missing
@${RM} -f ${WRKSRC}/configure.ac
@cd ${WRKSRC} && ./autogen.sh && ${TRUE}
@${FIND} ${WRKSRC} -name GNUmakefile.in | xargs ${REINPLACE_CMD} -e \
@${FIND} ${WRKSRC} -name GNUmakefile.in | ${XARGS} ${REINPLACE_CMD} -e \
's|[(]libdir[)]/@PACKAGE@|(datadir)/@PACKAGE@|g ; \
s|[(]libdir[)]/bonobo/servers|(prefix)/libdata/bonobo/servers|g; \
s|@DEFS@|-I${WRKSRC}/../libiconv/include @DEFS@|g' && ${TRUE}

View File

@ -83,7 +83,7 @@ pre-configure:
@cd ${WRKSRC}/ac-helpers && ${RM} -f install-sh mkinstalldirs missing
@${RM} -f ${WRKSRC}/configure.ac
@cd ${WRKSRC} && ./autogen.sh && ${TRUE}
@${FIND} ${WRKSRC} -name GNUmakefile.in | xargs ${REINPLACE_CMD} -e \
@${FIND} ${WRKSRC} -name GNUmakefile.in | ${XARGS} ${REINPLACE_CMD} -e \
's|[(]libdir[)]/@PACKAGE@|(datadir)/@PACKAGE@|g ; \
s|[(]libdir[)]/bonobo/servers|(prefix)/libdata/bonobo/servers|g; \
s|@DEFS@|-I${WRKSRC}/../libiconv/include @DEFS@|g' && ${TRUE}

View File

@ -29,7 +29,7 @@ MAN1= dedit.1
MANLANG= "" ja
pre-patch:
@find ${WRKSRC} -name "Makefile.in" | xargs ${PERL} -pi -e \
@${FIND} ${WRKSRC} -name "Makefile.in" | ${XARGS} ${PERL} -pi -e \
's|\$\(datadir\)/gnome/|\$\(datadir\)/|g ; \
s|dedit.ja.1||'

View File

@ -118,7 +118,7 @@ BROKEN= First you should build install a port for mule except mule-common
.endif
pre-build::
find ${WRKSRC} \( -name \*.orig -o -name \*~ \) -exec ${RM} -f \{} \;
${FIND} ${WRKSRC} \( -name \*.orig -o -name \*~ \) -exec ${RM} -f \{} \;
${RM} -f ${WRKSRC}/etc/DOC* ${WRKSRC}/src/emacs ${WRKSRC}/src/emacs-${EMACS_VERSION}.*
post-build:

View File

@ -141,7 +141,7 @@ post-patch:
.endif
pre-build:
find ${WRKSRC} \( -name \*.orig -o -name \*~ \) -exec ${RM} -f \{} \;
${FIND} ${WRKSRC} \( -name \*.orig -o -name \*~ \) -exec ${RM} -f \{} \;
${RM} -f ${WRKSRC}/etc/DOC* ${WRKSRC}/src/emacs ${WRKSRC}/src/emacs-${EMACS_VERSION}.*
post-build:

View File

@ -106,7 +106,8 @@ post-install:
cd ${PREFIX} && ${FIND} -s ${DICT_DIR} -type f | \
${GREP} $${LANGUAGE}_$${COUNTRY} >> ${TMPPLIST} ; \
cd ${PREFIX} && ${FIND} -s ${DICT_DIR} -type f | \
${GREP} $${LANGUAGE}_$${COUNTRY} | xargs chmod 755 ; \
${GREP} $${LANGUAGE}_$${COUNTRY} | \
${XARGS} chmod 755 ; \
${ECHO} "@unexec ${CP} ${DICT_LIST} \
${DICT_LIST}.$${LANGUAGE}_$${COUNTRY}" >> ${TMPPLIST} ; \
${ECHO} "@unexec \
@ -123,10 +124,10 @@ post-install:
${ECHO} "@exec ${ECHO} \"DICT $${LANGUAGE} AT de_AT\" \
>> ${DICT_LIST}" >> ${TMPPLIST} ; \
${ECHO_CMD} "DICT $$LANGUAGE AT $${ABRV}" >> ${DICT_LIST_INST} ; \
cd ${PREFIX} && ${FIND} -s ${DICT_DIR} -type f | \
${GREP} $${LANGUAGE}_AT >> ${TMPPLIST} ; \
cd ${PREFIX} && ${FIND} -s ${DICT_DIR} -type l | \
${GREP} $${LANGUAGE}_AT >> ${TMPPLIST} ; \
cd ${PREFIX} && ${FIND} -s ${DICT_DIR} -type f \
| ${GREP} $${LANGUAGE}_AT >> ${TMPPLIST} ; \
cd ${PREFIX} && ${FIND} -s ${DICT_DIR} -type l \
| ${GREP} $${LANGUAGE}_AT >> ${TMPPLIST} ; \
${ECHO} "@unexec ${CP} ${DICT_LIST} \
${DICT_LIST}.$${LANGUAGE}_AT" >> ${TMPPLIST} ; \
${ECHO} "@unexec \
@ -165,7 +166,7 @@ post-install:
cd ${PREFIX} && ${FIND} -s ${DICT_DIR} -type f | \
${GREP} hyph_$${ABRV}.dic >> ${TMPPLIST} ; \
cd ${PREFIX} && ${FIND} -s ${DICT_DIR} -type f | \
${GREP} hyph_$${ABRV}.dic | xargs chmod 755 ; \
${GREP} hyph_$${ABRV}.dic | ${XARGS} chmod 755 ; \
${ECHO} "@unexec ${CP} ${DICT_LIST} \
${DICT_LIST}.hyph_$${LANGUAGE}_$${COUNTRY}" >> ${TMPPLIST} ; \
${ECHO} "@unexec \

View File

@ -159,7 +159,8 @@ pre-configure::
.endfor
pre-build:
@find ${WRKSRC} \( -name \*.orig -o -name \*~ \) -exec ${RM} -f \{} \;
@${FIND} ${WRKSRC} \( -name \*.orig -o -name \*~ \) \
-exec ${RM} -f \{} \;
@${RM} -f ${WRKSRC}/lib-src/DOC* ${WRKSRC}/src/xemacs
post-install::

View File

@ -169,7 +169,8 @@ pre-configure::
.endfor
pre-build:
@find ${WRKSRC} \( -name \*.orig -o -name \*~ \) -exec ${RM} -f \{} \;
@${FIND} ${WRKSRC} \( -name \*.orig -o -name \*~ \) \
-exec ${RM} -f \{} \;
@${RM} -f ${WRKSRC}/lib-src/DOC* ${WRKSRC}/src/xemacs
post-install::

View File

@ -158,8 +158,8 @@ pre-install:
&& ${FIND} -d * -type d | ${SED} -e 's:^:@dirrm :' >> ${PLIST}
do-install:
cd ${WRKSRC} && find * | cpio -dlmp ${PREFIX}
find ${PREFIX} -type d -exec ${CHMOD} 755 \{\} \;
cd ${WRKSRC} && ${FIND} * | cpio -dlmp ${PREFIX}
${FIND} ${PREFIX} -type d -exec ${CHMOD} 755 \{\} \;
post-install:
@${ECHO} ''

View File

@ -158,8 +158,8 @@ pre-install:
&& ${FIND} -d * -type d | ${SED} -e 's:^:@dirrm :' >> ${PLIST}
do-install:
cd ${WRKSRC} && find * | cpio -dlmp ${PREFIX}
find ${PREFIX} -type d -exec ${CHMOD} 755 \{\} \;
cd ${WRKSRC} && ${FIND} * | cpio -dlmp ${PREFIX}
${FIND} ${PREFIX} -type d -exec ${CHMOD} 755 \{\} \;
post-install:
@${ECHO} ''

View File

@ -158,8 +158,8 @@ pre-install:
&& ${FIND} -d * -type d | ${SED} -e 's:^:@dirrm :' >> ${PLIST}
do-install:
cd ${WRKSRC} && find * | cpio -dlmp ${PREFIX}
find ${PREFIX} -type d -exec ${CHMOD} 755 \{\} \;
cd ${WRKSRC} && ${FIND} * | cpio -dlmp ${PREFIX}
${FIND} ${PREFIX} -type d -exec ${CHMOD} 755 \{\} \;
post-install:
@${ECHO} ''

View File

@ -158,8 +158,8 @@ pre-install:
&& ${FIND} -d * -type d | ${SED} -e 's:^:@dirrm :' >> ${PLIST}
do-install:
cd ${WRKSRC} && find * | cpio -dlmp ${PREFIX}
find ${PREFIX} -type d -exec ${CHMOD} 755 \{\} \;
cd ${WRKSRC} && ${FIND} * | cpio -dlmp ${PREFIX}
${FIND} ${PREFIX} -type d -exec ${CHMOD} 755 \{\} \;
post-install:
@${ECHO} ''

View File

@ -158,8 +158,8 @@ pre-install:
&& ${FIND} -d * -type d | ${SED} -e 's:^:@dirrm :' >> ${PLIST}
do-install:
cd ${WRKSRC} && find * | cpio -dlmp ${PREFIX}
find ${PREFIX} -type d -exec ${CHMOD} 755 \{\} \;
cd ${WRKSRC} && ${FIND} * | cpio -dlmp ${PREFIX}
${FIND} ${PREFIX} -type d -exec ${CHMOD} 755 \{\} \;
post-install:
@${ECHO} ''

View File

@ -31,7 +31,7 @@ BIN_FILES= altair h316 ibm1130 pdp11 pdp8 \
pre-patch:
@${MKDIR} ${WRKSRC}/BIN
@for i in ${WRKSRC}/makefile `find ${WRKSRC} -name "*.[hc]"`; do \
@for i in ${WRKSRC}/makefile `${FIND} ${WRKSRC} -name "*.[hc]"`; do \
${CAT} $$i | ${TR} -d '\r' > $$i.new; \
${MV} $$i.new $$i; \
done

View File

@ -31,7 +31,7 @@ BIN_FILES= altair h316 ibm1130 pdp11 pdp8 \
pre-patch:
@${MKDIR} ${WRKSRC}/BIN
@for i in ${WRKSRC}/makefile `find ${WRKSRC} -name "*.[hc]"`; do \
@for i in ${WRKSRC}/makefile `${FIND} ${WRKSRC} -name "*.[hc]"`; do \
${CAT} $$i | ${TR} -d '\r' > $$i.new; \
${MV} $$i.new $$i; \
done

View File

@ -40,7 +40,7 @@ MAN8= astat.8 autoupdateconfig.pl.8 cardusage.8 checkenv.pl.8 chknavig.8 \
search.8 sgateway.8 siteadmin.pl.8 sortsuffix.8
pre-install:
find ${WRKSRC} \( -name \*.orig -o -name \*~ \) -exec ${RM} \{} \;
${FIND} ${WRKSRC} \( -name \*.orig -o -name \*~ \) -exec ${RM} \{} \;
post-install:
${LN} -sf ${PREFIX}/ftpsearch/bin/gateway ${PREFIX}/bin/ftpsearch

View File

@ -28,6 +28,7 @@ CONFIGURE_ENV= SDL_CONFIG="${SDL_CONFIG}" \
LDFLAGS="-L${LOCALBASE}/lib ${PTHREAD_LIBS} -lintl"
pre-patch:
@find ${WRKSRC} -name "*.[ch]" | xargs ${PERL} -pi -e 's|<SDL/|<|g'
@${FIND} ${WRKSRC} -name "*.[ch]" | \
${XARGS} ${PERL} -pi -e 's|<SDL/|<|g'
.include <bsd.port.mk>

View File

@ -24,7 +24,7 @@ SDL_CONFIG= ${LOCALBASE}/bin/sdl11-config
USE_REINPLACE= yes
pre-patch:
@find ${WRKSRC}/.. -type d -name CVS | ${XARGS} ${RM} -rf
@${FIND} ${WRKSRC}/.. -type d -name CVS | ${XARGS} ${RM} -rf
post-patch:
@cd ${WRKSRC}/code && ${GMAKE} clean

View File

@ -24,7 +24,7 @@ CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
pre-patch:
@${PERL} -pi -e 's|-lpthread|${PTHREAD_LIBS}|g ; \
s|DATADIRNAME=lib|DATADIRNAME=share|g' ${WRKSRC}/configure
@find ${WRKSRC} -name "Makefile.in" | xargs ${PERL} -pi -e \
@${FIND} ${WRKSRC} -name "Makefile.in" | ${XARGS} ${PERL} -pi -e \
's|\$\(datadir\)/gnome/|\$\(datadir\)/|g ; \
s|\$\(datadir\)/locale|\$\(prefix\)/share/locale|g'

View File

@ -28,7 +28,7 @@ CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
pre-patch:
@${PERL} -pi -e 's|-lpthread|${PTHREAD_LIBS}|g ; \
s|DATADIRNAME=lib|DATADIRNAME=share|g' ${WRKSRC}/configure
@find ${WRKSRC} -name "Makefile.in*" | xargs ${PERL} -pi -e \
@${FIND} ${WRKSRC} -name "Makefile.in*" | ${XARGS} ${PERL} -pi -e \
's|\$\(datadir\)/gnome/|\$\(datadir\)/|g ; \
s|\$\(datadir\)/locale|\$\(prefix\)/share/locale|g'

View File

@ -54,7 +54,7 @@ post-extract: slaveport-post-extract
pre-patch:
# remove trailing ^M
@find -E ${WRKSRC} -type f \
@${FIND} -E ${WRKSRC} -type f \
-iregex ".*\.(bat|cfg|gam|htm|html|inf|ini|lst|sc|scr|txt)" \
-exec ${PERL} -pi -ne 's!\r\n!\n!' {} 1>/dev/null 2>&1 \;

View File

@ -25,8 +25,8 @@ CONFIGURE_ENV= LIBS="-lcompat" \
pre-patch:
@${PERL} -pi -e 's|-lpthread|${PTHREAD_LIBS}|g' ${WRKSRC}/configure
@find ${WRKSRC} \( -name "*.[ch]" -or -name "*.cpp" \) | \
xargs ${PERL} -pi -e 's|"SDL/SDL|"SDL|g ; s|<SDL/SDL|<SDL|g'
@${FIND} ${WRKSRC} \( -name "*.[ch]" -or -name "*.cpp" \) | \
${XARGS} ${PERL} -pi -e 's|"SDL/SDL|"SDL|g ; s|<SDL/SDL|<SDL|g'
pre-install:
${MKDIR} /var/games/${PORTNAME}

View File

@ -43,6 +43,7 @@ do-install:
.endfor
post-install:
@find ${PREFIX}/share/moonlander -type f -print0 |xargs -0 ${CHMOD} 444
@${FIND} ${PREFIX}/share/moonlander -type f -print0 | \
${XARGS} -0 ${CHMOD} 444
.include <bsd.port.mk>

View File

@ -32,9 +32,9 @@ BROKEN= "Does not compile (bad C++ code)"
.endif
pre-patch:
@find ${WRKSRC} \( -name "*.[ch]" -or -name "*.cpp" \) | \
xargs ${PERL} -pi -e 's|"SDL/|"|g ; s|<SDL/|<|g'
@find ${WRKSRC}/.. -type d -name CVS | xargs ${RM} -rf
@${FIND} ${WRKSRC} \( -name "*.[ch]" -or -name "*.cpp" \) | \
${XARGS} ${PERL} -pi -e 's|"SDL/|"|g ; s|<SDL/|<|g'
@${FIND} ${WRKSRC}/.. -type d -name CVS | ${XARGS} ${RM} -rf
post-configure:
@${PERL} -pi -e "s|%%PREFIX%%|${PREFIX}|g" ${WRKSRC}/nil/configuration.cpp

View File

@ -24,7 +24,7 @@ CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
pre-patch:
@${PERL} -pi -e 's|-lpthread|${PTHREAD_LIBS}|g ; \
s|DATADIRNAME=lib|DATADIRNAME=share|g' ${WRKSRC}/configure
@find ${WRKSRC} -name "Makefile.in" | xargs ${PERL} -pi -e \
@${FIND} ${WRKSRC} -name "Makefile.in" | ${XARGS} ${PERL} -pi -e \
's|\$\(datadir\)/gnome/|\$\(datadir\)/|g ; \
s|\$\(datadir\)/locale|\$\(prefix\)/share/locale|g'

View File

@ -19,9 +19,9 @@ RUN_DEPENDS= ${PYTHON_SITELIBDIR}/_tkinter.so:${PORTSDIR}/x11-toolkits/py-tkinte
USE_PYTHON= yes
do-build:
@find ${WRKSRC} -name "*.pyc" | xargs ${RM}
@find ${WRKSRC} \( -type f -or -type l \) | xargs ${CHMOD} 644
@find ${WRKSRC} -type d | xargs ${CHMOD} 755
@${FIND} ${WRKSRC} -name "*.pyc" | ${XARGS} ${RM}
@${FIND} ${WRKSRC} \( -type f -or -type l \) | ${XARGS} ${CHMOD} 644
@${FIND} ${WRKSRC} -type d | ${XARGS} ${CHMOD} 755
@${PYTHON_CMD} ${PYTHON_LIBDIR}/compileall.py ${WRKSRC} 2>/dev/null
do-install:

View File

@ -61,7 +61,7 @@ post-extract:
pre-patch:
# remove trailing ^M
@find -E ${WRKSRC} -type f \
@${FIND} -E ${WRKSRC} -type f \
-iregex ".*\.(bat|cfg|gam|htm|html|inf|ini|lst|sc|scr|txt|url)" \
-exec ${PERL} -pi -ne 's!\r\n!\n!' {} 1>/dev/null 2>&1 \;

View File

@ -61,7 +61,7 @@ post-extract:
pre-patch:
# remove trailing ^M
@find -E ${WRKSRC} -type f \
@${FIND} -E ${WRKSRC} -type f \
-iregex ".*\.(bat|cfg|gam|htm|html|inf|ini|lst|sc|scr|txt|url)" \
-exec ${PERL} -pi -ne 's!\r\n!\n!' {} 1>/dev/null 2>&1 \;

View File

@ -32,7 +32,7 @@ do-extract:
pre-patch:
# remove trailing ^M
@find -E ${WRKSRC} -type f \
@${FIND} -E ${WRKSRC} -type f \
-iregex ".*\.(bat|cfg|gam|htm|html|inf|ini|lst|sc|scr|txt|url)" \
-exec ${PERL} -pi -ne 's!\r\n!\n!' {} 1>/dev/null 2>&1 \;

View File

@ -24,7 +24,7 @@ CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include ${PTHREAD_CFLAGS}" \
LDFLAGS="-L${LOCALBASE}/lib -lintl ${PTHREAD_LIBS}"
post-patch:
@find ${WRKSRC} -name "*.[ch]" -type f | xargs ${REINPLACE_CMD} -e \
's|LIST_NEXT|TEG_LIST_NEXT|g'
@${FIND} ${WRKSRC} -name "*.[ch]" -type f | ${XARGS} \
${REINPLACE_CMD} -e 's|LIST_NEXT|TEG_LIST_NEXT|g'
.include <bsd.port.mk>

View File

@ -27,8 +27,8 @@ MAN6= toppler.6
pre-patch:
@${PERL} -pi -e 's|-lpthread|${PTHREAD_LIBS}|g' ${WRKSRC}/configure
@find ${WRKSRC} \( -name "*.[ch]" -or -name "*.cc" \) | \
xargs ${PERL} -pi -e 's|"SDL/SDL|"SDL|g ; s|<SDL/SDL|<SDL|g'
@${FIND} ${WRKSRC} \( -name "*.[ch]" -or -name "*.cc" \) | \
${XARGS} ${PERL} -pi -e 's|"SDL/SDL|"SDL|g ; s|<SDL/SDL|<SDL|g'
post-install:
@cd ${WRKSRC} && ${MAKE} global_highscore

View File

@ -66,12 +66,12 @@ post-extract:
pre-patch:
# remove trailing ^M
@find -E ${WRKDIR} -type f \
@${FIND} -E ${WRKDIR} -type f \
-iregex ".*\.(bat|cfg|gam|htm|html|inf|ini|int|lst|pl|pm|sc|sh|scr|txt|url|uhtm)" \
-exec ${PERL} -pi -ne 's!\r\n!\n!' {} 1>/dev/null 2>&1 \;
.ifdef(EXTRA_CLEAN_FILES)
.for pattern in ${EXTRA_CLEAN_FILES}
@find -E ${WRKDIR} -type f \
@${FIND} -E ${WRKDIR} -type f \
-iregex "${pattern}" \
-exec ${PERL} -pi -ne 's!\r\n!\n!' {} 1>/dev/null 2>&1 \;
.endfor

View File

@ -39,7 +39,7 @@ EXECUTABLES= ucc ucc-bin ngStatsUT ngStatsUT.exe ngWorldStats \
pre-patch:
# remove trailing ^M
@find -E ${WRKSRC} -type f \
@${FIND} -E ${WRKSRC} -type f \
-iregex ".*\.(bat|cfg|gam|htm|html|inf|ini|int|lst|pl|pm|sc|sh|scr|txt|url|uhtm)" \
-exec ${PERL} -pi -ne 's!\r\n!\n!' {} 1>/dev/null 2>&1 \;
@${SED} -e "s!%%LOCALBASE%%!${LOCALBASE}!" \

View File

@ -24,8 +24,10 @@ do-install:
@${MKDIR} ${PREFIX}/share/xbomber
${TAR} -C ${WRKSRC} -cf - bitmaps jungle levels pixmaps sounds | \
${TAR} -C ${PREFIX}/share/xbomber --unlink -xf -
@find ${PREFIX}/share/xbomber | xargs ${CHOWN} ${SHAREOWN}:${SHAREGRP}
@find ${PREFIX}/share/xbomber -type f | xargs ${CHMOD} ${SHAREMODE}
@${FIND} ${PREFIX}/share/xbomber | \
${XARGS} ${CHOWN} ${SHAREOWN}:${SHAREGRP}
@${FIND} ${PREFIX}/share/xbomber -type f | \
${XARGS} ${CHMOD} ${SHAREMODE}
.if !defined(NOPORTDOCS)
@${MKDIR} ${PREFIX}/share/doc/xbomber
.for file in README.txt LEVELS.txt SOUND.txt GRAPHICS.txt

View File

@ -29,7 +29,7 @@ do-build:
.endif
pre-install:
find ${WRKSRC}/${manpages} -type f -print | \
${FIND} ${WRKSRC}/${manpages} -type f -print | \
${SED} "s%${WRKSRC}/${manpages}%man/${LANG}%" > ${PLIST}
do-install:

View File

@ -24,6 +24,6 @@ PERL_CONFIGURE= YES
MAN3= GIFgraph.3 GIFgraph::colour.3
post-patch:
find ${WRKSRC} -name '*.orig' -delete
${FIND} ${WRKSRC} -name '*.orig' -delete
.include <bsd.port.mk>

View File

@ -19,7 +19,10 @@ WRKSRC= ${WRKDIR}
USE_REINPLACE= yes
post-extract:
for file in `/usr/bin/find ${WRKSRC} -type f`; do ${TR} -d '\015' < $${file} > $${file}.new; mv $${file}.new $${file}; done
for file in `${FIND} ${WRKSRC} -type f`; do \
${TR} -d '\015' < $${file} > $${file}.new; \
mv $${file}.new $${file}; \
done
do-install:
${INSTALL_SCRIPT} ${WRKSRC}/dc20dump ${PREFIX}/bin

View File

@ -47,7 +47,7 @@ pre-everything::
.if defined(LOCALBASE) && ${LOCALBASE} != "/usr/local"
pre-configure:
${PERL} -pi -e 's,/usr/local,${LOCALBASE},g' `find ${WRKSRC} \
${PERL} -pi -e 's,/usr/local,${LOCALBASE},g' `${FIND} ${WRKSRC} \
-type f -print0 | ${XARGS} -0 ${GREP} -Fl --mmap /usr/local`
.endif

View File

@ -46,7 +46,7 @@ AC_FAKE_FILES= aclocal.m4 config.h.in stamp-h stamp-h.in
post-configure:
cd ${WRKSRC}; ${TOUCH} ${AC_FAKE_FILES}
find ${WRKSRC} -name Makefile.in | xargs ${TOUCH}
${FIND} ${WRKSRC} -name Makefile.in | ${XARGS} ${TOUCH}
pre-install:
${MKDIR} ${PREFIX}/share/geomview

View File

@ -57,8 +57,8 @@ IGNORE= "Requires XFree86 3.3.* - will not work with XFree86 4.*"
.endif
pre-build:
@find ${WRKSRC} -type f | xargs grep -l linux/agpgart | \
xargs perl -pi -e "s|linux/agpgart|sys/agpio|"
@${FIND} ${WRKSRC} -type f | ${XARGS} grep -l linux/agpgart | \
${XARGS} perl -pi -e "s|linux/agpgart|sys/agpio|"
pre-install:
.if exists(${PREFIX}/lib/libGL.so.${GLVER}) && !defined(GL_CHECK_OVERRIDE) && !defined(PACKAGE_BUILDING)

View File

@ -32,7 +32,7 @@ MAN1= balsa.1
pre-patch:
@${PERL} -pi -e 's|-lpthread|${PTHREAD_LIBS}|g ; \
s|DATADIRNAME=lib|DATADIRNAME=share|g' ${WRKSRC}/configure
@find ${WRKSRC} -name "Makefile.in" | xargs ${PERL} -pi -e \
@${FIND} ${WRKSRC} -name "Makefile.in" | ${XARGS} ${PERL} -pi -e \
's|\$\(datadir\)/gnome/|\$\(datadir\)/|g ; \
s|\$\(datadir\)/locale|\$\(prefix\)/share/locale|g ; \
s|\$\(gnomedatadir\)/gnome|\$\(gnomedatadir\)|g'

View File

@ -150,7 +150,7 @@ pre-fetch:
@${CAT} ${FILESDIR}/emcws-message
pre-build:
find ${WRKSRC} \( -name \*.orig -o -name \*~ \) -exec ${RM} -f \{} \;
${FIND} ${WRKSRC} \( -name \*.orig -o -name \*~ \) -exec ${RM} -f \{} \;
${RM} -rf ${WRKSRC}/info/*
@(cd ${WRKSRC}/src/../lisp; \
${SETENV} ${MAKE_ENV} ${GMAKE} ${MAKE_FLAGS} ${MAKEFILE} ${MAKE_ARGS} compile-files EMACS=${LOCALBASE}/bin/emacs-${EMACS_VER})

View File

@ -145,7 +145,7 @@ pre-fetch:
@${CAT} ${FILESDIR}/emcws-message
pre-build:
find ${WRKSRC} \( -name \*.orig -o -name \*~ \) -exec ${RM} -f \{} \;
${FIND} ${WRKSRC} \( -name \*.orig -o -name \*~ \) -exec ${RM} -f \{} \;
${RM} -rf ${WRKSRC}/info/*
@(cd ${WRKSRC}/src; ${SETENV} ${MAKE_ENV} ${GMAKE} ${MAKE_FLAGS} ${MAKEFILE} ${MAKE_ARGS} emacs)
@(cd ${WRKSRC}/src/../lisp; \

View File

@ -150,7 +150,7 @@ pre-fetch:
@${CAT} ${FILESDIR}/emcws-message
pre-build:
find ${WRKSRC} \( -name \*.orig -o -name \*~ \) -exec ${RM} -f \{} \;
${FIND} ${WRKSRC} \( -name \*.orig -o -name \*~ \) -exec ${RM} -f \{} \;
${RM} -rf ${WRKSRC}/info/*
@(cd ${WRKSRC}/src/../lisp; \
${SETENV} ${MAKE_ENV} ${GMAKE} ${MAKE_FLAGS} ${MAKEFILE} ${MAKE_ARGS} compile-files EMACS=${LOCALBASE}/bin/emacs-${EMACS_VER})

View File

@ -14,6 +14,6 @@ MAINTAINER= ports@FreeBSD.org
post-patch:
perl -pi -e 's/gdk_font_load(\s)\(.*\)/gdk_fontset_load$$1\("-misc-fixed-medium-r-normal--14-*-*-*-*-*-*-*"\)/' \
`find ${WRKSRC} -name "*.c" -print`
`${FIND} ${WRKSRC} -name "*.c" -print`
.include "${MASTERDIR}/Makefile"

View File

@ -28,8 +28,10 @@ do-install:
${INSTALL_SCRIPT} ${WRKSRC}/contrib/todayhns/todayhns ${PREFIX}/bin/todayhns
post-install:
@cd ${WRKSRC} && find . -type f -o -type l | sed 's,^\.,share/${PORTNAME},' | sort >> ${TMPPLIST}
@cd ${WRKSRC} && find . -type d | sed 's,^\.,@dirrm share/${PORTNAME},' | sort -r >> ${TMPPLIST}
@cd ${WRKSRC} && ${FIND} . -type f -o -type l | \
sed 's,^\.,share/${PORTNAME},' | sort >> ${TMPPLIST}
@cd ${WRKSRC} && ${FIND} . -type d | \
sed 's,^\.,@dirrm share/${PORTNAME},' | sort -r >> ${TMPPLIST}
@${CAT} ${PKGMESSAGE}
.include <bsd.port.mk>

View File

@ -104,7 +104,7 @@ pre-fetch:
.include <bsd.port.pre.mk>
post-patch:
find ${WRKDIR} -name '*.orig' -exec ${RM} {} \;
${FIND} ${WRKDIR} -name '*.orig' -exec ${RM} {} \;
post-build:
@ ${ECHO} "------------------------------------------------------------"

View File

@ -37,7 +37,7 @@ pre-patch:
@cd ${WRKSRC}; ${PATCH} -s < ${FILESDIR}/pre-patch
post-patch:
@/usr/bin/find ${WRKSRC}/tcldesk '(' -name '*.orig' -o -name '*~' ')' \
@${FIND} ${WRKSRC}/tcldesk '(' -name '*.orig' -o -name '*~' ')' \
-exec ${RM} -f {} \;
@${RM} ${WRKSRC}/config.h ${WRKSRC}/config.cache

View File

@ -46,7 +46,7 @@ BINSTUFF= vje \
post-patch:
@cd ${WRKSRC}/vje30/bin && ${RM} swingall.jar
@find ${WRKSRC} -name '*.orig' -delete
@${FIND} ${WRKSRC} -name '*.orig' -delete
@${CP} ${FILESDIR}/vje.sh ${WRKSRC}/etc/rc.d/
.if defined(NOPORTDOCS)
@cd ${WRKSRC}/vje30 && ${RM} -rf doc README FAQ

View File

@ -154,7 +154,7 @@ pre-fetch:
${ECHO} "**************************************************************")
pre-build:
@(cd ${WRKSRC} ; find . -name '*.orig' -exec ${RM} -f {} \;)
@(cd ${WRKSRC} ; ${FIND} . -name '*.orig' -exec ${RM} -f {} \;)
do-install:
@(cd ${WRKSRC}/texk/xdvik ; ${SETENV} ${MAKE_ENV} ${GMAKE} \

View File

@ -154,7 +154,7 @@ pre-fetch:
${ECHO} "**************************************************************")
pre-build:
@(cd ${WRKSRC} ; find . -name '*.orig' -exec ${RM} -f {} \;)
@(cd ${WRKSRC} ; ${FIND} . -name '*.orig' -exec ${RM} -f {} \;)
do-install:
@(cd ${WRKSRC}/texk/xdvik ; ${SETENV} ${MAKE_ENV} ${GMAKE} \

View File

@ -146,8 +146,9 @@ post-build:
done; \
done
for dir in ${JDKIMAGEDIR} ${JREIMAGEDIR}; do \
find $${dir} -type f | xargs file | ${GREP} 'not stripped$$' | \
${SED} 's|:.*$$||' | xargs strip; \
${FIND} $${dir} -type f | ${XARGS} file | \
${GREP} 'not stripped$$' | \
${SED} 's|:.*$$||' | ${XARGS} strip; \
done
.if !defined(NODEBUG)

View File

@ -37,7 +37,7 @@ CPIO?= /usr/bin/cpio
post-patch:
${FIND} ${WRKSRC} \( -name '*.orig' -o -name '.*.orig' \) -print \
| xargs ${RM} -f
| ${XARGS} ${RM} -f
do-install:
${MKDIR} ${APP_HOME}

View File

@ -41,7 +41,7 @@ IGNORE=You must manually fetch the Sun Java 2 Standard Edition SDK ${JDK_VERSION
.endif
post-patch:
@${FIND} ${WRKSRC} -name '*.orig' -print | xargs ${RM} -f
@${FIND} ${WRKSRC} -name '*.orig' -print | ${XARGS} ${RM} -f
do-install:
@${ECHO_CMD} -n ">> Creating destination directory ${APP_HOME}..."

View File

@ -67,7 +67,7 @@ do-extract:
&& ${WRKDIR}/install.sfx > /dev/null
post-patch:
@${FIND} ${WRKSRC} -name '*.orig' -print | xargs ${RM} -f
@${FIND} ${WRKSRC} -name '*.orig' -print | ${XARGS} ${RM} -f
do-install:
${MKDIR} ${PREFIX}/${PKGNAMEPREFIX}jdk${JDK_VERSION}

View File

@ -59,7 +59,7 @@ do-extract:
&& ${WRKDIR}/install.sfx > /dev/null
post-patch:
@${FIND} ${WRKSRC} -name '*.orig' -print | xargs ${RM} -f
@${FIND} ${WRKSRC} -name '*.orig' -print | ${XARGS} ${RM} -f
do-install:
${MKDIR} ${APP_HOME}

View File

@ -86,11 +86,11 @@ pre-build:
@echo "===> ${CLASSESDIR}"
@cd ${WRKDIR}/${CLASSESDIR}; \
${MKDIR} classes; \
find . | ${GREP} '\.java$$' | xargs jikes -g \
${FIND} . | ${GREP} '\.java$$' | ${XARGS} jikes -g \
-target 1.1 -d classes \
-bootclasspath src:classes -classpath src:classes \
-sourcepath src || exit 1; \
find resource -type f | cut -d\/ -f2- \
${FIND} resource -type f | cut -d\/ -f2- \
| ${AWK} '{print "cp resource/" $$0 " classes/" $$0 }' \
| ${SH}; \
${CHMOD} -R a+rX classes