aboutsummaryrefslogtreecommitdiffstats
path: root/BlockDeduplicator.h
blob: 8a82a1ed721ecd730f5bc021b5e58b754ac62af3 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
/*
    This file is part of cpp-ethereum.

    cpp-ethereum is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation, either version 3 of the License, or
    (at your option) any later version.

    cpp-ethereum is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with cpp-ethereum.  If not, see <http://www.gnu.org/licenses/>.
*/
/**
 * @file BlockDeduplicator.h
 * @author Christian <c@ethdev.com>
 * @date 2015
 * Unifies basic blocks that share content.
 */

#pragma once

#include <cstddef>
#include <vector>
#include <functional>

namespace dev
{
namespace eth
{

class AssemblyItem;
using AssemblyItems = std::vector<AssemblyItem>;

/**
 * Optimizer class to be used to unify blocks that share content.
 * Modifies the passed vector in place.
 */
class BlockDeduplicator
{
public:
    BlockDeduplicator(AssemblyItems& _items): m_items(_items) {}
    /// @returns true if something was changed
    bool deduplicate();

private:
    /// Iterator that skips tags skips to the end if (all branches of) the control
    /// flow does not continue to the next instruction.
    struct BlockIterator: std::iterator<std::forward_iterator_tag, AssemblyItem const>
    {
    public:
        BlockIterator(AssemblyItems::const_iterator _it, AssemblyItems::const_iterator _end):
            it(_it), end(_end) { }
        BlockIterator& operator++();
        bool operator==(BlockIterator const& _other) const { return it == _other.it; }
        bool operator!=(BlockIterator const& _other) const { return it != _other.it; }
        AssemblyItem const& operator*() const { return *it; }
        AssemblyItems::const_iterator it;
        AssemblyItems::const_iterator end;
    };

    AssemblyItems& m_items;
};

}
}
5b1c88'>databases/libgda/Makefile2
-rw-r--r--databases/mysql323-server/Makefile3
-rw-r--r--databases/pgaccess/Makefile2
-rw-r--r--deskutils/yank/Makefile5
-rw-r--r--devel/adasdl/Makefile23
-rw-r--r--devel/bugzilla/Makefile20
-rw-r--r--devel/bugzilla2/Makefile20
-rw-r--r--devel/bugzilla3/Makefile20
-rw-r--r--devel/ccdoc/Makefile2
-rw-r--r--devel/directfb/Makefile2
-rw-r--r--devel/fnorb/Makefile6
-rw-r--r--devel/glg/Makefile2
-rw-r--r--devel/gnome-vfs/Makefile2
-rw-r--r--devel/gnome-vfs1/Makefile2
-rw-r--r--devel/gnomevfs/Makefile2
-rw-r--r--devel/gnomevfs2/Makefile2
-rw-r--r--devel/invitation_to_ruby/Makefile3
-rw-r--r--devel/moonshine/Makefile2
-rw-r--r--devel/p4db/Makefile2
-rw-r--r--devel/p5-Class-Contract/Makefile2
-rw-r--r--devel/pharmacy/Makefile2
-rw-r--r--devel/py-omniorb/Makefile4
-rw-r--r--devel/qtez/Makefile2
-rw-r--r--devel/ruby-gnustep/Makefile5
-rw-r--r--devel/swig13-doc/Makefile6
-rw-r--r--devel/tcltls/Makefile2
-rw-r--r--devel/tla/Makefile3
-rw-r--r--devel/wxGlade/Makefile4
-rw-r--r--dns/bind9-dlz/Makefile4
-rw-r--r--editors/AbiWord2/Makefile2
-rw-r--r--editors/abiword-devel/Makefile2
-rw-r--r--editors/abiword/Makefile2
-rw-r--r--editors/dedit/Makefile2
-rw-r--r--editors/mule-common/Makefile2
-rw-r--r--editors/mule/Makefile2
-rw-r--r--editors/ooodict-all/Makefile13
-rw-r--r--editors/xemacs-devel-mule/Makefile3
-rw-r--r--editors/xemacs21-mule/Makefile3
-rw-r--r--emulators/linux_base-8/Makefile4
-rw-r--r--emulators/linux_base-rh-9/Makefile4
-rw-r--r--emulators/linux_base-suse-9.1/Makefile4
-rw-r--r--emulators/linux_base-suse-9.2/Makefile4
-rw-r--r--emulators/linux_base-suse-9.3/Makefile4
-rw-r--r--emulators/sim/Makefile2
-rw-r--r--emulators/simh/Makefile2
-rw-r--r--ftp/ftpsearch/Makefile2
-rw-r--r--games/bomberinstinct/Makefile3
-rw-r--r--games/egoboo/Makefile2
-rw-r--r--games/gnocatan/Makefile2
-rw-r--r--games/gnomechess/Makefile2
-rw-r--r--games/hlserver-cs/Makefile2
-rw-r--r--games/lbreakout/Makefile4
-rw-r--r--games/moonlander/Makefile3
-rw-r--r--games/nil/Makefile6
-rw-r--r--games/pioneers/Makefile2
-rw-r--r--games/ptkei/Makefile6
-rw-r--r--games/q3server-ra3/Makefile2
-rw-r--r--games/quake3-ra3/Makefile2
-rw-r--r--games/rtcw/Makefile2
-rw-r--r--games/teg/Makefile4
-rw-r--r--games/toppler/Makefile4
-rw-r--r--games/utserver-to/Makefile4
-rw-r--r--games/utserver/Makefile2
-rw-r--r--games/xbomber/Makefile6
-rw-r--r--german/manpages/Makefile2
-rw-r--r--graphics/GIFgraph/Makefile2
-rw-r--r--graphics/dc20pack/Makefile5
-rw-r--r--graphics/djvulibre/Makefile2
-rw-r--r--graphics/geomview/Makefile2
-rw-r--r--graphics/utah-glx/Makefile4
-rw-r--r--japanese/balsa/Makefile2
-rw-r--r--japanese/emacs-emcws/Makefile2
-rw-r--r--japanese/emacs20-emcws/Makefile2
-rw-r--r--japanese/emacs21-emcws/Makefile2
-rw-r--r--japanese/gal/Makefile2
-rw-r--r--japanese/hns/Makefile6
-rw-r--r--japanese/postgresql/Makefile2
-rw-r--r--japanese/tkdesk/Makefile2
-rw-r--r--japanese/vje30-trial/Makefile2
-rw-r--r--japanese/xdvik-vflib/Makefile2
-rw-r--r--japanese/xdvik/Makefile2
-rw-r--r--java/jdk12/Makefile5
-rw-r--r--java/linux-blackdown-jdk12/Makefile2
-rw-r--r--java/linux-sun-jdk12/Makefile2
-rw-r--r--java/linux-sun-jdk13/Makefile2
-rw-r--r--java/linux-sun-jdk14/Makefile2
-rw-r--r--java/sablevm/Makefile4
97 files changed, 190 insertions, 163 deletions
diff --git a/biology/ncbi-toolkit/Makefile b/biology/ncbi-toolkit/Makefile
index 9298ff20dd6c..81be1572298b 100644
--- a/biology/ncbi-toolkit/Makefile
+++ b/biology/ncbi-toolkit/Makefile
@@ -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}
diff --git a/biology/py-biopython/Makefile b/biology/py-biopython/Makefile
index 2c0ba22b639e..6fb9b20aad94 100644
--- a/biology/py-biopython/Makefile
+++ b/biology/py-biopython/Makefile
@@ -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
diff --git a/biology/t_coffee/Makefile b/biology/t_coffee/Makefile
index 7a70657ae5f3..3dc443618b77 100644
--- a/biology/t_coffee/Makefile
+++ b/biology/t_coffee/Makefile
@@ -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}
diff --git a/cad/linux-eagle/Makefile b/cad/linux-eagle/Makefile
index 5c05398efcd9..62097010daad 100644
--- a/cad/linux-eagle/Makefile
+++ b/cad/linux-eagle/Makefile
@@ -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
diff --git a/cad/linux-eagle5/Makefile b/cad/linux-eagle5/Makefile
index 5c05398efcd9..62097010daad 100644
--- a/cad/linux-eagle5/Makefile
+++ b/cad/linux-eagle5/Makefile
@@ -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
diff --git a/chinese/chinput/Makefile b/chinese/chinput/Makefile
index a1e99708caab..7452185405f7 100644
--- a/chinese/chinput/Makefile
+++ b/chinese/chinput/Makefile
@@ -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>
diff --git a/chinese/chinput2/Makefile b/chinese/chinput2/Makefile
index 3392525c7326..b8b0493fb64d 100644
--- a/chinese/chinput2/Makefile
+++ b/chinese/chinput2/Makefile
@@ -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
diff --git a/comms/ghfaxviewer/Makefile b/comms/ghfaxviewer/Makefile
index 7b8c1362ee86..18158e09d883 100644
--- a/comms/ghfaxviewer/Makefile
+++ b/comms/ghfaxviewer/Makefile
@@ -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'
diff --git a/comms/tkscanfax/Makefile b/comms/tkscanfax/Makefile
index 9d9e565d9259..6b4e0aa73bb0 100644
--- a/comms/tkscanfax/Makefile
+++ b/comms/tkscanfax/Makefile
@@ -19,7 +19,7 @@ WRKSRC= ${WRKDIR}/${PORTNAME}
NO_BUILD= YES
post-extract:
- find ${WRKSRC} -name '*~' -delete
+ ${FIND} ${WRKSRC} -name '*~' -delete
do-install:
(\
diff --git a/comms/vpb2/Makefile b/comms/vpb2/Makefile
index 9d08f1fb09f2..3429ca6bf2a7 100644
--- a/comms/vpb2/Makefile
+++ b/comms/vpb2/Makefile
@@ -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>
diff --git a/databases/libgda/Makefile b/databases/libgda/Makefile
index 7dfe86ace624..8bb8656107d0 100644
--- a/databases/libgda/Makefile
+++ b/databases/libgda/Makefile
@@ -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>
diff --git a/databases/mysql323-server/Makefile b/databases/mysql323-server/Makefile
index d91c87953da7..0057a81049b9 100644
--- a/databases/mysql323-server/Makefile
+++ b/databases/mysql323-server/Makefile
@@ -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>
diff --git a/databases/pgaccess/Makefile b/databases/pgaccess/Makefile
index 6005c1171118..029cd470b21c 100644
--- a/databases/pgaccess/Makefile
+++ b/databases/pgaccess/Makefile
@@ -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
diff --git a/deskutils/yank/Makefile b/deskutils/yank/Makefile
index 647bb79d1f97..f0df83d97972 100644
--- a/deskutils/yank/Makefile
+++ b/deskutils/yank/Makefile
@@ -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>
diff --git a/devel/adasdl/Makefile b/devel/adasdl/Makefile
index 58742639b4e5..78c6a7831160 100644
--- a/devel/adasdl/Makefile
+++ b/devel/adasdl/Makefile
@@ -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
diff --git a/devel/bugzilla/Makefile b/devel/bugzilla/Makefile
index 8733d2f2543b..66b92c25b7f7 100644
--- a/devel/bugzilla/Makefile
+++ b/devel/bugzilla/Makefile
@@ -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)
diff --git a/devel/bugzilla2/Makefile b/devel/bugzilla2/Makefile
index 8733d2f2543b..66b92c25b7f7 100644
--- a/devel/bugzilla2/Makefile
+++ b/devel/bugzilla2/Makefile
@@ -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)
diff --git a/devel/bugzilla3/Makefile b/devel/bugzilla3/Makefile
index 8733d2f2543b..66b92c25b7f7 100644
--- a/devel/bugzilla3/Makefile
+++ b/devel/bugzilla3/Makefile
@@ -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)
diff --git a/devel/ccdoc/Makefile b/devel/ccdoc/Makefile
index 7451d26d54e6..13dab00b0386 100644
--- a/devel/ccdoc/Makefile
+++ b/devel/ccdoc/Makefile
@@ -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)
diff --git a/devel/directfb/Makefile b/devel/directfb/Makefile
index 7cf1a29138bf..daa77eb4fe46 100644
--- a/devel/directfb/Makefile
+++ b/devel/directfb/Makefile
@@ -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>
diff --git a/devel/fnorb/Makefile b/devel/fnorb/Makefile
index ce1809299b6c..413217f88014 100644
--- a/devel/fnorb/Makefile
+++ b/devel/fnorb/Makefile
@@ -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
diff --git a/devel/glg/Makefile b/devel/glg/Makefile
index fd22caf48685..47847f8e8ff0 100644
--- a/devel/glg/Makefile
+++ b/devel/glg/Makefile
@@ -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>
diff --git a/devel/gnome-vfs/Makefile b/devel/gnome-vfs/Makefile
index 194622e7791e..b7decdbd1fab 100644
--- a/devel/gnome-vfs/Makefile
+++ b/devel/gnome-vfs/Makefile
@@ -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 \
diff --git a/devel/gnome-vfs1/Makefile b/devel/gnome-vfs1/Makefile
index 58740eda5c16..12fe85e366e9 100644
--- a/devel/gnome-vfs1/Makefile
+++ b/devel/gnome-vfs1/Makefile
@@ -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
diff --git a/devel/gnomevfs/Makefile b/devel/gnomevfs/Makefile
index 58740eda5c16..12fe85e366e9 100644
--- a/devel/gnomevfs/Makefile
+++ b/devel/gnomevfs/Makefile
@@ -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
diff --git a/devel/gnomevfs2/Makefile b/devel/gnomevfs2/Makefile
index 194622e7791e..b7decdbd1fab 100644
--- a/devel/gnomevfs2/Makefile
+++ b/devel/gnomevfs2/Makefile
@@ -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 \
diff --git a/devel/invitation_to_ruby/Makefile b/devel/invitation_to_ruby/Makefile
index 964b35601db8..2554ab2bea54 100644
--- a/devel/invitation_to_ruby/Makefile
+++ b/devel/invitation_to_ruby/Makefile
@@ -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>
diff --git a/devel/moonshine/Makefile b/devel/moonshine/Makefile
index 3af8fa7d7045..b13ff7e925c7 100644
--- a/devel/moonshine/Makefile
+++ b/devel/moonshine/Makefile
@@ -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|' \
diff --git a/devel/p4db/Makefile b/devel/p4db/Makefile
index 9c30adc4d215..17a5bd2311c7 100644
--- a/devel/p4db/Makefile
+++ b/devel/p4db/Makefile
@@ -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
diff --git a/devel/p5-Class-Contract/Makefile b/devel/p5-Class-Contract/Makefile
index 5580bd70f6d8..d0e0544a7a36 100644
--- a/devel/p5-Class-Contract/Makefile
+++ b/devel/p5-Class-Contract/Makefile
@@ -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
diff --git a/devel/pharmacy/Makefile b/devel/pharmacy/Makefile
index a801c7c63a3b..3878e2bf645a 100644
--- a/devel/pharmacy/Makefile
+++ b/devel/pharmacy/Makefile
@@ -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'
diff --git a/devel/py-omniorb/Makefile b/devel/py-omniorb/Makefile
index 22f805bd92d9..2ca080e81f82 100644
--- a/devel/py-omniorb/Makefile
+++ b/devel/py-omniorb/Makefile
@@ -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
diff --git a/devel/qtez/Makefile b/devel/qtez/Makefile
index 297e811a5b7c..c5354cc12f64 100644
--- a/devel/qtez/Makefile
+++ b/devel/qtez/Makefile
@@ -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'
diff --git a/devel/ruby-gnustep/Makefile b/devel/ruby-gnustep/Makefile
index 4f625d900e5a..0f2a6c63dc22 100644
--- a/devel/ruby-gnustep/Makefile
+++ b/devel/ruby-gnustep/Makefile
@@ -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)
diff --git a/devel/swig13-doc/Makefile b/devel/swig13-doc/Makefile
index 2dddd4fe75f7..c934b7fce878 100644
--- a/devel/swig13-doc/Makefile
+++ b/devel/swig13-doc/Makefile
@@ -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>
diff --git a/devel/tcltls/Makefile b/devel/tcltls/Makefile
index a709b231e298..9a6aa9ebea8c 100644
--- a/devel/tcltls/Makefile
+++ b/devel/tcltls/Makefile
@@ -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
diff --git a/devel/tla/Makefile b/devel/tla/Makefile
index e9323a36005a..6f2227de54a9 100644
--- a/devel/tla/Makefile
+++ b/devel/tla/Makefile
@@ -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; \
diff --git a/devel/wxGlade/Makefile b/devel/wxGlade/Makefile
index c957b51612e6..7c4e83d90a49 100644
--- a/devel/wxGlade/Makefile
+++ b/devel/wxGlade/Makefile
@@ -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>
diff --git a/dns/bind9-dlz/Makefile b/dns/bind9-dlz/Makefile
index f93fe2518398..c3a0b6aa95a8 100644
--- a/dns/bind9-dlz/Makefile
+++ b/dns/bind9-dlz/Makefile
@@ -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
diff --git a/editors/AbiWord2/Makefile b/editors/AbiWord2/Makefile
index 31ca636302fd..6a383be58953 100644
--- a/editors/AbiWord2/Makefile
+++ b/editors/AbiWord2/Makefile
@@ -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}
diff --git a/editors/abiword-devel/Makefile b/editors/abiword-devel/Makefile
index 31ca636302fd..6a383be58953 100644
--- a/editors/abiword-devel/Makefile
+++ b/editors/abiword-devel/Makefile
@@ -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}
diff --git a/editors/abiword/Makefile b/editors/abiword/Makefile
index 31ca636302fd..6a383be58953 100644
--- a/editors/abiword/Makefile
+++ b/editors/abiword/Makefile
@@ -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}
diff --git a/editors/dedit/Makefile b/editors/dedit/Makefile
index 4f7f2066a622..8fa191c7837a 100644
--- a/editors/dedit/Makefile
+++ b/editors/dedit/Makefile
@@ -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||'
diff --git a/editors/mule-common/Makefile b/editors/mule-common/Makefile
index 378b98f4d298..4b98cd8d041e 100644
--- a/editors/mule-common/Makefile
+++ b/editors/mule-common/Makefile
@@ -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:
diff --git a/editors/mule/Makefile b/editors/mule/Makefile
index ab77d663ecd0..37acb4dea0fe 100644
--- a/editors/mule/Makefile
+++ b/editors/mule/Makefile
@@ -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:
diff --git a/editors/ooodict-all/Makefile b/editors/ooodict-all/Makefile
index 79ad65810a00..327698a01211 100644
--- a/editors/ooodict-all/Makefile
+++ b/editors/ooodict-all/Makefile
@@ -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 \
diff --git a/editors/xemacs-devel-mule/Makefile b/editors/xemacs-devel-mule/Makefile
index 05e3256232f1..47d18908968b 100644
--- a/editors/xemacs-devel-mule/Makefile
+++ b/editors/xemacs-devel-mule/Makefile
@@ -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::
diff --git a/editors/xemacs21-mule/Makefile b/editors/xemacs21-mule/Makefile
index bb0562ab1e9a..824b9cc2e7fc 100644
--- a/editors/xemacs21-mule/Makefile
+++ b/editors/xemacs21-mule/Makefile
@@ -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::
diff --git a/emulators/linux_base-8/Makefile b/emulators/linux_base-8/Makefile
index 3bf66b5c03e3..e1741a523e39 100644
--- a/emulators/linux_base-8/Makefile
+++ b/emulators/linux_base-8/Makefile
@@ -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} ''
diff --git a/emulators/linux_base-rh-9/Makefile b/emulators/linux_base-rh-9/Makefile
index 3bf66b5c03e3..e1741a523e39 100644
--- a/emulators/linux_base-rh-9/Makefile
+++ b/emulators/linux_base-rh-9/Makefile
@@ -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} ''
diff --git a/emulators/linux_base-suse-9.1/Makefile b/emulators/linux_base-suse-9.1/Makefile
index 3bf66b5c03e3..e1741a523e39 100644
--- a/emulators/linux_base-suse-9.1/Makefile
+++ b/emulators/linux_base-suse-9.1/Makefile
@@ -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} ''
diff --git a/emulators/linux_base-suse-9.2/Makefile b/emulators/linux_base-suse-9.2/Makefile
index 3bf66b5c03e3..e1741a523e39 100644
--- a/emulators/linux_base-suse-9.2/Makefile
+++ b/emulators/linux_base-suse-9.2/Makefile
@@ -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} ''
diff --git a/emulators/linux_base-suse-9.3/Makefile b/emulators/linux_base-suse-9.3/Makefile
index 3bf66b5c03e3..e1741a523e39 100644
--- a/emulators/linux_base-suse-9.3/Makefile
+++ b/emulators/linux_base-suse-9.3/Makefile
@@ -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} ''
diff --git a/emulators/sim/Makefile b/emulators/sim/Makefile
index 763e2d61d63e..c56de8cfc3f2 100644
--- a/emulators/sim/Makefile
+++ b/emulators/sim/Makefile
@@ -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
diff --git a/emulators/simh/Makefile b/emulators/simh/Makefile
index 763e2d61d63e..c56de8cfc3f2 100644
--- a/emulators/simh/Makefile
+++ b/emulators/simh/Makefile
@@ -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
diff --git a/ftp/ftpsearch/Makefile b/ftp/ftpsearch/Makefile
index 481f48bb0246..55366cc2d488 100644
--- a/ftp/ftpsearch/Makefile
+++ b/ftp/ftpsearch/Makefile
@@ -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
diff --git a/games/bomberinstinct/Makefile b/games/bomberinstinct/Makefile
index b522f6a6a524..115a4de9c42b 100644
--- a/games/bomberinstinct/Makefile
+++ b/games/bomberinstinct/Makefile
@@ -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>
diff --git a/games/egoboo/Makefile b/games/egoboo/Makefile
index 37579ddbdd90..bb922f2dec4f 100644
--- a/games/egoboo/Makefile
+++ b/games/egoboo/Makefile
@@ -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
diff --git a/games/gnocatan/Makefile b/games/gnocatan/Makefile