summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorobrien <obrien@FreeBSD.org>2005-04-12 03:26:56 +0000
committerobrien <obrien@FreeBSD.org>2005-04-12 03:26:56 +0000
commit3f8673b5304491d815979cbca9f5698f2e27e181 (patch)
treec5baddda5ee6043e9603695093e0628b6a5f6b85
parentc4111509081e059378dccea79903df7c1d4d2c75 (diff)
downloadFreeBSD-ports-3f8673b5304491d815979cbca9f5698f2e27e181.zip
FreeBSD-ports-3f8673b5304491d815979cbca9f5698f2e27e181.tar.gz
At Kris's request, back out the MACHINE_ARCH spelling correction until
after 5.4-RELEASE.
-rw-r--r--archivers/advancecomp/Makefile2
-rw-r--r--archivers/arj/Makefile2
-rw-r--r--archivers/cabextract/Makefile2
-rw-r--r--archivers/dact/Makefile2
-rw-r--r--archivers/dynamite/Makefile2
-rw-r--r--archivers/gzip/Makefile2
-rw-r--r--archivers/libdynamite/Makefile2
-rw-r--r--archivers/liborange/Makefile2
-rw-r--r--archivers/lzop/Makefile2
-rw-r--r--archivers/orange/Makefile2
-rw-r--r--archivers/par2cmdline/Makefile2
-rw-r--r--archivers/star/Makefile6
-rw-r--r--archivers/tardy/Makefile2
-rw-r--r--archivers/ucl/Makefile2
-rw-r--r--astro/fooseti/Makefile2
-rw-r--r--astro/match/Makefile2
-rw-r--r--astro/xtide/Makefile2
-rw-r--r--audio/ample/Makefile2
-rw-r--r--audio/arts/Makefile2
-rw-r--r--audio/autocd/Makefile2
-rw-r--r--audio/blop/Makefile2
-rw-r--r--audio/bmp-faad/Makefile2
-rw-r--r--audio/boodler/Makefile2
-rw-r--r--audio/cuetools/Makefile2
-rw-r--r--audio/darkice/Makefile2
-rw-r--r--audio/faac/Makefile2
-rw-r--r--audio/faad/Makefile2
-rw-r--r--audio/festival+OGI/Makefile2
-rw-r--r--audio/festival/Makefile2
-rw-r--r--audio/flac123/Makefile2
-rw-r--r--audio/lame/Makefile2
-rw-r--r--audio/linux-arts/Makefile8
-rw-r--r--audio/linux-esound/Makefile2
-rw-r--r--audio/linux-f10-arts/Makefile8
-rw-r--r--audio/linux-f10-esound/Makefile2
-rw-r--r--audio/linux-f10-libaudiofile/Makefile2
-rw-r--r--audio/linux-f8-arts/Makefile8
-rw-r--r--audio/linux-f8-esound/Makefile2
-rw-r--r--audio/linux-f8-libaudiofile/Makefile2
-rw-r--r--audio/linux-libaudiofile/Makefile2
-rw-r--r--audio/lplayer/Makefile2
-rw-r--r--audio/mbrola/Makefile8
-rw-r--r--audio/mp3splt/Makefile2
-rw-r--r--audio/mp3wrap/Makefile2
-rw-r--r--audio/mpc/Makefile2
-rw-r--r--audio/mpeg4ip-faad/Makefile2
-rw-r--r--audio/mpg321/Makefile2
-rw-r--r--audio/normalize/Makefile2
-rw-r--r--audio/openal/Makefile2
-rw-r--r--audio/osalp/Makefile2
-rw-r--r--audio/resid/Makefile2
-rw-r--r--audio/rioutil/Makefile2
-rw-r--r--audio/sdl_mixer/Makefile2
-rw-r--r--audio/sdl_sound/Makefile2
-rw-r--r--audio/snack/Makefile2
-rw-r--r--audio/speex-devel/Makefile2
-rw-r--r--audio/speex/Makefile2
-rw-r--r--audio/swhplugins/Makefile2
-rw-r--r--audio/taglib/Makefile2
-rw-r--r--audio/tclmidi/Makefile2
-rw-r--r--audio/umix/Makefile2
-rw-r--r--audio/vorbisgain/Makefile2
-rw-r--r--audio/xhippo/Makefile2
-rw-r--r--audio/xmms-arts_output/Makefile2
-rw-r--r--audio/xmms-faad/Makefile2
-rw-r--r--audio/xmms-kde/Makefile2
-rw-r--r--audio/xmms-real-random/Makefile2
-rw-r--r--audio/xmms-volnorm/Makefile2
-rw-r--r--audio/xmp/Makefile2
-rw-r--r--audio/xsidplay/Makefile2
-rw-r--r--benchmarks/dkftpbench/Makefile2
-rw-r--r--benchmarks/himenobench/Makefile2
-rw-r--r--biology/avida/Makefile2
-rw-r--r--biology/deft/files/Makefile.deft2
-rw-r--r--biology/garlic/Makefile2
-rw-r--r--biology/libgenome/Makefile2
-rw-r--r--biology/migrate/Makefile2
-rw-r--r--biology/mopac/Makefile2
-rw-r--r--biology/platon/Makefile2
-rw-r--r--biology/treepuzzle/Makefile2
-rw-r--r--biology/xdrawchem/Makefile2
-rw-r--r--cad/gmsh/Makefile2
-rw-r--r--cad/gtkwave/Makefile2
-rw-r--r--cad/qfsm/Makefile2
-rw-r--r--cad/xcircuit/Makefile2
-rw-r--r--chinese/iiimf-le-newpy/Makefile2
-rw-r--r--chinese/iiimf-le-ude/Makefile2
-rw-r--r--chinese/iiimf-le-xcin/Makefile2
-rw-r--r--chinese/xemacs/Makefile2
-rw-r--r--comms/lirc/Makefile2
-rw-r--r--comms/qicosi/Makefile2
-rw-r--r--comms/scmxx/Makefile2
-rw-r--r--converters/enca/Makefile2
-rw-r--r--converters/fix-mime-charset/Makefile2
-rw-r--r--converters/psiconv/Makefile2
-rw-r--r--converters/shftool/Makefile2
-rw-r--r--converters/tnef/Makefile2
-rw-r--r--databases/courier-authlib-mysql/Makefile2
-rw-r--r--databases/courier-authlib-pgsql/Makefile2
-rw-r--r--databases/courier-authlib-userdb/Makefile2
-rw-r--r--databases/courier-authlib-usergdbm/Makefile2
-rw-r--r--databases/db3/Makefile2
-rw-r--r--databases/db4/Makefile2
-rw-r--r--databases/db41/Makefile2
-rw-r--r--databases/dbconnect/Makefile2
-rw-r--r--databases/gdbm/Makefile2
-rw-r--r--databases/gigabase/Makefile2
-rw-r--r--databases/gnome-db/Makefile2
-rw-r--r--databases/gnomedb/Makefile2
-rw-r--r--databases/hk_classes/Makefile2
-rw-r--r--databases/knoda/Makefile2
-rw-r--r--databases/libgda/Makefile2
-rw-r--r--databases/mysql-navigator/Makefile2
-rw-r--r--databases/mysql323-server/Makefile2
-rw-r--r--databases/mysql40-server/Makefile2
-rw-r--r--databases/mysql41-server/Makefile2
-rw-r--r--databases/mysql50-server/Makefile2
-rw-r--r--databases/mysql51-server/Makefile2
-rw-r--r--databases/mysql54-server/Makefile2
-rw-r--r--databases/mysql55-server/Makefile2
-rw-r--r--databases/mysql60-server/Makefile2
-rw-r--r--databases/percona55-server/Makefile2
-rw-r--r--databases/rrdtool/Makefile2
-rw-r--r--databases/rrdtool10/Makefile2
-rw-r--r--databases/sqlite2/Makefile2
-rw-r--r--databases/sqlite3/Makefile2
-rw-r--r--databases/sqlite34/Makefile2
-rw-r--r--databases/sqlrelay/Makefile2
-rw-r--r--databases/xbsql/Makefile2
-rw-r--r--deskutils/taskjuggler/Makefile2
-rw-r--r--devel/ac-archive/Makefile2
-rw-r--r--devel/aegis/Makefile2
-rw-r--r--devel/argp-standalone/Makefile2
-rw-r--r--devel/argtable/Makefile2
-rw-r--r--devel/autoconf213/Makefile2
-rw-r--r--devel/autoconf253/Makefile2
-rw-r--r--devel/autoconf259/Makefile2
-rw-r--r--devel/autoconf26/Makefile2
-rw-r--r--devel/autoconf261/Makefile2
-rw-r--r--devel/autoconf262/Makefile2
-rw-r--r--devel/autoconf267/Makefile2
-rw-r--r--devel/autoconf268/Makefile2
-rw-r--r--devel/automake110/Makefile2
-rw-r--r--devel/automake15/Makefile2
-rw-r--r--devel/automake19/Makefile2
-rw-r--r--devel/avr-binutils/Makefile4
-rw-r--r--devel/avr-gcc-3/Makefile2
-rw-r--r--devel/avr-gcc/Makefile2
-rw-r--r--devel/bison-devel/Makefile2
-rw-r--r--devel/bison/Makefile2
-rw-r--r--devel/bison175/Makefile2
-rw-r--r--devel/bison1875/Makefile2
-rw-r--r--devel/bison2/Makefile2
-rw-r--r--devel/bison20/Makefile2
-rw-r--r--devel/bonobo/Makefile2
-rw-r--r--devel/c_c++_reference/Makefile2
-rw-r--r--devel/ccache/Makefile2
-rw-r--r--devel/cdialog/Makefile2
-rw-r--r--devel/cook/Makefile2
-rw-r--r--devel/cproto/Makefile2
-rw-r--r--devel/cstringbuffer/Makefile2
-rw-r--r--devel/cvsd/Makefile2
-rw-r--r--devel/cvsnt/Makefile2
-rw-r--r--devel/cxref/Makefile2
-rw-r--r--devel/ddd/Makefile2
-rw-r--r--devel/dmalloc/Makefile2
-rw-r--r--devel/doxygen/Makefile2
-rw-r--r--devel/fam/Makefile2
-rw-r--r--devel/gaul/Makefile2
-rw-r--r--devel/gengetopt/Makefile2
-rw-r--r--devel/gindent/Makefile10
-rw-r--r--devel/global/Makefile2
-rw-r--r--devel/gnu-autoconf/Makefile2
-rw-r--r--devel/gnu-automake/Makefile2
-rw-r--r--devel/gnu-libtool/Makefile2
-rw-r--r--devel/gnustep/Makefile4
-rw-r--r--devel/gputils/Makefile2
-rw-r--r--devel/gsoap/Makefile2
-rw-r--r--devel/gtgt/Makefile2
-rw-r--r--devel/i386-rtems-g77/Makefile2
-rw-r--r--devel/i386-rtems-gcc/Makefile2
-rw-r--r--devel/i386-rtems-objc/Makefile2
-rw-r--r--devel/jam/Makefile2
-rw-r--r--devel/jrtplib/Makefile2
-rw-r--r--devel/kaptain/Makefile2
-rw-r--r--devel/kimwitu++/Makefile2
-rw-r--r--devel/libbfd/Makefile2
-rw-r--r--devel/libchipcard-kde/Makefile2
-rw-r--r--devel/libchipcard/Makefile2
-rw-r--r--devel/libfs++/Makefile2
-rw-r--r--devel/libghthash/Makefile2
-rw-r--r--devel/libglade/Makefile2
-rw-r--r--devel/libgutenfetch/Makefile2
-rw-r--r--devel/libmimedir/Makefile2
-rw-r--r--devel/libole2/Makefile2
-rw-r--r--devel/libpreps-devel/Makefile2
-rw-r--r--devel/libpreps/Makefile2
-rw-r--r--devel/libtar/Makefile2
-rw-r--r--devel/libtool13/Makefile2
-rw-r--r--devel/libtool15/Makefile2
-rw-r--r--devel/libzt/Makefile2
-rw-r--r--devel/lightning/Makefile2
-rw-r--r--devel/linux-allegro/Makefile2
-rw-r--r--devel/linux-f10-allegro/Makefile2
-rw-r--r--devel/linux-f10-libglade/Makefile2
-rw-r--r--devel/linux-f10-libglade2/Makefile2
-rw-r--r--devel/linux-f10-sdl12/Makefile6
-rw-r--r--devel/linux-f8-allegro/Makefile2
-rw-r--r--devel/linux-f8-libglade/Makefile2
-rw-r--r--devel/linux-f8-libglade2/Makefile2
-rw-r--r--devel/linux-f8-sdl12/Makefile6
-rw-r--r--devel/linux-libglade/Makefile2
-rw-r--r--devel/linux-libglade2/Makefile2
-rw-r--r--devel/linux-sdl12/Makefile6
-rw-r--r--devel/linux_devtools-6/Makefile18
-rw-r--r--devel/linux_devtools-7/Makefile14
-rw-r--r--devel/log4c/Makefile2
-rw-r--r--devel/log4cplus/Makefile2
-rw-r--r--devel/log4cpp/Makefile2
-rw-r--r--devel/log4cxx/Makefile2
-rw-r--r--devel/lwp/Makefile2
-rw-r--r--devel/m17n-db/Makefile2
-rw-r--r--devel/mico/Makefile2
-rw-r--r--devel/mm/Makefile2
-rw-r--r--devel/monotone/Makefile2
-rw-r--r--devel/nasm/Makefile2
-rw-r--r--devel/oaf/Makefile2
-rw-r--r--devel/omniNotify/Makefile2
-rw-r--r--devel/omniORB/Makefile2
-rw-r--r--devel/p4v/Makefile4
-rw-r--r--devel/pcre++/Makefile2
-rw-r--r--devel/pcre/Makefile2
-rw-r--r--devel/php-xdebug/Makefile2
-rw-r--r--devel/phptags/Makefile2
-rw-r--r--devel/popt/Makefile2
-rw-r--r--devel/poslib/Makefile2
-rw-r--r--devel/preps-gui/Makefile2
-rw-r--r--devel/prepstools/Makefile2
-rw-r--r--devel/privman/Makefile2
-rw-r--r--devel/pth/Makefile2
-rw-r--r--devel/py-omniorb/Makefile2
-rw-r--r--devel/ragel/Makefile2
-rw-r--r--devel/rlwrap/Makefile2
-rw-r--r--devel/ruby-gnustep/Makefile4
-rw-r--r--devel/rudiments/Makefile2
-rw-r--r--devel/sdl12/Makefile2
-rw-r--r--devel/shmap/Makefile2
-rw-r--r--devel/silc-toolkit/Makefile2
-rw-r--r--devel/splint/Makefile3
-rw-r--r--devel/subversion-devel/Makefile2
-rw-r--r--devel/subversion-freebsd/Makefile2
-rw-r--r--devel/subversion/Makefile2
-rw-r--r--devel/subversion16/Makefile2
-rw-r--r--devel/valgrind-snapshot/Makefile2
-rw-r--r--devel/valgrind/Makefile2
-rw-r--r--devel/zziplib/Makefile2
-rw-r--r--dns/dnrd/Makefile2
-rw-r--r--dns/nsd/Makefile2
-rw-r--r--dns/posadis/Makefile2
-rw-r--r--dns/updatedd/Makefile2
-rw-r--r--editors/MathPlanner/Makefile2
-rw-r--r--editors/aewan/Makefile2
-rw-r--r--editors/cooledit/Makefile2
-rw-r--r--editors/emacs/Makefile2
-rw-r--r--editors/emacs19/Makefile2
-rw-r--r--editors/emacs20-dl/Makefile2
-rw-r--r--editors/emacs20-mule-devel/Makefile2
-rw-r--r--editors/emacs20/Makefile2
-rw-r--r--editors/emacs22/Makefile2
-rw-r--r--editors/emacs23/Makefile2
-rw-r--r--editors/hexcurse/Makefile2
-rw-r--r--editors/hte/Makefile2
-rw-r--r--editors/joe-devel/Makefile2
-rw-r--r--editors/lfhex/Makefile2
-rw-r--r--editors/poedit/Makefile2
-rw-r--r--editors/ssed/Makefile2
-rw-r--r--editors/ted/Makefile2
-rw-r--r--editors/tetradraw/Makefile2
-rw-r--r--editors/xemacs-devel-mule/Makefile2
-rw-r--r--editors/xemacs-devel/Makefile2
-rw-r--r--editors/xemacs/Makefile2
-rw-r--r--editors/xemacs21-mule/Makefile2
-rw-r--r--editors/zile/Makefile2
-rw-r--r--emulators/atari800/Makefile2
-rw-r--r--emulators/bochs/Makefile2
-rw-r--r--emulators/generator/Makefile2
-rw-r--r--emulators/hatari/Makefile2
-rw-r--r--emulators/kmamerun/Makefile2
-rw-r--r--emulators/linux_base-suse-9.1/Makefile8
-rw-r--r--emulators/pearpc/Makefile2
-rw-r--r--emulators/snes9x/Makefile2
-rw-r--r--emulators/twin/Makefile2
-rw-r--r--emulators/xbraitenberg/Makefile2
-rw-r--r--emulators/zsnes/Makefile2
-rw-r--r--finance/khacc/Makefile2
-rw-r--r--finance/ktoblzcheck/Makefile2
-rw-r--r--finance/qhacc/Makefile2
-rw-r--r--finance/quantlib/Makefile2
-rw-r--r--french/med/Makefile2
-rw-r--r--ftp/frox/Makefile2
-rw-r--r--ftp/muddleftpd/Makefile2
-rw-r--r--ftp/ocaml-ocurl/Makefile2
-rw-r--r--ftp/oftpd/Makefile2
-rw-r--r--ftp/quftp/Makefile2
-rw-r--r--ftp/wgetpro/Makefile2
-rw-r--r--ftp/wput/Makefile2
-rw-r--r--ftp/wzdftpd/Makefile2
-rw-r--r--ftp/yafc/Makefile2
-rw-r--r--games/abuse_sdl/Makefile2
-rw-r--r--games/adonthell/Makefile2
-rw-r--r--games/afternoonstalker/Makefile2
-rw-r--r--games/amy/Makefile2
-rw-r--r--games/briquolo/Makefile2
-rw-r--r--games/cgoban/Makefile2
-rw-r--r--games/crafty/Makefile4
-rw-r--r--games/criticalmass/Makefile2
-rw-r--r--games/crossfire-server/Makefile2
-rw-r--r--games/d2x/Makefile2
-rw-r--r--games/deng/Makefile2
-rw-r--r--games/exult/Makefile2
-rw-r--r--games/freecell-solver/Makefile2
-rw-r--r--games/fuhquake/files/Makefile8
-rw-r--r--games/glob2/Makefile2
-rw-r--r--games/gltron/Makefile2
-rw-r--r--games/gnuchess/Makefile2
-rw-r--r--games/gturing/Makefile2
-rw-r--r--games/heroes/Makefile2
-rw-r--r--games/ifm/Makefile2
-rw-r--r--games/jfk/Makefile2
-rw-r--r--games/kpicframer/Makefile2
-rw-r--r--games/kpictorial/Makefile2
-rw-r--r--games/lincity/Makefile2
-rw-r--r--games/maelstrom/Makefile2
-rw-r--r--games/mvdsv/Makefile2
-rw-r--r--games/mvdsv/files/Makefile4
-rw-r--r--games/openmortal/Makefile2
-rw-r--r--games/pinball/Makefile6
-rw-r--r--games/qgo/Makefile2
-rw-r--r--games/quake2forge/Makefile2
-rw-r--r--games/quakeforge/Makefile2
-rw-r--r--games/ssc/Makefile2
-rw-r--r--games/supertux/Makefile2
-rw-r--r--games/torcs/Makefile2
-rw-r--r--games/trackballs/Makefile2
-rw-r--r--games/vamos/Makefile2
-rw-r--r--games/wmpuzzle/Makefile2
-rw-r--r--games/xabacus/Makefile2
-rw-r--r--german/ksteak/Makefile2
-rw-r--r--graphics/Coin/Makefile2
-rw-r--r--graphics/Hermes/Makefile2
-rw-r--r--graphics/bugle/Makefile2
-rw-r--r--graphics/demeter/Makefile2
-rw-r--r--graphics/divxcalc/Makefile2
-rw-r--r--graphics/dvipng/Makefile2
-rw-r--r--graphics/feh/Makefile2
-rw-r--r--graphics/ftgl/Makefile2
-rw-r--r--graphics/g3dviewer/Makefile2
-rw-r--r--graphics/gdk-pixbuf/Makefile2
-rw-r--r--graphics/geos/Makefile2
-rw-r--r--graphics/giflib/Makefile2
-rw-r--r--graphics/gifsicle/Makefile2
-rw-r--r--graphics/gltt/Makefile2
-rw-r--r--graphics/gozer/Makefile2
-rw-r--r--graphics/hs-hgl/Makefile2
-rw-r--r--graphics/hugin/Makefile2
-rw-r--r--graphics/jpegpixi/Makefile2
-rw-r--r--graphics/kdc2tiff/Makefile2
-rw-r--r--graphics/libcaca/Makefile2
-rw-r--r--graphics/libungif/Makefile2
-rw-r--r--graphics/libvisual/Makefile2
-rw-r--r--graphics/libvisual04/Makefile2
-rw-r--r--graphics/libwpcg/Makefile2
-rw-r--r--graphics/linux-f10-gdk-pixbuf/Makefile4
-rw-r--r--graphics/linux-f10-imlib/Makefile2
-rw-r--r--graphics/linux-f10-jpeg/Makefile2
-rw-r--r--graphics/linux-f10-libmng/Makefile10
-rw-r--r--graphics/linux-f10-sdl_image/Makefile2
-rw-r--r--graphics/linux-f10-ungif/Makefile6
-rw-r--r--graphics/linux-f8-gdk-pixbuf/Makefile4
-rw-r--r--graphics/linux-f8-imlib/Makefile2
-rw-r--r--graphics/linux-f8-jpeg/Makefile2
-rw-r--r--graphics/linux-f8-libmng/Makefile10
-rw-r--r--graphics/linux-f8-sdl_image/Makefile2
-rw-r--r--graphics/linux-f8-ungif/Makefile6
-rw-r--r--graphics/linux-gdk-pixbuf/Makefile4
-rw-r--r--graphics/linux-imlib/Makefile2
-rw-r--r--graphics/linux-jpeg/Makefile2
-rw-r--r--graphics/linux-libmng/Makefile10
-rw-r--r--graphics/linux-sdl_image/Makefile2
-rw-r--r--graphics/linux-ungif/Makefile6
-rw-r--r--graphics/megapov/Makefile2
-rw-r--r--graphics/opendx/Makefile2
-rw-r--r--graphics/pixie/Makefile2
-rw-r--r--graphics/povray/Makefile6
-rw-r--r--graphics/povray36/Makefile6
-rw-r--r--graphics/povray37/Makefile6
-rw-r--r--graphics/qglviewer/Makefile2
-rw-r--r--graphics/qtutils/Makefile2
-rw-r--r--graphics/quesa/Makefile2
-rw-r--r--graphics/sam2p/Makefile2
-rw-r--r--graphics/scrot/Makefile2
-rw-r--r--graphics/sdl_gfx/Makefile2
-rw-r--r--graphics/sdl_image/Makefile2
-rw-r--r--graphics/sdl_ttf/Makefile2
-rw-r--r--graphics/simage/Makefile2
-rw-r--r--graphics/swftools/Makefile2
-rw-r--r--graphics/tif22pnm/Makefile2
-rw-r--r--graphics/tulip/Makefile2
-rw-r--r--graphics/white_dune/Makefile2
-rw-r--r--graphics/xmedcon/Makefile2
-rw-r--r--graphics/xpdf/Makefile23
-rw-r--r--graphics/zimg/Makefile2
-rw-r--r--irc/bitchx/Makefile2
-rw-r--r--irc/bopm/Makefile2
-rw-r--r--irc/eggdrop/Makefile2
-rw-r--r--irc/irc/Makefile4
-rw-r--r--irc/irssi-devel/Makefile2
-rw-r--r--irc/irssi/Makefile2
-rw-r--r--irc/miau/Makefile2
-rw-r--r--irc/ngircd/Makefile2
-rw-r--r--irc/quirc/Makefile2
-rw-r--r--irc/srvx/Makefile2
-rw-r--r--irc/undernet-ircu/Makefile2
-rw-r--r--irc/xaric/Makefile2
-rw-r--r--japanese/bookview/Makefile2
-rw-r--r--japanese/eb/Makefile2
-rw-r--r--japanese/eb3/Makefile2
-rw-r--r--japanese/eblook/Makefile2
-rw-r--r--japanese/ebnetd/Makefile2
-rw-r--r--japanese/ebview/Makefile2
-rw-r--r--japanese/emacs-emcws/Makefile2
-rw-r--r--japanese/emacs20-dl-canna/Makefile2
-rw-r--r--japanese/emacs20-dl-wnn6/Makefile2
-rw-r--r--japanese/emacs20-emcws/Makefile2
-rw-r--r--japanese/iiimf-le-canna/Makefile2
-rw-r--r--japanese/iiimf-le-freewnn/Makefile2
-rw-r--r--japanese/perl5/Makefile2
-rw-r--r--korean/hanemacs/Makefile2
-rw-r--r--korean/iiimf-le-hangul/Makefile2
-rw-r--r--korean/uniksc/Makefile2
-rw-r--r--lang/asn1c/Makefile2
-rw-r--r--lang/cyclone/Makefile8
-rw-r--r--lang/elk/Makefile2
-rw-r--r--lang/ferite/Makefile4
-rw-r--r--lang/gforth/Makefile4
-rw-r--r--lang/gprolog/Makefile2
-rw-r--r--lang/hugs/Makefile2
-rw-r--r--lang/libutils/Makefile2
-rw-r--r--lang/lua/Makefile2
-rw-r--r--lang/lua4/Makefile2
-rw-r--r--lang/lua50/Makefile2
-rw-r--r--lang/nickle/Makefile2
-rw-r--r--lang/onyx/Makefile2
-rw-r--r--lang/open-cobol-devel/Makefile2
-rw-r--r--lang/open-cobol/Makefile2
-rw-r--r--lang/python-devel/Makefile2
-rw-r--r--lang/python/Makefile2
-rw-r--r--lang/python23/Makefile2
-rw-r--r--lang/python24/Makefile2
-rw-r--r--lang/python25/Makefile2
-rw-r--r--lang/python26/Makefile2
-rw-r--r--lang/python27/Makefile2
-rw-r--r--lang/python30/Makefile2
-rw-r--r--lang/python31/Makefile2
-rw-r--r--lang/python32/Makefile2
-rw-r--r--lang/rscheme/Makefile2
-rw-r--r--lang/smalltalk/Makefile2
-rw-r--r--lang/swi-pl/Makefile2
-rw-r--r--lang/tensile/Makefile2
-rw-r--r--lang/xsb/Makefile2
-rw-r--r--lang/yabasic/Makefile2
-rw-r--r--lang/yap/Makefile2
-rw-r--r--mail/anubis/Makefile2
-rw-r--r--mail/bbmail/Makefile2
-rw-r--r--mail/bincimap/Makefile2
-rw-r--r--mail/bogofilter-current/Makefile2
-rw-r--r--mail/bogofilter/Makefile2
-rw-r--r--mail/cone/Makefile2
-rw-r--r--mail/courier-authlib-vchkpw/Makefile2
-rw-r--r--mail/courier-authlib/Makefile2
-rw-r--r--mail/courier-imap/Makefile2
-rw-r--r--mail/courier/Makefile2
-rw-r--r--mail/crashecho/Makefile2
-rw-r--r--mail/dovecot-devel/Makefile2
-rw-r--r--mail/dovecot/Makefile2
-rw-r--r--mail/dspam-devel/Makefile2
-rw-r--r--mail/dspam/Makefile2
-rw-r--r--mail/esmtp/Makefile2
-rw-r--r--mail/faces/Makefile2
-rw-r--r--mail/fetchmail/Makefile2
-rw-r--r--mail/filtermail/Makefile2
-rw-r--r--mail/gensig/Makefile2
-rw-r--r--mail/gmime/Makefile2
-rw-r--r--mail/gnarwl/Makefile2
-rw-r--r--mail/ifile/Makefile2
-rw-r--r--mail/isoqlog/Makefile2
-rw-r--r--mail/isync/Makefile2
-rw-r--r--mail/libesmtp/Makefile2
-rw-r--r--mail/libetpan/Makefile2
-rw-r--r--mail/libspf-alt/Makefile2
-rw-r--r--mail/libspf2-10/Makefile2
-rw-r--r--mail/libspf2/Makefile2
-rw-r--r--mail/libsrs2/Makefile2
-rw-r--r--mail/lmtpd/Makefile2
-rw-r--r--mail/maildrop/Makefile2
-rw-r--r--mail/masqmail-devel/Makefile2
-rw-r--r--mail/milter-greylist-devel/Makefile2
-rw-r--r--mail/milter-greylist/Makefile2
-rw-r--r--mail/milter-spamc/Makefile2
-rw-r--r--mail/msmtp/Makefile2
-rw-r--r--mail/mutt/Makefile2
-rw-r--r--mail/mutt14/Makefile2
-rw-r--r--mail/renattach/Makefile2
-rw-r--r--mail/spamguard/Makefile2
-rw-r--r--mail/sqwebmail/Makefile2
-rw-r--r--mail/tpop3d/Makefile2
-rw-r--r--mail/vqadmin/Makefile2
-rw-r--r--math/PDL/Makefile2
-rw-r--r--math/atlas-devel/Makefile4
-rw-r--r--math/atlas/Makefile4
-rw-r--r--math/blitz++/Makefile2
-rw-r--r--math/ccmath/Makefile2
-rw-r--r--math/dislin/Makefile8
-rw-r--r--math/fftw/Makefile2
-rw-r--r--math/freefem++/Makefile2
-rw-r--r--math/freemat/Makefile2
-rw-r--r--math/gnuplot/Makefile2
-rw-r--r--math/gsl/Makefile2
-rw-r--r--math/linux-dislin/Makefile8
-rw-r--r--math/netcdf/Makefile2
-rw-r--r--math/orpie/Makefile2
-rw-r--r--math/plplot/Makefile2
-rw-r--r--math/sdpa/Makefile2
-rw-r--r--math/tvmet/Makefile2
-rw-r--r--math/yacas/Makefile2
-rw-r--r--misc/amanda-server/Makefile4
-rw-r--r--misc/amanda25-server/Makefile4
-rw-r--r--misc/amanda26-server/Makefile4
-rw-r--r--misc/amanda32-server/Makefile4
-rw-r--r--misc/dejagnu/Makefile2
-rw-r--r--misc/iselect/Makefile2
-rw-r--r--misc/iso-codes/Makefile2
-rw-r--r--misc/kcd-devel/Makefile2
-rw-r--r--misc/kcd/Makefile2
-rw-r--r--misc/latex-mk/Makefile2
-rw-r--r--misc/libhome/Makefile2
-rw-r--r--misc/lifelines/Makefile2
-rw-r--r--misc/linux-opengroupware/Makefile4
-rw-r--r--misc/patchutils/Makefile2
-rw-r--r--misc/sword/Makefile2
-rw-r--r--misc/sword15/Makefile2
-rw-r--r--misc/talkfilters/Makefile2
-rw-r--r--misc/uf-view/Makefile2
-rw-r--r--misc/wmwork/Makefile2
-rw-r--r--misc/xdelta/Makefile2
-rw-r--r--multimedia/camserv/Makefile2
-rw-r--r--multimedia/emovix/Makefile2
-rw-r--r--multimedia/kaffeine/Makefile2
-rw-r--r--multimedia/kmplayer-kde4/Makefile2
-rw-r--r--multimedia/kmplayer/Makefile2
-rw-r--r--multimedia/libdvbpsi/Makefile2
-rw-r--r--multimedia/libfame/Makefile2
-rw-r--r--multimedia/libmpeg3/Makefile4
-rw-r--r--multimedia/transcode/Makefile2
-rw-r--r--multimedia/xmms/Makefile2
-rw-r--r--net-im/ari-yahoo/Makefile2
-rw-r--r--net-im/climm/Makefile2
-rw-r--r--net-im/ickle/Makefile2
-rw-r--r--net-im/kf/Makefile2
-rw-r--r--net-im/linux-ymessenger/Makefile2
-rw-r--r--net-im/micq/Makefile2
-rw-r--r--net-im/naim/Makefile2
-rw-r--r--net-im/pork/Makefile2
-rw-r--r--net-im/sim-im/Makefile2
-rw-r--r--net-im/simicq/Makefile2
-rw-r--r--net-mgmt/ap-utils/Makefile2
-rw-r--r--net-mgmt/arpscan/Makefile2
-rw-r--r--net-mgmt/darkstat/Makefile2
-rw-r--r--net-mgmt/disco/Makefile2
-rw-r--r--net-mgmt/echolot/Makefile2
-rw-r--r--net-mgmt/fprobe/Makefile2
-rw-r--r--net-mgmt/iftop/Makefile2
-rw-r--r--net-mgmt/nefu/Makefile2
-rw-r--r--net-mgmt/nfdump-devel/Makefile2
-rw-r--r--net-mgmt/nfdump/Makefile2
-rw-r--r--net-mgmt/openvmps/Makefile2
-rw-r--r--net-mgmt/packit/Makefile2
-rw-r--r--net-mgmt/pmacct/Makefile2
-rw-r--r--net-mgmt/tcptrack/Makefile2
-rw-r--r--net-p2p/mutella/Makefile2
-rw-r--r--net-p2p/opendchub/Makefile2
-rw-r--r--net-p2p/valknut/Makefile2
-rw-r--r--net/4g8/Makefile2
-rw-r--r--net/amule-devel/Makefile2
-rw-r--r--net/ari-yahoo/Makefile2
-rw-r--r--net/b2bua/Makefile2
-rw-r--r--net/beacon/Makefile2
-rw-r--r--net/bfilter/Makefile2
-rw-r--r--net/c3270/Makefile2
-rw-r--r--net/courier-authlib-ldap/Makefile2
-rw-r--r--net/dante/Makefile2
-rw-r--r--net/freewais-sf/Makefile2
-rw-r--r--net/gutenfetch/Makefile2
-rw-r--r--net/hidentd/Makefile2
-rw-r--r--net/honeyd/Makefile2
-rw-r--r--net/ickle/Makefile2
-rw-r--r--net/icpld/Makefile2
-rw-r--r--net/ipsumdump/Makefile2
-rw-r--r--net/kf/Makefile2
-rw-r--r--net/latd/Makefile2
-rw-r--r--net/libnet-devel/Makefile2
-rw-r--r--net/libnetdude/Makefile2
-rw-r--r--net/librsync/Makefile2
-rw-r--r--net/linux-ymessenger/Makefile2
-rw-r--r--net/micq/Makefile2
-rw-r--r--net/minisapserver/Makefile2
-rw-r--r--net/mutella/Makefile2
-rw-r--r--net/naim/Makefile2
-rw-r--r--net/nast/Makefile2
-rw-r--r--net/nc6/Makefile2
-rw-r--r--net/netatalk/Makefile2
-rw-r--r--net/ntop/Makefile2
-rw-r--r--net/nylon/Makefile2
-rw-r--r--net/opendchub/Makefile2
-rw-r--r--net/openldap21-server/Makefile2
-rw-r--r--net/openldap22-server/Makefile2
-rw-r--r--net/openslp/Makefile2
-rw-r--r--net/poink/Makefile4
-rw-r--r--net/pork/Makefile2
-rw-r--r--net/portfwd/Makefile2
-rw-r--r--net/rrdtool/Makefile2
-rw-r--r--net/rrdtool10/Makefile2
-rw-r--r--net/rsync/Makefile2
-rw-r--r--net/samba3/Makefile2
-rw-r--r--net/serveez/Makefile2
-rw-r--r--net/silc-client/Makefile2
-rw-r--r--net/silky/Makefile2
-rw-r--r--net/simicq/Makefile2
-rw-r--r--net/socat/Makefile2
-rw-r--r--net/tac_plus4/Makefile2
-rw-r--r--net/tacshell/Makefile2
-rw-r--r--net/tcpstat/Makefile2
-rw-r--r--net/trickle/Makefile2
-rw-r--r--net/tridiavnc/Makefile4
-rw-r--r--net/uplog/Makefile2
-rw-r--r--net/valknut/Makefile2
-rw-r--r--net/vomit/Makefile2
-rw-r--r--net/wol/Makefile2
-rw-r--r--news/fidogate-ds/Makefile2
-rw-r--r--news/leafnode/Makefile2
-rw-r--r--news/multisuck/Makefile2
-rw-r--r--news/nget/Makefile2
-rw-r--r--news/noffle/Makefile2
-rw-r--r--news/pyne/Makefile2
-rw-r--r--news/yencode/Makefile2
-rw-r--r--palm/synce-dccm/Makefile2
-rw-r--r--palm/synce-kde/Makefile2
-rw-r--r--palm/synce-librapi2/Makefile2
-rw-r--r--palm/synce-librra/Makefile2
-rw-r--r--palm/synce-libsynce/Makefile2
-rw-r--r--palm/synce-rra/Makefile2
-rw-r--r--palm/synce-serial/Makefile2
-rw-r--r--palm/synce-vdccm/Makefile2
-rw-r--r--ports-mgmt/portdowngrade/Makefile2
-rw-r--r--print/cpp2latex/Makefile2
-rw-r--r--print/cups-pstoraster/Makefile2
-rw-r--r--print/cups/Makefile.common2
-rw-r--r--print/enscript-letter/Makefile2
-rw-r--r--print/fontforge/Makefile2
-rw-r--r--print/gv/Makefile2
-rw-r--r--print/kaspaliste/Makefile2
-rw-r--r--print/libotf/Makefile2
-rw-r--r--print/mftrace/Makefile2
-rw-r--r--print/tipograf/Makefile2
-rw-r--r--print/typetools/Makefile2
-rw-r--r--russian/ksocrat/Makefile2
-rw-r--r--russian/xruskb/Makefile2
-rw-r--r--science/2dhf/Makefile2
-rw-r--r--science/buddy/Makefile2
-rw-r--r--science/chemtool/Makefile2
-rw-r--r--science/dft++/Makefile2
-rw-r--r--science/getdp/Makefile2
-rw-r--r--science/gromacs/Makefile4
-rw-r--r--science/kmovisto/Makefile2
-rw-r--r--science/netcdf/Makefile2
-rw-r--r--science/netcdf4/Makefile2
-rw-r--r--security/barnyard/Makefile2
-rw-r--r--security/beecrypt/Makefile2
-rw-r--r--security/bro/Makefile2
-rw-r--r--security/bubblegum/Makefile2
-rw-r--r--security/checkpassword-pam/Makefile2
-rw-r--r--security/clamav-devel/Makefile2
-rw-r--r--security/clamav/Makefile2
-rw-r--r--security/courier-authlib-base/Makefile2
-rw-r--r--security/courier-authlib/Makefile2
-rw-r--r--security/digest/Makefile2
-rw-r--r--security/fakeroot/Makefile2
-rw-r--r--security/fcrackzip/Makefile2
-rw-r--r--security/gnupg/Makefile4
-rw-r--r--security/gnupg1/Makefile4
-rw-r--r--security/gnutls-devel/Makefile2
-rw-r--r--security/gnutls/Makefile2
-rw-r--r--security/gpgme/Makefile2
-rw-r--r--security/hashish/Makefile2
-rw-r--r--security/libbf/Makefile2
-rw-r--r--security/libgpg-error/Makefile2
-rw-r--r--security/libksba/Makefile2
-rw-r--r--security/libmcrypt/Makefile2
-rw-r--r--security/libprelude/Makefile2
-rw-r--r--security/libtasn1/Makefile2
-rw-r--r--security/mcrypt/Makefile2
-rw-r--r--security/mhash/Makefile2
-rw-r--r--security/nmap/Makefile2
-rw-r--r--security/oidentd/Makefile2
-rw-r--r--security/opencdk/Makefile2
-rw-r--r--security/osiris/Makefile2
-rw-r--r--security/pam_ldap/Makefile2
-rw-r--r--security/pgp/Makefile2
-rw-r--r--security/pgpin/Makefile2
-rw-r--r--security/prelude-lml/Makefile2
-rw-r--r--security/prelude-manager/Makefile2
-rw-r--r--security/prelude-nids/Makefile2
-rw-r--r--security/snort/Makefile2
-rw-r--r--security/steghide/Makefile2
-rw-r--r--security/stunnel/Makefile2
-rw-r--r--security/tor-devel/Makefile2
-rw-r--r--security/tor/Makefile2
-rw-r--r--security/xmlsec/Makefile2
-rw-r--r--security/yafic/Makefile2
-rw-r--r--shells/bash/Makefile3
-rw-r--r--shells/zsh-devel/Makefile2
-rw-r--r--shells/zsh/Makefile2
-rw-r--r--sysutils/aaccli/Makefile4
-rw-r--r--sysutils/anteater/Makefile2
-rw-r--r--sysutils/ccd2iso/Makefile2
-rw-r--r--sysutils/cdf/Makefile2
-rw-r--r--sysutils/cfengine2/Makefile2
-rw-r--r--sysutils/dump9660/Makefile2
-rw-r--r--sysutils/grub/Makefile2
-rw-r--r--sysutils/hdup/Makefile2
-rw-r--r--sysutils/hourglass/Makefile2
-rw-r--r--sysutils/ipmitool/Makefile2
-rw-r--r--sysutils/k3b-kde4/Makefile2
-rw-r--r--sysutils/k3b/Makefile2
-rw-r--r--sysutils/linux-afaapps/Makefile8
-rw-r--r--sysutils/lookat/Makefile2
-rw-r--r--sysutils/metalog/Makefile2
-rw-r--r--sysutils/ntfsprogs/Makefile2
-rw-r--r--sysutils/nvtv/Makefile2
-rw-r--r--sysutils/pipemeter/Makefile2
-rw-r--r--sysutils/portdowngrade/Makefile2
-rw-r--r--sysutils/progsreiserfs/Makefile2
-rw-r--r--sysutils/rsnapshot/Makefile2
-rw-r--r--sysutils/sdd/Makefile6
-rw-r--r--sysutils/smartmontools-devel/Makefile2
-rw-r--r--sysutils/smartmontools/Makefile2
-rw-r--r--sysutils/srmt/Makefile6
-rw-r--r--sysutils/stress/Makefile2
-rw-r--r--sysutils/synergy/Makefile2
-rw-r--r--sysutils/testdisk/Makefile2
-rw-r--r--sysutils/uptimec/Makefile2
-rw-r--r--sysutils/userinfo/Makefile2
-rw-r--r--sysutils/wmfsm/Makefile2
-rw-r--r--sysutils/xvidcap/Makefile2
-rw-r--r--textproc/aft/Makefile2
-rw-r--r--textproc/dbacl/Makefile2
-rw-r--r--textproc/dictfmt/Makefile2
-rw-r--r--textproc/docbook-to-man/Makefile2
-rw-r--r--textproc/filepp/Makefile2
-rw-r--r--textproc/gmetadom/Makefile2
-rw-r--r--textproc/gsed/Makefile2
-rw-r--r--textproc/gxmlviewer/Makefile2
-rw-r--r--textproc/iiimf-client-lib/Makefile2
-rw-r--r--textproc/iiimf-csconv/Makefile2
-rw-r--r--textproc/iiimf-gnome-im-switcher/Makefile2
-rw-r--r--textproc/iiimf-gtk/Makefile2
-rw-r--r--textproc/iiimf-le-unit/Makefile2
-rw-r--r--textproc/iiimf-protocol-lib/Makefile2
-rw-r--r--textproc/iiimf-server/Makefile2
-rw-r--r--textproc/iiimf-x-lib/Makefile2
-rw-r--r--textproc/iiimf-x/Makefile2
-rw-r--r--textproc/ipdf/Makefile2
-rw-r--r--textproc/libhtmlparse/Makefile2
-rw-r--r--textproc/libparsifal/Makefile2
-rw-r--r--textproc/libpathan/Makefile2
-rw-r--r--textproc/linux-f10-libxml/Makefile2
-rw-r--r--textproc/linux-f10-libxml2/Makefile2
-rw-r--r--textproc/linux-f8-libxml/Makefile2
-rw-r--r--textproc/linux-f8-libxml2/Makefile2
-rw-r--r--textproc/linux-libxml/Makefile2
-rw-r--r--textproc/linux-libxml2/Makefile2
-rw-r--r--textproc/sgmlformat/Makefile2
-rw-r--r--textproc/source-highlight/Makefile2
-rw-r--r--textproc/sp/Makefile4
-rw-r--r--textproc/webcpp/Makefile2
-rw-r--r--textproc/wv/Makefile2
-rw-r--r--textproc/xlhtml/Makefile2
-rw-r--r--textproc/xmlto/Makefile2
-rw-r--r--vietnamese/xvnkb/Makefile2
-rw-r--r--www/cadaver/Makefile2
-rw-r--r--www/cgicc/Makefile2
-rw-r--r--www/dpsearch/Makefile2
-rw-r--r--www/ffproxy/Makefile2
-rw-r--r--www/httrack/Makefile2
-rw-r--r--www/hydra/Makefile2
-rw-r--r--www/lighttpd/Makefile2
-rw-r--r--www/linux-lesstif-ns/Makefile2
-rw-r--r--www/lynx-current/Makefile2
-rw-r--r--www/man2web/Makefile2
-rw-r--r--www/middleman/Makefile2
-rw-r--r--www/mnogosearch/Makefile2
-rw-r--r--www/mnogosearch31/Makefile2
-rw-r--r--www/mplayer-plugin/Makefile2
-rw-r--r--www/netrik/Makefile2
-rw-r--r--www/tidy-devel/Makefile2
-rw-r--r--www/wml/Makefile2
-rw-r--r--x11-clocks/wmclockmon/Makefile2
-rw-r--r--x11-clocks/xdaliclock/Makefile2
-rw-r--r--x11-fm/FSViewer/Makefile2
-rw-r--r--x11-fm/krusader/Makefile2
-rw-r--r--x11-fm/krusader2/Makefile2
-rw-r--r--x11-fm/tkdesk/Makefile2
-rw-r--r--x11-fonts/libXfont/Makefile2
-rw-r--r--x11-servers/Xfstt/Makefile2
-rw-r--r--x11-themes/linux-gtk-bluecurve-theme/Makefile4
-rw-r--r--x11-toolkits/Xaw3d/Makefile2
-rw-r--r--x11-toolkits/fltk/Makefile2
-rw-r--r--x11-toolkits/flvw/Makefile2
-rw-r--r--x11-toolkits/fox-devel/Makefile2
-rw-r--r--x11-toolkits/fox14/Makefile2
-rw-r--r--x11-toolkits/gai/Makefile2
-rw-r--r--x11-toolkits/gauche-gtk/Makefile2
-rw-r--r--x11-toolkits/gob/Makefile2
-rw-r--r--x11-toolkits/libXaw/Makefile2
-rw-r--r--x11-toolkits/libXmu/Makefile2
-rw-r--r--x11-toolkits/libXt/Makefile2
-rw-r--r--x11-toolkits/libgtkeditor/Makefile2
-rw-r--r--x11-toolkits/linux-f10-openmotif/Makefile4
-rw-r--r--x11-toolkits/linux-f8-openmotif/Makefile4
-rw-r--r--x11-toolkits/linux-openmotif/Makefile4
-rw-r--r--x11-toolkits/neXtaw/Makefile2
-rw-r--r--x11-toolkits/py-gtk/Makefile2
-rw-r--r--x11-toolkits/scx/Makefile2
-rw-r--r--x11-toolkits/soqt/Makefile2
-rw-r--r--x11-toolkits/v/Makefile2
-rw-r--r--x11-toolkits/wxgtk/Makefile2
-rw-r--r--x11-toolkits/wxgtk24/Makefile2
-rw-r--r--x11-toolkits/xbae/Makefile2
-rw-r--r--x11-wm/bbconf/Makefile2
-rw-r--r--x11-wm/fbpager/Makefile2
-rw-r--r--x11-wm/peksystray/Makefile2
-rw-r--r--x11-wm/pekwm/Makefile2
-rw-r--r--x11-wm/ude/Makefile2
-rw-r--r--x11-wm/wmconfig/Makefile2
-rw-r--r--x11-wm/xfce/Makefile2
-rw-r--r--x11/3ddesktop/Makefile2
-rw-r--r--x11/XFree86-4-libraries/Makefile2
-rw-r--r--x11/XFree86/Makefile2
-rw-r--r--x11/compositeext/Makefile2
-rw-r--r--x11/damageext/Makefile2
-rw-r--r--x11/fixesext/Makefile2
-rw-r--r--x11/kdelibs3/Makefile2
-rw-r--r--x11/kdelibs4/Makefile2
-rw-r--r--x11/libSM/Makefile2
-rw-r--r--x11/libX11/Makefile2
-rw-r--r--x11/libXau/Makefile2
-rw-r--r--x11/libXcomposite/Makefile2
-rw-r--r--x11/libXcursor/Makefile2
-rw-r--r--x11/libXdamage/Makefile2
-rw-r--r--x11/libXdmcp/Makefile2
-rw-r--r--x11/libXext/Makefile2
-rw-r--r--x11/libXfixes/Makefile2
-rw-r--r--x11/libXfont/Makefile2
-rw-r--r--x11/libXi/Makefile2
-rw-r--r--x11/libXinerama/Makefile2
-rw-r--r--x11/libXpm/Makefile2
-rw-r--r--x11/libXrandr/Makefile2
-rw-r--r--x11/libXrender/Makefile2
-rw-r--r--x11/libXres/Makefile2
-rw-r--r--x11/libXtrans/Makefile2
-rw-r--r--x11/libXv/Makefile2
-rw-r--r--x11/linux-gnomelibs/Makefile6
-rw-r--r--x11/multi-aterm/Makefile2
-rw-r--r--x11/panoramixext/Makefile2
-rw-r--r--x11/randrext/Makefile2
-rw-r--r--x11/renderext/Makefile2
-rw-r--r--x11/resourceext/Makefile2
-rw-r--r--x11/rxvt-unicode/Makefile2
-rw-r--r--x11/wdm/Makefile2
-rw-r--r--x11/xautomation/Makefile2
-rw-r--r--x11/xextensions/Makefile2
-rw-r--r--x11/xlockmore/Makefile2
-rw-r--r--x11/xnee/Makefile2
-rw-r--r--x11/xproto/Makefile2
-rw-r--r--x11/xterm/Makefile2
-rw-r--r--x11/xtermcontrol/Makefile2
-rw-r--r--x11/xvattr/Makefile2
897 files changed, 1024 insertions, 1031 deletions
diff --git a/archivers/advancecomp/Makefile b/archivers/advancecomp/Makefile
index 1909974..c36be5c 100644
--- a/archivers/advancecomp/Makefile
+++ b/archivers/advancecomp/Makefile
@@ -17,7 +17,7 @@ COMMENT= Recompression utilities for .ZIP, .PNG, .MNG and .GZ files
USE_GETOPT_LONG= yes
USE_GMAKE= yes
GNU_CONFIGURE= yes
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ENV= CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}"
MAN1= advdef.1 advmng.1 advpng.1 advzip.1
diff --git a/archivers/arj/Makefile b/archivers/arj/Makefile
index 0d5508b..62d0b01 100644
--- a/archivers/arj/Makefile
+++ b/archivers/arj/Makefile
@@ -17,7 +17,7 @@ COMMENT= Open-source ARJ
USE_REINPLACE= yes
USE_AUTOCONF_VER= 259
USE_GMAKE= yes
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_WRKSRC= ${WRKSRC}/gnu
CONFIGURE_ENV= CFLAGS="-fPIC"
MAKEFILE= GNUmakefile
diff --git a/archivers/cabextract/Makefile b/archivers/cabextract/Makefile
index 556e5b4..924398d 100644
--- a/archivers/cabextract/Makefile
+++ b/archivers/cabextract/Makefile
@@ -15,7 +15,7 @@ COMMENT= A program to extract Microsoft cabinet (.CAB) files
USE_GETOPT_LONG= yes
GNU_CONFIGURE= yes
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
MANLANG= "" ja
MAN1= cabextract.1
diff --git a/archivers/dact/Makefile b/archivers/dact/Makefile
index a269b47..a4952a8 100644
--- a/archivers/dact/Makefile
+++ b/archivers/dact/Makefile
@@ -23,7 +23,7 @@ LIB_DEPENDS+= bz2.1:${PORTSDIR}/archivers/bzip2
USE_GETOPT_LONG= yes
USE_GMAKE= yes
GNU_CONFIGURE= yes
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL} \
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL} \
--libdir=${PREFIX}/lib
CONFIGURE_ENV= CPPFLAGS="${CXXFLAGS} -I${LOCALBASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib"
diff --git a/archivers/dynamite/Makefile b/archivers/dynamite/Makefile
index ac9991b..514958e 100644
--- a/archivers/dynamite/Makefile
+++ b/archivers/dynamite/Makefile
@@ -15,7 +15,7 @@ MAINTAINER= boris@brooknet.com.au
COMMENT= Decompress data compressed with PKWARE Data Compression Library
GNU_CONFIGURE= yes
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
USE_REINPLACE= yes
INSTALLS_SHLIB= yes
diff --git a/archivers/gzip/Makefile b/archivers/gzip/Makefile
index 44dcf9a..9ada5d0 100644
--- a/archivers/gzip/Makefile
+++ b/archivers/gzip/Makefile
@@ -21,7 +21,7 @@ COMMENT= A compression utility designed to be a replacement for compress
USE_REINPLACE= yes
GNU_CONFIGURE= yes
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
MAN1= gunzip.1 gzexe.1 gzip.1 zcat.1 zcmp.1 zdiff.1 zforce.1 \
zgrep.1 zless.1 zmore.1 znew.1
diff --git a/archivers/libdynamite/Makefile b/archivers/libdynamite/Makefile
index ac9991b..514958e 100644
--- a/archivers/libdynamite/Makefile
+++ b/archivers/libdynamite/Makefile
@@ -15,7 +15,7 @@ MAINTAINER= boris@brooknet.com.au
COMMENT= Decompress data compressed with PKWARE Data Compression Library
GNU_CONFIGURE= yes
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
USE_REINPLACE= yes
INSTALLS_SHLIB= yes
diff --git a/archivers/liborange/Makefile b/archivers/liborange/Makefile
index 04173fb..c5f93e0 100644
--- a/archivers/liborange/Makefile
+++ b/archivers/liborange/Makefile
@@ -20,7 +20,7 @@ LIB_DEPENDS= synce.0:${PORTSDIR}/palm/synce-libsynce \
unshield.0:${PORTSDIR}/archivers/unshield
GNU_CONFIGURE= yes
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ARGS= --with-libsynce=${LOCALBASE}
USE_ICONV= yes
USE_LIBTOOL_VER=15
diff --git a/archivers/lzop/Makefile b/archivers/lzop/Makefile
index f1fcc8d..bd11f60 100644
--- a/archivers/lzop/Makefile
+++ b/archivers/lzop/Makefile
@@ -16,7 +16,7 @@ COMMENT= Fast file compressor similar to gzip, using the LZO library
LIB_DEPENDS= lzo.1:${PORTSDIR}/archivers/lzo
GNU_CONFIGURE= yes
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib"
diff --git a/archivers/orange/Makefile b/archivers/orange/Makefile
index 04173fb..c5f93e0 100644
--- a/archivers/orange/Makefile
+++ b/archivers/orange/Makefile
@@ -20,7 +20,7 @@ LIB_DEPENDS= synce.0:${PORTSDIR}/palm/synce-libsynce \
unshield.0:${PORTSDIR}/archivers/unshield
GNU_CONFIGURE= yes
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ARGS= --with-libsynce=${LOCALBASE}
USE_ICONV= yes
USE_LIBTOOL_VER=15
diff --git a/archivers/par2cmdline/Makefile b/archivers/par2cmdline/Makefile
index fa061d9..03ca56e 100644
--- a/archivers/par2cmdline/Makefile
+++ b/archivers/par2cmdline/Makefile
@@ -19,7 +19,7 @@ WRKSRC= ${WRKDIR}/${DISTNAME}
USE_REINPLACE= yes
GNU_CONFIGURE= yes
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
PORTDOCS= README
PLIST_FILES= bin/par2 bin/par2create bin/par2repair bin/par2verify
diff --git a/archivers/star/Makefile b/archivers/star/Makefile
index a7d4d31..545b2d0 100644
--- a/archivers/star/Makefile
+++ b/archivers/star/Makefile
@@ -26,14 +26,14 @@ MLINKS= star.1 ustar.1
.include <bsd.port.pre.mk>
post-extract:
-.if ${ARCH} != "i386" || ${CC} != "cc"
+.if ${MACHINE_ARCH} != "i386" || ${CC} != "cc"
@${LN} -sf i386-freebsd-cc.rul \
- ${WRKSRC}/RULES/${ARCH}-freebsd-${CC}.rul
+ ${WRKSRC}/RULES/${MACHINE_ARCH}-freebsd-${CC}.rul
.endif
do-install:
@${INSTALL_PROGRAM} \
- ${WRKSRC}/star/OBJ/${ARCH}-freebsd-${CC}/star \
+ ${WRKSRC}/star/OBJ/${MACHINE_ARCH}-freebsd-${CC}/star \
${PREFIX}/bin
@cd ${PREFIX}/bin ; ${LN} -f star ustar
@${INSTALL_MAN} ${WRKSRC}/star/star.1 ${MANPREFIX}/man/man1
diff --git a/archivers/tardy/Makefile b/archivers/tardy/Makefile
index 50d701c..73e7437 100644
--- a/archivers/tardy/Makefile
+++ b/archivers/tardy/Makefile
@@ -15,7 +15,7 @@ MAINTAINER= ports@FreeBSD.org
COMMENT= Manipulate the file headers in tar archive files in various ways
GNU_CONFIGURE= yes
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
MAN1= tardy.1
PLIST_FILES= bin/tardy
diff --git a/archivers/ucl/Makefile b/archivers/ucl/Makefile
index a1a3710..f3f1e07 100644
--- a/archivers/ucl/Makefile
+++ b/archivers/ucl/Makefile
@@ -16,7 +16,7 @@ COMMENT= A data compression library with low memory usage
INSTALLS_SHLIB= yes
USE_LIBTOOL_VER= 15
CONFIGURE_ARGS= --enable-shared
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
PORTDOCS= AUTHORS NEWS README THANKS TODO
diff --git a/astro/fooseti/Makefile b/astro/fooseti/Makefile
index 65f804a..d109291 100644
--- a/astro/fooseti/Makefile
+++ b/astro/fooseti/Makefile
@@ -16,7 +16,7 @@ MAINTAINER= ports@FreeBSD.org
COMMENT= GTK+ frontend to SETI@Home
GNU_CONFIGURE= yes
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
PLIST_FILES= bin/fooseti
USE_GETTEXT= yes
USE_GNOME= gtk12
diff --git a/astro/match/Makefile b/astro/match/Makefile
index e463de4..1e109a2 100644
--- a/astro/match/Makefile
+++ b/astro/match/Makefile
@@ -15,7 +15,7 @@ MAINTAINER= ports@FreeBSD.org
COMMENT= A program for matching star lists
GNU_CONFIGURE= yes
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
PLIST_FILES= bin/apply_match bin/match bin/project_coords
diff --git a/astro/xtide/Makefile b/astro/xtide/Makefile
index 973211d..078d5fd 100644
--- a/astro/xtide/Makefile
+++ b/astro/xtide/Makefile
@@ -21,7 +21,7 @@ USE_X_PREFIX= yes
USE_XPM= yes
USE_REINPLACE= yes
GNU_CONFIGURE= yes
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib"
diff --git a/audio/ample/Makefile b/audio/ample/Makefile
index 20a59e9..3e60a77 100644
--- a/audio/ample/Makefile
+++ b/audio/ample/Makefile
@@ -16,7 +16,7 @@ MAINTAINER= ports@FreeBSD.org
COMMENT= Allows you to listen to your own MP3's away from home
GNU_CONFIGURE= yes
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
MAN1= ample.1
MAN5= ample.conf.5 ample.html.5
diff --git a/audio/arts/Makefile b/audio/arts/Makefile
index ccb2219..b803555 100644
--- a/audio/arts/Makefile
+++ b/audio/arts/Makefile
@@ -37,7 +37,7 @@ _NO_KDE_FINAL= yes
CFLAGS+= -DHAVE_VASPRINTF
CONFIGURE_ENV+= DO_NOT_COMPILE="${DO_NOT_COMPILE}"
CONFIGURE_TARGET= # empty
-CONFIGURE_ARGS+=--build=${ARCH}-portbld-freebsd${OSREL} \
+CONFIGURE_ARGS+=--build=${MACHINE_ARCH}-portbld-freebsd${OSREL} \
--x-libraries=${X11BASE}/lib --x-includes=${X11BASE}/include
OPTIONS= ESD "Enable esound support" off \
diff --git a/audio/autocd/Makefile b/audio/autocd/Makefile
index 6188db4..1d449e1 100644
--- a/audio/autocd/Makefile
+++ b/audio/autocd/Makefile
@@ -14,7 +14,7 @@ MAINTAINER= KOT@MATPOCKuH.Ru
COMMENT= Compact disc control utility
GNU_CONFIGURE= yes
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
MAN1= cdctl.1 acdplay.1
MAN8= autocd.8
MLINKS= cdctl.1 eject.1 cdctl.1 pause.1
diff --git a/audio/blop/Makefile b/audio/blop/Makefile
index 472c9d4..f261cda 100644
--- a/audio/blop/Makefile
+++ b/audio/blop/Makefile
@@ -19,7 +19,7 @@ USE_GETOPT_LONG= yes
USE_REINPLACE= yes
USE_GMAKE= yes
GNU_CONFIGURE= yes
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ENV= CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}"
CONFIGURE_ARGS= --with-ladspa-prefix="${LOCALBASE}"
diff --git a/audio/bmp-faad/Makefile b/audio/bmp-faad/Makefile
index 934bafe..8b4bae2 100644
--- a/audio/bmp-faad/Makefile
+++ b/audio/bmp-faad/Makefile
@@ -32,7 +32,7 @@ USE_GMAKE= yes
USE_GNOME= gtk20
USE_REINPLACE= yes
-CONFIGURE_TARGET=--build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET=--build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ARGS= --with-xmms --with-mp4v2
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include ${PTHREAD_CFLAGS} -DHAVE_GTK" \
LDFLAGS="-L${LOCALBASE}/lib ${PTHREAD_LIBS}" \
diff --git a/audio/boodler/Makefile b/audio/boodler/Makefile
index 553d8c1..8a92952 100644
--- a/audio/boodler/Makefile
+++ b/audio/boodler/Makefile
@@ -33,7 +33,7 @@ DRIVER= FILE
.include <bsd.port.pre.mk>
-.if ${ARCH} == "amd64" || ${ARCH} == "ia64"
+.if ${MACHINE_ARCH} == "amd64" || ${MACHINE_ARCH} == "ia64"
PIC= --PIC
.endif
diff --git a/audio/cuetools/Makefile b/audio/cuetools/Makefile
index b4d06ac..3117ecd 100644
--- a/audio/cuetools/Makefile
+++ b/audio/cuetools/Makefile
@@ -17,7 +17,7 @@ USE_REINPLACE= yes
USE_GETOPT_LONG= yes
USE_GMAKE= yes
GNU_CONFIGURE= yes
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
MAN1= cuebreakpoints.1 cueconvert.1 cueprint.1
PORTDOCS= README
diff --git a/audio/darkice/Makefile b/audio/darkice/Makefile
index 25b5708..ae76198 100644
--- a/audio/darkice/Makefile
+++ b/audio/darkice/Makefile
@@ -20,7 +20,7 @@ LIB_DEPENDS= mp3lame.0:${PORTSDIR}/audio/lame \
USE_REINPLACE= yes
GNU_CONFIGURE= yes
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ARGS= --with-lame-prefix=${LOCALBASE} \
--with-vorbis-prefix=${LOCALBASE}
diff --git a/audio/faac/Makefile b/audio/faac/Makefile
index 38659e3..5767714 100644
--- a/audio/faac/Makefile
+++ b/audio/faac/Makefile
@@ -24,7 +24,7 @@ AUTOMAKE_ARGS= --add-missing
USE_GMAKE= yes
USE_LIBTOOL_VER=13
USE_REINPLACE= yes
-CONFIGURE_TARGET=--build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET=--build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib" \
HAVECXX="yes"
diff --git a/audio/faad/Makefile b/audio/faad/Makefile
index ea141b9..9512d29 100644
--- a/audio/faad/Makefile
+++ b/audio/faad/Makefile
@@ -26,7 +26,7 @@ NO_CDROM= "Restrictive copyright (do not sell for profit)"
USE_AUTOMAKE_VER= 15
USE_AUTOHEADER_VER= 259
AUTOMAKE_ARGS= --add-missing
-CONFIGURE_TARGET=--build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET=--build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
USE_GETOPT_LONG=yes
GNU_CONFIGURE= yes
USE_GMAKE= yes
diff --git a/audio/festival+OGI/Makefile b/audio/festival+OGI/Makefile
index 82fc50b..1ad7a92 100644
--- a/audio/festival+OGI/Makefile
+++ b/audio/festival+OGI/Makefile
@@ -33,7 +33,7 @@ DIST_SUBDIR= festival
RESTRICTED= no-commercial-use
FESTIVAL= ${WRKSRC}/festival
-FESTIVAL_ARCH= ${ARCH:S/i386/ix86/}
+FESTIVAL_ARCH= ${MACHINE_ARCH:S/i386/ix86/}
FHOME= ${PREFIX}/share/festival
MAKE_ENV+= PKG_EST_HOME=${SPEECHTOOLS} \
EST_HOME=${SPEECHTOOLS} \
diff --git a/audio/festival/Makefile b/audio/festival/Makefile
index 48231b6..485dbcf 100644
--- a/audio/festival/Makefile
+++ b/audio/festival/Makefile
@@ -26,7 +26,7 @@ DIST_SUBDIR= festival
EXTRA_PATCHES= ${PATCHDIR}/extra-patch-aa
-FESTIVAL_ARCH= ${ARCH:S/i386/ix86/}
+FESTIVAL_ARCH= ${MACHINE_ARCH:S/i386/ix86/}
USE_GCC= 2.95
WRKSRC= ${WRKDIR}
diff --git a/audio/flac123/Makefile b/audio/flac123/Makefile
index 5d04eff..7349aec 100644
--- a/audio/flac123/Makefile
+++ b/audio/flac123/Makefile
@@ -21,7 +21,7 @@ LIB_DEPENDS= FLAC.7:${PORTSDIR}/audio/flac \
USE_GMAKE= yes
GNU_CONFIGURE= yes
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
PORTDOCS= README.remote
PLIST_FILES= bin/flac123
diff --git a/audio/lame/Makefile b/audio/lame/Makefile
index 2807042..327d317 100644
--- a/audio/lame/Makefile
+++ b/audio/lame/Makefile
@@ -29,7 +29,7 @@ DOC_FILES= API LICENSE README TODO USAGE
.include <bsd.port.pre.mk>
-.if ${ARCH} == "i386"
+.if ${MACHINE_ARCH} == "i386"
BUILD_DEPENDS= nasm:${PORTSDIR}/devel/nasm
.endif
diff --git a/audio/linux-arts/Makefile b/audio/linux-arts/Makefile
index 993aed9..108d6b9 100644
--- a/audio/linux-arts/Makefile
+++ b/audio/linux-arts/Makefile
@@ -10,9 +10,9 @@ PORTVERSION= 1.0.3
PORTREVISION= 3
CATEGORIES= audio kde linux
MASTER_SITES= ${MASTER_SITE_REDHAT_LINUX}
-MASTER_SITE_SUBDIR= 8.0/en/os/${ARCH}/RedHat/RPMS
+MASTER_SITE_SUBDIR= 8.0/en/os/${MACHINE_ARCH}/RedHat/RPMS
PKGNAMEPREFIX= linux-
-DISTNAME= ${PORTNAME}-${PORTVERSION:S/.1$/-1/}-1.${ARCH}
+DISTNAME= ${PORTNAME}-${PORTVERSION:S/.1$/-1/}-1.${MACHINE_ARCH}
EXTRACT_SUFX= .rpm
EXTRACT_ONLY=
@@ -30,8 +30,8 @@ ONLY_FOR_ARCHS= i386
DIST_SUBDIR= rpm
NO_BUILD= yes
NO_FILTER_SHLIBS= yes
-PLIST= ${MASTERDIR}/pkg-plist.${ARCH}
-MD5_FILE= ${MASTERDIR}/distinfo.${ARCH}
+PLIST= ${MASTERDIR}/pkg-plist.${MACHINE_ARCH}
+MD5_FILE= ${MASTERDIR}/distinfo.${MACHINE_ARCH}
DBPATH= /var/lib/rpm
RPMFLAGS= --ignoreos --root ${PREFIX} --dbpath ${DBPATH} \
diff --git a/audio/linux-esound/Makefile b/audio/linux-esound/Makefile
index 469d546..e67027c 100644
--- a/audio/linux-esound/Makefile
+++ b/audio/linux-esound/Makefile
@@ -15,7 +15,7 @@ COMMENT= RPM of esound
RUN_DEPENDS= ${LINUXBASE}/usr/lib/libaudiofile.so.0:${PORTSDIR}/audio/linux-libaudiofile
-RPM_SET= esound-${PORTVERSION}-1.${ARCH}.rpm
+RPM_SET= esound-${PORTVERSION}-1.${MACHINE_ARCH}.rpm
.include "../../x11-toolkits/linux-gtk/Makefile"
diff --git a/audio/linux-f10-arts/Makefile b/audio/linux-f10-arts/Makefile
index 993aed9..108d6b9 100644
--- a/audio/linux-f10-arts/Makefile
+++ b/audio/linux-f10-arts/Makefile
@@ -10,9 +10,9 @@ PORTVERSION= 1.0.3
PORTREVISION= 3
CATEGORIES= audio kde linux
MASTER_SITES= ${MASTER_SITE_REDHAT_LINUX}
-MASTER_SITE_SUBDIR= 8.0/en/os/${ARCH}/RedHat/RPMS
+MASTER_SITE_SUBDIR= 8.0/en/os/${MACHINE_ARCH}/RedHat/RPMS
PKGNAMEPREFIX= linux-
-DISTNAME= ${PORTNAME}-${PORTVERSION:S/.1$/-1/}-1.${ARCH}
+DISTNAME= ${PORTNAME}-${PORTVERSION:S/.1$/-1/}-1.${MACHINE_ARCH}
EXTRACT_SUFX= .rpm
EXTRACT_ONLY=
@@ -30,8 +30,8 @@ ONLY_FOR_ARCHS= i386
DIST_SUBDIR= rpm
NO_BUILD= yes
NO_FILTER_SHLIBS= yes
-PLIST= ${MASTERDIR}/pkg-plist.${ARCH}
-MD5_FILE= ${MASTERDIR}/distinfo.${ARCH}
+PLIST= ${MASTERDIR}/pkg-plist.${MACHINE_ARCH}
+MD5_FILE= ${MASTERDIR}/distinfo.${MACHINE_ARCH}
DBPATH= /var/lib/rpm
RPMFLAGS= --ignoreos --root ${PREFIX} --dbpath ${DBPATH} \
diff --git a/audio/linux-f10-esound/Makefile b/audio/linux-f10-esound/Makefile
index 469d546..e67027c 100644
--- a/audio/linux-f10-esound/Makefile
+++ b/audio/linux-f10-esound/Makefile
@@ -15,7 +15,7 @@ COMMENT= RPM of esound
RUN_DEPENDS= ${LINUXBASE}/usr/lib/libaudiofile.so.0:${PORTSDIR}/audio/linux-libaudiofile
-RPM_SET= esound-${PORTVERSION}-1.${ARCH}.rpm
+RPM_SET= esound-${PORTVERSION}-1.${MACHINE_ARCH}.rpm
.include "../../x11-toolkits/linux-gtk/Makefile"
diff --git a/audio/linux-f10-libaudiofile/Makefile b/audio/linux-f10-libaudiofile/Makefile
index 7516d7d..35d35de 100644
--- a/audio/linux-f10-libaudiofile/Makefile
+++ b/audio/linux-f10-libaudiofile/Makefile
@@ -13,6 +13,6 @@ CATEGORIES= audio linux
MAINTAINER= freebsd-emulation@FreeBSD.org
COMMENT= RPM of audiofile
-RPM_SET= audiofile-${PORTVERSION}-1.${ARCH}.rpm
+RPM_SET= audiofile-${PORTVERSION}-1.${MACHINE_ARCH}.rpm
.include "../../x11-toolkits/linux-gtk/Makefile"
diff --git a/audio/linux-f8-arts/Makefile b/audio/linux-f8-arts/Makefile
index 993aed9..108d6b9 100644
--- a/audio/linux-f8-arts/Makefile
+++ b/audio/linux-f8-arts/Makefile
@@ -10,9 +10,9 @@ PORTVERSION= 1.0.3
PORTREVISION= 3
CATEGORIES= audio kde linux
MASTER_SITES= ${MASTER_SITE_REDHAT_LINUX}
-MASTER_SITE_SUBDIR= 8.0/en/os/${ARCH}/RedHat/RPMS
+MASTER_SITE_SUBDIR= 8.0/en/os/${MACHINE_ARCH}/RedHat/RPMS
PKGNAMEPREFIX= linux-
-DISTNAME= ${PORTNAME}-${PORTVERSION:S/.1$/-1/}-1.${ARCH}
+DISTNAME= ${PORTNAME}-${PORTVERSION:S/.1$/-1/}-1.${MACHINE_ARCH}
EXTRACT_SUFX= .rpm
EXTRACT_ONLY=
@@ -30,8 +30,8 @@ ONLY_FOR_ARCHS= i386
DIST_SUBDIR= rpm
NO_BUILD= yes
NO_FILTER_SHLIBS= yes
-PLIST= ${MASTERDIR}/pkg-plist.${ARCH}
-MD5_FILE= ${MASTERDIR}/distinfo.${ARCH}
+PLIST= ${MASTERDIR}/pkg-plist.${MACHINE_ARCH}
+MD5_FILE= ${MASTERDIR}/distinfo.${MACHINE_ARCH}
DBPATH= /var/lib/rpm
RPMFLAGS= --ignoreos --root ${PREFIX} --dbpath ${DBPATH} \
diff --git a/audio/linux-f8-esound/Makefile b/audio/linux-f8-esound/Makefile
index 469d546..e67027c 100644
--- a/audio/linux-f8-esound/Makefile
+++ b/audio/linux-f8-esound/Makefile
@@ -15,7 +15,7 @@ COMMENT= RPM of esound
RUN_DEPENDS= ${LINUXBASE}/usr/lib/libaudiofile.so.0:${PORTSDIR}/audio/linux-libaudiofile
-RPM_SET= esound-${PORTVERSION}-1.${ARCH}.rpm
+RPM_SET= esound-${PORTVERSION}-1.${MACHINE_ARCH}.rpm
.include "../../x11-toolkits/linux-gtk/Makefile"
diff --git a/audio/linux-f8-libaudiofile/Makefile b/audio/linux-f8-libaudiofile/Makefile
index 7516d7d..35d35de 100644
--- a/audio/linux-f8-libaudiofile/Makefile
+++ b/audio/linux-f8-libaudiofile/Makefile
@@ -13,6 +13,6 @@ CATEGORIES= audio linux
MAINTAINER= freebsd-emulation@FreeBSD.org
COMMENT= RPM of audiofile
-RPM_SET= audiofile-${PORTVERSION}-1.${ARCH}.rpm
+RPM_SET= audiofile-${PORTVERSION}-1.${MACHINE_ARCH}.rpm
.include "../../x11-toolkits/linux-gtk/Makefile"
diff --git a/audio/linux-libaudiofile/Makefile b/audio/linux-libaudiofile/Makefile
index 7516d7d..35d35de 100644
--- a/audio/linux-libaudiofile/Makefile
+++ b/audio/linux-libaudiofile/Makefile
@@ -13,6 +13,6 @@ CATEGORIES= audio linux
MAINTAINER= freebsd-emulation@FreeBSD.org
COMMENT= RPM of audiofile
-RPM_SET= audiofile-${PORTVERSION}-1.${ARCH}.rpm
+RPM_SET= audiofile-${PORTVERSION}-1.${MACHINE_ARCH}.rpm
.include "../../x11-toolkits/linux-gtk/Makefile"
diff --git a/audio/lplayer/Makefile b/audio/lplayer/Makefile
index 53a19bc..64e879d 100644
--- a/audio/lplayer/Makefile
+++ b/audio/lplayer/Makefile
@@ -26,7 +26,7 @@ USE_QT_VER= 3
USE_REINPLACE= yes
USE_GMAKE= yes
GNU_CONFIGURE= yes
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ARGS= --with-xmms-prefix=${X11BASE} --with-xinerama \
--x-libraries=${X11BASE}/lib --x-includes=${X11BASE}/include
MAKE_ARGS= ACLOCAL="${TRUE}" AUTOCONF="${TRUE}" AUTOMAKE="${TRUE}" \
diff --git a/audio/mbrola/Makefile b/audio/mbrola/Makefile
index 1a884d4..0921b1f 100644
--- a/audio/mbrola/Makefile
+++ b/audio/mbrola/Makefile
@@ -45,13 +45,13 @@ do-patch:
do-install:
.if defined(USE_LINUX)
-.if (${ARCH} == "alpha")
+.if (${MACHINE_ARCH} == "alpha")
@${INSTALL_PROGRAM} ${WRKSRC}/mbrola-linux-alpha ${PREFIX}/bin/mbrola
-.elseif (${ARCH} == "i386")
+.elseif (${MACHINE_ARCH} == "i386")
@${INSTALL_PROGRAM} ${WRKSRC}/mbrola-linux-i386 ${PREFIX}/bin/mbrola
-.elseif (${ARCH} == "ppc")
+.elseif (${MACHINE_ARCH} == "ppc")
@${INSTALL_PROGRAM} ${WRKSRC}/mbrola206a-linux-ppc ${PREFIX}/bin/mbrola
-.elseif (${ARCH} == "sparc64")
+.elseif (${MACHINE_ARCH} == "sparc64")
@${INSTALL_PROGRAM} ${WRKSRC}/mbrola-SuSElinux-ultra1.dat \
${PREFIX}/bin/mbrola
.endif
diff --git a/audio/mp3splt/Makefile b/audio/mp3splt/Makefile
index c8b17d5..7869fe2 100644
--- a/audio/mp3splt/Makefile
+++ b/audio/mp3splt/Makefile
@@ -23,7 +23,7 @@ LIB_DEPENDS= mad.2:${PORTSDIR}/audio/libmad \
GNU_CONFIGURE= yes
CONFIGURE_ENV+= LDFLAGS="${LDFLAGS} -L${LOCALBASE}/lib" \
CFLAGS="${CFLAGS} -I${LOCALBASE}/include"
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
USE_GETOPT_LONG= yes
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
diff --git a/audio/mp3wrap/Makefile b/audio/mp3wrap/Makefile
index 5c2b0f1..0a05d24 100644
--- a/audio/mp3wrap/Makefile
+++ b/audio/mp3wrap/Makefile
@@ -16,7 +16,7 @@ MAINTAINER= q@uni.de
COMMENT= Utility to merge mp3 files (and other formats)
GNU_CONFIGURE= yes
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
diff --git a/audio/mpc/Makefile b/audio/mpc/Makefile
index 114e015..abda9cc 100644
--- a/audio/mpc/Makefile
+++ b/audio/mpc/Makefile
@@ -22,7 +22,7 @@ MAN1= mpc.1
.include <bsd.port.pre.mk>
-CONFIGURE_TARGET=--build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET=--build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib" \
diff --git a/audio/mpeg4ip-faad/Makefile b/audio/mpeg4ip-faad/Makefile
index 0b59430..f2f3dea 100644
--- a/audio/mpeg4ip-faad/Makefile
+++ b/audio/mpeg4ip-faad/Makefile
@@ -25,7 +25,7 @@ WRKSRC= ${WRKDIR}/${PORTNAME}
USE_AUTOMAKE_VER= 15
USE_AUTOHEADER_VER= 253
AUTOMAKE_ARGS= --add-missing
-CONFIGURE_TARGET=--build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET=--build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
USE_GETOPT_LONG=yes
GNU_CONFIGURE= yes
USE_GMAKE= yes
diff --git a/audio/mpg321/Makefile b/audio/mpg321/Makefile
index 2521f73..86dd7ea 100644
--- a/audio/mpg321/Makefile
+++ b/audio/mpg321/Makefile
@@ -20,7 +20,7 @@ LIB_DEPENDS= ao.3:${PORTSDIR}/audio/libao \
mad.2:${PORTSDIR}/audio/libmad
GNU_CONFIGURE= yes
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ARGS= --disable-mpg123-symlink
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib"
diff --git a/audio/normalize/Makefile b/audio/normalize/Makefile
index 7af40bb..c7c3f6d 100644
--- a/audio/normalize/Makefile
+++ b/audio/normalize/Makefile
@@ -25,7 +25,7 @@ LIB_DEPENDS+= xmms.4:${PORTSDIR}/multimedia/xmms
USE_GETOPT_LONG= yes
GNU_CONFIGURE= yes
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ENV= CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}"
.if defined(WITH_XMMS)
PLIST_SUB+= XMMS=""
diff --git a/audio/openal/Makefile b/audio/openal/Makefile
index 93f3985..edfe882 100644
--- a/audio/openal/Makefile
+++ b/audio/openal/Makefile
@@ -18,7 +18,7 @@ INFO= openal
WRKSRC= ${WRKDIR}/${DISTNAME}/linux
GNU_CONFIGURE= yes
-CONFIGURE_TARGET=--build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET=--build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
USE_GMAKE= yes
USE_GNOME= pkgconfig
INSTALLS_SHLIB= yes
diff --git a/audio/osalp/Makefile b/audio/osalp/Makefile
index 26f1e9b..221e959 100644
--- a/audio/osalp/Makefile
+++ b/audio/osalp/Makefile
@@ -23,7 +23,7 @@ RUN_DEPENDS= ${BUILD_DEPENDS}
USE_GETOPT_LONG=yes
GNU_CONFIGURE= yes
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CFLAGS+= -fPIC -DPIC
CPPFLAGS= -I${LOCALBASE}/include
LDFLAGS= -L${LOCALBASE}/lib
diff --git a/audio/resid/Makefile b/audio/resid/Makefile
index f4f6870..e075ce1 100644
--- a/audio/resid/Makefile
+++ b/audio/resid/Makefile
@@ -16,7 +16,7 @@ MAINTAINER= ports@FreeBSD.org
COMMENT= Cycle-based SID emulator engine
USE_INC_LIBTOOL_VER= 13
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ARGS= --enable-shared
INSTALLS_SHLIB= yes
diff --git a/audio/rioutil/Makefile b/audio/rioutil/Makefile
index 0e1799c..606bcf7 100644
--- a/audio/rioutil/Makefile
+++ b/audio/rioutil/Makefile
@@ -19,7 +19,7 @@ LIB_DEPENDS= usb-0.1.7:${PORTSDIR}/devel/libusb
USE_GETOPT_LONG= yes
USE_GMAKE= yes
USE_LIBTOOL_VER= 15
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ENV= CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}"
INSTALLS_SHLIB= yes
diff --git a/audio/sdl_mixer/Makefile b/audio/sdl_mixer/Makefile
index d50ff1c..6e46e3c 100644
--- a/audio/sdl_mixer/Makefile
+++ b/audio/sdl_mixer/Makefile
@@ -21,7 +21,7 @@ USE_SDL= sdl
USE_REINPLACE= yes
USE_GMAKE= yes
USE_LIBTOOL_VER=15
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include -I${X11BASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib -L${X11BASE}/lib"
INSTALLS_SHLIB= yes
diff --git a/audio/sdl_sound/Makefile b/audio/sdl_sound/Makefile
index ca12184..96506d4 100644
--- a/audio/sdl_sound/Makefile
+++ b/audio/sdl_sound/Makefile
@@ -18,7 +18,7 @@ COMMENT= A SDL audio library and player for some popular sound file formats
USE_SDL= sdl
USE_REINPLACE= yes
USE_INC_LIBTOOL_VER= 13
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib"
INSTALLS_SHLIB= yes
diff --git a/audio/snack/Makefile b/audio/snack/Makefile
index 4861e01..8c75e98 100644
--- a/audio/snack/Makefile
+++ b/audio/snack/Makefile
@@ -23,7 +23,7 @@ OPTIONS= VORBIS "Support for OGG/Vorbis Audio" off
USE_REINPLACE= yes
GNU_CONFIGURE= yes
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ARGS= --with-tcl=${LOCALBASE}/lib/tcl8.4 \
--with-tk=${LOCALBASE}/lib/tk8.4
MAKE_ENV= prefix=${PREFIX} exec_prefix=${PREFIX}
diff --git a/audio/speex-devel/Makefile b/audio/speex-devel/Makefile
index a5f4f1a..e50b6b5 100644
--- a/audio/speex-devel/Makefile
+++ b/audio/speex-devel/Makefile
@@ -25,7 +25,7 @@ USE_GETOPT_LONG= yes
USE_REINPLACE= yes
USE_LIBTOOL_VER= 15
LIBTOOLFLAGS= --disable-ltlibs --release-ignore
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ENV= CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}"
INSTALLS_SHLIB= yes
diff --git a/audio/speex/Makefile b/audio/speex/Makefile
index 3c12e5a..098dba1 100644
--- a/audio/speex/Makefile
+++ b/audio/speex/Makefile
@@ -26,7 +26,7 @@ USE_GETOPT_LONG= yes
USE_REINPLACE= yes
USE_INC_LIBTOOL_VER= 13
LIBTOOLFLAGS= --disable-ltlibs --release-ignore
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ENV= CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}"
INSTALLS_SHLIB= yes
diff --git a/audio/swhplugins/Makefile b/audio/swhplugins/Makefile
index ca9e59c..58b4d9d 100644
--- a/audio/swhplugins/Makefile
+++ b/audio/swhplugins/Makefile
@@ -24,7 +24,7 @@ ONLY_FOR_ARCHS= i386 amd64
USE_REINPLACE= yes
USE_GMAKE= yes
USE_LIBTOOL_VER= 15
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib"
INSTALLS_SHLIB= yes
diff --git a/audio/taglib/Makefile b/audio/taglib/Makefile
index e8b19de..5d25929 100644
--- a/audio/taglib/Makefile
+++ b/audio/taglib/Makefile
@@ -19,6 +19,6 @@ USE_INC_LIBTOOL_VER=15
INSTALLS_SHLIB= yes
CONFIGURE_TARGET=
-CONFIGURE_ARGS+= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_ARGS+= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
.include <bsd.port.mk>
diff --git a/audio/tclmidi/Makefile b/audio/tclmidi/Makefile
index aadc1fe..91f182e 100644
--- a/audio/tclmidi/Makefile
+++ b/audio/tclmidi/Makefile
@@ -31,7 +31,7 @@ MANN= midiconf.n midievnt.n midifree.n midiget.n midigrep.n \
.include <bsd.port.pre.mk>
-.if ${ARCH} == "ia64" || ${ARCH} == "sparc64"
+.if ${MACHINE_ARCH} == "ia64" || ${MACHINE_ARCH} == "sparc64"
IGNORE= "ignored due to cast from pointer to integer of different size"
.endif
diff --git a/audio/umix/Makefile b/audio/umix/Makefile
index 6c05da7..ee0269b 100644
--- a/audio/umix/Makefile
+++ b/audio/umix/Makefile
@@ -17,7 +17,7 @@ COMMENT= Advanced tool for adjusting soundcard mixers, replacement for aumix
USE_GETOPT_LONG= yes
USE_REINPLACE= yes
GNU_CONFIGURE= yes
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
MAN1= umix.1
PLIST_FILES= bin/umix
diff --git a/audio/vorbisgain/Makefile b/audio/vorbisgain/Makefile
index c242ef9..8711abc 100644
--- a/audio/vorbisgain/Makefile
+++ b/audio/vorbisgain/Makefile
@@ -19,7 +19,7 @@ LIB_DEPENDS= vorbis.3:${PORTSDIR}/audio/libvorbis
USE_ZIP= yes
GNU_CONFIGURE= yes
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib"
diff --git a/audio/xhippo/Makefile b/audio/xhippo/Makefile
index 059954b..018b3ff 100644
--- a/audio/xhippo/Makefile
+++ b/audio/xhippo/Makefile
@@ -20,7 +20,7 @@ RUN_DEPENDS= mpg123:${PORTSDIR}/audio/mpg123
USE_GNOME= gtk12
WANT_GNOME= yes
GNU_CONFIGURE= yes
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
DOCS= ChangeLog gnu-xhippo.html screenshot.jpeg xhippo.html.gz \
xhippo.info.gz xhippo.ps.gz xhippo.sgml xhippo.txt.gz
diff --git a/audio/xmms-arts_output/Makefile b/audio/xmms-arts_output/Makefile
index 38befb4..334632e 100644
--- a/audio/xmms-arts_output/Makefile
+++ b/audio/xmms-arts_output/Makefile
@@ -22,7 +22,7 @@ USE_X_PREFIX= yes
USE_GNOME= gtk12
USE_INC_LIBTOOL_VER= 13
INSTALLS_SHLIB= yes
-CONFIGURE_TARGET=--build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET=--build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
PLIST_FILES= lib/xmms/Output/libarts.so \
bin/xmms-arts-helper
diff --git a/audio/xmms-faad/Makefile b/audio/xmms-faad/Makefile
index 5dbf8a7..297d052 100644
--- a/audio/xmms-faad/Makefile
+++ b/audio/xmms-faad/Makefile
@@ -33,7 +33,7 @@ USE_GNOME= gtk12
USE_GMAKE= yes
USE_REINPLACE= yes
-CONFIGURE_TARGET=--build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET=--build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ARGS= --with-xmms --with-mp4v2
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include ${PTHREAD_CFLAGS} -DHAVE_GTK" \
LDFLAGS="-L${LOCALBASE}/lib ${PTHREAD_LIBS}" \
diff --git a/audio/xmms-kde/Makefile b/audio/xmms-kde/Makefile
index 67f89c4..758ad05 100644
--- a/audio/xmms-kde/Makefile
+++ b/audio/xmms-kde/Makefile
@@ -23,7 +23,7 @@ USE_INC_LIBTOOL_VER= 13
GNU_CONFIGURE= yes
INSTALLS_SHLIB= yes
CONFIGURE_TARGET=
-CONFIGURE_ARGS+=--build=${ARCH}-portbld-freebsd${OSREL} \
+CONFIGURE_ARGS+=--build=${MACHINE_ARCH}-portbld-freebsd${OSREL} \
--with-xmms-prefix=${X11BASE}
USE_GNOME= gtk12
diff --git a/audio/xmms-real-random/Makefile b/audio/xmms-real-random/Makefile
index 9adac5a..d878ad8 100644
--- a/audio/xmms-real-random/Makefile
+++ b/audio/xmms-real-random/Makefile
@@ -23,7 +23,7 @@ USE_LIBTOOL_VER= 13
INSTALLS_SHLIB= yes
USE_X_PREFIX= yes
-CONFIGURE_TARGET=--build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET=--build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ENV= CFLAGS='${CFLAGS}'
post-patch:
diff --git a/audio/xmms-volnorm/Makefile b/audio/xmms-volnorm/Makefile
index 3ec1448..eedf8f7 100644
--- a/audio/xmms-volnorm/Makefile
+++ b/audio/xmms-volnorm/Makefile
@@ -21,7 +21,7 @@ PLIST_FILES= lib/xmms/Effect/libnormvol.so
USE_X_PREFIX= yes
USE_GNOME= gtk12
GNU_CONFIGURE= yes
-CONFIGURE_TARGET= --target=${ARCH}-unknown-freebsd${OSREL}
+CONFIGURE_TARGET= --target=${MACHINE_ARCH}-unknown-freebsd${OSREL}
INSTALLS_SHLIB= yes
.include <bsd.port.mk>
diff --git a/audio/xmp/Makefile b/audio/xmp/Makefile
index 2a61097..362d0c0 100644
--- a/audio/xmp/Makefile
+++ b/audio/xmp/Makefile
@@ -29,7 +29,7 @@ CFLAGS+= -fPIC
.include <bsd.port.pre.mk>
-.if ${OSVERSION} > 500013 || ${ARCH} == "alpha"
+.if ${OSVERSION} > 500013 || ${MACHINE_ARCH} == "alpha"
USE_GNOME+= esound
CONFIGURE_ARGS+= --disable-oss --enable-esd
PKGNAMESUFFIX= -esound
diff --git a/audio/xsidplay/Makefile b/audio/xsidplay/Makefile
index 3ad52f9..5d40ad9 100644
--- a/audio/xsidplay/Makefile
+++ b/audio/xsidplay/Makefile
@@ -38,7 +38,7 @@ MAN1= xsidplay.1
.include <bsd.port.pre.mk>
-.if ${ARCH} == "alpha"
+.if ${MACHINE_ARCH} == "alpha"
CFLAGS+= -O0
.endif
diff --git a/benchmarks/dkftpbench/Makefile b/benchmarks/dkftpbench/Makefile
index d21ebd5e..57782f9 100644
--- a/benchmarks/dkftpbench/Makefile
+++ b/benchmarks/dkftpbench/Makefile
@@ -16,7 +16,7 @@ COMMENT= A FTP benchmark program
PLIST_FILES= bin/dkftpbench
GNU_CONFIGURE= yes
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
USE_AUTOCONF_VER=259
USE_AUTOMAKE_VER=14
diff --git a/benchmarks/himenobench/Makefile b/benchmarks/himenobench/Makefile
index 318f907..f105aa3 100644
--- a/benchmarks/himenobench/Makefile
+++ b/benchmarks/himenobench/Makefile
@@ -29,7 +29,7 @@ RESTRICTED= "unsure to redistribute"
.if defined(WITH_OPTIMIZED_FLAGS)
FFLAGS+= -O3 -ffast-math -finline-functions -fomit-frame-pointer -funroll-loops -fexpensive-optimizations
CFLAGS+= -O3 -ffast-math -finline-functions -fomit-frame-pointer -funroll-loops -fexpensive-optimizations
-.if (${ARCH} == "i386" && !${ARCH}== "amd64")
+.if (${MACHINE_ARCH} == "i386" && !${MACHINE_ARCH}== "amd64")
FFLAGS+= -mfancy-math-387 -mpreferred-stack-boundary=3 -malign-double
CFLAGS+= -mfancy-math-387 -mpreferred-stack-boundary=3 -malign-double
.endif # i386
diff --git a/biology/avida/Makefile b/biology/avida/Makefile
index 6985cb8..825a3dc 100644
--- a/biology/avida/Makefile
+++ b/biology/avida/Makefile
@@ -17,7 +17,7 @@ COMMENT= Avida is an auto-adaptive genetic system designed for ALife research
USE_GMAKE= yes
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --enable-standard-prefix --datadir=${DATADIR} --enable-viewer
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
USE_PERL5_BUILD= yes
USE_REINPLACE= yes
diff --git a/biology/deft/files/Makefile.deft b/biology/deft/files/Makefile.deft
index 7860a06..18e8684 100644
--- a/biology/deft/files/Makefile.deft
+++ b/biology/deft/files/Makefile.deft
@@ -4,7 +4,7 @@
TARGET = DeFT.exec
FFLAGS += -w -O3
CFLAGS += -w -O3
-.if ${ARCH} == "i386"
+.if ${MACHINE_ARCH} == "i386"
FFLAGS += -malign-double
CFLAGS += -malign-double
.endif
diff --git a/biology/garlic/Makefile b/biology/garlic/Makefile
index 89784ea..6c24973 100644
--- a/biology/garlic/Makefile
+++ b/biology/garlic/Makefile
@@ -26,7 +26,7 @@ ALL_TARGET= # empty
.if defined(WITH_OPTIMIZED_FLAGS)
CFLAGS+= -O3 -ffast-math -finline-functions -fomit-frame-pointer -funroll-loops -fexpensive-optimizations -malign-double
-.if (${ARCH} == "i386")
+.if (${MACHINE_ARCH} == "i386")
CFLAGS+= -mfancy-math-387 -mpreferred-stack-boundary=3
.endif # i386
.endif
diff --git a/biology/libgenome/Makefile b/biology/libgenome/Makefile
index 4f5e312..b6f3ffa 100644
--- a/biology/libgenome/Makefile
+++ b/biology/libgenome/Makefile
@@ -18,7 +18,7 @@ COMMENT= Toolkit for developing bioinformatic related software in C++
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
USE_REINPLACE= yes
USE_INC_LIBTOOL_VER= 13
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
INSTALLS_SHLIB= yes
post-patch:
diff --git a/biology/migrate/Makefile b/biology/migrate/Makefile
index d012d99..a2d2d78 100644
--- a/biology/migrate/Makefile
+++ b/biology/migrate/Makefile
@@ -16,7 +16,7 @@ COMMENT= A program to estimate population sizes and migration rates
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}/src
GNU_CONFIGURE= yes
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
USE_REINPLACE= yes
MAN1= migrate.1
diff --git a/biology/mopac/Makefile b/biology/mopac/Makefile
index 088e0da..e313186 100644
--- a/biology/mopac/Makefile
+++ b/biology/mopac/Makefile
@@ -35,7 +35,7 @@ MAKE_ARGS+= FC=ftn77
MAKE_ARGS+= FC=f77
.endif
MAKE_ARGS+= FFLAGS="${FFLAGS} -w" CFLAGS="${CFLAGS} -I${PREFIX}/include"
-.if ${ARCH} == "i386"
+.if ${MACHINE_ARCH} == "i386"
FFLAGS+= -malign-double
.endif
diff --git a/biology/platon/Makefile b/biology/platon/Makefile
index 28bebe4..ffe99f5 100644
--- a/biology/platon/Makefile
+++ b/biology/platon/Makefile
@@ -33,7 +33,7 @@ TESTDATADIR= ABSORB_EXAMPLE ABSTOMPA_EXAMPLE ABSTOMPA_TEST ADDSYM_EXAMPLE \
.include <bsd.port.pre.mk>
-.if ${ARCH} == "alpha"
+.if ${MACHINE_ARCH} == "alpha"
BROKEN= "/usr/libexec/elf/ld: platon.o: .got subsegment exceeds 64K (size 88552)"
.endif
diff --git a/biology/treepuzzle/Makefile b/biology/treepuzzle/Makefile
index 98d0a70..f114797 100644
--- a/biology/treepuzzle/Makefile
+++ b/biology/treepuzzle/Makefile
@@ -15,7 +15,7 @@ MAINTAINER= jan.lentfer@web.de
COMMENT= Maximum likelihood phylogeny reconstruction using quartets
GNU_CONFIGURE= yes
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
PLIST_FILES= bin/puzzle
pre-configure:
diff --git a/biology/xdrawchem/Makefile b/biology/xdrawchem/Makefile
index 4f0b3c4..0cbd10b 100644
--- a/biology/xdrawchem/Makefile
+++ b/biology/xdrawchem/Makefile
@@ -18,7 +18,7 @@ COMMENT= Chemical drawing program
LIB_DEPENDS= openbabel.0:${PORTSDIR}/science/openbabel
CFLAGS+= -O0
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
GNU_CONFIGURE= yes
PKGMESSAGE= ${WRKDIR}/pkg-message
QTCFGLIBS+= ${PTHREAD_LIBS}
diff --git a/cad/gmsh/Makefile b/cad/gmsh/Makefile
index 919edab..5003028 100644
--- a/cad/gmsh/Makefile
+++ b/cad/gmsh/Makefile
@@ -32,7 +32,7 @@ TRIANGLE_PORTDIR= ${PORTSDIR}/math/triangle
USE_REINPLACE= yes
GNU_CONFIGURE= yes
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ARGS= --with-fltk-prefix=${X11BASE} \
--with-gsl-prefix=${LOCALBASE} \
--with-jpeg-prefix=${LOCALBASE} \
diff --git a/cad/gtkwave/Makefile b/cad/gtkwave/Makefile
index 86f0601..9f1813c 100644
--- a/cad/gtkwave/Makefile
+++ b/cad/gtkwave/Makefile
@@ -24,7 +24,7 @@ LIB_DEPENDS+= bz2.1:${PORTSDIR}/archivers/bzip2
USE_GNOME= gtk12
USE_REINPLACE= yes
USE_LIBTOOL_VER= 13
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
INSTALLS_SHLIB= yes
LDCONFIG_DIRS= ${PREFIX}/lib/gtkwave
diff --git a/cad/qfsm/Makefile b/cad/qfsm/Makefile
index 04f373d..4f49aa9 100644
--- a/cad/qfsm/Makefile
+++ b/cad/qfsm/Makefile
@@ -19,7 +19,7 @@ USE_QT_VER= 3
USE_REINPLACE= yes
USE_GMAKE= yes
GNU_CONFIGURE= yes
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ARGS= --x-libraries=${X11BASE}/lib --x-includes=${X11BASE}/include
post-extract:
diff --git a/cad/xcircuit/Makefile b/cad/xcircuit/Makefile
index 3a3dea9..11fd808 100644
--- a/cad/xcircuit/Makefile
+++ b/cad/xcircuit/Makefile
@@ -21,7 +21,7 @@ USE_GHOSTSCRIPT_RUN= yes
USE_REINPLACE= yes
USE_GMAKE= yes
GNU_CONFIGURE= yes
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ENV= CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}"
MAKE_ARGS= ACLOCAL="${TRUE}" AUTOCONF="${TRUE}" AUTOMAKE="${TRUE}" \
AUTOHEADER="${TRUE}"
diff --git a/chinese/iiimf-le-newpy/Makefile b/chinese/iiimf-le-newpy/Makefile
index fa0bb3e..a598a48 100644
--- a/chinese/iiimf-le-newpy/Makefile
+++ b/chinese/iiimf-le-newpy/Makefile
@@ -29,7 +29,7 @@ USE_AUTOMAKE_VER= 19
WANT_LIBTOOL_VER= 15
AUTOMAKE_ARGS+= --add-missing
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
WRKSRC= ${WRKDIR}/${DISTNAME:S/src-//}/leif
PATCH_WRKSRC= ${WRKDIR}/${DISTNAME:S/src-//}
diff --git a/chinese/iiimf-le-ude/Makefile b/chinese/iiimf-le-ude/Makefile
index 0084657..97a73d6 100644
--- a/chinese/iiimf-le-ude/Makefile
+++ b/chinese/iiimf-le-ude/Makefile
@@ -29,7 +29,7 @@ USE_AUTOMAKE_VER= 19
WANT_LIBTOOL_VER= 15
AUTOMAKE_ARGS+= --add-missing
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
WRKSRC= ${WRKDIR}/${DISTNAME:S/src-//}/leif
BUILD_WRKSRC= ${WRKSRC}/ude
diff --git a/chinese/iiimf-le-xcin/Makefile b/chinese/iiimf-le-xcin/Makefile
index 5dc5b1d..15d1c7a 100644
--- a/chinese/iiimf-le-xcin/Makefile
+++ b/chinese/iiimf-le-xcin/Makefile
@@ -27,7 +27,7 @@ USE_AUTOHEADER_VER= 259
AUTOMAKE_ARGS= --add-missing
USE_AUTOMAKE_VER= 19
USE_LIBTOOL_VER= 15
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
do-extract:
${MKDIR} ${WRKDIR}
diff --git a/chinese/xemacs/Makefile b/chinese/xemacs/Makefile
index 26a6719..1efef51 100644
--- a/chinese/xemacs/Makefile
+++ b/chinese/xemacs/Makefile
@@ -27,7 +27,7 @@ USE_GMAKE= yes
USE_XPM= yes
STRIP=
HAS_CONFIGURE= yes
-XEMACS_ARCH= ${ARCH}--freebsd
+XEMACS_ARCH= ${MACHINE_ARCH}--freebsd
CONFIGURE_ARGS= ${XEMACS_ARCH} --prefix=${PREFIX} \
--with-mule \
--with-xfs \
diff --git a/comms/lirc/Makefile b/comms/lirc/Makefile
index 244c75d..eac36ad 100644
--- a/comms/lirc/Makefile
+++ b/comms/lirc/Makefile
@@ -21,7 +21,7 @@ USE_GMAKE= yes
USE_INC_LIBTOOL_VER=13
USE_REINPLACE= yes
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ARGS= --disable-manage-devices --with-devdir=/var/lirc
.include <bsd.port.pre.mk>
diff --git a/comms/qicosi/Makefile b/comms/qicosi/Makefile
index 18fa3dc..fb972be 100644
--- a/comms/qicosi/Makefile
+++ b/comms/qicosi/Makefile
@@ -24,7 +24,7 @@ CONFIGURE_ARGS+= --with-lock-style=open
.endif
CONFIGURE_ARGS+= --with-config=${CONFDIR}/qico.conf \
--with-default-speed=115200
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
DOCS= Changes FAQ README
EXAMPLES= fts-0001 onchat qhistory qico.xpm qlinks sfreq \
diff --git a/comms/scmxx/Makefile b/comms/scmxx/Makefile
index c5b52d9..d1d7ab2 100644
--- a/comms/scmxx/Makefile
+++ b/comms/scmxx/Makefile
@@ -23,7 +23,7 @@ GNU_CONFIGURE= yes
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
CFLAGS="-I${LOCALBASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib"
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
MAN1= scmxx.1
MANLANG= "" ru de it
diff --git a/converters/enca/Makefile b/converters/enca/Makefile
index e1e2b08..db730f9 100644
--- a/converters/enca/Makefile
+++ b/converters/enca/Makefile
@@ -23,7 +23,7 @@ INSTALLS_SHLIB= yes
CONFIGURE_ARGS= --with-html-dir=${DOCSDIR} \
--without-librecode \
--with-libiconv=${LOCALBASE}
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ENV= CPPFLAGS=-I${LOCALBASE}/include \
LDFLAGS=-L${LOCALBASE}/lib
diff --git a/converters/fix-mime-charset/Makefile b/converters/fix-mime-charset/Makefile
index f4651a5..71679f9 100644
--- a/converters/fix-mime-charset/Makefile
+++ b/converters/fix-mime-charset/Makefile
@@ -22,7 +22,7 @@ GNU_CONFIGURE= yes
USE_GETOPT_LONG= yes
USE_PERL5_BUILD= yes
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ENV= CPPFLAGS="${CPPFLAGS} -I${LOCALBASE}/include" \
LIBS="-L${LOCALBASE}/lib"
diff --git a/converters/psiconv/Makefile b/converters/psiconv/Makefile
index 3a09219..7e03df2 100644
--- a/converters/psiconv/Makefile
+++ b/converters/psiconv/Makefile
@@ -18,7 +18,7 @@ INSTALLS_SHLIB= yes
USE_GMAKE= yes
USE_LIBTOOL_VER=15
CONFIGURE_ARGS= --with-imagemagick=no
-CONFIGURE_TARGET= --target=${ARCH}-unknown-freebsd${OSREL}
+CONFIGURE_TARGET= --target=${MACHINE_ARCH}-unknown-freebsd${OSREL}
MAN1= psiconv.1 psiconv-config.1
diff --git a/converters/shftool/Makefile b/converters/shftool/Makefile
index 700781e..3462a26 100644
--- a/converters/shftool/Makefile
+++ b/converters/shftool/Makefile
@@ -18,7 +18,7 @@ LIB_DEPENDS= expat.5:${PORTSDIR}/textproc/expat2
USE_REINPLACE= yes
GNU_CONFIGURE= yes
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
post-patch:
${REINPLACE_CMD} -e 's,^LIBLOC_LIST=.*,LIBLOC_LIST=${LOCALBASE},' \
diff --git a/converters/tnef/Makefile b/converters/tnef/Makefile
index b6e16f4..45dd715 100644
--- a/converters/tnef/Makefile
+++ b/converters/tnef/Makefile
@@ -16,7 +16,7 @@ COMMENT= Unpack data in MS Outlook TNEF format
GNU_CONFIGURE= yes
USE_GETOPT_LONG= yes
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
MAN1= tnef.1
PORTDOCS= AUTHORS NEWS README THANKS TODO
diff --git a/databases/courier-authlib-mysql/Makefile b/databases/courier-authlib-mysql/Makefile
index 96eb0a2..902b25b 100644
--- a/databases/courier-authlib-mysql/Makefile
+++ b/databases/courier-authlib-mysql/Makefile
@@ -55,7 +55,7 @@ CONFIGURE_ENV= CFLAGS="${CFLAGS} -I${LOCALBASE}/include" \
CXXFLAGS="${CPPFLAGS} -I${LOCALBASE}/include" \
LIBS="${LDFLAGS} -L${LOCALBASE}/lib"
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ARGS= --sysconfdir=${CONFDIR} \
--without-authshadow \
--without-authcustom \
diff --git a/databases/courier-authlib-pgsql/Makefile b/databases/courier-authlib-pgsql/Makefile
index 96eb0a2..902b25b 100644
--- a/databases/courier-authlib-pgsql/Makefile
+++ b/databases/courier-authlib-pgsql/Makefile
@@ -55,7 +55,7 @@ CONFIGURE_ENV= CFLAGS="${CFLAGS} -I${LOCALBASE}/include" \
CXXFLAGS="${CPPFLAGS} -I${LOCALBASE}/include" \
LIBS="${LDFLAGS} -L${LOCALBASE}/lib"
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ARGS= --sysconfdir=${CONFDIR} \
--without-authshadow \
--without-authcustom \
diff --git a/databases/courier-authlib-userdb/Makefile b/databases/courier-authlib-userdb/Makefile
index 96eb0a2..902b25b 100644
--- a/databases/courier-authlib-userdb/Makefile
+++ b/databases/courier-authlib-userdb/Makefile
@@ -55,7 +55,7 @@ CONFIGURE_ENV= CFLAGS="${CFLAGS} -I${LOCALBASE}/include" \
CXXFLAGS="${CPPFLAGS} -I${LOCALBASE}/include" \
LIBS="${LDFLAGS} -L${LOCALBASE}/lib"
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ARGS= --sysconfdir=${CONFDIR} \
--without-authshadow \
--without-authcustom \
diff --git a/databases/courier-authlib-usergdbm/Makefile b/databases/courier-authlib-usergdbm/Makefile
index 96eb0a2..902b25b 100644
--- a/databases/courier-authlib-usergdbm/Makefile
+++ b/databases/courier-authlib-usergdbm/Makefile
@@ -55,7 +55,7 @@ CONFIGURE_ENV= CFLAGS="${CFLAGS} -I${LOCALBASE}/include" \
CXXFLAGS="${CPPFLAGS} -I${LOCALBASE}/include" \
LIBS="${LDFLAGS} -L${LOCALBASE}/lib"
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ARGS= --sysconfdir=${CONFDIR} \
--without-authshadow \
--without-authcustom \
diff --git a/databases/db3/Makefile b/databases/db3/Makefile
index 66a63c9..1e189ac 100644
--- a/databases/db3/Makefile
+++ b/databases/db3/Makefile
@@ -33,7 +33,7 @@ CONFIGURE_ARGS= --enable-compat185 \
--enable-dynamic \
--prefix=${PREFIX} \
--includedir=${PREFIX}/include/db3
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
INSTALL_TARGET= install_include install_lib install_utilities
.if !defined(NOPORTDOCS)
INSTALL_TARGET+= install_docs docdir=${DOCSDIR}
diff --git a/databases/db4/Makefile b/databases/db4/Makefile
index 427d069..fed7092 100644
--- a/databases/db4/Makefile
+++ b/databases/db4/Makefile
@@ -22,7 +22,7 @@ WRKSRC= ${WRKDIR}/${DISTNAME}/build_unix
USE_REINPLACE= yes
GNU_CONFIGURE= yes
CONFIGURE_SCRIPT= ../dist/configure
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ARGS= --enable-compat185 --enable-dump185 \
--enable-cxx --enable-dynamic \
--includedir=${PREFIX}/include/db4
diff --git a/databases/db41/Makefile b/databases/db41/Makefile
index b086466..49767b3 100644
--- a/databases/db41/Makefile
+++ b/databases/db41/Makefile
@@ -26,7 +26,7 @@ WRKSRC= ${WRKDIR}/${DISTNAME}/build_unix
USE_REINPLACE= yes
GNU_CONFIGURE= yes
CONFIGURE_SCRIPT= ../dist/configure
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ARGS= --enable-compat185 --enable-dump185 \
--enable-cxx --enable-dynamic \
--includedir=${PREFIX}/include/db41
diff --git a/databases/dbconnect/Makefile b/databases/dbconnect/Makefile
index f89801d..ea3d5ac9 100644
--- a/databases/dbconnect/Makefile
+++ b/databases/dbconnect/Makefile
@@ -18,7 +18,7 @@ COMMENT= Use C++ object API to allow applications to connect to databases
GNU_CONFIGURE= yes
USE_GMAKE= yes
USE_AUTOCONF_VER= 259
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
INSTALLS_SHLIB= yes
CXXFLAGS+= ${PTHREAD_CFLAGS} -fPIC -DFREEBSD
diff --git a/databases/gdbm/Makefile b/databases/gdbm/Makefile
index 122f103..b150bab 100644
--- a/databases/gdbm/Makefile
+++ b/databases/gdbm/Makefile
@@ -17,7 +17,7 @@ COMMENT= The GNU database manager
USE_GMAKE= yes
USE_INC_LIBTOOL_VER= 13
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
INSTALLS_SHLIB= yes
.if defined(WITH_COMPAT)
diff --git a/databases/gigabase/Makefile b/databases/gigabase/Makefile
index 50ae608..05dd6e2 100644
--- a/databases/gigabase/Makefile
+++ b/databases/gigabase/Makefile
@@ -17,7 +17,7 @@ WRKSRC= ${WRKDIR}/${PORTNAME}
USE_GMAKE= yes
USE_LIBTOOL_VER= 15
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ARGS?=--prefix=${LOCALBASE}
CONFIGURE_ENV= CPPFLAGS="${PTHREAD_CFLAGS}" LDFLAGS="${PTHREAD_LIBS}"
INSTALLS_SHLIB= yes
diff --git a/databases/gnome-db/Makefile b/databases/gnome-db/Makefile
index cb0522d..385a1d0 100644
--- a/databases/gnome-db/Makefile
+++ b/databases/gnome-db/Makefile
@@ -25,7 +25,7 @@ USE_INC_LIBTOOL_VER= 13
INSTALLS_SHLIB= yes
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
LIBS="${PTHREAD_LIBS} -L${LOCALBASE}/lib -lintl"
-CONFIGURE_TARGET= --target=${ARCH}-unknown-freebsd${OSREL}
+CONFIGURE_TARGET= --target=${MACHINE_ARCH}-unknown-freebsd${OSREL}
PLIST_SUB= VERSION=${PORTVERSION}
.include <bsd.port.mk>
diff --git a/databases/gnomedb/Makefile b/databases/gnomedb/Makefile
index cb0522d..385a1d0 100644
--- a/databases/gnomedb/Makefile
+++ b/databases/gnomedb/Makefile
@@ -25,7 +25,7 @@ USE_INC_LIBTOOL_VER= 13
INSTALLS_SHLIB= yes
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
LIBS="${PTHREAD_LIBS} -L${LOCALBASE}/lib -lintl"
-CONFIGURE_TARGET= --target=${ARCH}-unknown-freebsd${OSREL}
+CONFIGURE_TARGET= --target=${MACHINE_ARCH}-unknown-freebsd${OSREL}
PLIST_SUB= VERSION=${PORTVERSION}
.include <bsd.port.mk>
diff --git a/databases/hk_classes/Makefile b/databases/hk_classes/Makefile
index 5efae94..e854530 100644
--- a/databases/hk_classes/Makefile
+++ b/databases/hk_classes/Makefile
@@ -23,7 +23,7 @@ USE_PYTHON= yes
CXXFLAGS+= ${PTHREAD_CFLAGS}
CONFIGURE_ENV+= LIBPYTHON="-l${PYTHON_VERSION} ${PTHREAD_LIBS}" \
LDFLAGS="${PTHREAD_LIBS} -largp -L${LOCALBASE}/lib"
-CONFIGURE_TARGET=--build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET=--build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
GNU_CONFIGURE= yes
INSTALLS_SHLIB= yes
USE_LIBTOOL_VER= 15
diff --git a/databases/knoda/Makefile b/databases/knoda/Makefile
index 619ff12..18da2b2 100644
--- a/databases/knoda/Makefile
+++ b/databases/knoda/Makefile
@@ -25,7 +25,7 @@ INSTALLS_SHLIB= yes
USE_INC_LIBTOOL_VER= 13
USE_REINPLACE= yes
CONFIGURE_TARGET=
-CONFIGURE_ARGS+= --build=${ARCH}-portbld-freebsd${OSREL} \
+CONFIGURE_ARGS+= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL} \
--with-hk_classes-dir=${LOCALBASE}/lib/hk_classes \
--with-hk_classes-incdir=${LOCALBASE}/include/hk_classes
diff --git a/databases/libgda/Makefile b/databases/libgda/Makefile
index 967a417..2d79d52 100644
--- a/databases/libgda/Makefile
+++ b/databases/libgda/Makefile
@@ -28,7 +28,7 @@ USE_INC_LIBTOOL_VER= 13
CONFIGURE_ARGS= --disable-gtk-doc
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
LIBS="-L${LOCALBASE}/lib -lintl -lgdbm"
-CONFIGURE_TARGET= --target=${ARCH}-unknown-freebsd${OSREL}
+CONFIGURE_TARGET= --target=${MACHINE_ARCH}-unknown-freebsd${OSREL}
PLIST_SUB= VERSION=${PORTVERSION}
post-patch:
diff --git a/databases/mysql-navigator/Makefile b/databases/mysql-navigator/Makefile
index 39eb403..2e1df2a 100644
--- a/databases/mysql-navigator/Makefile
+++ b/databases/mysql-navigator/Makefile
@@ -25,7 +25,7 @@ GNU_CONFIGURE= yes
USE_REINPLACE= yes
CONFIGURE_ARGS+=--with-mysql-includes=${LOCALBASE}/include/mysql \
--with-mysql-libraries=${LOCALBASE}/lib/mysql
-CONFIGURE_TARGET=--build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET=--build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ENV+= MOC="${MOC}" QTDIR="${X11BASE}"
MAKE_ENV+= MOC="${MOC}" QTDIR="${X11BASE}"
diff --git a/databases/mysql323-server/Makefile b/databases/mysql323-server/Makefile
index d0b3e1a..d771a83 100644
--- a/databases/mysql323-server/Makefile
+++ b/databases/mysql323-server/Makefile
@@ -24,7 +24,7 @@ USE_REINPLACE= yes
USE_RC_SUBR= mysql-server.sh
.endif
-CONFIGURE_TARGET=--build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET=--build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ARGS= --localstatedir=/var/db/mysql \
--without-debug \
--without-readline \
diff --git a/databases/mysql40-server/Makefile b/databases/mysql40-server/Makefile
index fb869a1..7c97b75 100644
--- a/databases/mysql40-server/Makefile
+++ b/databases/mysql40-server/Makefile
@@ -24,7 +24,7 @@ USE_REINPLACE= yes
USE_RC_SUBR= mysql-server.sh
.endif
-CONFIGURE_TARGET=--build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET=--build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ARGS= --localstatedir=/var/db/mysql \
--without-debug \
--without-readline \
diff --git a/databases/mysql41-server/Makefile b/databases/mysql41-server/Makefile
index 66a269c..f3be1a1 100644
--- a/databases/mysql41-server/Makefile
+++ b/databases/mysql41-server/Makefile
@@ -24,7 +24,7 @@ USE_REINPLACE= yes
USE_RC_SUBR= mysql-server.sh
.endif
-CONFIGURE_TARGET=--build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET=--build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ARGS= --localstatedir=/var/db/mysql \
--without-debug \
--without-readline \
diff --git a/databases/mysql50-server/Makefile b/databases/mysql50-server/Makefile
index 60ffb43..3f19a19 100644
--- a/databases/mysql50-server/Makefile
+++ b/databases/mysql50-server/Makefile
@@ -26,7 +26,7 @@ USE_REINPLACE= yes
USE_RC_SUBR= mysql-server.sh
.endif
-CONFIGURE_TARGET=--build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET=--build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ARGS= --localstatedir=/var/db/mysql \
--without-debug \
--without-readline \
diff --git a/databases/mysql51-server/Makefile b/databases/mysql51-server/Makefile
index 60ffb43..3f19a19 100644
--- a/databases/mysql51-server/Makefile
+++ b/databases/mysql51-server/Makefile
@@ -26,7 +26,7 @@ USE_REINPLACE= yes
USE_RC_SUBR= mysql-server.sh
.endif
-CONFIGURE_TARGET=--build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET=--build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ARGS= --localstatedir=/var/db/mysql \
--without-debug \
--without-readline \
diff --git a/databases/mysql54-server/Makefile b/databases/mysql54-server/Makefile
index 60ffb43..3f19a19 100644
--- a/databases/mysql54-server/Makefile
+++ b/databases/mysql54-server/Makefile
@@ -26,7 +26,7 @@ USE_REINPLACE= yes
USE_RC_SUBR= mysql-server.sh
.endif
-CONFIGURE_TARGET=--build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET=--build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ARGS= --localstatedir=/var/db/mysql \
--without-debug \
--without-readline \
diff --git a/databases/mysql55-server/Makefile b/databases/mysql55-server/Makefile
index 60ffb43..3f19a19 100644
--- a/databases/mysql55-server/Makefile
+++ b/databases/mysql55-server/Makefile
@@ -26,7 +26,7 @@ USE_REINPLACE= yes
USE_RC_SUBR= mysql-server.sh
.endif
-CONFIGURE_TARGET=--build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET=--build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ARGS= --localstatedir=/var/db/mysql \
--without-debug \
--without-readline \
diff --git a/databases/mysql60-server/Makefile b/databases/mysql60-server/Makefile
index 60ffb43..3f19a19 100644
--- a/databases/mysql60-server/Makefile
+++ b/databases/mysql60-server/Makefile
@@ -26,7 +26,7 @@ USE_REINPLACE= yes
USE_RC_SUBR= mysql-server.sh
.endif
-CONFIGURE_TARGET=--build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET=--build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ARGS= --localstatedir=/var/db/mysql \
--without-debug \
--without-readline \
diff --git a/databases/percona55-server/Makefile b/databases/percona55-server/Makefile
index 60ffb43..3f19a19 100644
--- a/databases/percona55-server/Makefile
+++ b/databases/percona55-server/Makefile
@@ -26,7 +26,7 @@ USE_REINPLACE= yes
USE_RC_SUBR= mysql-server.sh
.endif
-CONFIGURE_TARGET=--build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET=--build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ARGS= --localstatedir=/var/db/mysql \
--without-debug \
--without-readline \
diff --git a/databases/rrdtool/Makefile b/databases/rrdtool/Makefile
index fda0e1a..501cf6d 100644
--- a/databases/rrdtool/Makefile
+++ b/databases/rrdtool/Makefile
@@ -23,7 +23,7 @@ INSTALLS_SHLIB= yes
CONFIGURE_ARGS= --enable-shared --enable-local-zlib \
--program-transform-name=''
CONFIGURE_ENV= PERL=${PERL}
-CONFIGURE_TARGET=--build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET=--build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CFLAGS+= -I${LOCALBASE}/include -L${LOCALBASE}/lib -fPIC
LDFLAGS+= -L${LOCALBASE}/lib
CFLAGS:= ${CFLAGS:N-ffast-math}
diff --git a/databases/rrdtool10/Makefile b/databases/rrdtool10/Makefile
index fda0e1a..501cf6d 100644
--- a/databases/rrdtool10/Makefile
+++ b/databases/rrdtool10/Makefile
@@ -23,7 +23,7 @@ INSTALLS_SHLIB= yes
CONFIGURE_ARGS= --enable-shared --enable-local-zlib \
--program-transform-name=''
CONFIGURE_ENV= PERL=${PERL}
-CONFIGURE_TARGET=--build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET=--build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CFLAGS+= -I${LOCALBASE}/include -L${LOCALBASE}/lib -fPIC
LDFLAGS+= -L${LOCALBASE}/lib
CFLAGS:= ${CFLAGS:N-ffast-math}
diff --git a/databases/sqlite2/Makefile b/databases/sqlite2/Makefile
index 659acd8..41e5606 100644
--- a/databases/sqlite2/Makefile
+++ b/databases/sqlite2/Makefile
@@ -60,7 +60,7 @@ USE_LIBTOOL_VER= 13
GNU_CONFIGURE= YES
USE_REINPLACE= YES
CONFIGURE_ARGS= --prefix=${PREFIX} --with-hints=freebsd.hints
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
ALL_TARGET= all
#.if defined(WITH_TCL)
#ALL_TARGET+= libtclsqlite.la
diff --git a/databases/sqlite3/Makefile b/databases/sqlite3/Makefile
index a0ba5c2..5e887bc 100644
--- a/databases/sqlite3/Makefile
+++ b/databases/sqlite3/Makefile
@@ -54,7 +54,7 @@ USE_LIBTOOL_VER= 13
GNU_CONFIGURE= YES
USE_REINPLACE= YES
CONFIGURE_ARGS= --prefix=${PREFIX} --with-hints=freebsd.hints
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
ALL_TARGET= all
INSTALLS_SHLIB= YES
diff --git a/databases/sqlite34/Makefile b/databases/sqlite34/Makefile
index a0ba5c2..5e887bc 100644
--- a/databases/sqlite34/Makefile
+++ b/databases/sqlite34/Makefile
@@ -54,7 +54,7 @@ USE_LIBTOOL_VER= 13
GNU_CONFIGURE= YES
USE_REINPLACE= YES
CONFIGURE_ARGS= --prefix=${PREFIX} --with-hints=freebsd.hints
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
ALL_TARGET= all
INSTALLS_SHLIB= YES
diff --git a/databases/sqlrelay/Makefile b/databases/sqlrelay/Makefile
index ff425cf..06b061d 100644
--- a/databases/sqlrelay/Makefile
+++ b/databases/sqlrelay/Makefile
@@ -31,7 +31,7 @@ CONFIGURE_ARGS= ${SQLRELAY_CONFIGURE_ARGS} \
--disable-python \
--disable-ruby \
--disable-zope
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
INSTALLS_SHLIB= yes
.include "${.CURDIR}/Makefile.common"
diff --git a/databases/xbsql/Makefile b/databases/xbsql/Makefile
index 23fd9f9..d4eef28 100644
--- a/databases/xbsql/Makefile
+++ b/databases/xbsql/Makefile
@@ -17,7 +17,7 @@ LIB_DEPENDS= xbase-2.0.0:${PORTSDIR}/databases/xbase
USE_BISON= yes
USE_INC_LIBTOOL_VER= 13
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
INSTALLS_SHLIB= yes
USE_REINPLACE= yes
diff --git a/deskutils/taskjuggler/Makefile b/deskutils/taskjuggler/Makefile
index 17f0fcb..016e0b9 100644
--- a/deskutils/taskjuggler/Makefile
+++ b/deskutils/taskjuggler/Makefile
@@ -32,7 +32,7 @@ USE_PERL5_RUN= yes
USE_REINPLACE= yes
GNU_CONFIGURE= yes
CONFIGURE_ENV+= LDFLAGS="${LDFLAGS} ${PTHREAD_LIBS} -L${LOCALBASE}/lib"
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
.include <bsd.port.pre.mk>
diff --git a/devel/ac-archive/Makefile b/devel/ac-archive/Makefile
index 10f98d9..82443e0 100644
--- a/devel/ac-archive/Makefile
+++ b/devel/ac-archive/Makefile
@@ -19,7 +19,7 @@ USE_PERL5= yes
USE_GMAKE= yes
USE_AUTOCONF_VER= 259
GNU_CONFIGURE= yes
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
PLIST_FILES= bin/acinclude
MAN1= acinclude.1
diff --git a/devel/aegis/Makefile b/devel/aegis/Makefile
index 833938b..77af221 100644
--- a/devel/aegis/Makefile
+++ b/devel/aegis/Makefile
@@ -24,7 +24,7 @@ CONFIGURE_ENV= CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}"
CPPFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib
CONFIGURE_ARGS= --with-nlsdir=${LOCALBASE}/share/locale
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
MAN1= ae-sccs-put.1 ae_c.1 ae_p.1 aeannotate.1 aeb.1 aebuffy.1 \
aeca.1 aecd.1 aechown.1 aeclean.1 aeclone.1 aecomp.1 \
diff --git a/devel/argp-standalone/Makefile b/devel/argp-standalone/Makefile
index ef50686..e1065be 100644
--- a/devel/argp-standalone/Makefile
+++ b/devel/argp-standalone/Makefile
@@ -14,7 +14,7 @@ MAINTAINER= sem@FreeBSD.org
COMMENT= Standalone version of arguments parsing functions from GLIBC
GNU_CONFIGURE= yes
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
PLIST_FILES= lib/libargp.a include/argp.h
diff --git a/devel/argtable/Makefile b/devel/argtable/Makefile
index 02e0e1e..b8d02a5 100644
--- a/devel/argtable/Makefile
+++ b/devel/argtable/Makefile
@@ -19,7 +19,7 @@ WRKSRC= ${WRKDIR}/${PORTNAME}2
USE_GETOPT_LONG= yes
GNU_CONFIGURE= yes
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
MAN3= argtable2.3
diff --git a/devel/autoconf213/Makefile b/devel/autoconf213/Makefile
index 7213147..0f1df88 100644
--- a/devel/autoconf213/Makefile
+++ b/devel/autoconf213/Makefile
@@ -29,7 +29,7 @@ USE_PERL5= yes
GNU_CONFIGURE= yes
CONFIGURE_ENV= CONFIG_SHELL=${SH} M4=${LOCALBASE}/bin/gm4
CONFIGURE_ARGS= --program-suffix=${BUILD_VERSION}
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
WRKSRC= ${WRKDIR}/autoconf
INFO= autoconf${BUILD_VERSION}
diff --git a/devel/autoconf253/Makefile b/devel/autoconf253/Makefile
index 3656e96..14f3c4b 100644
--- a/devel/autoconf253/Makefile
+++ b/devel/autoconf253/Makefile
@@ -33,7 +33,7 @@ INFO= autoconf${BUILD_VERSION} standards${BUILD_VERSION}
GNU_CONFIGURE= yes
CONFIGURE_ENV= CONFIG_SHELL=${SH} M4=${LOCALBASE}/bin/gm4
CONFIGURE_ARGS= --program-suffix=${BUILD_VERSION} --without-lispdir
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
GENERIC_TOOLS= config.guess config.sub elisp-comp install-sh mdate-sh \
missing mkinstalldirs
diff --git a/devel/autoconf259/Makefile b/devel/autoconf259/Makefile
index 824ee0a..b1e126b 100644
--- a/devel/autoconf259/Makefile
+++ b/devel/autoconf259/Makefile
@@ -33,7 +33,7 @@ GNU_CONFIGURE= yes
CONFIGURE_ENV+= CONFIG_SHELL=${SH}
CONFIGURE_ENV+= M4=${LOCALBASE}/bin/gm4
CONFIGURE_ARGS= --program-suffix=${BUILD_VERSION} --without-lispdir
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
GENERIC_TOOLS= config.guess config.sub elisp-comp install-sh mdate-sh \
missing mkinstalldirs
diff --git a/devel/autoconf26/Makefile b/devel/autoconf26/Makefile
index 824ee0a..b1e126b 100644
--- a/devel/autoconf26/Makefile
+++ b/devel/autoconf26/Makefile
@@ -33,7 +33,7 @@ GNU_CONFIGURE= yes
CONFIGURE_ENV+= CONFIG_SHELL=${SH}
CONFIGURE_ENV+= M4=${LOCALBASE}/bin/gm4
CONFIGURE_ARGS= --program-suffix=${BUILD_VERSION} --without-lispdir
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
GENERIC_TOOLS= config.guess config.sub elisp-comp install-sh mdate-sh \
missing mkinstalldirs
diff --git a/devel/autoconf261/Makefile b/devel/autoconf261/Makefile
index 824ee0a..b1e126b 100644
--- a/devel/autoconf261/Makefile
+++ b/devel/autoconf261/Makefile
@@ -33,7 +33,7 @@ GNU_CONFIGURE= yes
CONFIGURE_ENV+= CONFIG_SHELL=${SH}
CONFIGURE_ENV+= M4=${LOCALBASE}/bin/gm4
CONFIGURE_ARGS= --program-suffix=${BUILD_VERSION} --without-lispdir
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
GENERIC_TOOLS= config.guess config.sub elisp-comp install-sh mdate-sh \
missing mkinstalldirs
diff --git a/devel/autoconf262/Makefile b/devel/autoconf262/Makefile
index 824ee0a..b1e126b 100644
--- a/devel/autoconf262/Makefile
+++ b/devel/autoconf262/Makefile
@@ -33,7 +33,7 @@ GNU_CONFIGURE= yes
CONFIGURE_ENV+= CONFIG_SHELL=${SH}
CONFIGURE_ENV+= M4=${LOCALBASE}/bin/gm4
CONFIGURE_ARGS= --program-suffix=${BUILD_VERSION} --without-lispdir
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
GENERIC_TOOLS= config.guess config.sub elisp-comp install-sh mdate-sh \
missing mkinstalldirs
diff --git a/devel/autoconf267/Makefile b/devel/autoconf267/Makefile
index 824ee0a..b1e126b 100644
--- a/devel/autoconf267/Makefile
+++ b/devel/autoconf267/Makefile
@@ -33,7 +33,7 @@ GNU_CONFIGURE= yes
CONFIGURE_ENV+= CONFIG_SHELL=${SH}
CONFIGURE_ENV+= M4=${LOCALBASE}/bin/gm4
CONFIGURE_ARGS= --program-suffix=${BUILD_VERSION} --without-lispdir
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
GENERIC_TOOLS= config.guess config.sub elisp-comp install-sh mdate-sh \
missing mkinstalldirs
diff --git a/devel/autoconf268/Makefile b/devel/autoconf268/Makefile
index 824ee0a..b1e126b 100644
--- a/devel/autoconf268/Makefile
+++ b/devel/autoconf268/Makefile
@@ -33,7 +33,7 @@ GNU_CONFIGURE= yes
CONFIGURE_ENV+= CONFIG_SHELL=${SH}
CONFIGURE_ENV+= M4=${LOCALBASE}/bin/gm4
CONFIGURE_ARGS= --program-suffix=${BUILD_VERSION} --without-lispdir
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
GENERIC_TOOLS= config.guess config.sub elisp-comp install-sh mdate-sh \
missing mkinstalldirs
diff --git a/devel/automake110/Makefile b/devel/automake110/Makefile
index 32d014e..24561fc 100644
--- a/devel/automake110/Makefile
+++ b/devel/automake110/Makefile
@@ -26,7 +26,7 @@ GNU_CONFIGURE= yes
CONFIGURE_ENV= AUTOCONF=autoconf259 AUTOHEADER=autoheader259 MAKEINFO=makeinfo
CONFIGURE_ARGS= --program-suffix=${BUILD_VERSION} \
--infodir=${PREFIX}/info
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
USE_REINPLACE= yes
INFO= automake${BUILD_VERSION}
diff --git a/devel/automake15/Makefile b/devel/automake15/Makefile
index 499093f..78829c1 100644
--- a/devel/automake15/Makefile
+++ b/devel/automake15/Makefile
@@ -27,7 +27,7 @@ USE_PERL5= yes
GNU_CONFIGURE= yes
CONFIGURE_ENV= AUTOCONF=autoconf253 AUTOHEADER=autoheader253 MAKEINFO=makeinfo
CONFIGURE_ARGS= --program-suffix=${BUILD_VERSION}
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
USE_REINPLACE= yes
post-patch:
diff --git a/devel/automake19/Makefile b/devel/automake19/Makefile
index 32d014e..24561fc 100644
--- a/devel/automake19/Makefile
+++ b/devel/automake19/Makefile
@@ -26,7 +26,7 @@ GNU_CONFIGURE= yes
CONFIGURE_ENV= AUTOCONF=autoconf259 AUTOHEADER=autoheader259 MAKEINFO=makeinfo
CONFIGURE_ARGS= --program-suffix=${BUILD_VERSION} \
--infodir=${PREFIX}/info
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
USE_REINPLACE= yes
INFO= automake${BUILD_VERSION}
diff --git a/devel/avr-binutils/Makefile b/devel/avr-binutils/Makefile
index 0e308ff..49d0abd 100644
--- a/devel/avr-binutils/Makefile
+++ b/devel/avr-binutils/Makefile
@@ -21,8 +21,8 @@ WRKSRC= ${WRKDIR}/binutils-${PORTVERSION}
USE_BZIP2= yes
USE_GMAKE= yes
CONFIGURE_ARGS= --target=avr
-.if (${ARCH} == "amd64")
-ARCH= x86_64
+.if (${MACHINE_ARCH} == "amd64")
+MACHINE_ARCH= x86_64
.endif
USE_INC_LIBTOOL_VER= 13
LIBTOOLFILES= configure bfd/configure binutils/configure etc/configure \
diff --git a/devel/avr-gcc-3/Makefile b/devel/avr-gcc-3/Makefile
index ba15ef8..7411497 100644
--- a/devel/avr-gcc-3/Makefile
+++ b/devel/avr-gcc-3/Makefile
@@ -39,7 +39,7 @@ CONFIGURE_ARGS= --target=avr --disable-nls
MAKE_FLAGS= LANGUAGES="c c++"
# get rid of that silly -mcpu=pentiumpro FreeBSD 5+ is so fond of. :-(
-MAKE_ENV= ARCH=avr
+MAKE_ENV= MACHINE_ARCH=avr
MAN1= avr-cpp.1 avr-gcc.1 avr-g++.1 avr-gcov.1
MAN7= fsf-funding.7 gfdl.7 gpl.7
diff --git a/devel/avr-gcc/Makefile b/devel/avr-gcc/Makefile
index ba15ef8..7411497 100644
--- a/devel/avr-gcc/Makefile
+++ b/devel/avr-gcc/Makefile
@@ -39,7 +39,7 @@ CONFIGURE_ARGS= --target=avr --disable-nls
MAKE_FLAGS= LANGUAGES="c c++"
# get rid of that silly -mcpu=pentiumpro FreeBSD 5+ is so fond of. :-(
-MAKE_ENV= ARCH=avr
+MAKE_ENV= MACHINE_ARCH=avr
MAN1= avr-cpp.1 avr-gcc.1 avr-g++.1 avr-gcov.1
MAN7= fsf-funding.7 gfdl.7 gpl.7
diff --git a/devel/bison-devel/Makefile b/devel/bison-devel/Makefile
index c9f65a3..f446f36 100644
--- a/devel/bison-devel/Makefile
+++ b/devel/bison-devel/Makefile
@@ -24,7 +24,7 @@ NO_LATEST_LINK= yes
USE_BZIP2= yes
USE_GETTEXT= yes
GNU_CONFIGURE= yes
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib"
diff --git a/devel/bison/Makefile b/devel/bison/Makefile
index 6191cda..b9e5123 100644
--- a/devel/bison/Makefile
+++ b/devel/bison/Makefile
@@ -22,7 +22,7 @@ CONFLICTS= bison-1.8[0-9]*
USE_BZIP2= yes
GNU_CONFIGURE= yes
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib" \
MAKEINFO="makeinfo --no-split"
diff --git a/devel/bison175/Makefile b/devel/bison175/Makefile
index 6191cda..b9e5123 100644
--- a/devel/bison175/Makefile
+++ b/devel/bison175/Makefile
@@ -22,7 +22,7 @@ CONFLICTS= bison-1.8[0-9]*
USE_BZIP2= yes
GNU_CONFIGURE= yes
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib" \
MAKEINFO="makeinfo --no-split"
diff --git a/devel/bison1875/Makefile b/devel/bison1875/Makefile
index 4150439..39d5bb4 100644
--- a/devel/bison1875/Makefile
+++ b/devel/bison1875/Makefile
@@ -23,7 +23,7 @@ CONFLICTS= bison-1.7[0-9]*
NO_LATEST_LINK= yes
USE_BZIP2= yes
GNU_CONFIGURE= yes
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib" \
MAKEINFO="makeinfo --no-split"
diff --git a/devel/bison2/Makefile b/devel/bison2/Makefile
index 4150439..39d5bb4 100644
--- a/devel/bison2/Makefile
+++ b/devel/bison2/Makefile
@@ -23,7 +23,7 @@ CONFLICTS= bison-1.7[0-9]*
NO_LATEST_LINK= yes
USE_BZIP2= yes
GNU_CONFIGURE= yes
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib" \
MAKEINFO="makeinfo --no-split"
diff --git a/devel/bison20/Makefile b/devel/bison20/Makefile
index 4150439..39d5bb4 100644
--- a/devel/bison20/Makefile
+++ b/devel/bison20/Makefile
@@ -23,7 +23,7 @@ CONFLICTS= bison-1.7[0-9]*
NO_LATEST_LINK= yes
USE_BZIP2= yes
GNU_CONFIGURE= yes
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib" \
MAKEINFO="makeinfo --no-split"
diff --git a/devel/bonobo/Makefile b/devel/bonobo/Makefile
index acd471c..3bb9364 100644
--- a/devel/bonobo/Makefile
+++ b/devel/bonobo/Makefile
@@ -28,6 +28,6 @@ INSTALLS_SHLIB= yes
GNU_CONFIGURE= yes
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
LIBS="-L${LOCALBASE}/lib"
-CONFIGURE_TARGET= --target=${ARCH}-unknown-freebsd${OSREL}
+CONFIGURE_TARGET= --target=${MACHINE_ARCH}-unknown-freebsd${OSREL}
.include <bsd.port.mk>
diff --git a/devel/c_c++_reference/Makefile b/devel/c_c++_reference/Makefile
index 0b25268..c62f7cb 100644
--- a/devel/c_c++_reference/Makefile
+++ b/devel/c_c++_reference/Makefile
@@ -22,7 +22,7 @@ GNU_CONFIGURE= yes
USE_KDELIBS_VER= 3
USE_GMAKE= yes
CONFIGURE_TARGET=
-CONFIGURE_ARGS+=--build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_ARGS+=--build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
USE_REINPLACE= yes
post-patch:
diff --git a/devel/ccache/Makefile b/devel/ccache/Makefile
index 41b6300..8dae8ac 100644
--- a/devel/ccache/Makefile
+++ b/devel/ccache/Makefile
@@ -15,7 +15,7 @@ MAINTAINER= ahze@FreeBSD.org
COMMENT= A tool to minimize the compile time of C/C++ programs
GNU_CONFIGURE= yes
-CONFIGURE_TARGET=--build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET=--build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
MAN1= ccache.1
PLIST_FILES= bin/ccache
diff --git a/devel/cdialog/Makefile b/devel/cdialog/Makefile
index 2e0c8db..90ec3fc 100644
--- a/devel/cdialog/Makefile
+++ b/devel/cdialog/Makefile
@@ -21,7 +21,7 @@ COMMENT= An enhanced version of 'dialog' to work with ncurses
USE_GMAKE= yes
GNU_CONFIGURE= yes
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
MAKEFILE= makefile
MAN1= cdialog.1
diff --git a/devel/cook/Makefile b/devel/cook/Makefile
index f0b6d73..adcf8b8 100644
--- a/devel/cook/Makefile
+++ b/devel/cook/Makefile
@@ -17,7 +17,7 @@ COMMENT= Like make(1), but more powerful and clean
GNU_CONFIGURE= yes
CONFIGURE_ENV= CPPFLAGS=-I${LOCALBASE}/include LDFLAGS=-L${LOCALBASE}/lib \
YACC=yacc
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
MAN1= c_incl.1 cook.1 cook_bom.1 cook_lic.1 cook_rsh.1 cookfp.1 cooktime.1 \
find_libs.1 make2cook.1 roffpp.1
diff --git a/devel/cproto/Makefile b/devel/cproto/Makefile
index c5bbb08..816ba9a 100644
--- a/devel/cproto/Makefile
+++ b/devel/cproto/Makefile
@@ -17,7 +17,7 @@ MAINTAINER= ports@FreeBSD.org
COMMENT= Generate C function prototypes and convert function definitions
GNU_CONFIGURE= yes
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
MAN1= cproto.1
PLIST_FILES= bin/cproto
diff --git a/devel/cstringbuffer/Makefile b/devel/cstringbuffer/Makefile
index 3c98f48..8517b84 100644
--- a/devel/cstringbuffer/Makefile
+++ b/devel/cstringbuffer/Makefile
@@ -19,7 +19,7 @@ MAN3= csb.3
MANCOMPRESSED= no
CONFIGURE_TARGET=
-CONFIGURE_ARGS+=--build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_ARGS+=--build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
PLIST_FILES= include/csb.h lib/libcsb.a lib/libcsb.so lib/libcsb.so.1
diff --git a/devel/cvsd/Makefile b/devel/cvsd/Makefile
index fe6012a..bfd5246 100644
--- a/devel/cvsd/Makefile
+++ b/devel/cvsd/Makefile
@@ -21,7 +21,7 @@ SIG_FILES= ${DISTNAME}${EXTRACT_SUFX}.sig
USE_PERL5= yes
USE_GETOPT_LONG= yes
GNU_CONFIGURE= yes
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ENV= CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}"
CONFIGURE_ARGS= --with-libwrap
MAKE_ARGS= ACLOCAL="${TRUE}" AUTOCONF="${TRUE}" AUTOMAKE="${TRUE}" \
diff --git a/devel/cvsnt/Makefile b/devel/cvsnt/Makefile
index 07389f5..f2b4429 100644
--- a/devel/cvsnt/Makefile
+++ b/devel/cvsnt/Makefile
@@ -20,7 +20,7 @@ USE_LIBLTDL= yes
USE_INC_LIBTOOL_VER= 13
USE_RC_SUBR= yes
CONFIGURE_ARGS= --enable-fork
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
USE_GETOPT_LONG=yes
USE_ICONV= yes
CPPFLAGS+= -I${LOCALBASE}/include
diff --git a/devel/cxref/Makefile b/devel/cxref/Makefile
index 523fbbd..f293c8a 100644
--- a/devel/cxref/Makefile
+++ b/devel/cxref/Makefile
@@ -19,7 +19,7 @@ COMMENT= C program cross-referencing & documentation tool
USE_BISON= yes
USE_GMAKE= yes
GNU_CONFIGURE= yes
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ARGS= --without-cxref-cpp
ALL_TARGET= programs
diff --git a/devel/ddd/Makefile b/devel/ddd/Makefile
index 680e2fa..e07ac74 100644
--- a/devel/ddd/Makefile
+++ b/devel/ddd/Makefile
@@ -28,7 +28,7 @@ CPPFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib
CONFIGURE_ENV= CPPFLAGS='-I${LOCALBASE}/include/freelibiberty ${CPPFLAGS}' \
LDFLAGS='${LDFLAGS}'
-CONFIGURE_TARGET=--build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET=--build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ARGS= --with-motif-libraries="${LIBXMDIR}" \
--with-readline-libraries=/usr/lib
diff --git a/devel/dmalloc/Makefile b/devel/dmalloc/Makefile
index 0ee6edb..0d9b0b8 100644
--- a/devel/dmalloc/Makefile
+++ b/devel/dmalloc/Makefile
@@ -15,7 +15,7 @@ MAINTAINER= jeremy@external.org
COMMENT= Portable debug memory allocation library
GNU_CONFIGURE= yes
-CONFIGURE_TARGET=--build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET=--build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ARGS= --enable-threads --enable-shlib
CFLAGS+= -fPIC
USE_REINPLACE= yes
diff --git a/devel/doxygen/Makefile b/devel/doxygen/Makefile
index ff36821..1250953 100644
--- a/devel/doxygen/Makefile
+++ b/devel/doxygen/Makefile
@@ -61,7 +61,7 @@ QT_NONSTANDARD= yes # non-standard configure arguments
CONFIGURE_ARGS+=--prefix ${PREFIX} --perl ${PERL} --make ${GMAKE} \
--install "${INSTALL}"
-.if ${ARCH:L} == alpha
+.if ${MACHINE_ARCH:L} == alpha
CONFIGURE_ARGS+= --enable-langs no
.endif
diff --git a/devel/fam/Makefile b/devel/fam/Makefile
index 5899ba9..baa6956 100644
--- a/devel/fam/Makefile
+++ b/devel/fam/Makefile
@@ -23,7 +23,7 @@ CFLAGS+= -Wno-deprecated
USE_AUTOMAKE_VER=15
USE_AUTOCONF_VER=253
USE_INC_LIBTOOL_VER=13
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
USE_GMAKE= yes
INSTALLS_SHLIB= yes
diff --git a/devel/gaul/Makefile b/devel/gaul/Makefile
index b773379..b752228 100644
--- a/devel/gaul/Makefile
+++ b/devel/gaul/Makefile
@@ -21,7 +21,7 @@ LIB_DEPENDS= slang.1:${PORTSDIR}/devel/libslang
USE_REINPLACE= yes
USE_GMAKE= yes
GNU_CONFIGURE= yes
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include ${PTHREAD_CFLAGS}" \
LDFLAGS="-L${LOCALBASE}/lib -lcurses ${PTHREAD_LIBS}"
INSTALLS_SHLIB= yes
diff --git a/devel/gengetopt/Makefile b/devel/gengetopt/Makefile
index 98a166f..016b3fd 100644
--- a/devel/gengetopt/Makefile
+++ b/devel/gengetopt/Makefile
@@ -16,7 +16,7 @@ MAINTAINER= cyrille.lefevre@laposte.net
COMMENT= A tool for generating a C function which parses command line arguments
GNU_CONFIGURE= yes
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
USE_GMAKE= yes
MAN1= gengetopt.1
diff --git a/devel/gindent/Makefile b/devel/gindent/Makefile
index 494df9e..a61e1e0 100644
--- a/devel/gindent/Makefile
+++ b/devel/gindent/Makefile
@@ -7,7 +7,17 @@
#
PORTNAME= gindent
+<<<<<<< Makefile
+<<<<<<< Makefile
PORTVERSION= 2.2.9
+PORTREVISION= 0
+=======
+PORTVERSION= 2.2.8a
+PORTREVISION= 3
+>>>>>>> 1.29
+=======
+PORTVERSION= 2.2.9
+>>>>>>> 1.30
CATEGORIES= devel
MASTER_SITES= ${MASTER_SITE_GNU}
MASTER_SITE_SUBDIR= indent
diff --git a/devel/global/Makefile b/devel/global/Makefile
index 4d46f3a..a8342cd 100644
--- a/devel/global/Makefile
+++ b/devel/global/Makefile
@@ -17,7 +17,7 @@ COMMENT= A source code tag system
GNU_CONFIGURE= yes
USE_PERL5= yes
USE_REINPLACE= yes
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
MAN1= gctags.1 global.1 gozilla.1 gtags.1 htags.1
INFO= global
diff --git a/devel/gnu-autoconf/Makefile b/devel/gnu-autoconf/Makefile
index d52c0c2..2e6d3f6 100644
--- a/devel/gnu-autoconf/Makefile
+++ b/devel/gnu-autoconf/Makefile
@@ -32,7 +32,7 @@ INFO= autoconf standards
CONFIGURE_ENV+= CONFIG_SHELL=${SH}
CONFIGURE_ENV+= M4=${LOCALBASE}/bin/gm4
CONFIGURE_ARGS= --without-lispdir
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
MAN1= autoconf.1 autoheader.1 autom4te.1 autoreconf.1 autoscan.1 \
autoupdate.1 config.guess.1 config.sub.1 ifnames.1
diff --git a/devel/gnu-automake/Makefile b/devel/gnu-automake/Makefile
index 2db887c..3634e27 100644
--- a/devel/gnu-automake/Makefile
+++ b/devel/gnu-automake/Makefile
@@ -29,7 +29,7 @@ NO_MTREE= yes
CONFIGURE_ENV= AUTOCONF=${LOCALBASE}/gnu-autotools/bin/autoconf \
AUTOHEADER=${LOCALBASE}/gnu-autotools/bin/autoheader \
MAKEINFO="makeinfo --no-split"
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
post-install:
@${CAT} ${PKGMESSAGE}
diff --git a/devel/gnu-libtool/Makefile b/devel/gnu-libtool/Makefile
index 1cdc121..12232e3 100644
--- a/devel/gnu-libtool/Makefile
+++ b/devel/gnu-libtool/Makefile
@@ -24,7 +24,7 @@ NO_MTREE= yes
INFO= libtool
CONFIGURE_ARGS= --disable-ltdl-install
CONFIGURE_ENV= PREFIX=${PREFIX}
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
post-install:
@${CAT} ${PKGMESSAGE}
diff --git a/devel/gnustep/Makefile b/devel/gnustep/Makefile
index c765ce1..5ec16c0 100644
--- a/devel/gnustep/Makefile
+++ b/devel/gnustep/Makefile
@@ -33,10 +33,10 @@ GNUSTEP_BACK_PORT?= x11-toolkits/gnustep-back
.include <bsd.port.pre.mk>
-.if ${ARCH} == "i386"
+.if ${MACHINE_ARCH} == "i386"
GNU_ARCH= ix86
.else
-GNU_ARCH= ${ARCH}
+GNU_ARCH= ${MACHINE_ARCH}
.endif
SYSLIBDIR= ${SYSTEMDIR}/Library/Libraries
diff --git a/devel/gputils/Makefile b/devel/gputils/Makefile
index 1225c98..fa83586 100644
--- a/devel/gputils/Makefile
+++ b/devel/gputils/Makefile
@@ -15,7 +15,7 @@ MAINTAINER= sam@rfc1149.net
COMMENT= GPUTILS is a set of utilities for Microchip PIC microcontrollers
GNU_CONFIGURE= yes
-CONFIGURE_TARGET=--build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET=--build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
MAN1= gpal.1 gpasm.1 gpdasm.1 gplib.1 gplink.1 gputils.1 gpvc.1 gpvo.1
diff --git a/devel/gsoap/Makefile b/devel/gsoap/Makefile
index d628722..26b0db0 100644
--- a/devel/gsoap/Makefile
+++ b/devel/gsoap/Makefile
@@ -17,7 +17,7 @@ COMMENT= Generator Tools for Coding SOAP/XML Web Services in C and C++
USE_GMAKE= yes
GNU_CONFIGURE= yes
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
ONLY_FOR_ARCHS= i386
diff --git a/devel/gtgt/Makefile b/devel/gtgt/Makefile
index a6600e0..fc1aecc 100644
--- a/devel/gtgt/Makefile
+++ b/devel/gtgt/Makefile
@@ -17,6 +17,6 @@ MAINTAINER= ports@FreeBSD.org
COMMENT= General (or GNU) template generation tools
GNU_CONFIGURE= yes
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
.include <bsd.port.mk>
diff --git a/devel/i386-rtems-g77/Makefile b/devel/i386-rtems-g77/Makefile
index 83cfbc7..722223b 100644
--- a/devel/i386-rtems-g77/Makefile
+++ b/devel/i386-rtems-g77/Makefile
@@ -55,7 +55,7 @@ PATCH_STRIP= -p
WITHOUT_CPU_CFLAGS= yes
MAKE_FLAGS= LANGUAGES="f77"
-MAKE_ENV= ARCH=${RTEMS_ARCH} NO_CPU_CFLAGS=true
+MAKE_ENV= MACHINE_ARCH=${RTEMS_ARCH} NO_CPU_CFLAGS=true
pre-configure:
@(cd ${WRKDIR} ; \
diff --git a/devel/i386-rtems-gcc/Makefile b/devel/i386-rtems-gcc/Makefile
index dcf2d82..6eb17bb 100644
--- a/devel/i386-rtems-gcc/Makefile
+++ b/devel/i386-rtems-gcc/Makefile
@@ -68,7 +68,7 @@ PATCH_STRIP= -p
WITHOUT_CPU_CFLAGS= yes
MAKE_FLAGS= LANGUAGES="c c++ java"
-MAKE_ENV= ARCH=${RTEMS_ARCH} NO_CPU_CFLAGS=true
+MAKE_ENV= MACHINE_ARCH=${RTEMS_ARCH} NO_CPU_CFLAGS=true
MAN1= ${LCLTARGET}-gcc.1 ${LCLTARGET}-g++.1 ${LCLTARGET}-gcj.1 \
cpp.1 gcov.1 gcjh.1 jv-scan.1 jcf-dump.1 gij.1 \
diff --git a/devel/i386-rtems-objc/Makefile b/devel/i386-rtems-objc/Makefile
index 376596b..b2484d5 100644
--- a/devel/i386-rtems-objc/Makefile
+++ b/devel/i386-rtems-objc/Makefile
@@ -55,7 +55,7 @@ PATCH_STRIP= -p
WITHOUT_CPU_CFLAGS= yes
MAKE_FLAGS= LANGUAGES="objc"
-MAKE_ENV= ARCH=${RTEMS_ARCH} NO_CPU_CFLAGS=true
+MAKE_ENV= MACHINE_ARCH=${RTEMS_ARCH} NO_CPU_CFLAGS=true
pre-configure:
@(cd ${WRKDIR} ; \
diff --git a/devel/jam/Makefile b/devel/jam/Makefile
index 9662217..e4927c3 100644
--- a/devel/jam/Makefile
+++ b/devel/jam/Makefile
@@ -32,7 +32,7 @@ pre-patch:
s|^ jam| ./jam|g' ${WRKSRC}/Makefile
do-install:
-.if ${ARCH} == "alpha"
+.if ${MACHINE_ARCH} == "alpha"
${INSTALL_PROGRAM} ${WRKSRC}/bin.freebsdaxp/jam ${PREFIX}/bin
.else
${INSTALL_PROGRAM} ${WRKSRC}/bin.freebsd/jam ${PREFIX}/bin
diff --git a/devel/jrtplib/Makefile b/devel/jrtplib/Makefile
index 1b6eae2..1b3e418 100644
--- a/devel/jrtplib/Makefile
+++ b/devel/jrtplib/Makefile
@@ -17,7 +17,7 @@ GNU_CONFIGURE= yes
USE_GMAKE= yes
INSTALLS_SHLIB= yes
NO_FILTER_SHLIBS= yes
-CONFIGURE_TARGET= --target=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --target=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ARGS= --disable-jthread
.include <bsd.port.mk>
diff --git a/devel/kaptain/Makefile b/devel/kaptain/Makefile
index 203ae12..4ce32e6 100644
--- a/devel/kaptain/Makefile
+++ b/devel/kaptain/Makefile
@@ -20,7 +20,7 @@ USE_QT_VER= 3
USE_REINPLACE= yes
USE_GMAKE= yes
GNU_CONFIGURE= yes
-CONFIGURE_TARGET=--build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET=--build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ARGS= --enable-mt \
--x-libraries=${X11BASE}/lib --x-includes=${X11BASE}/include
diff --git a/devel/kimwitu++/Makefile b/devel/kimwitu++/Makefile
index 5cf06a3..58bf1cb 100644
--- a/devel/kimwitu++/Makefile
+++ b/devel/kimwitu++/Makefile
@@ -19,7 +19,7 @@ USE_BISON= yes
USE_GETOPT_LONG= yes
USE_GMAKE= yes
GNU_CONFIGURE= yes
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
MAN1= kc++.1
PLIST_FILES= bin/kc++
diff --git a/devel/libbfd/Makefile b/devel/libbfd/Makefile
index 29d1b5f..be9aec1 100644
--- a/devel/libbfd/Makefile
+++ b/devel/libbfd/Makefile
@@ -27,7 +27,7 @@ CONFIGURE_ARGS= --enable-install-libbfd \
--disable-nls \
--without-pic \
--enable-targets=all
-.if (${ARCH} == "amd64")
+.if (${MACHINE_ARCH} == "amd64")
CONFIGURE_ARGS+= --host=x86_64-portbld-freebsd${OSREL}
.endif
diff --git a/devel/libchipcard-kde/Makefile b/devel/libchipcard-kde/Makefile
index 6b551d2..40de09c 100644
--- a/devel/libchipcard-kde/Makefile
+++ b/devel/libchipcard-kde/Makefile
@@ -22,7 +22,7 @@ GNU_CONFIGURE= yes
CONFIGURE_TARGET=
CONFIGURE_ARGS+= --with-distri=freebsd --with-kde3-prefix=${LOCALBASE}\
--with-applnk-dir=${PREFIX}/share/applnk/Utilities \
- --build=${ARCH}-portbld-freebsd${OSREL}
+ --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
USE_KDELIBS_VER= 3
USE_REINPLACE= yes
diff --git a/devel/libchipcard/Makefile b/devel/libchipcard/Makefile
index 6cdae68..3cb6469 100644
--- a/devel/libchipcard/Makefile
+++ b/devel/libchipcard/Makefile
@@ -23,7 +23,7 @@ GNU_CONFIGURE= yes
INSTALLS_SHLIB= yes
CONFIGURE_TARGET=
CONFIGURE_ENV+= PTHREAD_LIBS="${PTHREAD_LIBS}"
-CONFIGURE_ARGS+=--build=${ARCH}-portbld-freebsd${OSREL} \
+CONFIGURE_ARGS+=--build=${MACHINE_ARCH}-portbld-freebsd${OSREL} \
--with-distri=freebsd
MAN1= ctfstool.1 chipcardd.1 geldkarte.1 hbcicard.1 \
diff --git a/devel/libfs++/Makefile b/devel/libfs++/Makefile
index 6f580db..620a7e5 100644
--- a/devel/libfs++/Makefile
+++ b/devel/libfs++/Makefile
@@ -18,7 +18,7 @@ COMMENT= C++ library which provides a file_iterator class
USE_REINPLACE= yes
USE_INC_LIBTOOL_VER= 13
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
INSTALLS_SHLIB= yes
post-patch:
diff --git a/devel/libghthash/Makefile b/devel/libghthash/Makefile
index 5c8bbce..49aebf8 100644
--- a/devel/libghthash/Makefile
+++ b/devel/libghthash/Makefile
@@ -15,7 +15,7 @@ MAINTAINER= ports@FreeBSD.org
COMMENT= Generic Hash Table
USE_LIBTOOL_VER= 15
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
INSTALLS_SHLIB= yes
.include <bsd.port.mk>
diff --git a/devel/libglade/Makefile b/devel/libglade/Makefile
index d61eba1..7569627 100644
--- a/devel/libglade/Makefile
+++ b/devel/libglade/Makefile
@@ -24,6 +24,6 @@ INSTALLS_SHLIB= yes
CONFIGURE_ARGS= --enable-bonobo --enable-gnomedb
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
LIBS="-L${LOCALBASE}/lib"
-CONFIGURE_TARGET= --target=${ARCH}-unknown-freebsd${OSREL}
+CONFIGURE_TARGET= --target=${MACHINE_ARCH}-unknown-freebsd${OSREL}
.include <bsd.port.mk>
diff --git a/devel/libgutenfetch/Makefile b/devel/libgutenfetch/Makefile
index a1847d01..b1ff59d 100644
--- a/devel/libgutenfetch/Makefile
+++ b/devel/libgutenfetch/Makefile
@@ -17,7 +17,7 @@ COMMENT= A library that allows application developers to connect to PG
LIB_DEPENDS= curl:${PORTSDIR}/ftp/curl:install
GNU_CONFIGURE= yes
-CONFIGURE_TARGET=--build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET=--build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
LIBS="-L${LOCALBASE}/lib"
USE_GMAKE= yes
diff --git a/devel/libmimedir/Makefile b/devel/libmimedir/Makefile
index 47a810e..3997486 100644
--- a/devel/libmimedir/Makefile
+++ b/devel/libmimedir/Makefile
@@ -14,7 +14,7 @@ MAINTAINER= boris@brooknet.com.au
COMMENT= Library for parsing RFC2425 MIME Directory Profile information
GNU_CONFIGURE= yes
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
USE_LIBTOOL_VER= 13
USE_BISON= yes
diff --git a/devel/libole2/Makefile b/devel/libole2/Makefile
index dfa46b7..a437ddc 100644
--- a/devel/libole2/Makefile
+++ b/devel/libole2/Makefile
@@ -19,6 +19,6 @@ USE_GMAKE= yes
USE_GNOME= glib12
GNU_CONFIGURE= yes
INSTALLS_SHLIB= yes
-CONFIGURE_TARGET= --target=${ARCH}-unknown-freebsd${OSREL}
+CONFIGURE_TARGET= --target=${MACHINE_ARCH}-unknown-freebsd${OSREL}
.include <bsd.port.mk>
diff --git a/devel/libpreps-devel/Makefile b/devel/libpreps-devel/Makefile
index 7d8bf7d..6505628 100644
--- a/devel/libpreps-devel/Makefile
+++ b/devel/libpreps-devel/Makefile
@@ -27,7 +27,7 @@ USE_REINPLACE= yes
USE_GNOME= glib12
GNU_CONFIGURE= yes
-CONFIGURE_TARGET=--build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET=--build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ARGS+=--with-pgsqldir=${LOCALBASE} --with-plpgsqldir=${LOCALBASE}
.include <bsd.port.pre.mk>
diff --git a/devel/libpreps/Makefile b/devel/libpreps/Makefile
index 15b1cf9..e654478 100644
--- a/devel/libpreps/Makefile
+++ b/devel/libpreps/Makefile
@@ -23,7 +23,7 @@ USE_GNOME= glib12
USE_INC_LIBTOOL_VER=13
GNU_CONFIGURE= yes
-CONFIGURE_TARGET=--build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET=--build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ARGS+=--with-pgsqldir=${LOCALBASE} --with-plpgsqldir=${LOCALBASE}
INSTALLS_SHLIB= yes
diff --git a/devel/libtar/Makefile b/devel/libtar/Makefile
index 03ba861..ca403a5 100644
--- a/devel/libtar/Makefile
+++ b/devel/libtar/Makefile
@@ -16,7 +16,7 @@ COMMENT= A library for manipulating POSIX and GNU tar files
USE_GMAKE= yes
GNU_CONFIGURE= yes
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
.include <bsd.port.pre.mk>
.include "files/manpages"
diff --git a/devel/libtool13/Makefile b/devel/libtool13/Makefile
index eb1e124..7f27823 100644
--- a/devel/libtool13/Makefile
+++ b/devel/libtool13/Makefile
@@ -25,7 +25,7 @@ GNU_CONFIGURE= yes
CONFIGURE_ARGS= --disable-ltdl-install \
--program-suffix=${BUILD_VERSION}
CONFIGURE_ENV= PREFIX=${PREFIX} PACKAGE=libtool${BUILD_VERSION}
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
USE_REINPLACE= yes
INFO= libtool${BUILD_VERSION}
diff --git a/devel/libtool15/Makefile b/devel/libtool15/Makefile
index dd263df..1cc1834 100644
--- a/devel/libtool15/Makefile
+++ b/devel/libtool15/Makefile
@@ -23,7 +23,7 @@ GNU_CONFIGURE= yes
CONFIGURE_ARGS?= --disable-ltdl-install
CONFIGURE_ARGS+= --program-suffix=${BUILD_VERSION}
CONFIGURE_ENV= PREFIX=${PREFIX} PACKAGE=libtool${BUILD_VERSION}
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
USE_REINPLACE= yes
.if ${PORTNAME} == "libtool"
diff --git a/devel/libzt/Makefile b/devel/libzt/Makefile
index 0cff383..7b63fd3 100644
--- a/devel/libzt/Makefile
+++ b/devel/libzt/Makefile
@@ -18,7 +18,7 @@ USE_LIBTOOL_VER= 13
USE_REINPLACE= yes
USE_GETOPT_LONG= yes
INSTALLS_SHLIB= yes
-CONFIGURE_TARGET=--build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET=--build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
LIBS="-L${LOCALBASE}/lib"
diff --git a/devel/lightning/Makefile b/devel/lightning/Makefile
index 289c226..c6f1a08 100644
--- a/devel/lightning/Makefile
+++ b/devel/lightning/Makefile
@@ -19,7 +19,7 @@ ONLY_FOR_ARCHS= i386 sparc64
USE_PERL5_BUILD= yes
GNU_CONFIGURE= yes
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ENV= MAKEINFO="makeinfo --no-split"
MAN1= lightningize.1
diff --git a/devel/linux-allegro/Makefile b/devel/linux-allegro/Makefile
index 1a43a4f..a310ff1 100644
--- a/devel/linux-allegro/Makefile
+++ b/devel/linux-allegro/Makefile
@@ -11,7 +11,7 @@ PORTREVISION= 1
CATEGORIES= devel linux
MASTER_SITES= http://membres.lycos.fr/ebotcazou/allegro/
PKGNAMEPREFIX= linux-
-DISTNAME= ${PORTNAME}-${PORTVERSION}-1.${ARCH}
+DISTNAME= ${PORTNAME}-${PORTVERSION}-1.${MACHINE_ARCH}
EXTRACT_SUFX= .rpm
EXTRACT_ONLY=
diff --git a/devel/linux-f10-allegro/Makefile b/devel/linux-f10-allegro/Makefile
index 1a43a4f..a310ff1 100644
--- a/devel/linux-f10-allegro/Makefile
+++ b/devel/linux-f10-allegro/Makefile
@@ -11,7 +11,7 @@ PORTREVISION= 1
CATEGORIES= devel linux
MASTER_SITES= http://membres.lycos.fr/ebotcazou/allegro/
PKGNAMEPREFIX= linux-
-DISTNAME= ${PORTNAME}-${PORTVERSION}-1.${ARCH}
+DISTNAME= ${PORTNAME}-${PORTVERSION}-1.${MACHINE_ARCH}
EXTRACT_SUFX= .rpm
EXTRACT_ONLY=
diff --git a/devel/linux-f10-libglade/Makefile b/devel/linux-f10-libglade/Makefile
index c9b2fc4..f076547 100644
--- a/devel/linux-f10-libglade/Makefile
+++ b/devel/linux-f10-libglade/Makefile
@@ -13,6 +13,6 @@ CATEGORIES= devel linux
MAINTAINER= freebsd-emulation@FreeBSD.org
COMMENT= RPM of libglade
-RPM_SET= libglade-${PORTVERSION}-3.${ARCH}.rpm
+RPM_SET= libglade-${PORTVERSION}-3.${MACHINE_ARCH}.rpm
.include "../../x11-toolkits/linux-gtk/Makefile"
diff --git a/devel/linux-f10-libglade2/Makefile b/devel/linux-f10-libglade2/Makefile
index c9b2fc4..f076547 100644
--- a/devel/linux-f10-libglade2/Makefile
+++ b/devel/linux-f10-libglade2/Makefile
@@ -13,6 +13,6 @@ CATEGORIES= devel linux
MAINTAINER= freebsd-emulation@FreeBSD.org
COMMENT= RPM of libglade
-RPM_SET= libglade-${PORTVERSION}-3.${ARCH}.rpm
+RPM_SET= libglade-${PORTVERSION}-3.${MACHINE_ARCH}.rpm
.include "../../x11-toolkits/linux-gtk/Makefile"
diff --git a/devel/linux-f10-sdl12/Makefile b/devel/linux-f10-sdl12/Makefile
index 048d9df..2884588 100644
--- a/devel/linux-f10-sdl12/Makefile
+++ b/devel/linux-f10-sdl12/Makefile
@@ -13,7 +13,7 @@ CATEGORIES= devel linux
MASTER_SITES= http://www.libsdl.org/release/ \
ftp://ftp.icm.edu.pl/vol/rzm9/linux-pld/pool/s/SDL/
PKGNAMEPREFIX= linux-
-DISTNAME= ${PORTNAME:U}-${PORTVERSION:S/.1$/-1/}-1.${ARCH}
+DISTNAME= ${PORTNAME:U}-${PORTVERSION:S/.1$/-1/}-1.${MACHINE_ARCH}
EXTRACT_SUFX= .rpm
EXTRACT_ONLY=
@@ -30,8 +30,8 @@ ONLY_FOR_ARCHS= i386 alpha
DIST_SUBDIR= rpm
NO_BUILD= yes
NO_FILTER_SHLIBS= yes
-PLIST= ${MASTERDIR}/pkg-plist.${ARCH}
-MD5_FILE= ${MASTERDIR}/distinfo.${ARCH}
+PLIST= ${MASTERDIR}/pkg-plist.${MACHINE_ARCH}
+MD5_FILE= ${MASTERDIR}/distinfo.${MACHINE_ARCH}
DBPATH= /var/lib/rpm
RPMFLAGS= --ignoreos --root ${PREFIX} --dbpath ${DBPATH} \
diff --git a/devel/linux-f8-allegro/Makefile b/devel/linux-f8-allegro/Makefile
index 1a43a4f..a310ff1 100644
--- a/devel/linux-f8-allegro/Makefile
+++ b/devel/linux-f8-allegro/Makefile
@@ -11,7 +11,7 @@ PORTREVISION= 1
CATEGORIES= devel linux
MASTER_SITES= http://membres.lycos.fr/ebotcazou/allegro/
PKGNAMEPREFIX= linux-
-DISTNAME= ${PORTNAME}-${PORTVERSION}-1.${ARCH}
+DISTNAME= ${PORTNAME}-${PORTVERSION}-1.${MACHINE_ARCH}
EXTRACT_SUFX= .rpm
EXTRACT_ONLY=
diff --git a/devel/linux-f8-libglade/Makefile b/devel/linux-f8-libglade/Makefile
index c9b2fc4..f076547 100644
--- a/devel/linux-f8-libglade/Makefile
+++ b/devel/linux-f8-libglade/Makefile
@@ -13,6 +13,6 @@ CATEGORIES= devel linux
MAINTAINER= freebsd-emulation@FreeBSD.org
COMMENT= RPM of libglade
-RPM_SET= libglade-${PORTVERSION}-3.${ARCH}.rpm
+RPM_SET= libglade-${PORTVERSION}-3.${MACHINE_ARCH}.rpm
.include "../../x11-toolkits/linux-gtk/Makefile"
diff --git a/devel/linux-f8-libglade2/Makefile b/devel/linux-f8-libglade2/Makefile
index c9b2fc4..f076547 100644
--- a/devel/linux-f8-libglade2/Makefile
+++ b/devel/linux-f8-libglade2/Makefile
@@ -13,6 +13,6 @@ CATEGORIES= devel linux
MAINTAINER= freebsd-emulation@FreeBSD.org
COMMENT= RPM of libglade
-RPM_SET= libglade-${PORTVERSION}-3.${ARCH}.rpm
+RPM_SET= libglade-${PORTVERSION}-3.${MACHINE_ARCH}.rpm
.include "../../x11-toolkits/linux-gtk/Makefile"
diff --git a/devel/linux-f8-sdl12/Makefile b/devel/linux-f8-sdl12/Makefile
index 048d9df..2884588 100644
--- a/devel/linux-f8-sdl12/Makefile
+++ b/devel/linux-f8-sdl12/Makefile
@@ -13,7 +13,7 @@ CATEGORIES= devel linux
MASTER_SITES= http://www.libsdl.org/release/ \
ftp://ftp.icm.edu.pl/vol/rzm9/linux-pld/pool/s/SDL/
PKGNAMEPREFIX= linux-
-DISTNAME= ${PORTNAME:U}-${PORTVERSION:S/.1$/-1/}-1.${ARCH}
+DISTNAME= ${PORTNAME:U}-${PORTVERSION:S/.1$/-1/}-1.${MACHINE_ARCH}
EXTRACT_SUFX= .rpm
EXTRACT_ONLY=
@@ -30,8 +30,8 @@ ONLY_FOR_ARCHS= i386 alpha
DIST_SUBDIR= rpm
NO_BUILD= yes
NO_FILTER_SHLIBS= yes
-PLIST= ${MASTERDIR}/pkg-plist.${ARCH}
-MD5_FILE= ${MASTERDIR}/distinfo.${ARCH}
+PLIST= ${MASTERDIR}/pkg-plist.${MACHINE_ARCH}
+MD5_FILE= ${MASTERDIR}/distinfo.${MACHINE_ARCH}
DBPATH= /var/lib/rpm
RPMFLAGS= --ignoreos --root ${PREFIX} --dbpath ${DBPATH} \
diff --git a/devel/linux-libglade/Makefile b/devel/linux-libglade/Makefile
index c9b2fc4..f076547 100644
--- a/devel/linux-libglade/Makefile
+++ b/devel/linux-libglade/Makefile
@@ -13,6 +13,6 @@ CATEGORIES= devel linux
MAINTAINER= freebsd-emulation@FreeBSD.org
COMMENT= RPM of libglade
-RPM_SET= libglade-${PORTVERSION}-3.${ARCH}.rpm
+RPM_SET= libglade-${PORTVERSION}-3.${MACHINE_ARCH}.rpm
.include "../../x11-toolkits/linux-gtk/Makefile"
diff --git a/devel/linux-libglade2/Makefile b/devel/linux-libglade2/Makefile
index c9b2fc4..f076547 100644
--- a/devel/linux-libglade2/Makefile
+++ b/devel/linux-libglade2/Makefile
@@ -13,6 +13,6 @@ CATEGORIES= devel linux
MAINTAINER= freebsd-emulation@FreeBSD.org
COMMENT= RPM of libglade
-RPM_SET= libglade-${PORTVERSION}-3.${ARCH}.rpm
+RPM_SET= libglade-${PORTVERSION}-3.${MACHINE_ARCH}.rpm
.include "../../x11-toolkits/linux-gtk/Makefile"
diff --git a/devel/linux-sdl12/Makefile b/devel/linux-sdl12/Makefile
index 048d9df..2884588 100644
--- a/devel/linux-sdl12/Makefile
+++ b/devel/linux-sdl12/Makefile
@@ -13,7 +13,7 @@ CATEGORIES= devel linux
MASTER_SITES= http://www.libsdl.org/release/ \
ftp://ftp.icm.edu.pl/vol/rzm9/linux-pld/pool/s/SDL/
PKGNAMEPREFIX= linux-
-DISTNAME= ${PORTNAME:U}-${PORTVERSION:S/.1$/-1/}-1.${ARCH}
+DISTNAME= ${PORTNAME:U}-${PORTVERSION:S/.1$/-1/}-1.${MACHINE_ARCH}
EXTRACT_SUFX= .rpm
EXTRACT_ONLY=
@@ -30,8 +30,8 @@ ONLY_FOR_ARCHS= i386 alpha
DIST_SUBDIR= rpm
NO_BUILD= yes
NO_FILTER_SHLIBS= yes
-PLIST= ${MASTERDIR}/pkg-plist.${ARCH}
-MD5_FILE= ${MASTERDIR}/distinfo.${ARCH}
+PLIST= ${MASTERDIR}/pkg-plist.${MACHINE_ARCH}
+MD5_FILE= ${MASTERDIR}/distinfo.${MACHINE_ARCH}
DBPATH= /var/lib/rpm
RPMFLAGS= --ignoreos --root ${PREFIX} --dbpath ${DBPATH} \
diff --git a/devel/linux_devtools-6/Makefile b/devel/linux_devtools-6/Makefile
index 9d5f115..561f5ef 100644
--- a/devel/linux_devtools-6/Makefile
+++ b/devel/linux_devtools-6/Makefile
@@ -10,19 +10,19 @@ PORTVERSION= 6.1
PORTREVISION= 2
CATEGORIES= devel emulators linux
MASTER_SITES= ${MASTER_SITE_REDHAT_LINUX}
-MASTER_SITE_SUBDIR= ${PORTVERSION}/en/os/${ARCH}/RedHat/RPMS
+MASTER_SITE_SUBDIR= ${PORTVERSION}/en/os/${MACHINE_ARCH}/RedHat/RPMS
DISTFILES= ${RPM_KERNEL_HEADERS} \
${RPM_GLIBC_DEVEL} \
- make-3.77-6.${ARCH}.rpm \
- cpp-1.1.2-24.${ARCH}.rpm \
- egcs-1.1.2-24.${ARCH}.rpm \
- egcs-c++-1.1.2-24.${ARCH}.rpm \
- egcs-g77-1.1.2-24.${ARCH}.rpm \
+ make-3.77-6.${MACHINE_ARCH}.rpm \
+ cpp-1.1.2-24.${MACHINE_ARCH}.rpm \
+ egcs-1.1.2-24.${MACHINE_ARCH}.rpm \
+ egcs-c++-1.1.2-24.${MACHINE_ARCH}.rpm \
+ egcs-g77-1.1.2-24.${MACHINE_ARCH}.rpm \
${RPM_GDB} \
${RPM_X_DEVEL}
PATCH_SITES= ${MASTER_SITE_REDHAT_LINUX}
-PATCH_SITE_SUBDIR= updates/${PORTVERSION}/en/os/${ARCH}
+PATCH_SITE_SUBDIR= updates/${PORTVERSION}/en/os/${MACHINE_ARCH}
PATCHFILES=
MAINTAINER= freebsd-emulation@FreeBSD.org
@@ -39,11 +39,11 @@ NO_BUILD= yes
NO_FILTER_SHLIBS= yes
NO_MTREE= yes
USE_LINUX= 6
-PLIST= ${PKGDIR}/pkg-plist.${ARCH}
+PLIST= ${PKGDIR}/pkg-plist.${MACHINE_ARCH}
.include <bsd.port.pre.mk>
-.if (${ARCH} == "i386")
+.if (${MACHINE_ARCH} == "i386")
RPM_GDB= gdb-4.18-4.i386.rpm
RPM_GLIBC_DEVEL= glibc-devel-2.1.2-11.i386.rpm
RPM_KERNEL_HEADERS= kernel-headers-2.2.12-20.i386.rpm
diff --git a/devel/linux_devtools-7/Makefile b/devel/linux_devtools-7/Makefile
index ce6e58a..0973c16 100644
--- a/devel/linux_devtools-7/Makefile
+++ b/devel/linux_devtools-7/Makefile
@@ -10,14 +10,14 @@ PORTVERSION= 7.1
PORTREVISION= 3
CATEGORIES= devel emulators linux
MASTER_SITES= ${MASTER_SITE_REDHAT_LINUX}
-MASTER_SITE_SUBDIR= ${PORTVERSION}/${LANG}/os/${ARCH}/RedHat/RPMS
+MASTER_SITE_SUBDIR= ${PORTVERSION}/${LANG}/os/${MACHINE_ARCH}/RedHat/RPMS
DISTFILES= ${RPM_MAKE} \
- binutils-2.10.91.0.2-3.${ARCH}.rpm \
+ binutils-2.10.91.0.2-3.${MACHINE_ARCH}.rpm \
${RPM_GDB}
EXTRACT_ONLY=
PATCH_SITES= ${MASTER_SITE_REDHAT_LINUX}
-PATCH_SITE_SUBDIR= updates/${PORTVERSION}/${LANG}/os/${ARCH}
+PATCH_SITE_SUBDIR= updates/${PORTVERSION}/${LANG}/os/${MACHINE_ARCH}
PATCHFILES= ${UPDATES}
MAINTAINER= freebsd-emulation@FreeBSD.org
@@ -37,21 +37,21 @@ NO_FILTER_SHLIBS= yes
NO_MTREE= yes
PLIST= ${WRKDIR}/plist
RESTRICTED= "binaries under GNU GPL without accompanying source"
-MD5_FILE= ${MASTERDIR}/distinfo.${ARCH}
+MD5_FILE= ${MASTERDIR}/distinfo.${MACHINE_ARCH}
# Let's avoid hardcoding 'en' as the language.
LANG= en
.include <bsd.port.pre.mk>
-.if (${ARCH} == "alpha")
+.if (${MACHINE_ARCH} == "alpha")
PATCH_SITES= \
ftp://ftp2.compaq.com/pub/linux/RedHat/7.2-alpha/updates/rpms/alpha/ \
ftp://alpha.crl.dec.com/pub/linux/redhat/7.2-alpha/updates/rpms/alpha/
PORTREVISION= 2
.endif
-.if (${ARCH} == "i386")
+.if (${MACHINE_ARCH} == "i386")
RPM_GDB= gdb-5.0rh-5.i386.rpm
RPM_MAKE= make-3.79.1-5.i386.rpm
UPDATES= XFree86-devel-4.1.0-50.i386.rpm \
@@ -94,7 +94,7 @@ pre-install:
cd ${WRKSRC}/tmp; rpm2cpio < ${DISTDIR}/${DIST_SUBDIR}/${ii} | cpio -id
.endfor
cd ${WRKSRC}/tmp; ${FIND} * -type f -o -type l > ${PLIST}
-.if (${ARCH} == "i386")
+.if (${MACHINE_ARCH} == "i386")
${ECHO_CMD} boot/kernel.h >> ${PLIST}
.endif
cd ${WRKSRC}/tmp; ${FIND} -d * -type d | ${GREP} -vE "man|locale" | \
diff --git a/devel/log4c/Makefile b/devel/log4c/Makefile
index a0d04cf..0d9d81d 100644
--- a/devel/log4c/Makefile
+++ b/devel/log4c/Makefile
@@ -16,7 +16,7 @@ MAINTAINER= ports@FreeBSD.org
COMMENT= Logging for C Library
USE_INC_LIBTOOL_VER= 13
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
INSTALLS_SHLIB= yes
.include <bsd.port.mk>
diff --git a/devel/log4cplus/Makefile b/devel/log4cplus/Makefile
index 0686c4d..b349e2d 100644
--- a/devel/log4cplus/Makefile
+++ b/devel/log4cplus/Makefile
@@ -18,7 +18,7 @@ COMMENT= A logging library for C++
INSTALLS_SHLIB= yes
USE_LIBTOOL_VER=15
USE_REINPLACE= yes
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ENV+= CFLAGS="${CFLAGS} ${PTHREAD_CFLAGS}" \
LDFLAGS="${LDFLAGS} ${PTHREAD_LIBS}"
diff --git a/devel/log4cpp/Makefile b/devel/log4cpp/Makefile
index a7d2611..bf72e6b 100644
--- a/devel/log4cpp/Makefile
+++ b/devel/log4cpp/Makefile
@@ -17,7 +17,7 @@ COMMENT= A library of C++ classes for flexible logging
USE_REINPLACE= yes
GNU_CONFIGURE= yes
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ENV= CPPFLAGS="${PTHREAD_CFLAGS}" LDFLAGS="${PTHREAD_LIBS}"
CONFIGURE_ARGS= --with-pthreads --disable-html-docs
INSTALLS_SHLIB= yes
diff --git a/devel/log4cxx/Makefile b/devel/log4cxx/Makefile
index a697da9..3ebaa26 100644
--- a/devel/log4cxx/Makefile
+++ b/devel/log4cxx/Makefile
@@ -37,7 +37,7 @@ LIBTOOL_VARS= --force --automake
CPPFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -I${LOCALBASE}/lib
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ARGS+= CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}" CXXFLAGS="${CXXFLAGS}"
INSTALLS_SHLIB= yes
USE_REINPLACE= yes
diff --git a/devel/lwp/Makefile b/devel/lwp/Makefile
index 70f7c4d..cedb6fb 100644
--- a/devel/lwp/Makefile
+++ b/devel/lwp/Makefile
@@ -15,7 +15,7 @@ COMMENT= A userspace thread library
USE_GMAKE= yes
USE_LIBTOOL_VER= 15
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
INSTALLS_SHLIB= yes
.include <bsd.port.pre.mk>
diff --git a/devel/m17n-db/Makefile b/devel/m17n-db/Makefile
index 5105129..bed0196 100644
--- a/devel/m17n-db/Makefile
+++ b/devel/m17n-db/Makefile
@@ -20,7 +20,7 @@ COMMENT= Data files for the m17n library
USE_GMAKE= yes
GNU_CONFIGURE= yes
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ARGS= --with-charmaps=${CHARMAPSDIR}
M17N_DISTFILE= ${DISTNAME}${EXTRACT_SUFX}
diff --git a/devel/mico/Makefile b/devel/mico/Makefile
index aede62b..b085c2d 100644
--- a/devel/mico/Makefile
+++ b/devel/mico/Makefile
@@ -23,7 +23,7 @@ GNU_CONFIGURE= yes
USE_REINPLACE= yes
USE_GMAKE= yes
USE_AUTOCONF_VER= 259
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
#CONFIGURE_ENV+= CC=${CC} CFLAGS="${CFLAGS}" CXX=${CXX} \
# CXXFLAGS="${CXXFLAGS}" CPP=${CPP}
diff --git a/devel/mm/Makefile b/devel/mm/Makefile
index 2250258..4b77d8b 100644
--- a/devel/mm/Makefile
+++ b/devel/mm/Makefile
@@ -16,7 +16,7 @@ COMMENT= Shared memory allocation library for pre-forked process models
INSTALLS_SHLIB= yes
GNU_CONFIGURE= yes
-CONFIGURE_TARGET=--build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET=--build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
MAN1= mm-config.1
MAN3= mm.3
diff --git a/devel/monotone/Makefile b/devel/monotone/Makefile
index cc87354..5ab8e98 100644
--- a/devel/monotone/Makefile
+++ b/devel/monotone/Makefile
@@ -24,7 +24,7 @@ USE_GETTEXT= yes
USE_GMAKE= yes
GNU_CONFIGURE= yes
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
LDFLAGS+= -L${LOCALBASE}/lib
CFLAGS+= -I${LOCALBASE}/include
CXXFLAGS+= -I${LOCALBASE}/include -L${LOCALBASE}/lib
diff --git a/devel/nasm/Makefile b/devel/nasm/Makefile
index fa132c4..2d70267 100644
--- a/devel/nasm/Makefile
+++ b/devel/nasm/Makefile
@@ -18,7 +18,7 @@ COMMENT= General-purpose multi-platform x86 assembler
USE_BZIP2= yes
USE_REINPLACE= yes
GNU_CONFIGURE= yes
-CONFIGURE_TARGET=--build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET=--build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
PLIST_SUB= VERSION=${PORTVERSION}
PLIST_FILES= bin/nasm bin/nasm-%%VERSION%% bin/ndisasm
diff --git a/devel/oaf/Makefile b/devel/oaf/Makefile
index 5db04f4..b86f1fb 100644
--- a/devel/oaf/Makefile
+++ b/devel/oaf/Makefile
@@ -28,7 +28,7 @@ CONFIGURE_ARGS= --enable-static --enable-shared \
--disable-more-warnings
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
LIBS="-L${LOCALBASE}/lib -lintl"
-CONFIGURE_TARGET= --target=${ARCH}-unknown-freebsd${OSREL}
+CONFIGURE_TARGET= --target=${MACHINE_ARCH}-unknown-freebsd${OSREL}
MAN1= oafd.1
diff --git a/devel/omniNotify/Makefile b/devel/omniNotify/Makefile
index a47f1d4..045cbba 100644
--- a/devel/omniNotify/Makefile
+++ b/devel/omniNotify/Makefile
@@ -37,7 +37,7 @@ USE_REINPLACE= yes
ONLY_FOR_ARCHS= i386
CONFIGURE_SCRIPT= ../configure
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ENV+= CC=${CC} CFLAGS="${CFLAGS}" CXX=${CXX} CXXFLAGS="${CXXFLAGS}" \
CPP=${CPP} PYTHON=${PYTHON_CMD}
CONFIGURE_ARGS= --with-omniorb=${LOCALBASE}
diff --git a/devel/omniORB/Makefile b/devel/omniORB/Makefile
index 89918dc..520bb9f 100644
--- a/devel/omniORB/Makefile
+++ b/devel/omniORB/Makefile
@@ -15,7 +15,7 @@ MAINTAINER= sem@FreeBSD.org
COMMENT= A robust high performance CORBA ORB for C++ and Python
CONFIGURE_WRKSRC= ${WRKSRC}/build
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
BUILD_WRKSRC= ${CONFIGURE_WRKSRC}
INSTALL_WRKSRC= ${CONFIGURE_WRKSRC}
USE_GMAKE= yes
diff --git a/devel/p4v/Makefile b/devel/p4v/Makefile
index 4c6ddfa..e44f4e4 100644
--- a/devel/p4v/Makefile
+++ b/devel/p4v/Makefile
@@ -24,8 +24,8 @@ ONLY_FOR_ARCHS= i386
NO_BUILD= yes
NO_WRKSUBDIR= yes
-PLIST= ${MASTERDIR}/pkg-plist.${ARCH}
-MD5_FILE= ${MASTERDIR}/distinfo.${ARCH}
+PLIST= ${MASTERDIR}/pkg-plist.${MACHINE_ARCH}
+MD5_FILE= ${MASTERDIR}/distinfo.${MACHINE_ARCH}
P4V_DOCS_DIR= P4VResources/p4vhelp
P4V_DOCS= About_Perforce_products.html About_file_icons.html \
diff --git a/devel/pcre++/Makefile b/devel/pcre++/Makefile
index 132d617..1b04c2a 100644
--- a/devel/pcre++/Makefile
+++ b/devel/pcre++/Makefile
@@ -21,7 +21,7 @@ PCRE_CONFIG?= ${LOCALBASE}/bin/pcre-config
USE_REINPLACE= yes
USE_GMAKE= yes
USE_INC_LIBTOOL_VER= 13
-CONFIGURE_TARGET=--build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET=--build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ENV= CPPFLAGS="`${PCRE_CONFIG} --cflags`" \
LDFLAGS="`${PCRE_CONFIG} --libs`"
INSTALLS_SHLIB= yes
diff --git a/devel/pcre/Makefile b/devel/pcre/Makefile
index 7db31ea..c4f65c8 100644
--- a/devel/pcre/Makefile
+++ b/devel/pcre/Makefile
@@ -32,7 +32,7 @@ CONFIGURE_ARGS+= \
.endif
CONFIGURE_TARGET= \
- --build=${ARCH}-portbld-freebsd${OSREL}
+ --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
MAN1= pcregrep.1 pcretest.1
MAN3= pcre.3 pcre_compile.3 pcre_config.3 \
diff --git a/devel/php-xdebug/Makefile b/devel/php-xdebug/Makefile
index 6c7b7f9..c896e62 100644
--- a/devel/php-xdebug/Makefile
+++ b/devel/php-xdebug/Makefile
@@ -18,7 +18,7 @@ COMMENT= Xdebug extension for PHP
USE_PHP= yes
USE_PHPIZE= yes
CONFIGURE_ARGS= --enable-xdebug --with-php-config=${PREFIX}/bin/php-config
-CONFIGURE_TARGET= --target=${ARCH}-unknown-freebsd${OSREL}
+CONFIGURE_TARGET= --target=${MACHINE_ARCH}-unknown-freebsd${OSREL}
PKGMESSAGE= ${WRKDIR}/pkg-message
post-build:
diff --git a/devel/phptags/Makefile b/devel/phptags/Makefile
index a99d3f5..6e23cd4 100644
--- a/devel/phptags/Makefile
+++ b/devel/phptags/Makefile
@@ -15,7 +15,7 @@ MAINTAINER= novel@FreeBSD.org
COMMENT= Create a tags file from PHP sources
GNU_CONFIGURE= yes
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
MAN1= phptags.1
PLIST_FILES= bin/phptags \
diff --git a/devel/popt/Makefile b/devel/popt/Makefile
index 266c1ab..4e9b892 100644
--- a/devel/popt/Makefile
+++ b/devel/popt/Makefile
@@ -38,7 +38,7 @@ USE_GETTEXT= yes
PLIST_SUB+= NLS=""
.endif
-CONFIGURE_TARGET=--build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET=--build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib"
diff --git a/devel/poslib/Makefile b/devel/poslib/Makefile
index acd1d68..0604553 100644
--- a/devel/poslib/Makefile
+++ b/devel/poslib/Makefile
@@ -17,7 +17,7 @@ COMMENT= Posadis C++ DNS library
GNU_CONFIGURE= yes
CONFIGURE_ENV= LIBS="${PTHREAD_LIBS}"
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
USE_LIBTOOL_VER= 15
INSTALLS_SHLIB= yes
diff --git a/devel/preps-gui/Makefile b/devel/preps-gui/Makefile
index 6332280..bf036e4 100644
--- a/devel/preps-gui/Makefile
+++ b/devel/preps-gui/Makefile
@@ -25,7 +25,7 @@ USE_GNOME= gtk12 gnomelibs
MAN1= preps.1
GNU_CONFIGURE= yes
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ARGS+= --with-pgsqldir=${LOCALBASE} \
--with-plpgsqldir=${LOCALBASE} \
--with-libprepsdir=${LOCALBASE}
diff --git a/devel/prepstools/Makefile b/devel/prepstools/Makefile
index 15b1cf9..e654478 100644
--- a/devel/prepstools/Makefile
+++ b/devel/prepstools/Makefile
@@ -23,7 +23,7 @@ USE_GNOME= glib12
USE_INC_LIBTOOL_VER=13
GNU_CONFIGURE= yes
-CONFIGURE_TARGET=--build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET=--build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ARGS+=--with-pgsqldir=${LOCALBASE} --with-plpgsqldir=${LOCALBASE}
INSTALLS_SHLIB= yes
diff --git a/devel/privman/Makefile b/devel/privman/Makefile
index 914444b..8a85cfc 100644
--- a/devel/privman/Makefile
+++ b/devel/privman/Makefile
@@ -17,7 +17,7 @@ GNU_CONFIGURE= yes
USE_LIBTOOL_VER=15
INSTALLS_SHLIB= yes
USE_REINPLACE= yes
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
post-patch:
@${REINPLACE_CMD} -e \
diff --git a/devel/pth/Makefile b/devel/pth/Makefile
index 3a9f667..7f3a945 100644
--- a/devel/pth/Makefile
+++ b/devel/pth/Makefile
@@ -18,7 +18,7 @@ COMMENT= GNU Portable Threads
INSTALLS_SHLIB= yes
LDCONFIG_DIRS= %%PREFIX%%/lib/pth
GNU_CONFIGURE= yes
-CONFIGURE_TARGET=--build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET=--build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ARGS= --enable-pthread \
--enable-syscall-soft \
--enable-optimize \
diff --git a/devel/py-omniorb/Makefile b/devel/py-omniorb/Makefile
index 79910c9..b8db784 100644
--- a/devel/py-omniorb/Makefile
+++ b/devel/py-omniorb/Makefile
@@ -38,7 +38,7 @@ INSTALLS_SHLIB= yes
USE_REINPLACE= yes
CONFIGURE_SCRIPT= ../configure
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ENV+= CC=${CC} CFLAGS="${CFLAGS}" CXX=${CXX} CXXFLAGS="${CXXFLAGS}" \
CPP=${CPP} PYTHON=${PYTHON_CMD}
CONFIGURE_ARGS= --with-openssl=${OPENSSLBASE} --with-omniorb=${LOCALBASE}
diff --git a/devel/ragel/Makefile b/devel/ragel/Makefile
index fed6139..1a0000c 100644
--- a/devel/ragel/Makefile
+++ b/devel/ragel/Makefile
@@ -18,7 +18,7 @@ USE_REINPLACE= yes
USE_BISON= yes
USE_GMAKE= yes
GNU_CONFIGURE= yes
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ENV= AWK="${AWK}"
MAN1= ragel.1
diff --git a/devel/rlwrap/Makefile b/devel/rlwrap/Makefile
index 88e922e..bca5eb2 100644
--- a/devel/rlwrap/Makefile
+++ b/devel/rlwrap/Makefile
@@ -16,7 +16,7 @@ COMMENT= Readline wrapper
USE_GETOPT_LONG= yes
GNU_CONFIGURE= yes
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ENV+= ptyttylib_cv_ptys=BSD
MAN1= rlwrap.1
diff --git a/devel/ruby-gnustep/Makefile b/devel/ruby-gnustep/Makefile
index 89f3de6..3afb732 100644
--- a/devel/ruby-gnustep/Makefile
+++ b/devel/ruby-gnustep/Makefile
@@ -59,10 +59,10 @@ COMBOLIBDIR= ${SYSLIBDIR}
MAKE_ENV+= GNUSTEP_FLATTENED=yes
.include <bsd.port.pre.mk>
-.if ${ARCH} == "i386"
+.if ${MACHINE_ARCH} == "i386"
GNU_ARCH= ix86
.else
-GNU_ARCH= ${ARCH}
+GNU_ARCH= ${MACHINE_ARCH}
.endif
MAKEFILE= GNUmakefile
diff --git a/devel/rudiments/Makefile b/devel/rudiments/Makefile
index c198bb1..db472b0 100644
--- a/devel/rudiments/Makefile
+++ b/devel/rudiments/Makefile
@@ -19,7 +19,7 @@ USE_GNOME= pkgconfig
USE_GMAKE= yes
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --disable-ssl --disable-pcre
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ENV= PTHREADINCLUDES="${PTHREAD_CFLAGS}" \
PTHREADLIB="${PTHREAD_LIBS}"
INSTALLS_SHLIB= yes
diff --git a/devel/sdl12/Makefile b/devel/sdl12/Makefile
index 9f0662c..cc25ec8 100644
--- a/devel/sdl12/Makefile
+++ b/devel/sdl12/Makefile
@@ -27,7 +27,7 @@ CONFIGURE_ENV= NASM="${LOCALBASE}/bin/nasm" \
PTHREAD_LIBS="${PTHREAD_LIBS}" \
LDFLAGS="${LDFLAGS}"
CONFIGURE_ARGS= --enable-video-aalib
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CFLAGS+= ${PTHREAD_CFLAGS} -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib
diff --git a/devel/shmap/Makefile b/devel/shmap/Makefile
index f29eaa6..1afad1d 100644
--- a/devel/shmap/Makefile
+++ b/devel/shmap/Makefile
@@ -20,7 +20,7 @@ LIB_DEPENDS= mm.13:${PORTSDIR}/devel/mm
USE_LIBTOOL_VER=15
GNU_CONFIGURE= yes
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib"
INSTALLS_SHLIB= yes
diff --git a/devel/silc-toolkit/Makefile b/devel/silc-toolkit/Makefile
index 1e8a553..7f2ab26 100644
--- a/devel/silc-toolkit/Makefile
+++ b/devel/silc-toolkit/Makefile
@@ -30,7 +30,7 @@ COMMENT= Secure Internet Live Conferencing (SILC) network toolkit
USE_BZIP2= yes
USE_PERL5= yes
GNU_CONFIGURE= yes
-CONFIGURE_TARGET=--build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET=--build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
USE_GNOME= glib12
USE_GMAKE= yes
CONFIGURE_ARGS= --with-etcdir=${PREFIX}/etc/${PORTNAME} \
diff --git a/devel/splint/Makefile b/devel/splint/Makefile
index 1e7b8ba..7c40867 100644
--- a/devel/splint/Makefile
+++ b/devel/splint/Makefile
@@ -18,8 +18,7 @@ COMMENT= A tool for statically checking sourcecode for security vulnerabilities
USE_REINPLACE= yes
USE_GMAKE= yes
GNU_CONFIGURE= yes
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
-USE_GMAKE= yes
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
MAN1= splint.1
diff --git a/devel/subversion-devel/Makefile b/devel/subversion-devel/Makefile
index a9156a8..1b13ada 100644
--- a/devel/subversion-devel/Makefile
+++ b/devel/subversion-devel/Makefile
@@ -19,7 +19,7 @@ INSTALLS_SHLIB= yes
USE_BZIP2= yes
USE_LIBTOOL_VER=15
USE_REINPLACE= yes
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ARGS= --with-ssl
MAN1= svn.1 svnadmin.1 svnlook.1 svndumpfilter.1 svnversion.1
diff --git a/devel/subversion-freebsd/Makefile b/devel/subversion-freebsd/Makefile
index a9156a8..1b13ada 100644
--- a/devel/subversion-freebsd/Makefile
+++ b/devel/subversion-freebsd/Makefile
@@ -19,7 +19,7 @@ INSTALLS_SHLIB= yes
USE_BZIP2= yes
USE_LIBTOOL_VER=15
USE_REINPLACE= yes
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ARGS= --with-ssl
MAN1= svn.1 svnadmin.1 svnlook.1 svndumpfilter.1 svnversion.1
diff --git a/devel/subversion/Makefile b/devel/subversion/Makefile
index a9156a8..1b13ada 100644
--- a/devel/subversion/Makefile
+++ b/devel/subversion/Makefile
@@ -19,7 +19,7 @@ INSTALLS_SHLIB= yes
USE_BZIP2= yes
USE_LIBTOOL_VER=15
USE_REINPLACE= yes
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ARGS= --with-ssl
MAN1= svn.1 svnadmin.1 svnlook.1 svndumpfilter.1 svnversion.1
diff --git a/devel/subversion16/Makefile b/devel/subversion16/Makefile
index a9156a8..1b13ada 100644
--- a/devel/subversion16/Makefile
+++ b/devel/subversion16/Makefile
@@ -19,7 +19,7 @@ INSTALLS_SHLIB= yes
USE_BZIP2= yes
USE_LIBTOOL_VER=15
USE_REINPLACE= yes
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ARGS= --with-ssl
MAN1= svn.1 svnadmin.1 svnlook.1 svndumpfilter.1 svnversion.1
diff --git a/devel/valgrind-snapshot/Makefile b/devel/valgrind-snapshot/Makefile
index f6edbf9..8f346c8 100644
--- a/devel/valgrind-snapshot/Makefile
+++ b/devel/valgrind-snapshot/Makefile
@@ -26,7 +26,7 @@ USE_GNOME= pkgconfig
USE_PERL5_BUILD=yes
USE_REINPLACE= yes
GNU_CONFIGURE= yes
-CONFIGURE_TARGET=--build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET=--build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
WRKSRC= ${WRKDIR}/${DISTNAME}
diff --git a/devel/valgrind/Makefile b/devel/valgrind/Makefile
index da28f73..b500019 100644
--- a/devel/valgrind/Makefile
+++ b/devel/valgrind/Makefile
@@ -21,7 +21,7 @@ WRKSRC= ${WRKDIR}/${DISTNAME}
USE_GMAKE= yes
USE_GNOME= pkgconfig
GNU_CONFIGURE= yes
-CONFIGURE_TARGET=--build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET=--build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ARGS+=--enable-maintainer-mode
USE_REINPLACE= yes
USE_PERL5_BUILD=yes
diff --git a/devel/zziplib/Makefile b/devel/zziplib/Makefile
index 10cdbfb..577babb 100644
--- a/devel/zziplib/Makefile
+++ b/devel/zziplib/Makefile
@@ -22,7 +22,7 @@ USE_GNOME= gnomehack
USE_INC_LIBTOOL_VER= 13
LIBTOOLFLAGS= --disable-ltlibs --release-ignore
GNU_CONFIGURE= yes
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
INSTALLS_SHLIB= yes
.include <bsd.port.mk>
diff --git a/dns/dnrd/Makefile b/dns/dnrd/Makefile
index 8863ca3..4576bd5 100644
--- a/dns/dnrd/Makefile
+++ b/dns/dnrd/Makefile
@@ -18,7 +18,7 @@ USE_GMAKE= yes
USE_REINPLACE= yes
USE_RC_SUBR= yes
GNU_CONFIGURE= yes
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ENV= PTHREAD_CFLAGS=${PTHREAD_CFLAGS} PTHREAD_LIBS=${PTHREAD_LIBS}
.if defined(WITH_TCP)
diff --git a/dns/nsd/Makefile b/dns/nsd/Makefile
index 4ff12f8..ee191c8 100644
--- a/dns/nsd/Makefile
+++ b/dns/nsd/Makefile
@@ -33,7 +33,7 @@ CONFIGURE_ARGS= --with-user=${NSDUSER} \
--with-pidfile=/var/run/nsd.pid \
--with-dbfile=${NSDDBFILE} \
--with-libwrap
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
SED_SCRIPT= -e 's,%%NSDUSER%%,${NSDUSER},g' \
-e 's,%%NSDDIR%%,${NSDDIR},g' \
diff --git a/dns/posadis/Makefile b/dns/posadis/Makefile
index 1ff4a42..bcd290a 100644
--- a/dns/posadis/Makefile
+++ b/dns/posadis/Makefile
@@ -21,7 +21,7 @@ USE_AUTOCONF_VER= 259
USE_LIBTOOL_VER= 15
USE_LIBLTDL= yes
INSTALLS_SHLIB= yes
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" LDFLAGS="-L${LOCALBASE}/lib"
.if defined(WITH_FAM) || exists(${LOCALBASE}/lib/libfam.so)
diff --git a/dns/updatedd/Makefile b/dns/updatedd/Makefile
index fd2eef3..b2b1ff2 100644
--- a/dns/updatedd/Makefile
+++ b/dns/updatedd/Makefile
@@ -18,7 +18,7 @@ COMMENT= Dynamic DNS Update Client supporting multiple services
USE_GMAKE= yes
GNU_CONFIGURE= yes
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
LIBDIR= ${PREFIX}/lib/${PORTNAME}
diff --git a/editors/MathPlanner/Makefile b/editors/MathPlanner/Makefile
index d7bc655..4d2b4e6 100644
--- a/editors/MathPlanner/Makefile
+++ b/editors/MathPlanner/Makefile
@@ -19,7 +19,7 @@ COMMENT= A mathematical design and publishing application
USE_QT_VER= 3
USE_REINPLACE= yes
GNU_CONFIGURE= yes
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ENV= QTDIR="${QT_PREFIX}"
QTCPPFLAGS+= ${PTHREAD_CFLAGS}
diff --git a/editors/aewan/Makefile b/editors/aewan/Makefile
index f057172..17a960a 100644
--- a/editors/aewan/Makefile
+++ b/editors/aewan/Makefile
@@ -16,7 +16,7 @@ COMMENT= Curses-based program for the creation and editing of ascii art
USE_GMAKE= yes
GNU_CONFIGURE= yes
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
MAN1= aecat.1 aewan.1
MAN5= aewan.5
diff --git a/editors/cooledit/Makefile b/editors/cooledit/Makefile
index 729eb34..a2bf990 100644
--- a/editors/cooledit/Makefile
+++ b/editors/cooledit/Makefile
@@ -20,7 +20,7 @@ USE_GETTEXT= yes
USE_REINPLACE= yes
USE_GMAKE= yes
USE_LIBTOOL_VER= 15
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ENV= CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}"
INSTALLS_SHLIB= yes
diff --git a/editors/emacs/Makefile b/editors/emacs/Makefile
index ba1f17b..83d9391 100644
--- a/editors/emacs/Makefile
+++ b/editors/emacs/Makefile
@@ -34,7 +34,7 @@ PATCH_DIST_STRIP= -p1
USE_AUTOCONF_VER=213
USE_GMAKE= yes
-CONFIGURE_TARGET= ${ARCH}--freebsd
+CONFIGURE_TARGET= ${MACHINE_ARCH}--freebsd
.if defined(WITHOUT_X11)
CONFIGURE_ARGS= --with-x=no
.endif
diff --git a/editors/emacs19/Makefile b/editors/emacs19/Makefile
index fea7005..aac8536 100644
--- a/editors/emacs19/Makefile
+++ b/editors/emacs19/Makefile
@@ -19,7 +19,7 @@ ONLY_FOR_ARCHS= i386
DEPRECATED= "editors/emacs is recommended instead for new installations"
EMACS_VERSION= 19.34
-CONFIGURE_TARGET= ${ARCH}--freebsd
+CONFIGURE_TARGET= ${MACHINE_ARCH}--freebsd
PLIST_SUB= EMACS_VERSION=${EMACS_VERSION} EMACS_ARCH=${CONFIGURE_TARGET}
NO_LATEST_LINK= yes
WRKSRC= ${WRKDIR}/emacs-19.34
diff --git a/editors/emacs20-dl/Makefile b/editors/emacs20-dl/Makefile
index af2ab9a..14fadfa 100644
--- a/editors/emacs20-dl/Makefile
+++ b/editors/emacs20-dl/Makefile
@@ -34,7 +34,7 @@ USE_AUTOCONF_VER= 213
USE_GMAKE= yes
MAKE_ENV= INSTALL_SCRIPT="${INSTALL_SCRIPT}"
EMACS_VER= 20.7
-CONFIGURE_TARGET= ${ARCH}--freebsd
+CONFIGURE_TARGET= ${MACHINE_ARCH}--freebsd
.if !defined(WITHOUT_X11)
CONFIGURE_ARGS= --with-x-toolkit --with-pop
USE_XLIB= yes
diff --git a/editors/emacs20-mule-devel/Makefile b/editors/emacs20-mule-devel/Makefile
index b6328d4..e1cd200 100644
--- a/editors/emacs20-mule-devel/Makefile
+++ b/editors/emacs20-mule-devel/Makefile
@@ -35,7 +35,7 @@ USE_AUTOCONF_VER= 213
USE_GMAKE= yes
MAKE_ENV= INSTALL_SCRIPT="${INSTALL_SCRIPT}"
EMACS_VER= 20.7
-CONFIGURE_TARGET= ${ARCH}--freebsd
+CONFIGURE_TARGET= ${MACHINE_ARCH}--freebsd
.if !defined(WITHOUT_X11)
CONFIGURE_ARGS= --with-x-toolkit --with-pop
USE_XLIB= yes
diff --git a/editors/emacs20/Makefile b/editors/emacs20/Makefile
index 0d100e5..03c3f0f 100644
--- a/editors/emacs20/Makefile
+++ b/editors/emacs20/Makefile
@@ -27,7 +27,7 @@ USE_AUTOCONF_VER=213
USE_GMAKE= yes
EMACS_VER= 20.7
LATEST_LINK?= ${PKGNAMEPREFIX}emacs20
-CONFIGURE_TARGET= ${ARCH}--freebsd
+CONFIGURE_TARGET= ${MACHINE_ARCH}--freebsd
.if defined(WITHOUT_X11)
CONFIGURE_ARGS= --with-x=no --with-pop
.else
diff --git a/editors/emacs22/Makefile b/editors/emacs22/Makefile
index ba1f17b..83d9391 100644
--- a/editors/emacs22/Makefile
+++ b/editors/emacs22/Makefile
@@ -34,7 +34,7 @@ PATCH_DIST_STRIP= -p1
USE_AUTOCONF_VER=213
USE_GMAKE= yes
-CONFIGURE_TARGET= ${ARCH}--freebsd
+CONFIGURE_TARGET= ${MACHINE_ARCH}--freebsd
.if defined(WITHOUT_X11)
CONFIGURE_ARGS= --with-x=no
.endif
diff --git a/editors/emacs23/Makefile b/editors/emacs23/Makefile
index ba1f17b..83d9391 100644
--- a/editors/emacs23/Makefile
+++ b/editors/emacs23/Makefile
@@ -34,7 +34,7 @@ PATCH_DIST_STRIP= -p1
USE_AUTOCONF_VER=213
USE_GMAKE= yes
-CONFIGURE_TARGET= ${ARCH}--freebsd
+CONFIGURE_TARGET= ${MACHINE_ARCH}--freebsd
.if defined(WITHOUT_X11)
CONFIGURE_ARGS= --with-x=no
.endif
diff --git a/editors/hexcurse/Makefile b/editors/hexcurse/Makefile
index af6e048..c8884e1 100644
--- a/editors/hexcurse/Makefile
+++ b/editors/hexcurse/Makefile
@@ -15,7 +15,7 @@ MAINTAINER= ports@FreeBSD.org
COMMENT= A versatile ncurses-based hex editor
GNU_CONFIGURE= yes
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
MAN1= hexcurse.1
PLIST_FILES= bin/hexcurse
diff --git a/editors/hte/Makefile b/editors/hte/Makefile
index 5118883..f2305f7 100644
--- a/editors/hte/Makefile
+++ b/editors/hte/Makefile
@@ -19,7 +19,7 @@ COMMENT= A file editor/viewer/analyzer for executables
USE_BZIP2= yes
USE_REINPLACE= yes
GNU_CONFIGURE= yes
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ENV= CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}"
CONFIGURE_ARGS= --enable-release
diff --git a/editors/joe-devel/Makefile b/editors/joe-devel/Makefile
index dbc8dc4..59da314 100644
--- a/editors/joe-devel/Makefile
+++ b/editors/joe-devel/Makefile
@@ -21,7 +21,7 @@ CONFLICTS= joe-2.*
LATEST_LINK= joe-devel
GNU_CONFIGURE= yes
-CONFIGURE_TARGET=--build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET=--build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
LIBS="-L${LOCALBASE}/lib -liconv"
diff --git a/editors/lfhex/Makefile b/editors/lfhex/Makefile
index cf5117b..647f859 100644
--- a/editors/lfhex/Makefile
+++ b/editors/lfhex/Makefile
@@ -19,7 +19,7 @@ USE_BISON= yes
USE_GMAKE= yes
GNU_CONFIGURE= yes
CONFIGURE_ENV= QTDIR="${QT_PREFIX}"
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ARGS= --with-qt-moc=${MOC}
MAKE_ARGS= CXXFLAGS="${CXXFLAGS}" \
diff --git a/editors/poedit/Makefile b/editors/poedit/Makefile
index f31f07e..9d89139 100644
--- a/editors/poedit/Makefile
+++ b/editors/poedit/Makefile
@@ -25,7 +25,7 @@ USE_GETTEXT= yes
USE_REINPLACE= yes
USE_GMAKE= yes
GNU_CONFIGURE= yes
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ENV= CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}"
CONFIGURE_ARGS= --with-wx-config=${X11BASE}/bin/wxgtk2-2.4-config
diff --git a/editors/ssed/Makefile b/editors/ssed/Makefile
index cc211d1..230e413 100644
--- a/editors/ssed/Makefile
+++ b/editors/ssed/Makefile
@@ -17,7 +17,7 @@ COMMENT= Super-sed - a heavily enhanced version of sed
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION:S/a//}
GNU_CONFIGURE= yes
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ARGS= --program-prefix=s
MAN1= ssed.1
diff --git a/editors/ted/Makefile b/editors/ted/Makefile
index bd44d5a..b39283c 100644
--- a/editors/ted/Makefile
+++ b/editors/ted/Makefile
@@ -26,7 +26,7 @@ USE_MOTIF= yes
USE_REINPLACE= yes
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --prefix=${PREFIX}
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ENV= CC="${CC}" CFLAGS="${CFLAGS}"
MAKE_ENV= DEF_AFMDIR="-DAFMDIR=\"\\\"${AFMDIR}\\\"\"" \
DEF_INDDIR="-DINDDIR=\"\\\"${INDDIR}\\\"\"" \
diff --git a/editors/tetradraw/Makefile b/editors/tetradraw/Makefile
index 9b50afe..d4e444f 100644
--- a/editors/tetradraw/Makefile
+++ b/editors/tetradraw/Makefile
@@ -18,7 +18,7 @@ COMMENT= Fully featured ANSI art editor/viewer with TCP/IP multidraw support
USE_REINPLACE= yes
GNU_CONFIGURE= yes
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
post-patch:
@${REINPLACE_CMD} -e \
diff --git a/editors/xemacs-devel-mule/Makefile b/editors/xemacs-devel-mule/Makefile
index 6a98135..8d57d1c 100644
--- a/editors/xemacs-devel-mule/Makefile
+++ b/editors/xemacs-devel-mule/Makefile
@@ -45,7 +45,7 @@ USE_XPM= yes
XEMACS_REL= 21.5
XEMACS_VER= ${XEMACS_REL}-b20
-XEMACS_ARCH= ${ARCH}--freebsd
+XEMACS_ARCH= ${MACHINE_ARCH}--freebsd
WRKSRC= ${WRKDIR}/xemacs-${XEMACS_VER:S/-b/./}
STRIP=
diff --git a/editors/xemacs-devel/Makefile b/editors/xemacs-devel/Makefile
index d8e7863..770b52c 100644
--- a/editors/xemacs-devel/Makefile
+++ b/editors/xemacs-devel/Makefile
@@ -38,7 +38,7 @@ XEMACS_ARCH= ${CONFIGURE_TARGET}
WRKSRC= ${WRKDIR}/xemacs-${XEMACS_VER:S/-b/./}
STRIP=
USE_AUTOCONF_VER=213
-CONFIGURE_TARGET=${ARCH}--freebsd
+CONFIGURE_TARGET=${MACHINE_ARCH}--freebsd
CONFIGURE_ARGS?=--with-clash-detection \
--with-sound=native,nonas,noesd \
diff --git a/editors/xemacs/Makefile b/editors/xemacs/Makefile
index 0d48bcd..c53cb51 100644
--- a/editors/xemacs/Makefile
+++ b/editors/xemacs/Makefile
@@ -25,7 +25,7 @@ RUN_DEPENDS+= ${LOCALBASE}/lib/xemacs/xemacs-packages/etc/enriched.doc:${PORTSDI
USE_BZIP2= yes
STRIP=
USE_AUTOCONF_VER=213
-CONFIGURE_TARGET=${ARCH}--freebsd
+CONFIGURE_TARGET=${MACHINE_ARCH}--freebsd
CONFIGURE_ARGS?=--with-clash-detection \
--with-sound=native,nonas,noesd \
diff --git a/editors/xemacs21-mule/Makefile b/editors/xemacs21-mule/Makefile
index dab6547..98cae63 100644
--- a/editors/xemacs21-mule/Makefile
+++ b/editors/xemacs21-mule/Makefile
@@ -48,7 +48,7 @@ USE_XLIB= yes
USE_XPM= yes
STRIP=
USE_AUTOCONF_VER= 213
-CONFIGURE_TARGET=${ARCH}--freebsd
+CONFIGURE_TARGET=${MACHINE_ARCH}--freebsd
CONFIGURE_ARGS= --with-x11 \
--with-mule \
diff --git a/editors/zile/Makefile b/editors/zile/Makefile
index 98da9c2..dfac99f 100644
--- a/editors/zile/Makefile
+++ b/editors/zile/Makefile
@@ -19,7 +19,7 @@ USE_REINPLACE= yes
USE_GMAKE= yes
USE_AUTOMAKE_VER= 19
USE_AUTOCONF_VER= 259
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
MAN1= zile.1
INFO= zile
diff --git a/emulators/atari800/Makefile b/emulators/atari800/Makefile
index a6c5ebc..6a47a2e 100644
--- a/emulators/atari800/Makefile
+++ b/emulators/atari800/Makefile
@@ -26,7 +26,7 @@ WRKSRC= ${WRKDIR}/${DISTNAME}/src
USE_REINPLACE= yes
USE_GMAKE= yes
GNU_CONFIGURE= yes
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
MAN1= atari800.1
diff --git a/emulators/bochs/Makefile b/emulators/bochs/Makefile
index 33218a9..c76123e 100644
--- a/emulators/bochs/Makefile
+++ b/emulators/bochs/Makefile
@@ -24,7 +24,7 @@ USE_REINPLACE= yes
USE_GMAKE= yes
GNU_CONFIGURE= yes
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ARGS= --disable-split-hd \
--enable-all-optimizations \
--with-x11 \
diff --git a/emulators/generator/Makefile b/emulators/generator/Makefile
index 1265f80..4476c4f 100644
--- a/emulators/generator/Makefile
+++ b/emulators/generator/Makefile
@@ -22,7 +22,7 @@ USE_SDL= sdl
USE_REINPLACE= yes
USE_GMAKE= yes
GNU_CONFIGURE= yes
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib"
CONFIGURE_ARGS= --with-gtk
diff --git a/emulators/hatari/Makefile b/emulators/hatari/Makefile
index 7acab72..cfa31d4 100644
--- a/emulators/hatari/Makefile
+++ b/emulators/hatari/Makefile
@@ -15,7 +15,7 @@ MAINTAINER= ports@FreeBSD.org
COMMENT= An Atari ST emulator
GNU_CONFIGURE= yes
-CONFIGURE_TARGET=--build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET=--build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
USE_GMAKE= yes
USE_SDL= yes
diff --git a/emulators/kmamerun/Makefile b/emulators/kmamerun/Makefile
index 36b34b5..1c6084e 100644
--- a/emulators/kmamerun/Makefile
+++ b/emulators/kmamerun/Makefile
@@ -19,6 +19,6 @@ RUN_DEPENDS= xmame:${PORTSDIR}/emulators/xmame
USE_KDELIBS_VER=3
GNU_CONFIGURE= yes
CONFIGURE_TARGET=
-CONFIGURE_ARGS+=--build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_ARGS+=--build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
.include <bsd.port.mk>
diff --git a/emulators/linux_base-suse-9.1/Makefile b/emulators/linux_base-suse-9.1/Makefile
index 386141a..a6ae7f8 100644
--- a/emulators/linux_base-suse-9.1/Makefile
+++ b/emulators/linux_base-suse-9.1/Makefile
@@ -39,7 +39,6 @@ DISTFILES= suse-release-9.1-0.i586.rpm \
libgcc-3.3.3-41.i586.rpm \
termcap-2.0.8-876.i586.rpm \
freetype2-2.1.7-53.i586.rpm
-EXTRACT_ONLY=
MAINTAINER= trevor@FreeBSD.org
COMMENT= Basic packages for Linux mode from SUSE 9.1/i386
@@ -52,7 +51,7 @@ CONFLICTS= linux_base-6* linux_base-7* linux_base-debian* \
NO_LATEST_LINK= yes
RESTRICTED= "binaries under GNU GPL without accompanying source"
ONLY_FOR_ARCHS= i386
-DIST_SUBDIR= rpm/${ARCH}/suse
+DIST_SUBDIR= rpm/${MACHINE_ARCH}/suse
PREFIX= ${LINUXBASE}
NO_BUILD= yes
NO_FILTER_SHLIBS= yes
@@ -82,7 +81,7 @@ FALLBACK_ELF_MIB= kern.fallback_elf_brand
LINUX_ELF= 3
PREVIOUS_ELF!= /sbin/sysctl -n ${FALLBACK_ELF_MIB}
-pre-install:
+do-extract:
#
# Handle the loading of the linux loadable kernel module if required.
@${SH} ${PKGINSTALL} ${PKGNAME} PRE-INSTALL
@@ -113,7 +112,7 @@ pre-install:
# mtab in etc, albeit an empty one. This is needed in a couple of
# cases. Most notably staroffice6.
#
- ${INSTALL_DATA} ${FILESDIR}/yp.conf ${WRKSRC}/etc
+ ${INSTALL} ${COPY} -m 644 ${FILESDIR}/yp.conf ${WRKSRC}/etc
${TOUCH} ${WRKSRC}/etc/mtab ${WRKSRC}/etc/host.conf
#
# Finish
@@ -126,6 +125,7 @@ pre-install:
done
@${LN} -sf /var/tmp ${WRKSRC}/usr/tmp
+pre-install:
${RM} -f ${PLIST}
cd ${WRKSRC} && ${FIND} -s . -type f -o -type l | \
${CUT} -c3-999 >> ${PLIST} \
diff --git a/emulators/pearpc/Makefile b/emulators/pearpc/Makefile
index d893ddb..4e85deb 100644
--- a/emulators/pearpc/Makefile
+++ b/emulators/pearpc/Makefile
@@ -17,7 +17,7 @@ COMMENT= PowerPC emulator
USE_XLIB= yes
USE_REINPLACE= yes
GNU_CONFIGURE= yes
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
PKGMESSAGE= ${WRKDIR}/pkg-message
MAN1= ppc.1
diff --git a/emulators/snes9x/Makefile b/emulators/snes9x/Makefile
index 81be44a..c9ac5f7 100644
--- a/emulators/snes9x/Makefile
+++ b/emulators/snes9x/Makefile
@@ -19,7 +19,7 @@ WRKSRC= ${WRKDIR}/${DISTNAME}/${PORTNAME}
USE_X_PREFIX= YES
USE_GMAKE= YES
GNU_CONFIGURE= YES
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
MAKE_ARGS= INCLUDES="-I${X11BASE}/include ${PTHREAD_CFLAGS}" \
LDLIBS="-L${X11BASE}/lib ${PTHREAD_LIBS}" \
OPTIMISE="${CXXFLAGS}"
diff --git a/emulators/twin/Makefile b/emulators/twin/Makefile
index 112eae2..e8a0427 100644
--- a/emulators/twin/Makefile
+++ b/emulators/twin/Makefile
@@ -25,7 +25,7 @@ USE_XLIB= yes
USE_REINPLACE= yes
USE_AUTOCONF_VER= 213
GNU_CONFIGURE= yes
-.if ${ARCH} == "alpha"
+.if ${MACHINE_ARCH} == "alpha"
CONFIGURE_ARGS+=--disable-intp
.endif
USE_GMAKE= yes
diff --git a/emulators/xbraitenberg/Makefile b/emulators/xbraitenberg/Makefile
index 6c59422..06dd79c 100644
--- a/emulators/xbraitenberg/Makefile
+++ b/emulators/xbraitenberg/Makefile
@@ -15,7 +15,7 @@ COMMENT= A Braitenberg vehicle simulator with pseudo-physics
USE_X_PREFIX= yes
GNU_CONFIGURE= yes
-CONFIGURE_TARGET=--build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET=--build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ENV= CPPFLAGS="-I${X11BASE}/include" \
LIBS="-L${X11BASE}/lib"
diff --git a/emulators/zsnes/Makefile b/emulators/zsnes/Makefile
index 6ff04da..e5355f4 100644
--- a/emulators/zsnes/Makefile
+++ b/emulators/zsnes/Makefile
@@ -31,7 +31,7 @@ USE_GL= yes
USE_REINPLACE= yes
USE_GMAKE= yes
GNU_CONFIGURE= yyes
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ENV= CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}"
ALL_TARGET= ALL
diff --git a/finance/khacc/Makefile b/finance/khacc/Makefile
index d0f3a5f..1e1d7d1 100644
--- a/finance/khacc/Makefile
+++ b/finance/khacc/Makefile
@@ -23,7 +23,7 @@ USE_GMAKE= yes
WANT_AUTOMAKE_VER= 19
WANT_AUTOCONF_VER= 259
GNU_CONFIGURE= yes
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ARGS= --with-qhacc-config=${X11BASE}/bin
MAKE_ARGS= ACLOCAL="${TRUE}" AUTOCONF="${TRUE}" AUTOMAKE="${TRUE}" \
AUTOHEADER="${TRUE}"
diff --git a/finance/ktoblzcheck/Makefile b/finance/ktoblzcheck/Makefile
index 47035c7..cc6b660 100644
--- a/finance/ktoblzcheck/Makefile
+++ b/finance/ktoblzcheck/Makefile
@@ -21,7 +21,7 @@ EXTRACT_DEPENDS=unzip:${PORTSDIR}/archivers/unzip
USE_GMAKE= yes
USE_LIBTOOL_VER= 15
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
INSTALLS_SHLIBS= yes
MAN1= ktoblzcheck.1
diff --git a/finance/qhacc/Makefile b/finance/qhacc/Makefile
index adaff59..be361e3 100644
--- a/finance/qhacc/Makefile
+++ b/finance/qhacc/Makefile
@@ -21,7 +21,7 @@ USE_X_PREFIX= yes
USE_REINPLACE= yes
USE_GMAKE= yes
USE_LIBTOOL_VER= 15
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ARGS= --with-qt-moc=${QT_PREFIX}/bin \
--with-qt-libs=${QT_PREFIX}/lib
MAKE_ARGS= ACLOCAL="${TRUE}" AUTOCONF="${TRUE}" AUTOMAKE="${TRUE}" \
diff --git a/finance/quantlib/Makefile b/finance/quantlib/Makefile
index cd6170d..4dfc4db 100644
--- a/finance/quantlib/Makefile
+++ b/finance/quantlib/Makefile
@@ -22,7 +22,7 @@ WRKSRC= ${WRKDIR}/QuantLib-${PORTVERSION}
USE_GCC= 3.3
USE_REINPLACE= yes
GNU_CONFIGURE= yes
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ENV= CPPFLAGS="${PTHREAD_CFLAGS}" LDFLAGS="${PTHREAD_LIBS}"
INSTALLS_SHLIB= yes
diff --git a/french/med/Makefile b/french/med/Makefile
index 156d389..7d414b2 100644
--- a/french/med/Makefile
+++ b/french/med/Makefile
@@ -21,7 +21,7 @@ TK_VER?= 8.4
SHORT_TK_VER= ${TK_VER:S/.//}
#CONFIGURE_ARGS= --disable-shared
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ENV= HDF5HOME=${LOCALBASE} CPPFLAGS="${PTHREAD_CFLAGS}" \
LDFLAGS="${PTHREAD_LIBS}"
USE_LIBTOOL_VER= 15
diff --git a/ftp/frox/Makefile b/ftp/frox/Makefile
index 850fa89..410d059 100644
--- a/ftp/frox/Makefile
+++ b/ftp/frox/Makefile
@@ -19,7 +19,7 @@ COMMENT= Transparent FTP proxy with caching support
USE_BZIP2= yes
USE_GMAKE= yes
GNU_CONFIGURE= yes
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
USE_RC_SUBR= yes
RC_DIR?= ${PREFIX}/etc/rc.d
diff --git a/ftp/muddleftpd/Makefile b/ftp/muddleftpd/Makefile
index 7da0328..8dd6b0c 100644
--- a/ftp/muddleftpd/Makefile
+++ b/ftp/muddleftpd/Makefile
@@ -18,7 +18,7 @@ COMMENT= A new ftp server that can perform a variety of ftp tasks
USE_REINPLACE= yes
USE_GMAKE= yes
GNU_CONFIGURE= yes
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ARGS= --without-authsmb
MAN1= ftpwho.1 muddleftpd.1 mudpasswd.1
diff --git a/ftp/ocaml-ocurl/Makefile b/ftp/ocaml-ocurl/Makefile
index badb67a..75e14a63 100644
--- a/ftp/ocaml-ocurl/Makefile
+++ b/ftp/ocaml-ocurl/Makefile
@@ -23,7 +23,7 @@ LIB_DEPENDS= curl.3:${PORTSDIR}/ftp/curl
USE_GMAKE= yes
GNU_CONFIGURE= yes
CONFIGURE_ARGS+="--with-findlib"
-CONFIGURE_TARGET=--build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET=--build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
PKGDEINSTALL= ${PKGINSTALL}
FINDLIB_PKGNAME=${PORTNAME:S/o//}
diff --git a/ftp/oftpd/Makefile b/ftp/oftpd/Makefile
index 2dc33a2..e29782e 100644
--- a/ftp/oftpd/Makefile
+++ b/ftp/oftpd/Makefile
@@ -16,7 +16,7 @@ COMMENT= A threaded, anonymous only FTP server designed for security
USE_REINPLACE= yes
GNU_CONFIGURE= yes
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
MAN8= oftpd.8
PORTDOCS= README AUTHORS ChangeLog NEWS TODO BUGS
diff --git a/ftp/quftp/Makefile b/ftp/quftp/Makefile
index 9aafbe6..6009474 100644
--- a/ftp/quftp/Makefile
+++ b/ftp/quftp/Makefile
@@ -22,7 +22,7 @@ USE_REINPLACE= yes
CFLAGS+= ${PTHREAD_CFLAGS} -L${LOCALBASE}/lib ${PTHREAD_LIBS}
CONFIGURE_ENV= CFLAGS="${CFLAGS}"
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
MAN1= quftp.1
PLIST_FILES= bin/quftp
diff --git a/ftp/wgetpro/Makefile b/ftp/wgetpro/Makefile
index 2ec8b1a..a36ab7d 100644
--- a/ftp/wgetpro/Makefile
+++ b/ftp/wgetpro/Makefile
@@ -21,7 +21,7 @@ USE_GETOPT_LONG= yes
USE_OPENSSL= yes
USE_GMAKE= yes
GNU_CONFIGURE= yes
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ENV= CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}"
.if defined(WITHOUT_NLS)
diff --git a/ftp/wput/Makefile b/ftp/wput/Makefile
index 0ca7d1f..85382b7 100644
--- a/ftp/wput/Makefile
+++ b/ftp/wput/Makefile
@@ -22,7 +22,7 @@ USE_GETOPT_LONG= yes
WRKSRC= ${WRKDIR}/${PORTNAME}
GNU_CONFIGURE= yes
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ENV= LIBS="${LDFLAGS}"
PLIST_FILES= bin/wput
diff --git a/ftp/wzdftpd/Makefile b/ftp/wzdftpd/Makefile
index 224178b..89cf537 100644
--- a/ftp/wzdftpd/Makefile
+++ b/ftp/wzdftpd/Makefile
@@ -21,7 +21,7 @@ GNU_CONFIGURE= yes
INSTALLS_SHLIB= yes
USE_INC_LIBTOOL_VER=13
CONFIGURE_ARGS+= --without-pam
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
PKGMESSAGE= ${WRKDIR}/pkg-message
OPTIONS= UTF8 "Enable UTF8 support" off \
diff --git a/ftp/yafc/Makefile b/ftp/yafc/Makefile
index ae79805..2689ab6 100644
--- a/ftp/yafc/Makefile
+++ b/ftp/yafc/Makefile
@@ -17,7 +17,7 @@ COMMENT= Yet another ftp client. Similar to ftp(1)
USE_BZIP2= yes
USE_GETOPT_LONG= yes
GNU_CONFIGURE= yes
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ARGS= --with-socks4=no --with-socks5=no --with-krb4=no \
--with-krb5=no --with-gssapi=no
diff --git a/games/abuse_sdl/Makefile b/games/abuse_sdl/Makefile
index 2f0728e..118236a 100644
--- a/games/abuse_sdl/Makefile
+++ b/games/abuse_sdl/Makefile
@@ -22,7 +22,7 @@ USE_GMAKE= yes
GNU_CONFIGURE= yes
CONFIGURE_ENV= CPPFLAGS="-I${X11BASE}/include" \
LDFLAGS="-L${X11BASE}/lib"
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
MAN6= abuse-sdl.6
diff --git a/games/adonthell/Makefile b/games/adonthell/Makefile
index 935fc2c..7745fbf 100644
--- a/games/adonthell/Makefile
+++ b/games/adonthell/Makefile
@@ -25,7 +25,7 @@ USE_PYTHON= yes
USE_GMAKE= yes
GNU_CONFIGURE= yes
CONFIGURE_ARGS+= --disable-py-debug
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ENV= LDFLAGS=-L${LOCALBASE}/lib
.include <bsd.port.pre.mk>
diff --git a/games/afternoonstalker/Makefile b/games/afternoonstalker/Makefile
index 049d389..73f6ec8 100644
--- a/games/afternoonstalker/Makefile
+++ b/games/afternoonstalker/Makefile
@@ -20,7 +20,7 @@ USE_SDL= mixer sdl
USE_GETOPT_LONG= yes
USE_REINPLACE= yes
GNU_CONFIGURE= yes
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ENV= CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}"
MAN6= afternoonstalker.6
diff --git a/games/amy/Makefile b/games/amy/Makefile
index b71ac3d..5f9c795 100644
--- a/games/amy/Makefile
+++ b/games/amy/Makefile
@@ -22,7 +22,7 @@ NOT_FOR_ARCHS= sparc64 alpha
MAN6= Amy.6
GNU_CONFIGURE= yes
-CONFIGURE_TARGET=--build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET=--build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
post-extract:
${BZCAT} ${DISTDIR}/ClassicGames.pgn.bz2 > \
diff --git a/games/briquolo/Makefile b/games/briquolo/Makefile
index d7382d4..5428e45 100644
--- a/games/briquolo/Makefile
+++ b/games/briquolo/Makefile
@@ -21,7 +21,7 @@ USE_GCC= 3.4
USE_REINPLACE= yes
USE_GMAKE= yes
GNU_CONFIGURE= yes
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ENV= CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}"
PLIST_SUB= VERSION="${PORTVERSION}"
diff --git a/games/cgoban/Makefile b/games/cgoban/Makefile
index 236bf5f..345f213 100644
--- a/games/cgoban/Makefile
+++ b/games/cgoban/Makefile
@@ -19,7 +19,7 @@ USE_X_PREFIX= yes
USE_GMAKE= yes
USE_AUTOCONF_VER= 253
USE_REINPLACE= yes
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ENV= ACLOCAL="${TRUE}" AUTOCONF="${TRUE}" AUTOMAKE="${TRUE}" \
AUTOHEADER="${TRUE}"
diff --git a/games/crafty/Makefile b/games/crafty/Makefile
index 2662eae..2cd07e9 100644
--- a/games/crafty/Makefile
+++ b/games/crafty/Makefile
@@ -25,11 +25,11 @@ DISTFILES+= ${DOCFILES:S/$/:doc/}
ALL_TARGET= crafty
OPT= -DCOMPACT_ATTACKS -DUSE_ATTACK_FUNCTIONS
-.if ${ARCH} == "i386"
+.if ${MACHINE_ARCH} == "i386"
MAKE_ENV+= asm=X86-elf.o
OPT+= -DUSE_ASSEMBLY_A -DUSE_ASSEMBLY_B -DFAST
# XXX Someone with ASM knowledge would have to fix the Sparc.S
-.elif ${ARCH} == "sparc64" && defined(CRAFTY_SPARC_ASM)
+.elif ${MACHINE_ARCH} == "sparc64" && defined(CRAFTY_SPARC_ASM)
MAKE_ENV+= asm=Sparc.o
OPT+= -DUSE_ASSEMBLY_A
.else
diff --git a/games/criticalmass/Makefile b/games/criticalmass/Makefile
index e752a9e..1647629 100644
--- a/games/criticalmass/Makefile
+++ b/games/criticalmass/Makefile
@@ -23,7 +23,7 @@ USE_SDL= image mixer sdl
USE_GL= yes
USE_REINPLACE= yes
GNU_CONFIGURE= yes
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ARGS= --disable-optimize
MAN6= critter.6
diff --git a/games/crossfire-server/Makefile b/games/crossfire-server/Makefile
index 187e48367..5e4cac2 100644
--- a/games/crossfire-server/Makefile
+++ b/games/crossfire-server/Makefile
@@ -28,7 +28,7 @@ USE_OPENSSL= yes
USE_REINPLACE= yes
USE_GMAKE= yes
GNU_CONFIGURE= yes
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ENV= CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}"
MAN6= crossedit.6 crossfire.6 crossfire-config.6 crossloop.6 \
diff --git a/games/d2x/Makefile b/games/d2x/Makefile
index dc1ec9e..322ecf7 100644
--- a/games/d2x/Makefile
+++ b/games/d2x/Makefile
@@ -14,7 +14,7 @@ MAINTAINER= ports@FreeBSD.org
COMMENT= Unix port of Descent 2 Game
GNU_CONFIGURE= yes
-CONFIGURE_TARGET=--build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET=--build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
USE_SDL= sdl image
USE_GMAKE= yes
diff --git a/games/deng/Makefile b/games/deng/Makefile
index 6787195..58f25b9 100644
--- a/games/deng/Makefile
+++ b/games/deng/Makefile
@@ -20,7 +20,7 @@ RUN_DEPENDS= ${LOCALBASE}/bin/timidity:${PORTSDIR}/audio/timidity
USE_REINPLACE= yes
REINPLACE_ARGS= -i ""
USE_LIBTOOL_VER= 15
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ENV= CFLAGS="${CFLAGS} `${SDL_CONFIG} --cflags` -I${LOCALBASE}/include -I${X11BASE}/include" \
CPPFLAGS="`${SDL_CONFIG} --cflags` -I${LOCALBASE}/include -I${X11BASE}/include"
USE_SDL= sdl mixer net
diff --git a/games/exult/Makefile b/games/exult/Makefile
index f129f50..ba86eb6 100644
--- a/games/exult/Makefile
+++ b/games/exult/Makefile
@@ -22,7 +22,7 @@ USE_SDL= sdl mixer
USE_REINPLACE= yes
USE_GMAKE= yes
GNU_CONFIGURE= yes
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
MAN1= expack.1 ipack.1 shp2pcx.1 splitshp.1 textpack.1
MAN6= exult.6
diff --git a/games/freecell-solver/Makefile b/games/freecell-solver/Makefile
index 8c0e4e7..d47dbc0 100644
--- a/games/freecell-solver/Makefile
+++ b/games/freecell-solver/Makefile
@@ -17,7 +17,7 @@ COMMENT= A program that automatically solves games of Freecell
USE_REINPLACE= yes
USE_LIBTOOL_VER= 15
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
INSTALLS_SHLIB= yes
MAN6= fc-solve-board_gen.6 fc-solve.6 \
diff --git a/games/fuhquake/files/Makefile b/games/fuhquake/files/Makefile
index 589bfc9..bb65bf3 100644
--- a/games/fuhquake/files/Makefile
+++ b/games/fuhquake/files/Makefile
@@ -18,7 +18,7 @@ DO_CFLAGS += -DNO_WINDOWED_MOUSE
.undef WITHOUT_X86_ASM
.endif
-.if ${ARCH} == "i386" && !defined(WITHOUT_X86_ASM)
+.if ${MACHINE_ARCH} == "i386" && !defined(WITHOUT_X86_ASM)
DO_CFLAGS += -Did386
.endif
@@ -116,7 +116,7 @@ CL_COMMON_OBJS = \
rulesets.o \
utils.o
-.if ${ARCH} == "i386" && !defined(WITHOUT_X86_ASM)
+.if ${MACHINE_ARCH} == "i386" && !defined(WITHOUT_X86_ASM)
CL_COMMON_AS_OBJS = \
cl_math.o \
math.o \
@@ -154,7 +154,7 @@ CL_SOFT_OBJS = \
r_surf.o \
r_vars.o
-.if ${ARCH} == "i386" && !defined(WITHOUT_X86_ASM)
+.if ${MACHINE_ARCH} == "i386" && !defined(WITHOUT_X86_ASM)
CL_SOFT_AS_OBJS = \
d_draw.o \
d_draw16.o \
@@ -192,7 +192,7 @@ CL_GLX_OBJS = \
CL_SVGA_OBJS = vid_svgalib.o
-.if ${ARCH} == "i386" && !defined(WITHOUT_X86_ASM)
+.if ${MACHINE_ARCH} == "i386" && !defined(WITHOUT_X86_ASM)
CL_SVGA_AS_OBJS = d_copy.o
.endif
diff --git a/games/glob2/Makefile b/games/glob2/Makefile
index 9c63566..ff17a7f 100644
--- a/games/glob2/Makefile
+++ b/games/glob2/Makefile
@@ -19,7 +19,7 @@ LIB_DEPENDS= vorbis.3:${PORTSDIR}/audio/libvorbis \
USE_SDL= image net sdl
GNU_CONFIGURE= yes
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ENV= CFLAGS="${CFLAGS} -I${LOCALBASE}/include" \
LDFLAGS="${LDFLAGS} -L${LOCALBASE}/lib"
USE_GCC= 3.4
diff --git a/games/gltron/Makefile b/games/gltron/Makefile
index ad620be..c7a6ea4 100644
--- a/games/gltron/Makefile
+++ b/games/gltron/Makefile
@@ -24,7 +24,7 @@ USE_SDL= sdl sound
USE_REINPLACE= yes
USE_GMAKE= yes
GNU_CONFIGURE= yes
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ENV= CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}"
CONFIGURE_ARGS= --disable-warn
diff --git a/games/gnuchess/Makefile b/games/gnuchess/Makefile
index acb7a2d..2e9f94d 100644
--- a/games/gnuchess/Makefile
+++ b/games/gnuchess/Makefile
@@ -38,7 +38,7 @@ EXTRACT_ONLY= ${PORTNAME}-${PORTVERSION}${EXTRACT_SUFX}
USE_REINPLACE= yes
GNU_CONFIGURE= yes
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ENV= LIBS="${PTHREAD_LIBS}"
post-patch:
diff --git a/games/gturing/Makefile b/games/gturing/Makefile
index 60e28d9..2c57a7c 100644
--- a/games/gturing/Makefile
+++ b/games/gturing/Makefile
@@ -21,7 +21,7 @@ USE_LIBTOOL_VER=13
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
LIBS="-L${LOCALBASE}/lib"
INSTALLS_OMF= yes
-CONFIGURE_TARGET= --target=${ARCH}-unknown-freebsd${OSREL}
+CONFIGURE_TARGET= --target=${MACHINE_ARCH}-unknown-freebsd${OSREL}
DOCS= AUTHORS COPYING NEWS ChangeLog TODO README INSTALL
diff --git a/games/heroes/Makefile b/games/heroes/Makefile
index a5ae265..c9583ab 100644
--- a/games/heroes/Makefile
+++ b/games/heroes/Makefile
@@ -37,7 +37,7 @@ USE_GETOPT_LONG= yes
USE_GMAKE= yes
USE_ICONV= yes
GNU_CONFIGURE= yes
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ENV= CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}" \
MAKEINFO="makeinfo --no-split"
CONFIGURE_ARGS= --with-sdl_mixer=${LOCALBASE} --without-gii --without-ggi
diff --git a/games/ifm/Makefile b/games/ifm/Makefile
index 13b1cd9..bf51632 100644
--- a/games/ifm/Makefile
+++ b/games/ifm/Makefile
@@ -25,7 +25,7 @@ RUN_DEPENDS= wish8.4:${PORTSDIR}/x11-toolkits/tk84
USE_PERL5= yes
USE_GMAKE= yes
GNU_CONFIGURE= yes
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ENV= WISH=${LOCALBASE}/bin/wish8.4
post-patch:
diff --git a/games/jfk/Makefile b/games/jfk/Makefile
index aa2a6fb..6f07fe0 100644
--- a/games/jfk/Makefile
+++ b/games/jfk/Makefile
@@ -14,7 +14,7 @@ MASTER_SITES= http://relax.ath.cx/jfk/
MAINTAINER= stefan@fafoe.narf.at
COMMENT= A multiplayer 2D shoot'em up game
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
GNU_CONFIGURE= yes
USE_SDL= image sdl
diff --git a/games/kpicframer/Makefile b/games/kpicframer/Makefile
index f91bfb6..3f588d1 100644
--- a/games/kpicframer/Makefile
+++ b/games/kpicframer/Makefile
@@ -19,7 +19,7 @@ USE_KDELIBS_VER= 3
GNU_CONFIGURE= yes
USE_GMAKE= yes
CONFIGURE_TARGET=
-CONFIGURE_ARGS+=--build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_ARGS+=--build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
pre-build:
${TOUCH} ${WRKSRC}/config.h.in
diff --git a/games/kpictorial/Makefile b/games/kpictorial/Makefile
index f9b2f12..b540e23 100644
--- a/games/kpictorial/Makefile
+++ b/games/kpictorial/Makefile
@@ -17,7 +17,7 @@ COMMENT= Little logical game for KDE
USE_KDELIBS_VER= 3
GNU_CONFIGURE= yes
CONFIGURE_TARGET=
-CONFIGURE_ARGS+= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_ARGS+= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
USE_GMAKE= yes
USE_REINPLACE= yes
diff --git a/games/lincity/Makefile b/games/lincity/Makefile
index 8da7b9c..a25a6c3 100644
--- a/games/lincity/Makefile
+++ b/games/lincity/Makefile
@@ -17,7 +17,7 @@ COMMENT= Rich city simulation game for X
USE_GMAKE= yes
GNU_CONFIGURE= yes
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib"
diff --git a/games/maelstrom/Makefile b/games/maelstrom/Makefile
index cc545d0..7764a58 100644
--- a/games/maelstrom/Makefile
+++ b/games/maelstrom/Makefile
@@ -19,7 +19,7 @@ USE_X_PREFIX= yes
USE_SDL= sdl net
USE_XPM= yes
GNU_CONFIGURE= yes
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
.if !defined(NOPORTDOCS)
INSTALL_TARGET= install install_gamedocs
diff --git a/games/mvdsv/Makefile b/games/mvdsv/Makefile
index 0cbbfad..5420ff07 100644
--- a/games/mvdsv/Makefile
+++ b/games/mvdsv/Makefile
@@ -45,7 +45,7 @@ pre-everything::
.if !defined(WITH_OPTIMIZED_CFLAGS)
@${ECHO_MSG} "Define WITH_OPTIMIZED_CFLAGS to enable extra optimization options"
.endif
-.if ${ARCH} == "i386" && !defined(WITHOUT_X86_ASM)
+.if ${MACHINE_ARCH} == "i386" && !defined(WITHOUT_X86_ASM)
@${ECHO_MSG} "Define WITHOUT_X86_ASM to disable x86 assembly code"
.endif
diff --git a/games/mvdsv/files/Makefile b/games/mvdsv/files/Makefile
index 74b6d44..bc1f37e 100644
--- a/games/mvdsv/files/Makefile
+++ b/games/mvdsv/files/Makefile
@@ -13,7 +13,7 @@
DO_CFLAGS = ${CFLAGS} -funsigned-char -I${LOCALBASE}/include -DSERVERONLY -Dstricmp=strcasecmp
-.if ${ARCH} == "i386" && !defined(WITHOUT_X86_ASM)
+.if ${MACHINE_ARCH} == "i386" && !defined(WITHOUT_X86_ASM)
DO_CFLAGS += -Did386
.endif
@@ -64,7 +64,7 @@ SV_OBJS = \
world.o \
zone.o
-.if ${ARCH} == "i386" && !defined(WITHOUT_X86_ASM)
+.if ${MACHINE_ARCH} == "i386" && !defined(WITHOUT_X86_ASM)
SV_AS_OBJS = \
math.o \
sys_x86.o \
diff --git a/games/openmortal/Makefile b/games/openmortal/Makefile
index 8b17bc2..1f3d051 100644
--- a/games/openmortal/Makefile
+++ b/games/openmortal/Makefile
@@ -22,7 +22,7 @@ USE_REINPLACE= yes
USE_SDL= mixer image sdl net
GNU_CONFIGURE= yes
-CONFIGURE_TARGET=--build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET=--build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
LIBS="-L${LOCALBASE}/lib"
post-patch:
diff --git a/games/pinball/Makefile b/games/pinball/Makefile
index da1ec46..01e4383 100644
--- a/games/pinball/Makefile
+++ b/games/pinball/Makefile
@@ -30,7 +30,7 @@ USE_GL= yes
USE_LIBTOOL_VER=15
INSTALLS_SHLIB= yes
-CONFIGURE_TARGET= --target=${ARCH}-unknown-freebsd${OSREL}
+CONFIGURE_TARGET= --target=${MACHINE_ARCH}-unknown-freebsd${OSREL}
CONFIGURE_ARGS= --prefix=${PREFIX} --without-debug
.if defined(WITH_ALLEGRO)
CONFIGURE_ARGS+= --with-allegro
@@ -45,9 +45,9 @@ DOCS= README
.include <bsd.port.pre.mk>
post-install:
- @${MV} ${PREFIX}/bin/${ARCH}-unknown-freebsd${OSREL}-pinball \
+ @${MV} ${PREFIX}/bin/${MACHINE_ARCH}-unknown-freebsd${OSREL}-pinball \
${PREFIX}/bin/pinball
- @${MV} ${PREFIX}/bin/${ARCH}-unknown-freebsd${OSREL}-pinball-config \
+ @${MV} ${PREFIX}/bin/${MACHINE_ARCH}-unknown-freebsd${OSREL}-pinball-config \
${PREFIX}/bin/pinball-config
.if !defined(NOPORTDOCS)
@${MKDIR} ${DOCSDIR}
diff --git a/games/qgo/Makefile b/games/qgo/Makefile
index 79fcbe3..e594a6d 100644
--- a/games/qgo/Makefile
+++ b/games/qgo/Makefile
@@ -19,7 +19,7 @@ USE_QT_VER= 3
USE_REINPLACE= yes
USE_GMAKE= yes
GNU_CONFIGURE= yes
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ENV= QTDIR="${QT_PREFIX}"
CONFIGURE_ARGS= --x-libraries=${X11BASE}/lib --x-includes=${X11BASE}/include
diff --git a/games/quake2forge/Makefile b/games/quake2forge/Makefile
index 02c815a..06466a1 100644
--- a/games/quake2forge/Makefile
+++ b/games/quake2forge/Makefile
@@ -26,7 +26,7 @@ WANT_SDL= yes
.include <bsd.port.pre.mk>
CONFIGURE_ARGS= --program-transform-name='s/^quake2$$/q2f/'
-CONFIGURE_TARGET=--build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET=--build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
.if ${HAVE_SDL:Msdl}!=""
WITH_SDL= yes
diff --git a/games/quakeforge/Makefile b/games/quakeforge/Makefile
index 8eb77d7..c25828a 100644
--- a/games/quakeforge/Makefile
+++ b/games/quakeforge/Makefile
@@ -43,7 +43,7 @@ WANT_SDL= yes
BROKEN= "Does not compile on sparc64"
.endif
-CONFIGURE_TARGET=--build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET=--build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ARGS+=--with-global-cfg=${PREFIX}/etc/quakeforge.conf \
--with-sharepath=${PREFIX}/share/quakeforge \
--disable-optimize
diff --git a/games/ssc/Makefile b/games/ssc/Makefile
index 9aa8463..6614361 100644
--- a/games/ssc/Makefile
+++ b/games/ssc/Makefile
@@ -24,7 +24,7 @@ USE_GL= yes
USE_SDL= mixer sdl
USE_REINPLACE= yes
GNU_CONFIGURE= yes
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ENV= CPPFLAGS="${CXXFLAGS} -I${X11BASE}/include" \
LDFLAGS=-L${X11BASE}/lib
ONLY_FOR_ARCHS= i386
diff --git a/games/supertux/Makefile b/games/supertux/Makefile
index 1464f15..6b37291 100644
--- a/games/supertux/Makefile
+++ b/games/supertux/Makefile
@@ -20,7 +20,7 @@ USE_SDL= image mixer
USE_GL= yes
USE_GMAKE= yes
GNU_CONFIGURE= yes
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ARGS= --disable-debug
USE_REINPLACE= yes
diff --git a/games/torcs/Makefile b/games/torcs/Makefile
index 0f3898c..72e6175 100644
--- a/games/torcs/Makefile
+++ b/games/torcs/Makefile
@@ -30,7 +30,7 @@ USE_REINPLACE= yes
USE_GETOPT_LONG=yes
REINPLACE_ARGS= -i ""
CONFIGURE_ARGS= --x-includes=${X11BASE}/include --x-libraries=${X11BASE}/lib
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
ALL_TARGET= default
LDFLAGS+= -L${LOCALBASE}/lib
diff --git a/games/trackballs/Makefile b/games/trackballs/Makefile
index 3969e94..47620fd 100644
--- a/games/trackballs/Makefile
+++ b/games/trackballs/Makefile
@@ -23,7 +23,7 @@ USE_GETOPT_LONG= yes
USE_REINPLACE= yes
USE_GMAKE= yes
GNU_CONFIGURE= yes
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ENV= CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}"
MAN6= ${PORTNAME}.6
diff --git a/games/vamos/Makefile b/games/vamos/Makefile
index bb5e7a0..24873ee 100644
--- a/games/vamos/Makefile
+++ b/games/vamos/Makefile
@@ -25,7 +25,7 @@ USE_GL= yes
USE_GETOPT_LONG= yes
USE_GMAKE= yes
USE_LIBTOOL_VER= 15
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ENV= CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}" \
MAKEINFO="makeinfo --no-split"
CONFIGURE_ARGS= --x-includes=${X11BASE}/include --x-libraries=${X11BASE}/lib
diff --git a/games/wmpuzzle/Makefile b/games/wmpuzzle/Makefile
index f97b3cc..607a9b8 100644
--- a/games/wmpuzzle/Makefile
+++ b/games/wmpuzzle/Makefile
@@ -21,7 +21,7 @@ USE_XPM= yes
USE_GETOPT_LONG= yes
USE_GMAKE= yes
GNU_CONFIGURE= yes
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ENV= CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}"
MAN6= wmpuzzle.6
diff --git a/games/xabacus/Makefile b/games/xabacus/Makefile
index 4c534c7..630b7ba 100644
--- a/games/xabacus/Makefile
+++ b/games/xabacus/Makefile
@@ -20,7 +20,7 @@ USE_X_PREFIX= yes
USE_XPM= yes
USE_REINPLACE= yes
GNU_CONFIGURE= yes
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
MAN6= xabacus.6
diff --git a/german/ksteak/Makefile b/german/ksteak/Makefile
index 78dcf0c..9e725c4 100644
--- a/german/ksteak/Makefile
+++ b/german/ksteak/Makefile
@@ -26,7 +26,7 @@ USE_INC_LIBTOOL_VER=13
INSTALLS_SHLIB= yes
CONFIGURE_TARGET=
-CONFIGURE_ARGS+=--build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_ARGS+=--build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
GNU_CONFIGURE= yes
.include <bsd.port.pre.mk>
diff --git a/graphics/Coin/Makefile b/graphics/Coin/Makefile
index 95cd807..3a3b25c 100644
--- a/graphics/Coin/Makefile
+++ b/graphics/Coin/Makefile
@@ -20,7 +20,7 @@ LIB_DEPENDS= openal.0:${PORTSDIR}/audio/openal \
USE_GL= yes
USE_REINPLACE= yes
USE_LIBTOOL_VER= 15
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ARGS= --with-pthread=yes --enable-threadsafe \
--enable-3ds-import --enable-sound
INSTALLS_SHLIB= yes
diff --git a/graphics/Hermes/Makefile b/graphics/Hermes/Makefile
index beef1a7..f52ed89 100644
--- a/graphics/Hermes/Makefile
+++ b/graphics/Hermes/Makefile
@@ -19,7 +19,7 @@ COMMENT= Fast pixel formats conversion library
USE_BZIP2= yes
USE_GMAKE= yes
USE_INC_LIBTOOL_VER=13
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
MAKE_ARGS= ACLOCAL="${TRUE}" AUTOCONF="${TRUE}" AUTOMAKE="${TRUE}" \
AUTOHEADER="${TRUE}"
INSTALLS_SHLIB= yes
diff --git a/graphics/bugle/Makefile b/graphics/bugle/Makefile
index c33bfb4..f197f7c 100644
--- a/graphics/bugle/Makefile
+++ b/graphics/bugle/Makefile
@@ -21,7 +21,7 @@ USE_GCC= 3.4
USE_GL= yes
USE_PERL5= yes
GNU_CONFIGURE= yes
-CONFIGURE_TARGET=--build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET=--build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ENV= CPPFLAGS="-I${X11BASE}/include" \
LIBS="-L${X11BASE}/lib"
INSTALLS_SHLIB= yes
diff --git a/graphics/demeter/Makefile b/graphics/demeter/Makefile
index 734050c..5f9de0a1 100644
--- a/graphics/demeter/Makefile
+++ b/graphics/demeter/Makefile
@@ -27,7 +27,7 @@ WANT_SDL= yes
USE_AUTOCONF_VER= 253
USE_AUTOMAKE_VER= 15
USE_LIBTOOL_VER= 15
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ENV= CXXFLAGS="${CXXFLAGS} -I${X11BASE}/include -I${LOCALBASE}/include" \
LDFLAGS="-L${X11BASE}/lib -L${LOCALBASE}/lib"
INSTALLS_SHLIB= yes
diff --git a/graphics/divxcalc/Makefile b/graphics/divxcalc/Makefile
index ff9802a..9392d1b 100644
--- a/graphics/divxcalc/Makefile
+++ b/graphics/divxcalc/Makefile
@@ -20,7 +20,7 @@ USE_GMAKE= yes
WANT_AUTOMAKE_VER= 15
WANT_AUTOCONF_VER= 253
GNU_CONFIGURE= yes
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ARGS= --x-libraries=${X11BASE}/lib --x-includes=${X11BASE}/include
PLIST_FILES= bin/divxcalc
diff --git a/graphics/dvipng/Makefile b/graphics/dvipng/Makefile
index d4bea81..9b10b9f 100644
--- a/graphics/dvipng/Makefile
+++ b/graphics/dvipng/Makefile
@@ -21,7 +21,7 @@ LIB_DEPENDS= t1.5:${PORTSDIR}/devel/t1lib \
USE_GMAKE= yes
GNU_CONFIGURE= yes
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib"
diff --git a/graphics/feh/Makefile b/graphics/feh/Makefile
index c9576a3..e591cb0 100644
--- a/graphics/feh/Makefile
+++ b/graphics/feh/Makefile
@@ -18,7 +18,7 @@ LIB_DEPENDS= giblib.1:${PORTSDIR}/graphics/giblib
USE_X_PREFIX= yes
USE_PERL5= yes
GNU_CONFIGURE= yes
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib"
diff --git a/graphics/ftgl/Makefile b/graphics/ftgl/Makefile
index 7a72c44..61e7aa7 100644
--- a/graphics/ftgl/Makefile
+++ b/graphics/ftgl/Makefile
@@ -26,7 +26,7 @@ USE_REINPLACE= yes
GNU_CONFIGURE= yes
WRKSRC= ${WRKDIR}/${PORTNAME:U}
CONFIGURE_WRKSRC= ${WRKSRC}/unix
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ARGS= --with-gl-inc=${X11BASE}/include --with-gl-lib=${X11BASE}/lib
BUILD_WRKSRC= ${CONFIGURE_WRKSRC}
INSTALL_WRKSRC= ${CONFIGURE_WRKSRC}
diff --git a/graphics/g3dviewer/Makefile b/graphics/g3dviewer/Makefile
index 019eec7..d0849d6 100644
--- a/graphics/g3dviewer/Makefile
+++ b/graphics/g3dviewer/Makefile
@@ -20,7 +20,7 @@ LIB_DEPENDS= gtkgl:${PORTSDIR}/x11-toolkits/gtkglarea
USE_GNOME= gtk12
USE_MESA= yes
GNU_CONFIGURE= yes
-CONFIGURE_TARGET=--build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET=--build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ENV= \
CPPFLAGS="${PTHREAD_CFLAGS} `${GTK_CONFIG} --cflags` -fPIC" \
LDFLAGS="${PTHREAD_LIBS} `${GTK_CONFIG} --libs` -lGL -lGLU -lglut"
diff --git a/graphics/gdk-pixbuf/Makefile b/graphics/gdk-pixbuf/Makefile
index b43c6f0..e80d9a3 100644
--- a/graphics/gdk-pixbuf/Makefile
+++ b/graphics/gdk-pixbuf/Makefile
@@ -32,7 +32,7 @@ CONFIGURE_ARGS= --with-html-dir=${PREFIX}/share/doc \
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
LIBS="-L${LOCALBASE}/lib" \
BUILD_CANVAS="${BUILD_CANVAS}"
-CONFIGURE_TARGET= --target=${ARCH}-unknown-freebsd${OSREL}
+CONFIGURE_TARGET= --target=${MACHINE_ARCH}-unknown-freebsd${OSREL}
BUILD_CANVAS?= no
diff --git a/graphics/geos/Makefile b/graphics/geos/Makefile
index 95e2185..adc474d 100644
--- a/graphics/geos/Makefile
+++ b/graphics/geos/Makefile
@@ -19,7 +19,7 @@ USE_GMAKE= YES
USE_LIBTOOL_VER=15
USE_BZIP2= YES
-CONFIGURE_TARGET=--build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET=--build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
INSTALLS_SHLIB= YES
diff --git a/graphics/giflib/Makefile b/graphics/giflib/Makefile
index ba7dbe4..a0fd27c 100644
--- a/graphics/giflib/Makefile
+++ b/graphics/giflib/Makefile
@@ -14,7 +14,7 @@ MASTER_SITE_SUBDIR= ${PORTNAME}
MAINTAINER= ports@FreeBSD.org
COMMENT= Tools and library routines for working with GIF images
-CONFIGURE_TARGET=--build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET=--build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
INSTALLS_SHLIB= yes
USE_BZIP2= yes
USE_INC_LIBTOOL_VER=15
diff --git a/graphics/gifsicle/Makefile b/graphics/gifsicle/Makefile
index 31d861f..2d2a5c6 100644
--- a/graphics/gifsicle/Makefile
+++ b/graphics/gifsicle/Makefile
@@ -14,7 +14,7 @@ MAINTAINER= bradh@uunet.co.za
COMMENT= Manipulates GIF images and animations
GNU_CONFIGURE= yes
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
MAN1= gifdiff.1 gifsicle.1
diff --git a/graphics/gltt/Makefile b/graphics/gltt/Makefile
index e7e93bf..2c0620c 100644
--- a/graphics/gltt/Makefile
+++ b/graphics/gltt/Makefile
@@ -19,7 +19,7 @@ USE_MESA= yes
USE_FREETYPE= yes
USE_GMAKE= yes
USE_INC_LIBTOOL_VER=13
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ENV= CPPFLAGS="-I${X11BASE}/include" \
LIBS="-L${X11BASE}/lib"
CONFIGURE_ARGS= --with-ttf-includes=${LOCALBASE}/include/freetype1 \
diff --git a/graphics/gozer/Makefile b/graphics/gozer/Makefile
index 32d5d7e..83e8f46 100644
--- a/graphics/gozer/Makefile
+++ b/graphics/gozer/Makefile
@@ -17,7 +17,7 @@ LIB_DEPENDS= giblib.1:${PORTSDIR}/graphics/giblib
USE_X_PREFIX= yes
GNU_CONFIGURE= yes
-CONFIGURE_TARGET= --build=${ARCH}-porbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-porbld-freebsd${OSREL}
CONFIGURE_ARGS= --with-giblib-prefix=${X11BASE}
MAN1= gozer.1
diff --git a/graphics/hs-hgl/Makefile b/graphics/hs-hgl/Makefile
index 75d8627..1837131 100644
--- a/graphics/hs-hgl/Makefile
+++ b/graphics/hs-hgl/Makefile
@@ -30,7 +30,7 @@ MAKE_ENV= system=FreeBSD \
hugs_install=${HGL_LIBS}
ALL_TARGET= all
-.if ${ARCH:L} == "amd64"
+.if ${MACHINE_ARCH:L} == "amd64"
CFLAGS+= -fPIC
.endif
diff --git a/graphics/hugin/Makefile b/graphics/hugin/Makefile
index 1b5a5a1..f974ec3 100644
--- a/graphics/hugin/Makefile
+++ b/graphics/hugin/Makefile
@@ -29,7 +29,7 @@ RUN_DEPENDS= PTOptimizer:${PORTSDIR}/graphics/libpano12 \
PTStitcher:${PORTSDIR}/graphics/linux-panorama-tools
GNU_CONFIGURE= yes
-CONFIGURE_TARGET=--build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET=--build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
USE_GMAKE= yes
USE_BZIP2= yes
diff --git a/graphics/jpegpixi/Makefile b/graphics/jpegpixi/Makefile
index cff6be7..d814942 100644
--- a/graphics/jpegpixi/Makefile
+++ b/graphics/jpegpixi/Makefile
@@ -16,7 +16,7 @@ COMMENT= Useful to correct images from digtal camera with CCD defects
LIB_DEPENDS= jpeg.9:${PORTSDIR}/graphics/jpeg
GNU_CONFIGURE= yes
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib"
diff --git a/graphics/kdc2tiff/Makefile b/graphics/kdc2tiff/Makefile
index 1f5d8f8..3ae4c99 100644
--- a/graphics/kdc2tiff/Makefile
+++ b/graphics/kdc2tiff/Makefile
@@ -19,7 +19,7 @@ LIB_DEPENDS= jpeg.9:${PORTSDIR}/graphics/jpeg \
USE_GMAKE= yes
GNU_CONFIGURE= yes
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib"
diff --git a/graphics/libcaca/Makefile b/graphics/libcaca/Makefile
index f3cc435..2009421 100644
--- a/graphics/libcaca/Makefile
+++ b/graphics/libcaca/Makefile
@@ -15,7 +15,7 @@ COMMENT= Graphics library that outputs text instead of pixels
USE_REINPLACE= yes
GNU_CONFIGURE= yes
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib -lm -lncurses"
CONFIGURE_ARGS= --enable-ncurses --disable-doc
diff --git a/graphics/libungif/Makefile b/graphics/libungif/Makefile
index ba7dbe4..a0fd27c 100644
--- a/graphics/libungif/Makefile
+++ b/graphics/libungif/Makefile
@@ -14,7 +14,7 @@ MASTER_SITE_SUBDIR= ${PORTNAME}
MAINTAINER= ports@FreeBSD.org
COMMENT= Tools and library routines for working with GIF images
-CONFIGURE_TARGET=--build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET=--build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
INSTALLS_SHLIB= yes
USE_BZIP2= yes
USE_INC_LIBTOOL_VER=15
diff --git a/graphics/libvisual/Makefile b/graphics/libvisual/Makefile
index 137e394..ce78205 100644
--- a/graphics/libvisual/Makefile
+++ b/graphics/libvisual/Makefile
@@ -23,7 +23,7 @@ USE_REINPLACE= yes
USE_LIBTOOL_VER=15
CONFIGURE_ENV= CFLAGS="-I${LOCALBASE}/include -I${X11BASE}/include ${PTHREAD_CFLAGS}" \
LIBS="-L${LOCALBASE}/lib -L${X11BASE}/lib ${PTHREAD_LIBS}"
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
INSTALLS_SHLIB= yes
.include <bsd.port.pre.mk>
diff --git a/graphics/libvisual04/Makefile b/graphics/libvisual04/Makefile
index 137e394..ce78205 100644
--- a/graphics/libvisual04/Makefile
+++ b/graphics/libvisual04/Makefile
@@ -23,7 +23,7 @@ USE_REINPLACE= yes
USE_LIBTOOL_VER=15
CONFIGURE_ENV= CFLAGS="-I${LOCALBASE}/include -I${X11BASE}/include ${PTHREAD_CFLAGS}" \
LIBS="-L${LOCALBASE}/lib -L${X11BASE}/lib ${PTHREAD_LIBS}"
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
INSTALLS_SHLIB= yes
.include <bsd.port.pre.mk>
diff --git a/graphics/libwpcg/Makefile b/graphics/libwpcg/Makefile
index e240a37..b4e0ebf 100644
--- a/graphics/libwpcg/Makefile
+++ b/graphics/libwpcg/Makefile
@@ -18,7 +18,7 @@ COMMENT= A basic 2D/3D computer graphics library which uses OpenGL
USE_GCC= 3.4
USE_MESA= yes
GNU_CONFIGURE= yes
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ENV= CPPFLAGS="-I${X11BASE}/include" \
LDFLAGS="-L${X11BASE}/lib -lGL -lGLU -lglut"
diff --git a/graphics/linux-f10-gdk-pixbuf/Makefile b/graphics/linux-f10-gdk-pixbuf/Makefile
index edd6b44..c6226f7 100644
--- a/graphics/linux-f10-gdk-pixbuf/Makefile
+++ b/graphics/linux-f10-gdk-pixbuf/Makefile
@@ -10,9 +10,9 @@ PORTVERSION= 0.22.0.11.3.5
PORTREVISION= 1
CATEGORIES= graphics linux
MASTER_SITES= ${MASTER_SITE_FEDORA_LINUX}
-MASTER_SITE_SUBDIR=fedora/fedora/${BASEVERSION}/${ARCH}/RPMS.updates
+MASTER_SITE_SUBDIR=fedora/fedora/${BASEVERSION}/${MACHINE_ARCH}/RPMS.updates
PKGNAMEPREFIX= linux-
-DISTNAME= ${PORTNAME}-${PORTVERSION:C/^([^\.]+\.[^\.]+\.[^\.]+)\./\1-/}.${ARCH}
+DISTNAME= ${PORTNAME}-${PORTVERSION:C/^([^\.]+\.[^\.]+\.[^\.]+)\./\1-/}.${MACHINE_ARCH}
EXTRACT_SUFX= .rpm
EXTRACT_ONLY=
diff --git a/graphics/linux-f10-imlib/Makefile b/graphics/linux-f10-imlib/Makefile
index 618aba6..771be25 100644
--- a/graphics/linux-f10-imlib/Makefile
+++ b/graphics/linux-f10-imlib/Makefile
@@ -13,6 +13,6 @@ CATEGORIES= graphics linux
MAINTAINER= ports@FreeBSD.org
COMMENT= RPM of imlib
-RPM_SET= imlib-${PORTVERSION}-2.${ARCH}.rpm
+RPM_SET= imlib-${PORTVERSION}-2.${MACHINE_ARCH}.rpm
.include "../../x11-toolkits/linux-gtk/Makefile"
diff --git a/graphics/linux-f10-jpeg/Makefile b/graphics/linux-f10-jpeg/Makefile
index 5e4f086..a178285 100644
--- a/graphics/linux-f10-jpeg/Makefile
+++ b/graphics/linux-f10-jpeg/Makefile
@@ -13,6 +13,6 @@ CATEGORIES= graphics linux
MAINTAINER= freebsd-emulation@FreeBSD.org
COMMENT= RPM of the JPEG lib
-RPM_SET= libjpeg-6b-15.${ARCH}.rpm
+RPM_SET= libjpeg-6b-15.${MACHINE_ARCH}.rpm
.include "../../x11-toolkits/linux-gtk/Makefile"
diff --git a/graphics/linux-f10-libmng/Makefile b/graphics/linux-f10-libmng/Makefile
index 9967515..7dc5f3c 100644
--- a/graphics/linux-f10-libmng/Makefile
+++ b/graphics/linux-f10-libmng/Makefile
@@ -11,7 +11,7 @@ PORTREVISION= 1
CATEGORIES= graphics linux
MASTER_SITES?= ${RPM_MIRRORS:S/__DIR__/${STDDIR}/g}
PKGNAMEPREFIX= linux-
-DISTNAME= libmng-${PORTVERSION}-1.${ARCH}
+DISTNAME= libmng-${PORTVERSION}-1.${MACHINE_ARCH}
EXTRACT_SUFX= .rpm
EXTRACT_ONLY=
@@ -29,8 +29,8 @@ ONLY_FOR_ARCHS= i386
DIST_SUBDIR= rpm
NO_BUILD= yes
NO_FILTER_SHLIBS= yes
-PLIST?= ${PKGDIR}/pkg-plist.${ARCH}
-MD5_FILE?= ${MASTERDIR}/distinfo.${ARCH}
+PLIST?= ${PKGDIR}/pkg-plist.${MACHINE_ARCH}
+MD5_FILE?= ${MASTERDIR}/distinfo.${MACHINE_ARCH}
# Let's avoid hardcoding 'en' as the language.
LANG?= en
@@ -38,8 +38,8 @@ RPM_MIRRORS= \
ftp://ftp.redhat.com/pub/redhat/__DIR__/ \
ftp://ftp.nluug.nl/site/ftp.redhat.com/redhat/__DIR__/ \
ftp://ftp.mirrorservice.org/sites/ftp.redhat.com/pub/redhat/__DIR__/
-STDDIR= linux/${BASEVERSION}/${LANG}/os/${ARCH}/RedHat/RPMS
-UPDDIR= linux/updates/${BASEVERSION}/${LANG}/os/${ARCH}
+STDDIR= linux/${BASEVERSION}/${LANG}/os/${MACHINE_ARCH}/RedHat/RPMS
+UPDDIR= linux/updates/${BASEVERSION}/${LANG}/os/${MACHINE_ARCH}
DBPATH= /var/lib/rpm
RPMFLAGS= --ignoreos --root ${PREFIX} --dbpath ${DBPATH} \
--nodeps --replacepkgs
diff --git a/graphics/linux-f10-sdl_image/Makefile b/graphics/linux-f10-sdl_image/Makefile
index 829cc41..6d7f53e 100644
--- a/graphics/linux-f10-sdl_image/Makefile
+++ b/graphics/linux-f10-sdl_image/Makefile
@@ -11,7 +11,7 @@ PORTVERSION= 1.2.3
CATEGORIES= graphics linux
MASTER_SITES= http://www.libsdl.org/projects/SDL_image/release/
PKGNAMEPREFIX= linux-
-DISTNAME= SDL_image-${PORTVERSION}-1.${ARCH}
+DISTNAME= SDL_image-${PORTVERSION}-1.${MACHINE_ARCH}
EXTRACT_SUFX= .rpm
EXTRACT_ONLY=
diff --git a/graphics/linux-f10-ungif/Makefile b/graphics/linux-f10-ungif/Makefile
index 5dd1c9d..4796167 100644
--- a/graphics/linux-f10-ungif/Makefile
+++ b/graphics/linux-f10-ungif/Makefile
@@ -11,10 +11,10 @@ CATEGORIES= graphics linux
MAINTAINTER= maho@FreeBSD.org
COMMENT= RPM of the ungif lib
-.if (${ARCH} == "i386")
-RPM_SET= libungif-4.1.0-7.${ARCH}.rpm
+.if (${MACHINE_ARCH} == "i386")
+RPM_SET= libungif-4.1.0-7.${MACHINE_ARCH}.rpm
.else
-RPM_SET= libungif-4.1.0-8.${ARCH}.rpm
+RPM_SET= libungif-4.1.0-8.${MACHINE_ARCH}.rpm
.endif
.include "../../x11-toolkits/linux-gtk/Makefile"
diff --git a/graphics/linux-f8-gdk-pixbuf/Makefile b/graphics/linux-f8-gdk-pixbuf/Makefile
index edd6b44..c6226f7 100644
--- a/graphics/linux-f8-gdk-pixbuf/Makefile
+++ b/graphics/linux-f8-gdk-pixbuf/Makefile
@@ -10,9 +10,9 @@ PORTVERSION= 0.22.0.11.3.5
PORTREVISION= 1
CATEGORIES= graphics linux
MASTER_SITES= ${MASTER_SITE_FEDORA_LINUX}
-MASTER_SITE_SUBDIR=fedora/fedora/${BASEVERSION}/${ARCH}/RPMS.updates
+MASTER_SITE_SUBDIR=fedora/fedora/${BASEVERSION}/${MACHINE_ARCH}/RPMS.updates
PKGNAMEPREFIX= linux-
-DISTNAME= ${PORTNAME}-${PORTVERSION:C/^([^\.]+\.[^\.]+\.[^\.]+)\./\1-/}.${ARCH}
+DISTNAME= ${PORTNAME}-${PORTVERSION:C/^([^\.]+\.[^\.]+\.[^\.]+)\./\1-/}.${MACHINE_ARCH}
EXTRACT_SUFX= .rpm
EXTRACT_ONLY=
diff --git a/graphics/linux-f8-imlib/Makefile b/graphics/linux-f8-imlib/Makefile
index 618aba6..771be25 100644
--- a/graphics/linux-f8-imlib/Makefile
+++ b/graphics/linux-f8-imlib/Makefile
@@ -13,6 +13,6 @@ CATEGORIES= graphics linux
MAINTAINER= ports@FreeBSD.org
COMMENT= RPM of imlib
-RPM_SET= imlib-${PORTVERSION}-2.${ARCH}.rpm
+RPM_SET= imlib-${PORTVERSION}-2.${MACHINE_ARCH}.rpm
.include "../../x11-toolkits/linux-gtk/Makefile"
diff --git a/graphics/linux-f8-jpeg/Makefile b/graphics/linux-f8-jpeg/Makefile
index 5e4f086..a178285 100644
--- a/graphics/linux-f8-jpeg/Makefile
+++ b/graphics/linux-f8-jpeg/Makefile
@@ -13,6 +13,6 @@ CATEGORIES= graphics linux
MAINTAINER= freebsd-emulation@FreeBSD.org
COMMENT= RPM of the JPEG lib
-RPM_SET= libjpeg-6b-15.${ARCH}.rpm
+RPM_SET= libjpeg-6b-15.${MACHINE_ARCH}.rpm
.include "../../x11-toolkits/linux-gtk/Makefile"
diff --git a/graphics/linux-f8-libmng/Makefile b/graphics/linux-f8-libmng/Makefile
index 9967515..7dc5f3c 100644
--- a/graphics/linux-f8-libmng/Makefile
+++ b/graphics/linux-f8-libmng/Makefile
@@ -11,7 +11,7 @@ PORTREVISION= 1
CATEGORIES= graphics linux
MASTER_SITES?= ${RPM_MIRRORS:S/__DIR__/${STDDIR}/g}
PKGNAMEPREFIX= linux-
-DISTNAME= libmng-${PORTVERSION}-1.${ARCH}
+DISTNAME= libmng-${PORTVERSION}-1.${MACHINE_ARCH}
EXTRACT_SUFX= .rpm
EXTRACT_ONLY=
@@ -29,8 +29,8 @@ ONLY_FOR_ARCHS= i386
DIST_SUBDIR= rpm
NO_BUILD= yes
NO_FILTER_SHLIBS= yes
-PLIST?= ${PKGDIR}/pkg-plist.${ARCH}
-MD5_FILE?= ${MASTERDIR}/distinfo.${ARCH}
+PLIST?= ${PKGDIR}/pkg-plist.${MACHINE_ARCH}
+MD5_FILE?= ${MASTERDIR}/distinfo.${MACHINE_ARCH}
# Let's avoid hardcoding 'en' as the language.
LANG?= en
@@ -38,8 +38,8 @@ RPM_MIRRORS= \
ftp://ftp.redhat.com/pub/redhat/__DIR__/ \
ftp://ftp.nluug.nl/site/ftp.redhat.com/redhat/__DIR__/ \
ftp://ftp.mirrorservice.org/sites/ftp.redhat.com/pub/redhat/__DIR__/
-STDDIR= linux/${BASEVERSION}/${LANG}/os/${ARCH}/RedHat/RPMS
-UPDDIR= linux/updates/${BASEVERSION}/${LANG}/os/${ARCH}
+STDDIR= linux/${BASEVERSION}/${LANG}/os/${MACHINE_ARCH}/RedHat/RPMS
+UPDDIR= linux/updates/${BASEVERSION}/${LANG}/os/${MACHINE_ARCH}
DBPATH= /var/lib/rpm
RPMFLAGS= --ignoreos --root ${PREFIX} --dbpath ${DBPATH} \
--nodeps --replacepkgs
diff --git a/graphics/linux-f8-sdl_image/Makefile b/graphics/linux-f8-sdl_image/Makefile
index 829cc41..6d7f53e 100644
--- a/graphics/linux-f8-sdl_image/Makefile
+++ b/graphics/linux-f8-sdl_image/Makefile
@@ -11,7 +11,7 @@ PORTVERSION= 1.2.3
CATEGORIES= graphics linux
MASTER_SITES= http://www.libsdl.org/projects/SDL_image/release/
PKGNAMEPREFIX= linux-
-DISTNAME= SDL_image-${PORTVERSION}-1.${ARCH}
+DISTNAME= SDL_image-${PORTVERSION}-1.${MACHINE_ARCH}
EXTRACT_SUFX= .rpm
EXTRACT_ONLY=
diff --git a/graphics/linux-f8-ungif/Makefile b/graphics/linux-f8-ungif/Makefile
index 5dd1c9d..4796167 100644
--- a/graphics/linux-f8-ungif/Makefile
+++ b/graphics/linux-f8-ungif/Makefile
@@ -11,10 +11,10 @@ CATEGORIES= graphics linux
MAINTAINTER= maho@FreeBSD.org
COMMENT= RPM of the ungif lib
-.if (${ARCH} == "i386")
-RPM_SET= libungif-4.1.0-7.${ARCH}.rpm
+.if (${MACHINE_ARCH} == "i386")
+RPM_SET= libungif-4.1.0-7.${MACHINE_ARCH}.rpm
.else
-RPM_SET= libungif-4.1.0-8.${ARCH}.rpm
+RPM_SET= libungif-4.1.0-8.${MACHINE_ARCH}.rpm
.endif
.include "../../x11-toolkits/linux-gtk/Makefile"
diff --git a/graphics/linux-gdk-pixbuf/Makefile b/graphics/linux-gdk-pixbuf/Makefile
index edd6b44..c6226f7 100644
--- a/graphics/linux-gdk-pixbuf/Makefile
+++ b/graphics/linux-gdk-pixbuf/Makefile
@@ -10,9 +10,9 @@ PORTVERSION= 0.22.0.11.3.5
PORTREVISION= 1
CATEGORIES= graphics linux
MASTER_SITES= ${MASTER_SITE_FEDORA_LINUX}
-MASTER_SITE_SUBDIR=fedora/fedora/${BASEVERSION}/${ARCH}/RPMS.updates
+MASTER_SITE_SUBDIR=fedora/fedora/${BASEVERSION}/${MACHINE_ARCH}/RPMS.updates
PKGNAMEPREFIX= linux-
-DISTNAME= ${PORTNAME}-${PORTVERSION:C/^([^\.]+\.[^\.]+\.[^\.]+)\./\1-/}.${ARCH}
+DISTNAME= ${PORTNAME}-${PORTVERSION:C/^([^\.]+\.[^\.]+\.[^\.]+)\./\1-/}.${MACHINE_ARCH}
EXTRACT_SUFX= .rpm
EXTRACT_ONLY=
diff --git a/graphics/linux-imlib/Makefile b/graphics/linux-imlib/Makefile
index 618aba6..771be25 100644
--- a/graphics/linux-imlib/Makefile
+++ b/graphics/linux-imlib/Makefile
@@ -13,6 +13,6 @@ CATEGORIES= graphics linux
MAINTAINER= ports@FreeBSD.org
COMMENT= RPM of imlib
-RPM_SET= imlib-${PORTVERSION}-2.${ARCH}.rpm
+RPM_SET= imlib-${PORTVERSION}-2.${MACHINE_ARCH}.rpm
.include "../../x11-toolkits/linux-gtk/Makefile"
diff --git a/graphics/linux-jpeg/Makefile b/graphics/linux-jpeg/Makefile
index 5e4f086..a178285 100644
--- a/graphics/linux-jpeg/Makefile
+++ b/graphics/linux-jpeg/Makefile
@@ -13,6 +13,6 @@ CATEGORIES= graphics linux
MAINTAINER= freebsd-emulation@FreeBSD.org
COMMENT= RPM of the JPEG lib
-RPM_SET= libjpeg-6b-15.${ARCH}.rpm
+RPM_SET= libjpeg-6b-15.${MACHINE_ARCH}.rpm
.include "../../x11-toolkits/linux-gtk/Makefile"
diff --git a/graphics/linux-libmng/Makefile b/graphics/linux-libmng/Makefile
index 9967515..7dc5f3c 100644
--- a/graphics/linux-libmng/Makefile
+++ b/graphics/linux-libmng/Makefile
@@ -11,7 +11,7 @@ PORTREVISION= 1
CATEGORIES= graphics linux
MASTER_SITES?= ${RPM_MIRRORS:S/__DIR__/${STDDIR}/g}
PKGNAMEPREFIX= linux-
-DISTNAME= libmng-${PORTVERSION}-1.${ARCH}
+DISTNAME= libmng-${PORTVERSION}-1.${MACHINE_ARCH}
EXTRACT_SUFX= .rpm
EXTRACT_ONLY=
@@ -29,8 +29,8 @@ ONLY_FOR_ARCHS= i386
DIST_SUBDIR= rpm
NO_BUILD= yes
NO_FILTER_SHLIBS= yes
-PLIST?= ${PKGDIR}/pkg-plist.${ARCH}
-MD5_FILE?= ${MASTERDIR}/distinfo.${ARCH}
+PLIST?= ${PKGDIR}/pkg-plist.${MACHINE_ARCH}
+MD5_FILE?= ${MASTERDIR}/distinfo.${MACHINE_ARCH}
# Let's avoid hardcoding 'en' as the language.
LANG?= en
@@ -38,8 +38,8 @@ RPM_MIRRORS= \
ftp://ftp.redhat.com/pub/redhat/__DIR__/ \
ftp://ftp.nluug.nl/site/ftp.redhat.com/redhat/__DIR__/ \
ftp://ftp.mirrorservice.org/sites/ftp.redhat.com/pub/redhat/__DIR__/
-STDDIR= linux/${BASEVERSION}/${LANG}/os/${ARCH}/RedHat/RPMS
-UPDDIR= linux/updates/${BASEVERSION}/${LANG}/os/${ARCH}
+STDDIR= linux/${BASEVERSION}/${LANG}/os/${MACHINE_ARCH}/RedHat/RPMS
+UPDDIR= linux/updates/${BASEVERSION}/${LANG}/os/${MACHINE_ARCH}
DBPATH= /var/lib/rpm
RPMFLAGS= --ignoreos --root ${PREFIX} --dbpath ${DBPATH} \
--nodeps --replacepkgs
diff --git a/graphics/linux-sdl_image/Makefile b/graphics/linux-sdl_image/Makefile
index 829cc41..6d7f53e 100644
--- a/graphics/linux-sdl_image/Makefile
+++ b/graphics/linux-sdl_image/Makefile
@@ -11,7 +11,7 @@ PORTVERSION= 1.2.3
CATEGORIES= graphics linux
MASTER_SITES= http://www.libsdl.org/projects/SDL_image/release/
PKGNAMEPREFIX= linux-
-DISTNAME= SDL_image-${PORTVERSION}-1.${ARCH}
+DISTNAME= SDL_image-${PORTVERSION}-1.${MACHINE_ARCH}
EXTRACT_SUFX= .rpm
EXTRACT_ONLY=
diff --git a/graphics/linux-ungif/Makefile b/graphics/linux-ungif/Makefile
index 5dd1c9d..4796167 100644
--- a/graphics/linux-ungif/Makefile
+++ b/graphics/linux-ungif/Makefile
@@ -11,10 +11,10 @@ CATEGORIES= graphics linux
MAINTAINTER= maho@FreeBSD.org
COMMENT= RPM of the ungif lib
-.if (${ARCH} == "i386")
-RPM_SET= libungif-4.1.0-7.${ARCH}.rpm
+.if (${MACHINE_ARCH} == "i386")
+RPM_SET= libungif-4.1.0-7.${MACHINE_ARCH}.rpm
.else
-RPM_SET= libungif-4.1.0-8.${ARCH}.rpm
+RPM_SET= libungif-4.1.0-8.${MACHINE_ARCH}.rpm
.endif
.include "../../x11-toolkits/linux-gtk/Makefile"
diff --git a/graphics/megapov/Makefile b/graphics/megapov/Makefile
index 32778a5..5e906d7 100644
--- a/graphics/megapov/Makefile
+++ b/graphics/megapov/Makefile
@@ -31,7 +31,7 @@ ALL_TARGET= # empty
.if defined(WITH_OPTIMIZED_FLAGS)
CFLAGS+= -O3 -ffast-math -finline-functions -fomit-frame-pointer -funroll-loops -fexpensive-optimizations -malign-double -Wunused-variable
CXXFLAGS+= -O3 -ffast-math -finline-functions -fomit-frame-pointer -funroll-loops -fexpensive-optimizations -malign-double -Wunused-variable -Wno-multichar
-.if (${ARCH} == "i386")
+.if (${MACHINE_ARCH} == "i386")
CFLAGS+= -mcpu=i686 -march=i686 -mfancy-math-387
CXXFLAGS+= -mcpu=i686 -march=i686 -mfancy-math-387
.endif # i386
diff --git a/graphics/opendx/Makefile b/graphics/opendx/Makefile
index 5e98157..1736a1d 100644
--- a/graphics/opendx/Makefile
+++ b/graphics/opendx/Makefile
@@ -28,7 +28,7 @@ USE_GL= yes
USE_MOTIF= yes
USE_XLIB= yes
GNU_CONFIGURE= yes
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ARGS= --without-javadx
CFLAGS+= ${PTHREAD_CFLAGS}
CONFIGURE_ENV= ARCH="${OPSYS:L}" \
diff --git a/graphics/pixie/Makefile b/graphics/pixie/Makefile
index a8b221d..c3159a5 100644
--- a/graphics/pixie/Makefile
+++ b/graphics/pixie/Makefile
@@ -25,7 +25,7 @@ USE_X_PREFIX= yes
WANT_AUTOMAKE_VER= 15
USE_AUTOCONF_VER= 213
USE_LIBTOOL_VER= 13
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ENV= CFLAGS="${CFLAGS} -O -fPIC -I${LOCALBASE}/include -I${X11BASE}/include" \
CXXFLAGS="${CXXFLAGS} -O -fPIC -I${LOCALBASE}/include -I${X11BASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib -L${X11BASE}/lib" \
diff --git a/graphics/povray/Makefile b/graphics/povray/Makefile
index 5d6b84e..2f6adf5 100644
--- a/graphics/povray/Makefile
+++ b/graphics/povray/Makefile
@@ -25,7 +25,7 @@ BUILD_DEPENDS= ${LOCALBASE}/intel_cc_80/bin/icc:${PORTSDIR}/lang/icc
LIB_DEPENDS= png.5:${PORTSDIR}/graphics/png \
tiff:${PORTSDIR}/graphics/tiff \
jpeg:${PORTSDIR}/graphics/jpeg
-.if (${ARCH} == "i386")
+.if (${MACHINE_ARCH} == "i386")
LIB_DEPENDS+= vga:${PORTSDIR}/graphics/svgalib
.endif
@@ -39,7 +39,7 @@ LATEST_LINK= ${PORTNAME}36
.if defined(WITH_OPTIMIZED_FLAGS)
CFLAGS+= -O3 -ffast-math -finline-functions -fomit-frame-pointer -funroll-loops -fexpensive-optimizations
CXXFLAGS+= -O3 -ffast-math -finline-functions -fomit-frame-pointer -funroll-loops -fexpensive-optimizations -Wno-multichar
-.if (${ARCH} == "i386" && !${ARCH} == "amd64" )
+.if (${MACHINE_ARCH} == "i386" && !${MACHINE_ARCH} == "amd64" )
CFLAGS+= -mfancy-math-387 -mpreferred-stack-boundary=3 -malign-double
CXXFLAGS+= -mfancy-math-387 -mpreferred-stack-boundary=3 -malign-double
.endif # i386
@@ -52,7 +52,7 @@ CFLAGS= -O3 -tpp7 -axN -Vaxlib
CXXFLAGS= -O3 -tpp7 -axN -Vaxlib
.endif
-CONFIGURE_TARGET= --target=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --target=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ARGS= --x-includes="${X11BASE}/include" --includedir=${LOCALBASE} \
CXXFLAGS="${CXXFLAGS} -L${LOCALBASE}/lib -I${LOCALBASE}/include" \
CFLAGS="${CFLAGS} -L${LOCALBASE}/lib -I${LOCALBASE}/include" \
diff --git a/graphics/povray36/Makefile b/graphics/povray36/Makefile
index 5d6b84e..2f6adf5 100644
--- a/graphics/povray36/Makefile
+++ b/graphics/povray36/Makefile
@@ -25,7 +25,7 @@ BUILD_DEPENDS= ${LOCALBASE}/intel_cc_80/bin/icc:${PORTSDIR}/lang/icc
LIB_DEPENDS= png.5:${PORTSDIR}/graphics/png \
tiff:${PORTSDIR}/graphics/tiff \
jpeg:${PORTSDIR}/graphics/jpeg
-.if (${ARCH} == "i386")
+.if (${MACHINE_ARCH} == "i386")
LIB_DEPENDS+= vga:${PORTSDIR}/graphics/svgalib
.endif
@@ -39,7 +39,7 @@ LATEST_LINK= ${PORTNAME}36
.if defined(WITH_OPTIMIZED_FLAGS)
CFLAGS+= -O3 -ffast-math -finline-functions -fomit-frame-pointer -funroll-loops -fexpensive-optimizations
CXXFLAGS+= -O3 -ffast-math -finline-functions -fomit-frame-pointer -funroll-loops -fexpensive-optimizations -Wno-multichar
-.if (${ARCH} == "i386" && !${ARCH} == "amd64" )
+.if (${MACHINE_ARCH} == "i386" && !${MACHINE_ARCH} == "amd64" )
CFLAGS+= -mfancy-math-387 -mpreferred-stack-boundary=3 -malign-double
CXXFLAGS+= -mfancy-math-387 -mpreferred-stack-boundary=3 -malign-double
.endif # i386
@@ -52,7 +52,7 @@ CFLAGS= -O3 -tpp7 -axN -Vaxlib
CXXFLAGS= -O3 -tpp7 -axN -Vaxlib
.endif
-CONFIGURE_TARGET= --target=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --target=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ARGS= --x-includes="${X11BASE}/include" --includedir=${LOCALBASE} \
CXXFLAGS="${CXXFLAGS} -L${LOCALBASE}/lib -I${LOCALBASE}/include" \
CFLAGS="${CFLAGS} -L${LOCALBASE}/lib -I${LOCALBASE}/include" \
diff --git a/graphics/povray37/Makefile b/graphics/povray37/Makefile
index 5d6b84e..2f6adf5 100644
--- a/graphics/povray37/Makefile
+++ b/graphics/povray37/Makefile
@@ -25,7 +25,7 @@ BUILD_DEPENDS= ${LOCALBASE}/intel_cc_80/bin/icc:${PORTSDIR}/lang/icc
LIB_DEPENDS= png.5:${PORTSDIR}/graphics/png \
tiff:${PORTSDIR}/graphics/tiff \
jpeg:${PORTSDIR}/graphics/jpeg
-.if (${ARCH} == "i386")
+.if (${MACHINE_ARCH} == "i386")
LIB_DEPENDS+= vga:${PORTSDIR}/graphics/svgalib
.endif
@@ -39,7 +39,7 @@ LATEST_LINK= ${PORTNAME}36
.if defined(WITH_OPTIMIZED_FLAGS)
CFLAGS+= -O3 -ffast-math -finline-functions -fomit-frame-pointer -funroll-loops -fexpensive-optimizations
CXXFLAGS+= -O3 -ffast-math -finline-functions -fomit-frame-pointer -funroll-loops -fexpensive-optimizations -Wno-multichar
-.if (${ARCH} == "i386" && !${ARCH} == "amd64" )
+.if (${MACHINE_ARCH} == "i386" && !${MACHINE_ARCH} == "amd64" )
CFLAGS+= -mfancy-math-387 -mpreferred-stack-boundary=3 -malign-double
CXXFLAGS+= -mfancy-math-387 -mpreferred-stack-boundary=3 -malign-double
.endif # i386
@@ -52,7 +52,7 @@ CFLAGS= -O3 -tpp7 -axN -Vaxlib
CXXFLAGS= -O3 -tpp7 -axN -Vaxlib
.endif
-CONFIGURE_TARGET= --target=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --target=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ARGS= --x-includes="${X11BASE}/include" --includedir=${LOCALBASE} \
CXXFLAGS="${CXXFLAGS} -L${LOCALBASE}/lib -I${LOCALBASE}/include" \
CFLAGS="${CFLAGS} -L${LOCALBASE}/lib -I${LOCALBASE}/include" \
diff --git a/graphics/qglviewer/Makefile b/graphics/qglviewer/Makefile
index 87b661f..4764c07 100644
--- a/graphics/qglviewer/Makefile
+++ b/graphics/qglviewer/Makefile
@@ -19,7 +19,7 @@ USE_QT_VER= 3
USE_REINPLACE= yes
USE_GMAKE= yes
USE_INC_LIBTOOL_VER=13
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ENV= QTDIR="${X11BASE}"
INSTALLS_SHLIB= yes
diff --git a/graphics/qtutils/Makefile b/graphics/qtutils/Makefile
index c22366d..16a619d 100644
--- a/graphics/qtutils/Makefile
+++ b/graphics/qtutils/Makefile
@@ -22,7 +22,7 @@ USE_GNOME= glib12
USE_GETOPT_LONG= yes
USE_REINPLACE= yes
USE_LIBTOOL_VER=13
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ENV= CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}"
MAN1= qtconv.1 qtsg.1 qtsplit.1
diff --git a/graphics/quesa/Makefile b/graphics/quesa/Makefile
index 42501f7f6..ca7ccdd 100644
--- a/graphics/quesa/Makefile
+++ b/graphics/quesa/Makefile
@@ -21,7 +21,7 @@ COMMENT= High level 3D graphics library compatible with Apple's QuickDraw(TM)
USE_REINPLACE= yes
USE_LIBTOOL_VER= 15
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
USE_GL= yes
USE_X_PREFIX= yes
.ifdef (WITH_QUESA_EXAMPLES)
diff --git a/graphics/sam2p/Makefile b/graphics/sam2p/Makefile
index d9d427e..4db4810 100644
--- a/graphics/sam2p/Makefile
+++ b/graphics/sam2p/Makefile
@@ -28,7 +28,7 @@ PLIST_FILES= bin/sam2p
USE_PERL5_BUILD= yes
USE_GMAKE= yes
GNU_CONFIGURE= yes
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
ALL_TARGET= ${PORTNAME}
.include <bsd.port.pre.mk>
diff --git a/graphics/scrot/Makefile b/graphics/scrot/Makefile
index c4cb592..8e3bcfc 100644
--- a/graphics/scrot/Makefile
+++ b/graphics/scrot/Makefile
@@ -17,7 +17,7 @@ LIB_DEPENDS= giblib.1:${PORTSDIR}/graphics/giblib
USE_X_PREFIX= yes
GNU_CONFIGURE= yes
-CONFIGURE_TARGET= --target=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --target=${MACHINE_ARCH}-portbld-freebsd${OSREL}
.if defined(NOPORTDOCS)
MAKE_ENV= NO_DOC=yes
diff --git a/graphics/sdl_gfx/Makefile b/graphics/sdl_gfx/Makefile
index 8e0506d..9370232 100644
--- a/graphics/sdl_gfx/Makefile
+++ b/graphics/sdl_gfx/Makefile
@@ -20,7 +20,7 @@ USE_SDL= sdl
USE_REINPLACE= yes
USE_GMAKE= yes
USE_INC_LIBTOOL_VER= 13
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ARGS= --includedir=${PREFIX}/include/SDL11 \
--disable-mmx
MAKE_ARGS= ACLOCAL="${TRUE}" AUTOCONF="${TRUE}" AUTOMAKE="${TRUE}" \
diff --git a/graphics/sdl_image/Makefile b/graphics/sdl_image/Makefile
index 9af5766..490813e 100644
--- a/graphics/sdl_image/Makefile
+++ b/graphics/sdl_image/Makefile
@@ -22,7 +22,7 @@ USE_SDL= sdl
USE_GMAKE= yes
USE_LIBTOOL_VER=15
LIBTOOLFLAGS= --disable-ltlibs --release-ignore
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include -I${X11BASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib -L${X11BASE}/lib -lm"
CONFIGURE_ARGS= --enable-tif --enable-xcf
diff --git a/graphics/sdl_ttf/Makefile b/graphics/sdl_ttf/Makefile
index a424637..5916067 100644
--- a/graphics/sdl_ttf/Makefile
+++ b/graphics/sdl_ttf/Makefile
@@ -22,7 +22,7 @@ USE_REINPLACE= yes
USE_GMAKE= yes
USE_LIBTOOL_VER=15
LIBTOOLFLAGS= --disable-ltlibs --release-ignore
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib"
MAKE_ARGS= LT_CURRENT=3 LT_REVISION=0 LT_AGE=0
diff --git a/graphics/simage/Makefile b/graphics/simage/Makefile
index dbe18f2..92920dc 100644
--- a/graphics/simage/Makefile
+++ b/graphics/simage/Makefile
@@ -21,7 +21,7 @@ LIB_DEPENDS= sndfile.1:${PORTSDIR}/audio/libsndfile \
USE_XLIB= yes
USE_LIBTOOL_VER= 15
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib"
CONFIGURE_ARGS= --with-mpeg2enc
diff --git a/graphics/swftools/Makefile b/graphics/swftools/Makefile
index ab31627..874dd0d 100644
--- a/graphics/swftools/Makefile
+++ b/graphics/swftools/Makefile
@@ -24,7 +24,7 @@ USE_REINPLACE= yes
USE_BISON= yes
USE_GMAKE= yes
GNU_CONFIGURE= yes
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ENV= CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}"
MAN1= font2swf.1 gif2swf.1 jpeg2swf.1 pdf2swf.1 png2swf.1 \
diff --git a/graphics/tif22pnm/Makefile b/graphics/tif22pnm/Makefile
index 309c822..4ee62f0 100644
--- a/graphics/tif22pnm/Makefile
+++ b/graphics/tif22pnm/Makefile
@@ -20,7 +20,7 @@ LIB_DEPENDS= png.5:${PORTSDIR}/graphics/png \
USE_REINPLACE= yes
GNU_CONFIGURE= yes
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ARGS= --with-libtiff-ldir=${LOCALBASE}/lib \
--with-libtiff-idir=${LOCALBASE}/include
diff --git a/graphics/tulip/Makefile b/graphics/tulip/Makefile
index 304aa8d..75cf7e4 100644
--- a/graphics/tulip/Makefile
+++ b/graphics/tulip/Makefile
@@ -25,7 +25,7 @@ USE_REINPLACE= yes
USE_GETOPT_LONG= yes
USE_GMAKE= yes
GNU_CONFIGURE= yes
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ENV= MOC="${MOC}" CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}"
CONFIGURE_ARGS= --with-qt-includes=${QT_PREFIX}/include \
--with-qt-libraries=${QT_PREFIX}/lib \
diff --git a/graphics/white_dune/Makefile b/graphics/white_dune/Makefile
index 8159d5e..f99b66d 100644
--- a/graphics/white_dune/Makefile
+++ b/graphics/white_dune/Makefile
@@ -24,7 +24,7 @@ USE_MOTIF= yes
USE_GL= yes
USE_SDL= sdl
GNU_CONFIGURE= yes
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ENV= CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}" \
YACC="/usr/bin/byacc"
CONFIGURE_ARGS= --with-optimization \
diff --git a/graphics/xmedcon/Makefile b/graphics/xmedcon/Makefile
index 696afe8..c818c3c 100644
--- a/graphics/xmedcon/Makefile
+++ b/graphics/xmedcon/Makefile
@@ -16,7 +16,7 @@ COMMENT= A medical image conversion utility and library
USE_LIBTOOL_VER=15
INSTALLS_SHLIB= yes
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
USE_SUBMAKE= yes
OPTIONS= X11 "With X11" on \
diff --git a/graphics/xpdf/Makefile b/graphics/xpdf/Makefile
index a908fe7..9ed2f32 100644
--- a/graphics/xpdf/Makefile
+++ b/graphics/xpdf/Makefile
@@ -13,20 +13,6 @@ MASTER_SITES= ftp://ftp.foolabs.com/pub/xpdf/ \
${MASTER_SITE_TEX_CTAN}
MASTER_SITE_SUBDIR= support/xpdf
-.if defined(WANT_ANTIKICK)
-PATCH_SITES= http://www.cs.cmu.edu/~dst/Adobe/Gallery/XPDF/anti-kick/
-PATCHFILES= anti.diff
-#.else
-#PATCH_SITES= http://vzzbx.xs4all.nl/files/ \
-# http://www.cs.cmu.edu/~dst/Adobe/Gallery/
-#PATCHFILES= xpdf-ro-remove.patch
-.endif
-PATCH_DIST_STRIP= -p1
-PATCH_SITES= ftp://ftp.foolabs.com/pub/xpdf/ \
- ${MASTER_SITE_TEX_CTAN}
-PATCH_SITE_SUBDIR= support/xpdf
-PATCHFILES= xpdf-2.01-patch1
-
MAINTAINER= nork@FreeBSD.org
COMMENT= Display PDF files, and convert them to other formats
@@ -40,7 +26,7 @@ USE_MOTIF= yes
USE_GMAKE= yes
USE_AUTOCONF_VER= 259
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib"
CONFIGURE_ARGS= --with-gzip --enable-opi --with-x \
@@ -51,9 +37,6 @@ CONFIGURE_ARGS= --with-gzip --enable-opi --with-x \
.if defined(A4)
CONFIGURE_ARGS+= --enable-a4-paper
.endif
-.if defined(WANT_ANTIKICK)
-CONFIGURE_ARGS+= --enable-antikick
-.endif
MAN1= pdffonts.1 \
pdfimages.1 \
@@ -73,7 +56,3 @@ post-install:
.endif
.include <bsd.port.mk>
-
-.if ${ARCH} == "amd64"
-CFLAGS+= -static
-.endif
diff --git a/graphics/zimg/Makefile b/graphics/zimg/Makefile
index ba70cef..fabe723 100644
--- a/graphics/zimg/Makefile
+++ b/graphics/zimg/Makefile
@@ -19,7 +19,7 @@ LIB_DEPENDS= gd.4:${PORTSDIR}/graphics/gd
USE_GETOPT_LONG= yes
USE_REINPLACE= yes
GNU_CONFIGURE= yes
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ARGS= --with-dynaload-cc="${CC}" \
--with-dynaload-cflags="${CFLAGS} -shared" \
--with-gd-includes="${LOCALBASE}/include" \
diff --git a/irc/bitchx/Makefile b/irc/bitchx/Makefile
index a5879a5..566a6d1 100644
--- a/irc/bitchx/Makefile
+++ b/irc/bitchx/Makefile
@@ -28,7 +28,7 @@ CONFIGURE_ARGS+=--exec-prefix="${PREFIX}/share" \
--bindir="${PREFIX}/bin" \
--datadir="${PREFIX}/share" \
--libdir="${PREFIX}/share" \
- --build=${ARCH}-portbld-freebsd${OSREL}
+ --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
LIBS="-L${LOCALBASE}/lib"
diff --git a/irc/bopm/Makefile b/irc/bopm/Makefile
index 7c58a62..d94f881 100644
--- a/irc/bopm/Makefile
+++ b/irc/bopm/Makefile
@@ -16,7 +16,7 @@ COMMENT= Open proxy monitor and blocker, designed for use with ircds
USE_REINPLACE= yes
GNU_CONFIGURE= yes
-CONFIGURE_TARGET=--build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET=--build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ARGS= --sysconfdir=${PREFIX}/etc
INSTALLS_SHLIB= yes
diff --git a/irc/eggdrop/Makefile b/irc/eggdrop/Makefile
index 384a5ff..863f753 100644
--- a/irc/eggdrop/Makefile
+++ b/irc/eggdrop/Makefile
@@ -19,7 +19,7 @@ MAINTAINER= q@uni.de
COMMENT= The most popular open source Internet Relay Chat bot
USE_BZIP2= yes
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
.if !defined(WITHOUT_TCL)
LIB_DEPENDS+= tcl84.1:${PORTSDIR}/lang/tcl84
diff --git a/irc/irc/Makefile b/irc/irc/Makefile
index 1138cb5..2f00bb1b 100644
--- a/irc/irc/Makefile
+++ b/irc/irc/Makefile
@@ -47,10 +47,10 @@ pre-build:
@${SED} -e "s;%%PREFIX%%;${PREFIX};g" ${FILESDIR}/ircd.sh > ${WRKDIR}/ircd.sh
do-build:
- @(cd ${WRKSRC}/${ARCH}-unknown-freebsd${OSREL}; ${SETENV} ${MAKE_ENV} ${MAKE} ${MAKE_FLAGS} ${MAKEFILE} ${MAKE_ARGS} ${ALL_TARGET})
+ @(cd ${WRKSRC}/${MACHINE_ARCH}-unknown-freebsd${OSREL}; ${SETENV} ${MAKE_ENV} ${MAKE} ${MAKE_FLAGS} ${MAKEFILE} ${MAKE_ARGS} ${ALL_TARGET})
do-install:
- @(cd ${WRKSRC}/${ARCH}-unknown-freebsd${OSREL} && ${SETENV} ${MAKE_ENV} ${MAKE} ${MAKE_FLAGS} ${MAKEFILE} ${MAKE_ARGS} ${INSTALL_TARGET})
+ @(cd ${WRKSRC}/${MACHINE_ARCH}-unknown-freebsd${OSREL} && ${SETENV} ${MAKE_ENV} ${MAKE} ${MAKE_FLAGS} ${MAKEFILE} ${MAKE_ARGS} ${INSTALL_TARGET})
post-install:
@if [ ! -f ${STARTUP_SCRIPT} ]; then \
diff --git a/irc/irssi-devel/Makefile b/irc/irssi-devel/Makefile
index 0903c00..710caba 100644
--- a/irc/irssi-devel/Makefile
+++ b/irc/irssi-devel/Makefile
@@ -18,7 +18,7 @@ USE_BZIP2= yes
GNU_CONFIGURE= yes
WANT_GNOME= yes
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
MAN1= irssi.1
diff --git a/irc/irssi/Makefile b/irc/irssi/Makefile
index 0903c00..710caba 100644
--- a/irc/irssi/Makefile
+++ b/irc/irssi/Makefile
@@ -18,7 +18,7 @@ USE_BZIP2= yes
GNU_CONFIGURE= yes
WANT_GNOME= yes
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
MAN1= irssi.1
diff --git a/irc/miau/Makefile b/irc/miau/Makefile
index ad9bbe4..2540f51 100644
--- a/irc/miau/Makefile
+++ b/irc/miau/Makefile
@@ -33,7 +33,7 @@ CONFIGURE_ARGS= --enable-dccbounce \
--enable-empty-awaymsg \
--enable-dumpstatus \
--disable-dependency-tracking
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ENV= CPPFLAGS="${CPPFLAGS}" \
LDFLAGS="${LDFLAGS}" \
LIBS="${LIBS}"
diff --git a/irc/ngircd/Makefile b/irc/ngircd/Makefile
index c4c3a65..244b14c 100644
--- a/irc/ngircd/Makefile
+++ b/irc/ngircd/Makefile
@@ -15,7 +15,7 @@ MAINTAINER= krion@FreeBSD.org
COMMENT= Free open source daemon for Internet Relay Chat (IRC)
GNU_CONFIGURE= yes
-CONFIGURE_TARGET=--build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET=--build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
LIBS="-L${LOCALBASE}/lib"
diff --git a/irc/quirc/Makefile b/irc/quirc/Makefile
index bb67585..9a3def0 100644
--- a/irc/quirc/Makefile
+++ b/irc/quirc/Makefile
@@ -17,7 +17,7 @@ LIB_DEPENDS= tk84.1:${PORTSDIR}/x11-toolkits/tk84
USE_XLIB= yes
GNU_CONFIGURE= yes
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ARGS= --with-wish=${LOCALBASE}/bin/wish8.4 \
--with-tcl-include-dir=${LOCALBASE}/include/tcl8.4 \
--with-tk-include-dir=${LOCALBASE}/include/tk8.4 \
diff --git a/irc/srvx/Makefile b/irc/srvx/Makefile
index 4f3782c..3293b97 100644
--- a/irc/srvx/Makefile
+++ b/irc/srvx/Makefile
@@ -15,7 +15,7 @@ MAINTAINER= weaseal@users.sourceforge.net
COMMENT= Srvx IRC services
GNU_CONFIGURE= yes
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
.if defined(WITH_DEBUG)
CONFIGURE_ARGS+= --enable-debug
diff --git a/irc/undernet-ircu/Makefile b/irc/undernet-ircu/Makefile
index 8d10283..73d4e02 100644
--- a/irc/undernet-ircu/Makefile
+++ b/irc/undernet-ircu/Makefile
@@ -17,7 +17,7 @@ COMMENT= Undernet IRCU irc daemon
CONFLICTS= ircd-hybrid*
GNU_CONFIGURE= yes
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ARGS= --with-dpath=${PREFIX}/etc --with-symlink=no
PLIST_FILES= bin/chkconf bin/ircd etc/ircd.conf.example
diff --git a/irc/xaric/Makefile b/irc/xaric/Makefile
index 4dcd126..7574701 100644
--- a/irc/xaric/Makefile
+++ b/irc/xaric/Makefile
@@ -16,7 +16,7 @@ COMMENT= IRC Client similer to BitchX or ircII
USE_GMAKE= yes
GNU_CONFIGURE= yes
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
MAN1= xaric.1
diff --git a/japanese/bookview/Makefile b/japanese/bookview/Makefile
index 4d4f70b..8038767 100644
--- a/japanese/bookview/Makefile
+++ b/japanese/bookview/Makefile
@@ -17,7 +17,7 @@ COMMENT= NDTP client written in Tcl/Tk
RUN_DEPENDS= wish8.4:${PORTSDIR}/x11-toolkits/tk84
GNU_CONFIGURE= yes
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ENV= WISH=${LOCALBASE}/bin/wish8.4
.include <bsd.port.mk>
diff --git a/japanese/eb/Makefile b/japanese/eb/Makefile
index c2de232..ad75d36 100644
--- a/japanese/eb/Makefile
+++ b/japanese/eb/Makefile
@@ -61,7 +61,7 @@ USE_GETTEXT= yes
USE_PERL5= yes
USE_LIBTOOL_VER= 15
INSTALLS_SHLIB= yes
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ARGS= --enable-nls \
--with-gettext-includes=${LOCALBASE}/include \
--with-gettext-libraries=${LOCALBASE}/lib \
diff --git a/japanese/eb3/Makefile b/japanese/eb3/Makefile
index 3f9bb04..526ba5a 100644
--- a/japanese/eb3/Makefile
+++ b/japanese/eb3/Makefile
@@ -63,7 +63,7 @@ USE_GETTEXT= yes
USE_PERL5= yes
USE_INC_LIBTOOL_VER=13
INSTALLS_SHLIB= yes
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ARGS= --enable-nls \
--with-gettext-includes=${LOCALBASE}/include \
--with-gettext-libraries=${LOCALBASE}/lib \
diff --git a/japanese/eblook/Makefile b/japanese/eblook/Makefile
index 1232d00..c1a942e 100644
--- a/japanese/eblook/Makefile
+++ b/japanese/eblook/Makefile
@@ -18,7 +18,7 @@ COMMENT= Interactive EB interface command for seraching words in electoric dicti
LIB_DEPENDS= eb.9:${PORTSDIR}/japanese/eb
GNU_CONFIGURE= yes
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ARGS= --with-eb-includes=${PREFIX}/include \
--with-eb-libraries=${PREFIX}/lib
diff --git a/japanese/ebnetd/Makefile b/japanese/ebnetd/Makefile
index 1dbcb78..a2987a5 100644
--- a/japanese/ebnetd/Makefile
+++ b/japanese/ebnetd/Makefile
@@ -18,7 +18,7 @@ COMMENT= Servers for accessing CD-ROM books via TCP/IP
LIB_DEPENDS= eb.9:${PORTSDIR}/japanese/eb
GNU_CONFIGURE= yes
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ARGS= --localstatedir=${RUNDIR} --with-logdir=${LOGDIR}
# Local variables
diff --git a/japanese/ebview/Makefile b/japanese/ebview/Makefile
index a35c9ff..6568fee 100644
--- a/japanese/ebview/Makefile
+++ b/japanese/ebview/Makefile
@@ -23,7 +23,7 @@ USE_GETOPT_LONG= yes
USE_GNOME= imlib
USE_GMAKE= yes
USE_AUTOCONF_VER= 253
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ENV= CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}"
MAKE_ARGS= ACLOCAL="${TRUE}" AUTOCONF="${TRUE}" AUTOMAKE="${TRUE}" \
AUTOHEADER="${TRUE}"
diff --git a/japanese/emacs-emcws/Makefile b/japanese/emacs-emcws/Makefile
index b87c05e..fba2a20 100644
--- a/japanese/emacs-emcws/Makefile
+++ b/japanese/emacs-emcws/Makefile
@@ -42,7 +42,7 @@ WITH_FREEWNN?= NO
WITH_CANNA?= YES
WITH_SJ3?= NO
-CONFIGURE_TARGET= ${ARCH}--freebsd
+CONFIGURE_TARGET= ${MACHINE_ARCH}--freebsd
.if !defined(NO_X11)
CONFIGURE_ARGS= --with-x-toolkit --with-pop
diff --git a/japanese/emacs20-dl-canna/Makefile b/japanese/emacs20-dl-canna/Makefile
index a4e2f47..640a83a 100644
--- a/japanese/emacs20-dl-canna/Makefile
+++ b/japanese/emacs20-dl-canna/Makefile
@@ -29,7 +29,7 @@ CONFIGURE_ARGS= --with-canna-includes=${PREFIX}/include \
--with-canna-libraries=${PREFIX}/lib \
--with-emacs-srcdir=${EMACSDL_SRCDIR}
CONFIGURE_ENV= EMACS="emacs-dl-${EMACS_VER}"
-PLIST_SUB= EMACS_VER=${EMACS_VER} EMACS_ARCH=${ARCH}--freebsd \
+PLIST_SUB= EMACS_VER=${EMACS_VER} EMACS_ARCH=${MACHINE_ARCH}--freebsd \
DLCANNA_VER=${DLCANNA_VER} LISPDIR=${LISPDIR} DOCDIR=${DOCDIR}
# ports variables
diff --git a/japanese/emacs20-dl-wnn6/Makefile b/japanese/emacs20-dl-wnn6/Makefile
index 01d59ba..297bf2d 100644
--- a/japanese/emacs20-dl-wnn6/Makefile
+++ b/japanese/emacs20-dl-wnn6/Makefile
@@ -28,7 +28,7 @@ CONFIGURE_ARGS= --with-wnn6 \
--with-wnn-libraries=${PREFIX}/lib \
--with-emacs-src=${EMACSDL_SRCDIR}
CONFIGURE_ENV= EMACS=${PREFIX}/bin/emacs-dl-${EMACS_VER}
-PLIST_SUB= EMACS_VER=${EMACS_VER} EMACS_ARCH=${ARCH}--freebsd \
+PLIST_SUB= EMACS_VER=${EMACS_VER} EMACS_ARCH=${MACHINE_ARCH}--freebsd \
DOCDIR=${DOCDIR}
DOCDIR= share/doc/emacs20-dl-wnn6
diff --git a/japanese/emacs20-emcws/Makefile b/japanese/emacs20-emcws/Makefile
index 86f8d87..fbe86e2 100644
--- a/japanese/emacs20-emcws/Makefile
+++ b/japanese/emacs20-emcws/Makefile
@@ -39,7 +39,7 @@ WITH_FREEWNN?= NO
WITH_CANNA?= YES
WITH_SJ3?= NO
-CONFIGURE_TARGET= ${ARCH}--freebsd
+CONFIGURE_TARGET= ${MACHINE_ARCH}--freebsd
.if !defined(NO_X11)
CONFIGURE_ARGS= --with-x-toolkit --with-pop
diff --git a/japanese/iiimf-le-canna/Makefile b/japanese/iiimf-le-canna/Makefile
index effd0d5..ff9f9a6 100644
--- a/japanese/iiimf-le-canna/Makefile
+++ b/japanese/iiimf-le-canna/Makefile
@@ -31,7 +31,7 @@ USE_AUTOMAKE_VER= 19
WANT_LIBTOOL_VER= 15
AUTOMAKE_ARGS+= --add-missing
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
WRKSRC= ${WRKDIR}/${DISTNAME:S/src-//}/leif
PATCH_WRKSRC= ${WRKDIR}/${DISTNAME:S/src-//}
diff --git a/japanese/iiimf-le-freewnn/Makefile b/japanese/iiimf-le-freewnn/Makefile
index a24c34b..db4b1f0 100644
--- a/japanese/iiimf-le-freewnn/Makefile
+++ b/japanese/iiimf-le-freewnn/Makefile
@@ -32,7 +32,7 @@ USE_AUTOMAKE_VER= 19
WANT_LIBTOOL_VER= 15
AUTOMAKE_ARGS+= --add-missing
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
WRKSRC= ${WRKDIR}/${DISTNAME:S/src-//}/leif
PATCH_WRKSRC= ${WRKDIR}/${DISTNAME:S/src-//}
diff --git a/japanese/perl5/Makefile b/japanese/perl5/Makefile
index ae474ff..0fd3182 100644
--- a/japanese/perl5/Makefile
+++ b/japanese/perl5/Makefile
@@ -131,7 +131,7 @@ post-install:
@${LN} -fs ${PREFIX}/bin/perl${JPERL_VERSION} ${PREFIX}/bin/jperl${JPERL_VERSION}
@${LN} -fs ${PREFIX}/bin/sperl${JPERL_VERSION} ${PREFIX}/bin/suidperl
@${LN} -fs ${PREFIX}/bin/sperl${JPERL_VERSION} ${PREFIX}/bin/jsuidperl
- @${LN} -fs ${PREFIX}/lib/perl5/${JPERL_VERSION}/${ARCH}-freebsd/CORE/libperl.so.${PERL_SHLIBVER} ${PREFIX}/lib/perl5/${JPERL_VERSION}/${ARCH}-freebsd/CORE/libperl.so
+ @${LN} -fs ${PREFIX}/lib/perl5/${JPERL_VERSION}/${MACHINE_ARCH}-freebsd/CORE/libperl.so.${PERL_SHLIBVER} ${PREFIX}/lib/perl5/${JPERL_VERSION}/${MACHINE_ARCH}-freebsd/CORE/libperl.so
@PKG_PREFIX=${PREFIX} ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
.include <bsd.port.post.mk>
diff --git a/korean/hanemacs/Makefile b/korean/hanemacs/Makefile
index 2240af0..f3c878e 100644
--- a/korean/hanemacs/Makefile
+++ b/korean/hanemacs/Makefile
@@ -24,7 +24,7 @@ GNU_CONFIGURE= yes
USE_GMAKE= yes
CONFIGURE_ARGS= --with-x-toolkit \
--sharedstatedir=/var/run
-CONFIGURE_TARGET= ${ARCH}--freebsd
+CONFIGURE_TARGET= ${MACHINE_ARCH}--freebsd
STRIP=
MAN1= emacs.1 etags.1 ctags.1
diff --git a/korean/iiimf-le-hangul/Makefile b/korean/iiimf-le-hangul/Makefile
index 23cc561..c544ebb 100644
--- a/korean/iiimf-le-hangul/Makefile
+++ b/korean/iiimf-le-hangul/Makefile
@@ -29,7 +29,7 @@ USE_AUTOMAKE_VER= 19
WANT_LIBTOOL_VER= 15
AUTOMAKE_ARGS+= --add-missing
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
WRKSRC= ${WRKDIR}/${DISTNAME:S/src-//}/leif
PATCH_WRKSRC= ${WRKDIR}/${DISTNAME:S/src-//}
diff --git a/korean/uniksc/Makefile b/korean/uniksc/Makefile
index cb7711d..a3b9fec 100644
--- a/korean/uniksc/Makefile
+++ b/korean/uniksc/Makefile
@@ -15,7 +15,7 @@ COMMENT= Converts data between Korean KSC-5601 and Unicode 3.0 UTF-16
INSTALLS_SHLIB= YES
-.if ${ARCH:L} == "amd64"
+.if ${MACHINE_ARCH:L} == "amd64"
CFLAGS+= "-fPIC"
.endif
diff --git a/lang/asn1c/Makefile b/lang/asn1c/Makefile
index d084903..263e27e 100644
--- a/lang/asn1c/Makefile
+++ b/lang/asn1c/Makefile
@@ -16,7 +16,7 @@ MAINTAINER= vlm@lionet.info
COMMENT= Modern ASN.1 to C compiler
GNU_CONFIGURE= yes
-CONFIGURE_TARGET=--build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET=--build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
USE_PERL5= yes
MAN1= asn1c.1 enber.1 unber.1
diff --git a/lang/cyclone/Makefile b/lang/cyclone/Makefile
index 9f4534a..a5b8080 100644
--- a/lang/cyclone/Makefile
+++ b/lang/cyclone/Makefile
@@ -22,9 +22,9 @@ ONLY_FOR_ARCHS= i386
USE_GMAKE= yes
GNU_CONFIGURE= yes
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
PLIST_SUB+= DOCSDIR=${DOCSDIR:S/^${PREFIX}\///} \
- PORTBLD=${ARCH}-portbld-freebsd${OSREL}
+ PORTBLD=${MACHINE_ARCH}-portbld-freebsd${OSREL}
ALL_TARGET= all gprof aprof
CYCBINDIR= ${PREFIX}/bin
CYCINCDIR= ${PREFIX}/include/cyclone
@@ -32,6 +32,10 @@ CYCLIBDIR= ${PREFIX}/lib/cyclone
.include <bsd.port.pre.mk>
+.if ${OSVERSION} >= 500000
+BROKEN= "Cannot convert header files on -CURRENT!"
+.endif
+
post-install:
.if !defined(NOPORTDOCS)
@${MKDIR} ${DOCSDIR} ${DOCSDIR}/online-manual
diff --git a/lang/elk/Makefile b/lang/elk/Makefile
index 861d52d..07f2f2a 100644
--- a/lang/elk/Makefile
+++ b/lang/elk/Makefile
@@ -21,7 +21,7 @@ USE_BZIP2= yes
USE_MOTIF= yes
USE_LIBTOOL_VER=13
LIBTOOLFLAGS= # none
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ENV= CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}"
INSTALLS_SHLIB= yes
diff --git a/lang/ferite/Makefile b/lang/ferite/Makefile
index 568161a..c0f7ab6 100644
--- a/lang/ferite/Makefile
+++ b/lang/ferite/Makefile
@@ -20,11 +20,11 @@ LIB_DEPENDS= pcre.0:${PORTSDIR}/devel/pcre \
USE_GMAKE= yes
GNU_CONFIGURE= yes
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include ${PTHREAD_CFLAGS}" \
LDFLAGS="-L${LOCALBASE}/lib ${PTHREAD_LIBS}"
INSTALLS_SHLIB= yes
-PLIST_SUB= ARCH=${ARCH}
+PLIST_SUB= MACHINE_ARCH=${MACHINE_ARCH}
MAN1= builder.1 ferite.1
diff --git a/lang/gforth/Makefile b/lang/gforth/Makefile
index 40ef322..cf9b8f6 100644
--- a/lang/gforth/Makefile
+++ b/lang/gforth/Makefile
@@ -41,13 +41,13 @@ MAN1= gforth.1
# Local variables
#
-.if ${ARCH} == i386
+.if ${MACHINE_ARCH} == i386
WORDSIZE=32
.else
WORDSIZE=64
.endif
-.if ${ARCH} == sparc64
+.if ${MACHINE_ARCH} == sparc64
BYTEORDER=b
.else
BYTEORDER=l
diff --git a/lang/gprolog/Makefile b/lang/gprolog/Makefile
index ed94cd7..a8765a5 100644
--- a/lang/gprolog/Makefile
+++ b/lang/gprolog/Makefile
@@ -27,7 +27,7 @@ WRKSRC= ${WRKDIR}/${PORTNAME}_${PORTVERSION}.orig/src/src
USE_REINPLACE= yes
USE_GMAKE= yes
USE_AUTOCONF_VER= 253
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ARGS= --with-c-flags="${CFLAGS}" \
--with-doc-dir=none \
--with-examples-dir="${EXAMPLESDIR}"
diff --git a/lang/hugs/Makefile b/lang/hugs/Makefile
index 52ae2c9..de41b79 100644
--- a/lang/hugs/Makefile
+++ b/lang/hugs/Makefile
@@ -37,7 +37,7 @@ PLIST_SUB+= X11="@comment "
MAN1= hugs.1
-.if ${ARCH:L} == "amd64"
+.if ${MACHINE_ARCH:L} == "amd64"
CFLAGS+= "-fPIC"
.endif
diff --git a/lang/libutils/Makefile b/lang/libutils/Makefile
index 909040e..17ec79a 100644
--- a/lang/libutils/Makefile
+++ b/lang/libutils/Makefile
@@ -19,7 +19,7 @@ COMMENT= Support lib for Tensile/NSL
USE_GMAKE= yes
USE_INC_LIBTOOL_VER=13
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
MAKE_ARGS= CFLAGS="${CFLAGS}"
INSTALLS_SHLIB= yes
diff --git a/lang/lua/Makefile b/lang/lua/Makefile
index 06effc4..227d488 100644
--- a/lang/lua/Makefile
+++ b/lang/lua/Makefile
@@ -44,7 +44,7 @@ post-install:
@cd ${WRKSRC}/doc && ${INSTALL_DATA} *.html *.gif ${DOCSDIR}
.endif
-.if ${ARCH:L} == "amd64"
+.if ${MACHINE_ARCH:L} == "amd64"
CFLAGS+= -fPIC
.endif
diff --git a/lang/lua4/Makefile b/lang/lua4/Makefile
index e0a2c91..c79d286 100644
--- a/lang/lua4/Makefile
+++ b/lang/lua4/Makefile
@@ -48,7 +48,7 @@ post-install:
@${STRIP_CMD} ${PREFIX}/bin/lua
@${STRIP_CMD} ${PREFIX}/bin/luac
-.if ${ARCH:L} == "amd64"
+.if ${MACHINE_ARCH:L} == "amd64"
CFLAGS+= -fPIC
.endif
diff --git a/lang/lua50/Makefile b/lang/lua50/Makefile
index 06effc4..227d488 100644
--- a/lang/lua50/Makefile
+++ b/lang/lua50/Makefile
@@ -44,7 +44,7 @@ post-install:
@cd ${WRKSRC}/doc && ${INSTALL_DATA} *.html *.gif ${DOCSDIR}
.endif
-.if ${ARCH:L} == "amd64"
+.if ${MACHINE_ARCH:L} == "amd64"
CFLAGS+= -fPIC
.endif
diff --git a/lang/nickle/Makefile b/lang/nickle/Makefile
index c225faf..539b59c 100644
--- a/lang/nickle/Makefile
+++ b/lang/nickle/Makefile
@@ -15,7 +15,7 @@ COMMENT= A desk calculator language
USE_GMAKE= yes
GNU_CONFIGURE= yes
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
# Nickle now has bindings which are likely to pull in libraries that need
# libpthread. Link to it now, since it wouldn't work at runtime.
diff --git a/lang/onyx/Makefile b/lang/onyx/Makefile
index c04be4c..0fe6db5 100644
--- a/lang/onyx/Makefile
+++ b/lang/onyx/Makefile
@@ -20,7 +20,7 @@ LIB_DEPENDS= edit.5:${PORTSDIR}/devel/libedit \
USE_BZIP2= yes
USE_REINPLACE= yes
GNU_CONFIGURE= yes
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ARGS= --with-libedit-prefix=${LOCALBASE} \
--with-pcre-prefix=${LOCALBASE}
INSTALLS_SHLIB= yes
diff --git a/lang/open-cobol-devel/Makefile b/lang/open-cobol-devel/Makefile
index d1ddcad..75c4921 100644
--- a/lang/open-cobol-devel/Makefile
+++ b/lang/open-cobol-devel/Makefile
@@ -21,7 +21,7 @@ USE_LIBLTDL= yes
USE_GETOPT_LONG= yes
USE_REINPLACE= yes
USE_LIBTOOL_VER= 15
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ENV= CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}"
INSTALLS_SHLIB= yes
diff --git a/lang/open-cobol/Makefile b/lang/open-cobol/Makefile
index d1ddcad..75c4921 100644
--- a/lang/open-cobol/Makefile
+++ b/lang/open-cobol/Makefile
@@ -21,7 +21,7 @@ USE_LIBLTDL= yes
USE_GETOPT_LONG= yes
USE_REINPLACE= yes
USE_LIBTOOL_VER= 15
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ENV= CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}"
INSTALLS_SHLIB= yes
diff --git a/lang/python-devel/Makefile b/lang/python-devel/Makefile
index 68e64c3..e97fbac 100644
--- a/lang/python-devel/Makefile
+++ b/lang/python-devel/Makefile
@@ -21,7 +21,7 @@ COMMENT?= An interpreted object-oriented programming language
DIST_SUBDIR= python
WRKSRC= ${PYTHON_WRKSRC}
GNU_CONFIGURE= yes
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ARGS= --with-fpectl
CONFIGURE_ENV= OPT="${CFLAGS}"
MAKE_ENV= VPATH="${WRKSRC}"
diff --git a/lang/python/Makefile b/lang/python/Makefile
index a1f0311..906d050 100644
--- a/lang/python/Makefile
+++ b/lang/python/Makefile
@@ -19,7 +19,7 @@ CONFLICTS= stackless_python-*
DIST_SUBDIR= python
WRKSRC= ${PYTHON_WRKSRC}
GNU_CONFIGURE= yes
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ARGS= --with-fpectl
CONFIGURE_ENV= OPT="${CFLAGS}"
MAKE_ENV= VPATH="${WRKSRC}"
diff --git a/lang/python23/Makefile b/lang/python23/Makefile
index 8ca303c..ebcd80d 100644
--- a/lang/python23/Makefile
+++ b/lang/python23/Makefile
@@ -19,7 +19,7 @@ CONFLICTS= stackless_python-*
DIST_SUBDIR= python
WRKSRC= ${PYTHON_WRKSRC}
GNU_CONFIGURE= yes
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ARGS= --with-fpectl
CONFIGURE_ENV= OPT="${CFLAGS}"
MAKE_ENV= VPATH="${WRKSRC}"
diff --git a/lang/python24/Makefile b/lang/python24/Makefile
index a1f0311..906d050 100644
--- a/lang/python24/Makefile
+++ b/lang/python24/Makefile
@@ -19,7 +19,7 @@ CONFLICTS= stackless_python-*
DIST_SUBDIR= python
WRKSRC= ${PYTHON_WRKSRC}
GNU_CONFIGURE= yes
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ARGS= --with-fpectl
CONFIGURE_ENV= OPT="${CFLAGS}"
MAKE_ENV= VPATH="${WRKSRC}"
diff --git a/lang/python25/Makefile b/lang/python25/Makefile
index 68e64c3..e97fbac 100644
--- a/lang/python25/Makefile
+++ b/lang/python25/Makefile
@@ -21,7 +21,7 @@ COMMENT?= An interpreted object-oriented programming language
DIST_SUBDIR= python
WRKSRC= ${PYTHON_WRKSRC}
GNU_CONFIGURE= yes
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ARGS= --with-fpectl
CONFIGURE_ENV= OPT="${CFLAGS}"
MAKE_ENV= VPATH="${WRKSRC}"
diff --git a/lang/python26/Makefile b/lang/python26/Makefile
index 68e64c3..e97fbac 100644
--- a/lang/python26/Makefile
+++ b/lang/python26/Makefile
@@ -21,7 +21,7 @@ COMMENT?= An interpreted object-oriented programming language
DIST_SUBDIR= python
WRKSRC= ${PYTHON_WRKSRC}
GNU_CONFIGURE= yes
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ARGS= --with-fpectl
CONFIGURE_ENV= OPT="${CFLAGS}"
MAKE_ENV= VPATH="${WRKSRC}"
diff --git a/lang/python27/Makefile b/lang/python27/Makefile
index 68e64c3..e97fbac 100644
--- a/lang/python27/Makefile
+++ b/lang/python27/Makefile
@@ -21,7 +21,7 @@ COMMENT?= An interpreted object-oriented programming language
DIST_SUBDIR= python
WRKSRC= ${PYTHON_WRKSRC}
GNU_CONFIGURE= yes
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ARGS= --with-fpectl
CONFIGURE_ENV= OPT="${CFLAGS}"
MAKE_ENV= VPATH="${WRKSRC}"
diff --git a/lang/python30/Makefile b/lang/python30/Makefile
index 68e64c3..e97fbac 100644
--- a/lang/python30/Makefile
+++ b/lang/python30/Makefile
@@ -21,7 +21,7 @@ COMMENT?= An interpreted object-oriented programming language
DIST_SUBDIR= python
WRKSRC= ${PYTHON_WRKSRC}
GNU_CONFIGURE= yes
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ARGS= --with-fpectl
CONFIGURE_ENV= OPT="${CFLAGS}"
MAKE_ENV= VPATH="${WRKSRC}"
diff --git a/lang/python31/Makefile b/lang/python31/Makefile
index 68e64c3..e97fbac 100644
--- a/lang/python31/Makefile
+++ b/lang/python31/Makefile
@@ -21,7 +21,7 @@ COMMENT?= An interpreted object-oriented programming language
DIST_SUBDIR= python
WRKSRC= ${PYTHON_WRKSRC}
GNU_CONFIGURE= yes
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ARGS= --with-fpectl
CONFIGURE_ENV= OPT="${CFLAGS}"
MAKE_ENV= VPATH="${WRKSRC}"
diff --git a/lang/python32/Makefile b/lang/python32/Makefile
index 68e64c3..e97fbac 100644
--- a/lang/python32/Makefile
+++ b/lang/python32/Makefile
@@ -21,7 +21,7 @@ COMMENT?= An interpreted object-oriented programming language
DIST_SUBDIR= python
WRKSRC= ${PYTHON_WRKSRC}
GNU_CONFIGURE= yes
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ARGS= --with-fpectl
CONFIGURE_ENV= OPT="${CFLAGS}"
MAKE_ENV= VPATH="${WRKSRC}"
diff --git a/lang/rscheme/Makefile b/lang/rscheme/Makefile
index 88ae4ef..1646fb3 100644
--- a/lang/rscheme/Makefile
+++ b/lang/rscheme/Makefile
@@ -15,7 +15,7 @@ DISTNAME= rs-${PORTVERSION}
MAINTAINER= ports@FreeBSD.org
COMMENT= An object-oriented, extended version of the Scheme dialect of Lisp
-.if ${ARCH} != "i386"
+.if ${MACHINE_ARCH} != "i386"
BROKEN= "fails to install on ${ARCH}"
.endif
diff --git a/lang/smalltalk/Makefile b/lang/smalltalk/Makefile
index 9deccc3..351f896 100644
--- a/lang/smalltalk/Makefile
+++ b/lang/smalltalk/Makefile
@@ -21,7 +21,7 @@ USE_REINPLACE= yes
USE_GMAKE= yes
USE_ICONV= yes
GNU_CONFIGURE= yes
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ENV= CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}" \
MAKEINFO="makeinfo --no-split"
CONFIGURE_ARGS= --disable-gtk --without-emacs --without-gmp
diff --git a/lang/swi-pl/Makefile b/lang/swi-pl/Makefile
index 26bbe21..210c001 100644
--- a/lang/swi-pl/Makefile
+++ b/lang/swi-pl/Makefile
@@ -26,7 +26,7 @@ GNU_CONFIGURE= yes
CFLAGS+= -I${LOCALBASE}/include -L${LOCALBASE}/lib
LDFLAGS+= -L${LOCALBASE}/lib
CONFIGURE_ENV+= CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}"
-CONFIGURE_ARGS= --host=${ARCH}-${OPSYS:L} --disable-mt
+CONFIGURE_ARGS= --host=${MACHINE_ARCH}-${OPSYS:L} --disable-mt
MAN1= pl.1 plrc.1 plld.1
PLIST_SUB= DISTNAME=${DISTNAME} ARCH=${ARCH} OS=${OPSYS:L}
diff --git a/lang/tensile/Makefile b/lang/tensile/Makefile
index f98aac4..01d70d3 100644
--- a/lang/tensile/Makefile
+++ b/lang/tensile/Makefile
@@ -25,7 +25,7 @@ USE_REINPLACE= yes
USE_GMAKE= yes
USE_LIBTOOL_VER=13
LIBTOOLFLAGS= # none
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib"
CONFIGURE_ARGS= --disable-module-postgres
diff --git a/lang/xsb/Makefile b/lang/xsb/Makefile
index 94781a3fe..7204f8b 100644
--- a/lang/xsb/Makefile
+++ b/lang/xsb/Makefile
@@ -23,7 +23,7 @@ USE_GMAKE= yes
MAN1= xsb.1
-PLIST_SUB+= ARCH=${ARCH} \
+PLIST_SUB+= MACHINE_ARCH=${MACHINE_ARCH} \
OPSYS=${OPSYS:S/BSD/bsd/g:S/F/f/g:S/O/o/g:S/N/n/g}
.include <bsd.port.pre.mk>
diff --git a/lang/yabasic/Makefile b/lang/yabasic/Makefile
index f580fca..4b4c40f 100644
--- a/lang/yabasic/Makefile
+++ b/lang/yabasic/Makefile
@@ -17,7 +17,7 @@ USE_XLIB= yes
USE_BISON= yes
USE_REINPLACE= yes
GNU_CONFIGURE= yes
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
MAN1= yabasic.1
PORTDOCS= yabasic.htm
diff --git a/lang/yap/Makefile b/lang/yap/Makefile
index 90e2214..26af5f7 100644
--- a/lang/yap/Makefile
+++ b/lang/yap/Makefile
@@ -19,7 +19,7 @@ COMMENT= A high-performance Prolog compiler
LIB_DEPENDS= gmp.6:${PORTSDIR}/math/libgmp4
GNU_CONFIGURE= yes
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib"
diff --git a/mail/anubis/Makefile b/mail/anubis/Makefile
index e57f8e0..2a7f71e 100644
--- a/mail/anubis/Makefile
+++ b/mail/anubis/Makefile
@@ -30,7 +30,7 @@ COMMENT= Outgoing SMTP mail processor
USE_REINPLACE= yes
USE_GETOPT_LONG= yes
GNU_CONFIGURE= yes
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ENV= MAKEINFO="makeinfo --no-split" LDFLAGS="${LDFLAGS}" \
CFLAGS="${CFLAGS}" CPPFLAGS="${CFLAGS}"
LDFLAGS+= -L${LOCALBASE}/lib
diff --git a/mail/bbmail/Makefile b/mail/bbmail/Makefile
index e4fe206..b59e7a3 100644
--- a/mail/bbmail/Makefile
+++ b/mail/bbmail/Makefile
@@ -16,7 +16,7 @@ COMMENT= A tool intended for Blackbox that checks for new mail
USE_X_PREFIX= yes
GNU_CONFIGURE= yes
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
MAN1= bbmail.1
PLIST_FILES= bin/bbmail share/bbtools/bbmail.bb
diff --git a/mail/bincimap/Makefile b/mail/bincimap/Makefile
index 92b8154..d18fd38 100644
--- a/mail/bincimap/Makefile
+++ b/mail/bincimap/Makefile
@@ -24,7 +24,7 @@ COMMENT= Light-weight IMAP server for Maildir
USE_BZIP2= yes
GNU_CONFIGURE= yes
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ARGS= --sysconfdir=${CONFDIR}
CONFDIR= ${PREFIX}/etc/${PORTNAME}
diff --git a/mail/bogofilter-current/Makefile b/mail/bogofilter-current/Makefile
index 4510150..cf2aede 100644
--- a/mail/bogofilter-current/Makefile
+++ b/mail/bogofilter-current/Makefile
@@ -37,7 +37,7 @@ CONFIGURE_ARGS+= --with-included-gsl
CONFIGURE_ENV?= CPPFLAGS="-I${LOCALBASE}/include/db42" \
LDFLAGS="-L${LOCALBASE}/lib" LIBS="-ldb-4.2"
CONFIGURE_ENV+= PERL="${PERL}"
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
INSTALL_TARGET= install-strip prefix=${PREFIX}
MAN1= bogofilter.1 bogoutil.1 bogoupgrade.1 bogolexer.1 bogotune.1
diff --git a/mail/bogofilter/Makefile b/mail/bogofilter/Makefile
index 4510150..cf2aede 100644
--- a/mail/bogofilter/Makefile
+++ b/mail/bogofilter/Makefile
@@ -37,7 +37,7 @@ CONFIGURE_ARGS+= --with-included-gsl
CONFIGURE_ENV?= CPPFLAGS="-I${LOCALBASE}/include/db42" \
LDFLAGS="-L${LOCALBASE}/lib" LIBS="-ldb-4.2"
CONFIGURE_ENV+= PERL="${PERL}"
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
INSTALL_TARGET= install-strip prefix=${PREFIX}
MAN1= bogofilter.1 bogoutil.1 bogoupgrade.1 bogolexer.1 bogotune.1
diff --git a/mail/cone/Makefile b/mail/cone/Makefile
index da84a13..87f8a71 100644
--- a/mail/cone/Makefile
+++ b/mail/cone/Makefile
@@ -34,7 +34,7 @@ CONFIGURE_ARGS= -C --without-db --prefix=${PREFIX} --exec-prefix=${PREFIX}
CONFIGURE_ENV= REHASH="${PERL} ${SCRIPTDIR}/c_rehash" LDFLAGS=-L${LOCALBASE}/lib \
CPPFLAGS=-I${LOCALBASE}/include
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
MAN1= cone.1 leaf.1 mailtool.1
INSTALL_TARGET= install-strip
diff --git a/mail/courier-authlib-vchkpw/Makefile b/mail/courier-authlib-vchkpw/Makefile
index 96eb0a2..902b25b 100644
--- a/mail/courier-authlib-vchkpw/Makefile
+++ b/mail/courier-authlib-vchkpw/Makefile
@@ -55,7 +55,7 @@ CONFIGURE_ENV= CFLAGS="${CFLAGS} -I${LOCALBASE}/include" \
CXXFLAGS="${CPPFLAGS} -I${LOCALBASE}/include" \
LIBS="${LDFLAGS} -L${LOCALBASE}/lib"
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ARGS= --sysconfdir=${CONFDIR} \
--without-authshadow \
--without-authcustom \
diff --git a/mail/courier-authlib/Makefile b/mail/courier-authlib/Makefile
index 96eb0a2..902b25b 100644
--- a/mail/courier-authlib/Makefile
+++ b/mail/courier-authlib/Makefile
@@ -55,7 +55,7 @@ CONFIGURE_ENV= CFLAGS="${CFLAGS} -I${LOCALBASE}/include" \
CXXFLAGS="${CPPFLAGS} -I${LOCALBASE}/include" \
LIBS="${LDFLAGS} -L${LOCALBASE}/lib"
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ARGS= --sysconfdir=${CONFDIR} \
--without-authshadow \
--without-authcustom \
diff --git a/mail/courier-imap/Makefile b/mail/courier-imap/Makefile
index 7ea384a..b4d80a7 100644
--- a/mail/courier-imap/Makefile
+++ b/mail/courier-imap/Makefile
@@ -61,7 +61,7 @@ PLIST_SUB= CONFDIR=${CONFDIR:S,^${PREFIX}/,,} \
USERDB=${USERDB:S,^${PREFIX}/,,} \
LIBEXECDIR=${LIBEXECDIR:S,^${PREFIX}/,,}
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ARGS= --sysconfdir=${CONFDIR} \
--with-userdb=${USERDB} \
--datadir=${DATADIR} \
diff --git a/mail/courier/Makefile b/mail/courier/Makefile
index ee3bd65..2f9d568 100644
--- a/mail/courier/Makefile
+++ b/mail/courier/Makefile
@@ -73,7 +73,7 @@ CONFIGURE_ENV= REHASH=${SCRIPTDIR}/c_rehash \
CPPFLAGS='${CPPFLAGS}' \
LDFLAGS='${LDFLAGS}'
MAKE_ENV:= ${CONFIGURE_ENV}
-CONFIGURE_TARGET=--build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET=--build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ARGS= --disable-root-check --with-db=db \
--enable-syslog=1 --enable-use-flock \
--program-transform-name=s,^,, \
diff --git a/mail/crashecho/Makefile b/mail/crashecho/Makefile
index 2f9eccf..6b92678 100644
--- a/mail/crashecho/Makefile
+++ b/mail/crashecho/Makefile
@@ -16,7 +16,7 @@ COMMENT= An FTN JAM and *.MSG tosser
LIB_DEPENDS= jam.2:${PORTSDIR}/mail/jamlib
USE_LIBTOOL_VER= 13
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
MAN1= crashecho.1 \
crashexport.1 \
diff --git a/mail/dovecot-devel/Makefile b/mail/dovecot-devel/Makefile
index 9ed1022..359f2da 100644
--- a/mail/dovecot-devel/Makefile
+++ b/mail/dovecot-devel/Makefile
@@ -20,7 +20,7 @@ USE_ICONV= yes
USE_RC_SUBR= yes
GNU_CONFIGURE= yes
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ARGS= --without-shadow --with-pam --localstatedir=/var
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib"
diff --git a/mail/dovecot/Makefile b/mail/dovecot/Makefile
index 9ed1022..359f2da 100644
--- a/mail/dovecot/Makefile
+++ b/mail/dovecot/Makefile
@@ -20,7 +20,7 @@ USE_ICONV= yes
USE_RC_SUBR= yes
GNU_CONFIGURE= yes
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ARGS= --without-shadow --with-pam --localstatedir=/var
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib"
diff --git a/mail/dspam-devel/Makefile b/mail/dspam-devel/Makefile
index 5f791ef..7b232f2 100644
--- a/mail/dspam-devel/Makefile
+++ b/mail/dspam-devel/Makefile
@@ -92,7 +92,7 @@ USE_REINPLACE= yes
INSTALLS_SHLIB= yes
GNU_CONFIGURE= yes
CONFIGURE_ENV= LDFLAGS="-L${LOCALBASE}/lib"
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
.ifdef(GDBS)
CFLAGS+= -g -DDEBUG
diff --git a/mail/dspam/Makefile b/mail/dspam/Makefile
index 1dfb3c7..c702864 100644
--- a/mail/dspam/Makefile
+++ b/mail/dspam/Makefile
@@ -89,7 +89,7 @@ USE_REINPLACE= yes
INSTALLS_SHLIB= yes
GNU_CONFIGURE= yes
CONFIGURE_ENV= LDFLAGS="-L${LOCALBASE}/lib"
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
.ifdef(GDBS)
CFLAGS+= -g -DDEBUG
diff --git a/mail/esmtp/Makefile b/mail/esmtp/Makefile
index 15e2bc3..cfe44be 100644
--- a/mail/esmtp/Makefile
+++ b/mail/esmtp/Makefile
@@ -19,7 +19,7 @@ LIB_DEPENDS= esmtp.6:${PORTSDIR}/mail/libesmtp
USE_BZIP2= yes
GNU_CONFIGURE= yes
-CONFIGURE_TARGET=--build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET=--build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
USE_GETOPT_LONG= yes
USE_OPENSSL= yes
USE_REINPLACE= yes
diff --git a/mail/faces/Makefile b/mail/faces/Makefile
index dd977de..06cf76d 100644
--- a/mail/faces/Makefile
+++ b/mail/faces/Makefile
@@ -30,7 +30,7 @@ WITH_AUDIO= # none
PLIST_SUB+= X11=""
USE_GNOME= gnomehack gtk12
GNU_CONFIGURE= yes
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ENV= CPPFLAGS="-I../compface -I${LOCALBASE}/include" \
LDFLAGS="-L../compface -L${LOCALBASE}/lib"
CONFIGURE_ARGS= --enable-imap --enable-pop \
diff --git a/mail/fetchmail/Makefile b/mail/fetchmail/Makefile
index 7ed6a47..3a556e8 100644
--- a/mail/fetchmail/Makefile
+++ b/mail/fetchmail/Makefile
@@ -35,7 +35,7 @@ USE_PYTHON= yes
USE_REINPLACE= yes
USE_GMAKE= yes
GNU_CONFIGURE= yes
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ARGS= --enable-opie --enable-RPA --enable-POP2 --enable-SDPS \
--with-hesiod=no --enable-fallback=no
CONFIGURE_ENV+= CPPFLAGS="-I${LOCALBASE}/include" \
diff --git a/mail/filtermail/Makefile b/mail/filtermail/Makefile
index 07e5158..01f240b 100644
--- a/mail/filtermail/Makefile
+++ b/mail/filtermail/Makefile
@@ -32,7 +32,7 @@ USE_GETOPT_LONG= yes
USE_BISON= yes
USE_GMAKE= yes
GNU_CONFIGURE= yes
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ENV= CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}"
MAN1= filtermail.1
diff --git a/mail/gensig/Makefile b/mail/gensig/Makefile
index 4402078..f3deabc 100644
--- a/mail/gensig/Makefile
+++ b/mail/gensig/Makefile
@@ -15,7 +15,7 @@ MAINTAINER= arensb+freebsd-ports@ooblick.com
COMMENT= A random .signature generator
GNU_CONFIGURE= yes
-CONFIGURE_TARGET=--build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET=--build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
USE_GETOPT_LONG= yes
diff --git a/mail/gmime/Makefile b/mail/gmime/Makefile
index 20cdf82..221c221 100644
--- a/mail/gmime/Makefile
+++ b/mail/gmime/Makefile
@@ -24,7 +24,7 @@ USE_LIBTOOL_VER=13
CONFIGURE_ARGS+=--with-libiconv-prefix=${LOCALBASE}
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib"
-CONFIGURE_TARGET= --target=${ARCH}-unknown-freebsd${OSREL}
+CONFIGURE_TARGET= --target=${MACHINE_ARCH}-unknown-freebsd${OSREL}
INSTALLS_SHLIB= YES
diff --git a/mail/gnarwl/Makefile b/mail/gnarwl/Makefile
index 6ca4f26..4afaf37 100644
--- a/mail/gnarwl/Makefile
+++ b/mail/gnarwl/Makefile
@@ -23,7 +23,7 @@ USE_ICONV= yes
USE_OPENLDAP= yes
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --prefix=${PREFIX} --with-docdir=${DOCSDIR}
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
MAN8= damnit.8 gnarwl.8
MANCOMPRESSED= yes
diff --git a/mail/ifile/Makefile b/mail/ifile/Makefile
index c7edb79..ab65533 100644
--- a/mail/ifile/Makefile
+++ b/mail/ifile/Makefile
@@ -17,7 +17,7 @@ COMMENT= An application of machine learning to e-mail filtering
USE_GETOPT_LONG=yes
USE_GMAKE= yes
GNU_CONFIGURE= yes
-CONFIGURE_TARGET=--build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET=--build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
MAN1= ifile.1
.include <bsd.port.mk>
diff --git a/mail/isoqlog/Makefile b/mail/isoqlog/Makefile
index c8b1d1f..853884a 100644
--- a/mail/isoqlog/Makefile
+++ b/mail/isoqlog/Makefile
@@ -16,7 +16,7 @@ MAINTAINER= ofsen@enderunix.org
COMMENT= A qmail, postfix, sendmail, exim MTA log analysis program
GNU_CONFIGURE= yes
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
USE_GMAKE= yes
post-install:
diff --git a/mail/isync/Makefile b/mail/isync/Makefile
index 5554201..1c89d1a 100644
--- a/mail/isync/Makefile
+++ b/mail/isync/Makefile
@@ -18,7 +18,7 @@ COMMENT= Maintain local copies of remote IMAP folders w/synchronized flags
USE_GETOPT_LONG= yes
USE_OPENSSL= yes
GNU_CONFIGURE= yes
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ENV= CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}"
MAN1= isync.1
diff --git a/mail/libesmtp/Makefile b/mail/libesmtp/Makefile
index f1fbdef..5320e5d 100644
--- a/mail/libesmtp/Makefile
+++ b/mail/libesmtp/Makefile
@@ -26,7 +26,7 @@ CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
PTHREAD_LIBS="${PTHREAD_LIBS}" \
PTHREAD_CFLAGS="${PTHREAD_CFLAGS}" \
LIBS="-L${LOCALBASE}/lib"
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
# require-all-recipients (implied by enable-all) is required for Balsa
CONFIGURE_ARGS= --enable-all --disable-isoc
diff --git a/mail/libetpan/Makefile b/mail/libetpan/Makefile
index 7d5ab06..e789090 100644
--- a/mail/libetpan/Makefile
+++ b/mail/libetpan/Makefile
@@ -18,7 +18,7 @@ COMMENT= A mail library
USE_ICONV= yes
USE_OPENSSL= yes
USE_LIBTOOL_VER= 15
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ENV= CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}"
INSTALLS_SHLIB= yes
diff --git a/mail/libspf-alt/Makefile b/mail/libspf-alt/Makefile
index 74d35a9..de324b7 100644
--- a/mail/libspf-alt/Makefile
+++ b/mail/libspf-alt/Makefile
@@ -26,7 +26,7 @@ CPPFLAGS+= ${PTHREAD_CFLAGS} \
-I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ENV= CPPFLAGS="${CPPFLAGS}" \
LDFLAGS="${LDFLAGS}"
CONFIGURE_ARGS= --program-transform-name=s,^spf,spf_alt,
diff --git a/mail/libspf2-10/Makefile b/mail/libspf2-10/Makefile
index 7d9339a..8141923 100644
--- a/mail/libspf2-10/Makefile
+++ b/mail/libspf2-10/Makefile
@@ -18,6 +18,6 @@ INSTALLS_SHLIB= yes
GNU_CONFIGURE= yes
USE_LIBTOOL_VER= 15
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
.include <bsd.port.mk>
diff --git a/mail/libspf2/Makefile b/mail/libspf2/Makefile
index 7d9339a..8141923 100644
--- a/mail/libspf2/Makefile
+++ b/mail/libspf2/Makefile
@@ -18,6 +18,6 @@ INSTALLS_SHLIB= yes
GNU_CONFIGURE= yes
USE_LIBTOOL_VER= 15
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
.include <bsd.port.mk>
diff --git a/mail/libsrs2/Makefile b/mail/libsrs2/Makefile
index f6c554d..bb65c31 100644
--- a/mail/libsrs2/Makefile
+++ b/mail/libsrs2/Makefile
@@ -18,6 +18,6 @@ INSTALLS_SHLIB= yes
GNU_CONFIGURE= yes
USE_LIBTOOL_VER= 15
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
.include <bsd.port.mk>
diff --git a/mail/lmtpd/Makefile b/mail/lmtpd/Makefile
index bfa0f35..788d7d7 100644
--- a/mail/lmtpd/Makefile
+++ b/mail/lmtpd/Makefile
@@ -68,7 +68,7 @@ CONFIGURE_ARGS+= --without-db4
GNU_CONFIGURE= YES
CONFIGURE_ENV= CFLAGS="${CFLAGS} -I${LOCALBASE}/include"
CONFIGURE_ARGS+= --without-perl
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
MAN8= lmtpd.8
DOCS= NEWS README TODO
diff --git a/mail/maildrop/Makefile b/mail/maildrop/Makefile
index fa4b270..e9bb820 100644
--- a/mail/maildrop/Makefile
+++ b/mail/maildrop/Makefile
@@ -33,7 +33,7 @@ CONFIGURE_ARGS= --enable-syslog=1 \
--enable-use-flock=1 \
--with-etcdir="${PREFIX}/etc" \
--enable-maildirquota
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CPPFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib
diff --git a/mail/masqmail-devel/Makefile b/mail/masqmail-devel/Makefile
index 64bbd48..45daf45 100644
--- a/mail/masqmail-devel/Makefile
+++ b/mail/masqmail-devel/Makefile
@@ -22,7 +22,7 @@ GNU_CONFIGURE= yes
CFLAGS+= -Wno-trigraphs
CONFIGURE_ARGS+= --mandir=${PREFIX}/man --with-user=mailnull --with-group=mail \
--with-confdir=${PREFIX}/etc/masqmail --with-logdir=/var/log/masqmail
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
.if defined(WITH_LIBCRYPTO)
CONFIGURE_ARGS+= --with-libcrypto
diff --git a/mail/milter-greylist-devel/Makefile b/mail/milter-greylist-devel/Makefile
index f79a357..c123517 100644
--- a/mail/milter-greylist-devel/Makefile
+++ b/mail/milter-greylist-devel/Makefile
@@ -22,7 +22,7 @@ CFLAGS+= ${PTHREAD_CFLAGS}
LIBS+= ${PTHREAD_LIBS}
GNU_CONFIGURE= yes
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ARGS+= --with-user=smmsp
CONFIGURE_ENV+= CFLAGS="${CFLAGS}" LIBS="${LIBS}"
diff --git a/mail/milter-greylist/Makefile b/mail/milter-greylist/Makefile
index 2db5976..7860bd8 100644
--- a/mail/milter-greylist/Makefile
+++ b/mail/milter-greylist/Makefile
@@ -19,7 +19,7 @@ MAN5= greylist.conf.5
MAN8= milter-greylist.8
GNU_CONFIGURE= yes
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ARGS+= --with-user=smmsp
CFLAGS+= ${PTHREAD_CFLAGS}
LIBS+= ${PTHREAD_LIBS}
diff --git a/mail/milter-spamc/Makefile b/mail/milter-spamc/Makefile
index f634dd3..beb6737 100644
--- a/mail/milter-spamc/Makefile
+++ b/mail/milter-spamc/Makefile
@@ -50,7 +50,7 @@ LDFLAGS+= ${PTHREAD_LIBS}
DOCS= CHANGES.TXT index.shtml style.css mailto.js \
LICENSE.TXT
-CONFIGURE_TARGET=--build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET=--build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ENV+= LDFLAGS="${LDFLAGS}"
CONFIGURE_ARGS+=--localstatedir=/var/spool
.if !defined(WITH_DEBUG)
diff --git a/mail/msmtp/Makefile b/mail/msmtp/Makefile
index dfeda68..1f0c93a 100644
--- a/mail/msmtp/Makefile
+++ b/mail/msmtp/Makefile
@@ -20,7 +20,7 @@ USE_GETOPT_LONG=yes
CPPFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib
CONFIGURE_ENV= CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}"
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
MAN1= msmtp.1
PLIST_FILES= bin/msmtp
diff --git a/mail/mutt/Makefile b/mail/mutt/Makefile
index 6fa634f..a5555c3 100644
--- a/mail/mutt/Makefile
+++ b/mail/mutt/Makefile
@@ -36,7 +36,7 @@ BUILD_DEPENDS= ispell:${PORTSDIR}/textproc/ispell
RUN_DEPENDS= ispell:${PORTSDIR}/textproc/ispell \
urlview:${PORTSDIR}/textproc/urlview
.endif
-.if ${ARCH} != "alpha"
+.if ${MACHINE_ARCH} != "alpha"
# coredump in sgmls
WITH_SGML_DOCS?=yes
.endif
diff --git a/mail/mutt14/Makefile b/mail/mutt14/Makefile
index 6fa634f..a5555c3 100644
--- a/mail/mutt14/Makefile
+++ b/mail/mutt14/Makefile
@@ -36,7 +36,7 @@ BUILD_DEPENDS= ispell:${PORTSDIR}/textproc/ispell
RUN_DEPENDS= ispell:${PORTSDIR}/textproc/ispell \
urlview:${PORTSDIR}/textproc/urlview
.endif
-.if ${ARCH} != "alpha"
+.if ${MACHINE_ARCH} != "alpha"
# coredump in sgmls
WITH_SGML_DOCS?=yes
.endif
diff --git a/mail/renattach/Makefile b/mail/renattach/Makefile
index 5bd32f2..0881b43 100644
--- a/mail/renattach/Makefile
+++ b/mail/renattach/Makefile
@@ -15,7 +15,7 @@ COMMENT= Rename or remove certain attachments or kill entire messages
USE_GETOPT_LONG= yes
GNU_CONFIGURE= yes
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
MAN1= renattach.1
PORTDOCS= INSTALL
diff --git a/mail/spamguard/Makefile b/mail/spamguard/Makefile
index 2452dc3..40f5977 100644
--- a/mail/spamguard/Makefile
+++ b/mail/spamguard/Makefile
@@ -14,7 +14,7 @@ MAINTAINER= ofsen@enderunix.org
COMMENT= MTA spam prevention program for qmail/postfix/sendmail
GNU_CONFIGURE= yes
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
PKGMESSAGE= ${WRKDIR}/pkg-message
diff --git a/mail/sqwebmail/Makefile b/mail/sqwebmail/Makefile
index 93138ca..38cce69 100644
--- a/mail/sqwebmail/Makefile
+++ b/mail/sqwebmail/Makefile
@@ -72,7 +72,7 @@ CACHEOWNER?= bin
# End of user variables
-CONFIGURE_TARGET= --build=${ARCH}-unknown-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-unknown-freebsd${OSREL}
USE_PERL5= YES
HAS_CONFIGURE= YES
USE_BZIP2= YES
diff --git a/mail/tpop3d/Makefile b/mail/tpop3d/Makefile
index 8de4801..3b536a7 100644
--- a/mail/tpop3d/Makefile
+++ b/mail/tpop3d/Makefile
@@ -21,7 +21,7 @@ CONFIGURE_ARGS= --enable-auth-other \
--enable-tcp-wrappers \
--enable-tls \
--with-mailspool-directory=/var/mail
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
OPTIONS= MYSQL "Use MySQL authentication" off \
PGSQL "Use PgSQL authentication" off \
diff --git a/mail/vqadmin/Makefile b/mail/vqadmin/Makefile
index 85d70b0..e62e899 100644
--- a/mail/vqadmin/Makefile
+++ b/mail/vqadmin/Makefile
@@ -19,7 +19,7 @@ BUILD_DEPENDS= ${LOCALBASE}/vpopmail/lib/libvpopmail.a:${PORTSDIR}/mail/vpopmail
RUN_DEPENDS= ${LOCALBASE}/vpopmail/lib/libvpopmail.a:${PORTSDIR}/mail/vpopmail
GNU_CONFIGURE= YES
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
USE_REINPLACE= YES
CGIBINDIR?= www/cgi-bin-dist
diff --git a/math/PDL/Makefile b/math/PDL/Makefile
index 48c1678..6649969 100644
--- a/math/PDL/Makefile
+++ b/math/PDL/Makefile
@@ -52,7 +52,7 @@ pre-extract:
.include <bsd.port.pre.mk>
-.if ${ARCH} == "alpha"
+.if ${MACHINE_ARCH} == "alpha"
BROKEN= test script t/flexraw.t fails all 26 tests
.endif
diff --git a/math/atlas-devel/Makefile b/math/atlas-devel/Makefile
index ec3d1f2..0af4bb2 100644
--- a/math/atlas-devel/Makefile
+++ b/math/atlas-devel/Makefile
@@ -43,11 +43,11 @@ post-patch:
@${REINPLACE_CMD} -e 's+%%PTHREAD_CFLAGS%%+${PTHREAD_CFLAGS}+g' \
-e 's+%%PTHREAD_LIBS%%+${PTHREAD_LIBS}+g' \
${WRKSRC}/config.c
-.if (${ARCH} == "alpha")
+.if (${MACHINE_ARCH} == "alpha")
@(cd ${WRKSRC}; ${PATCH} < ${FILESDIR}/alpha-patch)
.endif
-.if ${ARCH} == "sparc64"
+.if ${MACHINE_ARCH} == "sparc64"
PICFLAG?= -fPIC
.else
PICFLAG?= -fpic
diff --git a/math/atlas/Makefile b/math/atlas/Makefile
index fd1303f..2d15ddf 100644
--- a/math/atlas/Makefile
+++ b/math/atlas/Makefile
@@ -42,11 +42,11 @@ post-patch:
@${REINPLACE_CMD} -e 's+%%PTHREAD_CFLAGS%%+${PTHREAD_CFLAGS}+g' \
-e 's+%%PTHREAD_LIBS%%+${PTHREAD_LIBS}+g' \
${WRKSRC}/config.c
-.if (${ARCH} == "alpha")
+.if (${MACHINE_ARCH} == "alpha")
@(cd ${WRKSRC}; ${PATCH} < ${FILESDIR}/alpha-patch)
.endif
-.if ${ARCH} == "sparc64"
+.if ${MACHINE_ARCH} == "sparc64"
PICFLAG?= -fPIC
.else
PICFLAG?= -fpic
diff --git a/math/blitz++/Makefile b/math/blitz++/Makefile
index 9ef1efe..bfaa60a 100644
--- a/math/blitz++/Makefile
+++ b/math/blitz++/Makefile
@@ -26,7 +26,7 @@ MAKE_ARGS= NOPORTDOCS=yes
USE_REINPLACE= yes
USE_GMAKE= yes
USE_LIBTOOL_VER=15
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ARGS= --with-cxx=gcc --disable-doxygen
MAKE_ARGS+= ACLOCAL="${TRUE}" AUTOCONF="${TRUE}" AUTOMAKE="${TRUE}" \
AUTOHEADER="${TRUE}"
diff --git a/math/ccmath/Makefile b/math/ccmath/Makefile
index 1722490..b92b471 100644
--- a/math/ccmath/Makefile
+++ b/math/ccmath/Makefile
@@ -17,7 +17,7 @@ COMMENT= A mathematics library with many different functions
INSTALLS_SHLIB= yes
post-configure:
-.if (${ARCH} != "i386")
+.if (${MACHINE_ARCH} != "i386")
(cd ${WRKSRC} && ${SH} non_intel.sh)
.endif
diff --git a/math/dislin/Makefile b/math/dislin/Makefile
index dd17d21..cc31541 100644
--- a/math/dislin/Makefile
+++ b/math/dislin/Makefile
@@ -9,10 +9,10 @@ PORTNAME= dislin
PORTVERSION= 8.2
PORTREVISION= 1
CATEGORIES= math linux
-MASTER_SITES= ftp://ftp.gwdg.de/pub/grafik/dislin/linux/${ARCH}/
+MASTER_SITES= ftp://ftp.gwdg.de/pub/grafik/dislin/linux/${MACHINE_ARCH}/
PKGNAMEPREFIX= linux-
EXTRACT_SUFX= .linux.tar.gz
-DIST_SUBDIR= ${ARCH}
+DIST_SUBDIR= ${MACHINE_ARCH}
MAINTAINER= ports@FreeBSD.org
COMMENT= A scientific data plotting package
@@ -26,8 +26,8 @@ NO_BUILD= yes
INSTALLS_SHLIB= yes
LDCONFIG_DIRS= ${DISLIN_DIR}/lib
-MD5_FILE= ${MASTERDIR}/distinfo.${ARCH}
-PLIST= ${PKGDIR}/pkg-plist.${ARCH}
+MD5_FILE= ${MASTERDIR}/distinfo.${MACHINE_ARCH}
+PLIST= ${PKGDIR}/pkg-plist.${MACHINE_ARCH}
PKGMESSAGE= ${WRKDIR}/pkg-message
DISLIN_DIR= ${PREFIX}/dislin
PROGRAMS= clink disaps disdrv disdrv_nw disdrv_w disgif dishlp dishpj \
diff --git a/math/fftw/Makefile b/math/fftw/Makefile
index 5765436..09669be 100644
--- a/math/fftw/Makefile
+++ b/math/fftw/Makefile
@@ -25,7 +25,7 @@ FFTW_SUFIX=
USE_REINPLACE= yes
USE_GMAKE= yes
USE_LIBTOOL_VER=15
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ENV= MAKEINFO="makeinfo --no-split"
CONFIGURE_ARGS= --enable-shared
INSTALLS_SHLIB= yes
diff --git a/math/freefem++/Makefile b/math/freefem++/Makefile
index f09ad47..850e540 100644
--- a/math/freefem++/Makefile
+++ b/math/freefem++/Makefile
@@ -33,7 +33,7 @@ USE_GCC= 3.4
USE_GMAKE= yes
USE_REINPLACE= yes
GNU_CONFIGURE= yes
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ARGS= --disable-download \
--with-blas="${LIBBLAS}" \
--with-amd="-lamd" \
diff --git a/math/freemat/Makefile b/math/freemat/Makefile
index d646d58..1ec3062 100644
--- a/math/freemat/Makefile
+++ b/math/freemat/Makefile
@@ -30,7 +30,7 @@ BUILD_DEPENDS= ${LOCALBASE}/lib/libarpack.a:${PORTSDIR}/math/arpack \
USE_GL= yes
USE_REINPLACE= yes
GNU_CONFIGURE= yes
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ARGS= --with-blas="${lib_blas}"
CONFIGURE_ENV= CPPFLAGS="${CXXFLAGS} -I${LOCALBASE}/include ${THRDFLG}" \
LDFLAGS="${LDFLAGS} -L${LOCALBASE}/lib ${THRDLIB}"
diff --git a/math/gnuplot/Makefile b/math/gnuplot/Makefile
index a6e6f46..3028f31 100644
--- a/math/gnuplot/Makefile
+++ b/math/gnuplot/Makefile
@@ -17,7 +17,7 @@ COMMENT= A command-driven interactive function plotting program
USE_REINPLACE= yes
GNU_CONFIGURE= yes
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ARGS= --without-tutorial \
--without-linux-vga \
--with-lasergnu
diff --git a/math/gsl/Makefile b/math/gsl/Makefile
index ea312f9..7065e7f 100644
--- a/math/gsl/Makefile
+++ b/math/gsl/Makefile
@@ -21,7 +21,7 @@ COMMENT= The GNU Scientific Library - mathematical libs
INSTALLS_SHLIB= yes
USE_INC_LIBTOOL_VER=13
GNU_CONFIGURE= yes
-CONFIGURE_TARGET=--build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET=--build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ENV+= MAKEINFO='makeinfo --no-split'
MAN1= gsl-config.1 gsl-randist.1 gsl-histogram.1
diff --git a/math/linux-dislin/Makefile b/math/linux-dislin/Makefile
index dd17d21..cc31541 100644
--- a/math/linux-dislin/Makefile
+++ b/math/linux-dislin/Makefile
@@ -9,10 +9,10 @@ PORTNAME= dislin
PORTVERSION= 8.2
PORTREVISION= 1
CATEGORIES= math linux
-MASTER_SITES= ftp://ftp.gwdg.de/pub/grafik/dislin/linux/${ARCH}/
+MASTER_SITES= ftp://ftp.gwdg.de/pub/grafik/dislin/linux/${MACHINE_ARCH}/
PKGNAMEPREFIX= linux-
EXTRACT_SUFX= .linux.tar.gz
-DIST_SUBDIR= ${ARCH}
+DIST_SUBDIR= ${MACHINE_ARCH}
MAINTAINER= ports@FreeBSD.org
COMMENT= A scientific data plotting package
@@ -26,8 +26,8 @@ NO_BUILD= yes
INSTALLS_SHLIB= yes
LDCONFIG_DIRS= ${DISLIN_DIR}/lib
-MD5_FILE= ${MASTERDIR}/distinfo.${ARCH}
-PLIST= ${PKGDIR}/pkg-plist.${ARCH}
+MD5_FILE= ${MASTERDIR}/distinfo.${MACHINE_ARCH}
+PLIST= ${PKGDIR}/pkg-plist.${MACHINE_ARCH}
PKGMESSAGE= ${WRKDIR}/pkg-message
DISLIN_DIR= ${PREFIX}/dislin
PROGRAMS= clink disaps disdrv disdrv_nw disdrv_w disgif dishlp dishpj \
diff --git a/math/netcdf/Makefile b/math/netcdf/Makefile
index 3631bcf..b907ef0 100644
--- a/math/netcdf/Makefile
+++ b/math/netcdf/Makefile
@@ -20,7 +20,7 @@ WRKSRC= ${WRKDIR}/${DISTNAME}/src
CONFLICTS= hdf-4.*
GNU_CONFIGURE= yes
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ENV= CPPFLAGS="-fPIC -DPIC -Df2cFortran"
INSTALLS_SHLIB= yes
diff --git a/math/orpie/Makefile b/math/orpie/Makefile
index ec37373..60c509c 100644
--- a/math/orpie/Makefile
+++ b/math/orpie/Makefile
@@ -18,7 +18,7 @@ LIB_DEPENDS= gsl.6:${PORTSDIR}/math/gsl
GNU_CONFIGURE= yes
USE_GMAKE= yes
-CONFIGURE_TARGET=--build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET=--build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib"
diff --git a/math/plplot/Makefile b/math/plplot/Makefile
index 5f54cfa..437a380 100644
--- a/math/plplot/Makefile
+++ b/math/plplot/Makefile
@@ -20,7 +20,7 @@ LIB_DEPENDS= gd.4:${PORTSDIR}/graphics/gd
USE_LIBLTDL= yes
USE_REINPLACE= yes
GNU_CONFIGURE= yes
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib" \
GDINCDIR="${LOCALBASE}/include" \
diff --git a/math/sdpa/Makefile b/math/sdpa/Makefile
index 1452fb9..b827ea8 100644
--- a/math/sdpa/Makefile
+++ b/math/sdpa/Makefile
@@ -46,7 +46,7 @@ CBLAS= -lcblas -lf77blas -latlas -lg2c
.if defined(WITH_OPTIMIZED_FLAGS)
CFLAGS+= -O3 -ffast-math -finline-functions -fomit-frame-pointer -funroll-loops -fexpensive-optimizations
CXXFLAGS+= -O3 -ffast-math -finline-functions -fomit-frame-pointer -funroll-loops -fexpensive-optimizations -Wno-multichar
-.if (${ARCH} == "i386" && !${ARCH} == "amd64" )
+.if (${MACHINE_ARCH} == "i386" && !${MACHINE_ARCH} == "amd64" )
CFLAGS+= -malign-double -mcpu=i686 -march=i686 -mfancy-math-387 -mpreferred-stack-boundary=3
CXXFLAGS+= -malign-double -mcpu=i686 -march=i686 -mfancy-math-387 -mpreferred-stack-boundary=3
.endif # i386
diff --git a/math/tvmet/Makefile b/math/tvmet/Makefile
index 6f43cb5..2bfe065 100644
--- a/math/tvmet/Makefile
+++ b/math/tvmet/Makefile
@@ -17,7 +17,7 @@ COMMENT= Tiny Vector and Matrix template library
USE_BZIP2= yes
GNU_CONFIGURE= yes
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
MAN1= tvmet-config.1
diff --git a/math/yacas/Makefile b/math/yacas/Makefile
index 885e5ca..9e494e5 100644
--- a/math/yacas/Makefile
+++ b/math/yacas/Makefile
@@ -19,7 +19,7 @@ LIB_DEPENDS= gsl.6:${PORTSDIR}/math/gsl
USE_PERL5_BUILD= yes
USE_GMAKE= yes
GNU_CONFIGURE= yes
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ENV= CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}"
INSTALLS_SHLIB= yes
diff --git a/misc/amanda-server/Makefile b/misc/amanda-server/Makefile
index 9e11d22..834141e 100644
--- a/misc/amanda-server/Makefile
+++ b/misc/amanda-server/Makefile
@@ -32,7 +32,7 @@ PATCH_STRIP=
.error You have the file /usr/include/sys/scsiio.h on your system. This was removed after FreeBSD 3.5 and will break the build of this port. Please remove it.
.endif
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
AMANDA_USER?= operator
AMANDA_GROUP?= operator
@@ -131,7 +131,7 @@ CONFIGURE_ARGS+= --with-portrange=${AMANDA_PORTRANGE}
.if ${OSVERSION} < 400000
PLIST_SUB+= SCSICHG=''
.elif ${OSVERSION} >= 480000
-.if ${ARCH} == "amd64"
+.if ${MACHINE_ARCH} == "amd64"
PLIST_SUB+= SCSICHG='@comment '
.elif ${OSVERSION} >= 502000
PLIST_SUB+= SCSICHG='@comment '
diff --git a/misc/amanda25-server/Makefile b/misc/amanda25-server/Makefile
index 9e11d22..834141e 100644
--- a/misc/amanda25-server/Makefile
+++ b/misc/amanda25-server/Makefile
@@ -32,7 +32,7 @@ PATCH_STRIP=
.error You have the file /usr/include/sys/scsiio.h on your system. This was removed after FreeBSD 3.5 and will break the build of this port. Please remove it.
.endif
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
AMANDA_USER?= operator
AMANDA_GROUP?= operator
@@ -131,7 +131,7 @@ CONFIGURE_ARGS+= --with-portrange=${AMANDA_PORTRANGE}
.if ${OSVERSION} < 400000
PLIST_SUB+= SCSICHG=''
.elif ${OSVERSION} >= 480000
-.if ${ARCH} == "amd64"
+.if ${MACHINE_ARCH} == "amd64"
PLIST_SUB+= SCSICHG='@comment '
.elif ${OSVERSION} >= 502000
PLIST_SUB+= SCSICHG='@comment '
diff --git a/misc/amanda26-server/Makefile b/misc/amanda26-server/Makefile
index 9e11d22..834141e 100644
--- a/misc/amanda26-server/Makefile
+++ b/misc/amanda26-server/Makefile
@@ -32,7 +32,7 @@ PATCH_STRIP=
.error You have the file /usr/include/sys/scsiio.h on your system. This was removed after FreeBSD 3.5 and will break the build of this port. Please remove it.
.endif
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
AMANDA_USER?= operator
AMANDA_GROUP?= operator
@@ -131,7 +131,7 @@ CONFIGURE_ARGS+= --with-portrange=${AMANDA_PORTRANGE}
.if ${OSVERSION} < 400000
PLIST_SUB+= SCSICHG=''
.elif ${OSVERSION} >= 480000
-.if ${ARCH} == "amd64"
+.if ${MACHINE_ARCH} == "amd64"
PLIST_SUB+= SCSICHG='@comment '
.elif ${OSVERSION} >= 502000
PLIST_SUB+= SCSICHG='@comment '
diff --git a/misc/amanda32-server/Makefile b/misc/amanda32-server/Makefile
index 9e11d22..834141e 100644
--- a/misc/amanda32-server/Makefile
+++ b/misc/amanda32-server/Makefile
@@ -32,7 +32,7 @@ PATCH_STRIP=
.error You have the file /usr/include/sys/scsiio.h on your system. This was removed after FreeBSD 3.5 and will break the build of this port. Please remove it.
.endif
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
AMANDA_USER?= operator
AMANDA_GROUP?= operator
@@ -131,7 +131,7 @@ CONFIGURE_ARGS+= --with-portrange=${AMANDA_PORTRANGE}
.if ${OSVERSION} < 400000
PLIST_SUB+= SCSICHG=''
.elif ${OSVERSION} >= 480000
-.if ${ARCH} == "amd64"
+.if ${MACHINE_ARCH} == "amd64"
PLIST_SUB+= SCSICHG='@comment '
.elif ${OSVERSION} >= 502000
PLIST_SUB+= SCSICHG='@comment '
diff --git a/misc/dejagnu/Makefile b/misc/dejagnu/Makefile
index 3f09be3..f8843b5 100644
--- a/misc/dejagnu/Makefile
+++ b/misc/dejagnu/Makefile
@@ -18,7 +18,7 @@ RUN_DEPENDS= expect:${PORTSDIR}/lang/expect
USE_GMAKE= yes
GNU_CONFIGURE= yes
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
MAN1= runtest.1
diff --git a/misc/iselect/Makefile b/misc/iselect/Makefile
index 1e95199..e94f452 100644
--- a/misc/iselect/Makefile
+++ b/misc/iselect/Makefile
@@ -15,7 +15,7 @@ COMMENT= Interactive Selection Tool
USE_REINPLACE= yes
GNU_CONFIGURE= yes
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
MAN1= iselect.1
diff --git a/misc/iso-codes/Makefile b/misc/iso-codes/Makefile
index 03c08c6..1f81e72 100644
--- a/misc/iso-codes/Makefile
+++ b/misc/iso-codes/Makefile
@@ -24,7 +24,7 @@ USE_GETTEXT= yes
USE_GMAKE= yes
USE_REINPLACE= yes
GNU_CONFIGURE= yes
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
DATADIR= ${PREFIX}/share/${PKGNAMEPREFIX}${PORTNAME}
diff --git a/misc/kcd-devel/Makefile b/misc/kcd-devel/Makefile
index 2ba94fd..06eb2f4 100644
--- a/misc/kcd-devel/Makefile
+++ b/misc/kcd-devel/Makefile
@@ -17,7 +17,7 @@ COMMENT= Change directory in full-screen visual mode
USE_GETTEXT= yes
USE_PERL5= yes
GNU_CONFIGURE= yes
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib -lintl"
diff --git a/misc/kcd/Makefile b/misc/kcd/Makefile
index 2ba94fd..06eb2f4 100644
--- a/misc/kcd/Makefile
+++ b/misc/kcd/Makefile
@@ -17,7 +17,7 @@ COMMENT= Change directory in full-screen visual mode
USE_GETTEXT= yes
USE_PERL5= yes
GNU_CONFIGURE= yes
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib -lintl"
diff --git a/misc/latex-mk/Makefile b/misc/latex-mk/Makefile
index 1124e2c..2dcde32 100644
--- a/misc/latex-mk/Makefile
+++ b/misc/latex-mk/Makefile
@@ -20,7 +20,7 @@ RUN_DEPENDS= latex:${PORTSDIR}/print/teTeX
USE_GMAKE= yes
GNU_CONFIGURE= yes
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
INFO= latex-mk
diff --git a/misc/libhome/Makefile b/misc/libhome/Makefile
index 9bc28ec..bc5ac57 100644
--- a/misc/libhome/Makefile
+++ b/misc/libhome/Makefile
@@ -64,7 +64,7 @@ CONFIGURE_ARGS+= --without-pam
.endif
GNU_CONFIGURE= YES
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
MAKE_ARGS= CC="${CC}" CFLAGS="${CFLAGS}" prefix="${PREFIX}" home_finger
MAN5= home.conf.5
diff --git a/misc/lifelines/Makefile b/misc/lifelines/Makefile
index 524a9dc..c3d5e24 100644
--- a/misc/lifelines/Makefile
+++ b/misc/lifelines/Makefile
@@ -15,7 +15,7 @@ MAINTAINER= matt@gsicomp.on.ca
COMMENT= An advanced genealogical system
GNU_CONFIGURE= yes
-CONFIGURE_TARGET=--build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET=--build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
USE_ICONV= yes
USE_BZIP2= yes
USE_GETOPT_LONG=yes
diff --git a/misc/linux-opengroupware/Makefile b/misc/linux-opengroupware/Makefile
index fd2cf99..9a0914c 100644
--- a/misc/linux-opengroupware/Makefile
+++ b/misc/linux-opengroupware/Makefile
@@ -11,7 +11,7 @@ CATEGORIES= misc www linux
MASTER_SITES= http://download.opengroupware.org/packages/freebsd/linux-opengroupware/RPMS/:ogo \
http://download.opengroupware.org/packages/freebsd/linux-opengroupware/NGOBJWEB/:ngo \
${MASTER_SITE_REDHAT_LINUX}
-MASTER_SITE_SUBDIR= updates/8.0/en/os/${ARCH}
+MASTER_SITE_SUBDIR= updates/8.0/en/os/${MACHINE_ARCH}
PKGNAMEPREFIX= linux-
DISTFILES= ${SET1} \
${SET2} \
@@ -119,7 +119,7 @@ ONLY_FOR_ARCHS= i386
NO_PACKAGE= We dont really build anything ...
DIST_SUBDIR= ogo
PLIST= ${WRKDIR}/pkg-plist
-MD5_FILE= ${MASTERDIR}/distinfo.${ARCH}
+MD5_FILE= ${MASTERDIR}/distinfo.${MACHINE_ARCH}
PREFIX= ${LINUXBASE}
.include <bsd.port.pre.mk>
diff --git a/misc/patchutils/Makefile b/misc/patchutils/Makefile
index fdba940..36a74f7 100644
--- a/misc/patchutils/Makefile
+++ b/misc/patchutils/Makefile
@@ -18,7 +18,7 @@ USE_BZIP2= yes
USE_PERL5= yes
USE_GETOPT_LONG= yes
GNU_CONFIGURE= yes
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
MAN1= combinediff.1 dehtmldiff.1 editdiff.1 espdiff.1 filterdiff.1 \
fixcvsdiff.1 flipdiff.1 grepdiff.1 interdiff.1 lsdiff.1 recountdiff.1 \
diff --git a/misc/sword/Makefile b/misc/sword/Makefile
index 5f82075..54057b5 100644
--- a/misc/sword/Makefile
+++ b/misc/sword/Makefile
@@ -23,7 +23,7 @@ USE_GNOME= pkgconfig
USE_GMAKE= yes
USE_REINPLACE= yes
GNU_CONFIGURE= yes
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ARGS+= --without-conf
INSTALLS_SHLIB= yes
diff --git a/misc/sword15/Makefile b/misc/sword15/Makefile
index 5f82075..54057b5 100644
--- a/misc/sword15/Makefile
+++ b/misc/sword15/Makefile
@@ -23,7 +23,7 @@ USE_GNOME= pkgconfig
USE_GMAKE= yes
USE_REINPLACE= yes
GNU_CONFIGURE= yes
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ARGS+= --without-conf
INSTALLS_SHLIB= yes
diff --git a/misc/talkfilters/Makefile b/misc/talkfilters/Makefile
index 67650e6..3214755 100644
--- a/misc/talkfilters/Makefile
+++ b/misc/talkfilters/Makefile
@@ -17,7 +17,7 @@ CONFLICTS= jive* chef*
USE_LIBTOOL_VER= 15
INSTALLS_SHLIB= yes
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
MAN1= talkfilters.1 wrap.1
MLINKS= talkfilters.1 austro.1 \
diff --git a/misc/uf-view/Makefile b/misc/uf-view/Makefile
index 7088409..08763ec 100644
--- a/misc/uf-view/Makefile
+++ b/misc/uf-view/Makefile
@@ -20,7 +20,7 @@ USE_GNOME= gnomeprefix gnomehack gnomehier gnomevfs2 gnomedesktop
GNU_CONFIGURE= yes
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib"
-CONFIGURE_TARGET= --target=${ARCH}-unknown-freebsd${OSREL}
+CONFIGURE_TARGET= --target=${MACHINE_ARCH}-unknown-freebsd${OSREL}
USE_REINPLACE= yes
pre-patch:
diff --git a/misc/wmwork/Makefile b/misc/wmwork/Makefile
index dd57401..b50cbf3 100644
--- a/misc/wmwork/Makefile
+++ b/misc/wmwork/Makefile
@@ -21,7 +21,7 @@ USE_XPM= yes
USE_GETOPT_LONG= yes
USE_GMAKE= yes
GNU_CONFIGURE= yes
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ENV= CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}"
MAN1= wmwork.1
diff --git a/misc/xdelta/Makefile b/misc/xdelta/Makefile
index 0d6b956..9595a84 100644
--- a/misc/xdelta/Makefile
+++ b/misc/xdelta/Makefile
@@ -17,7 +17,7 @@ COMMENT= A diff/patch utility for binary files
USE_GNOME= glib12
GNU_CONFIGURE= yes
INSTALLS_SHLIB= yes
-CONFIGURE_TARGET= --target=${ARCH}-unknown-freebsd${OSREL}
+CONFIGURE_TARGET= --target=${MACHINE_ARCH}-unknown-freebsd${OSREL}
MAN1= xdelta.1
diff --git a/multimedia/camserv/Makefile b/multimedia/camserv/Makefile
index d0d62a7..ca7c5d4 100644
--- a/multimedia/camserv/Makefile
+++ b/multimedia/camserv/Makefile
@@ -28,7 +28,7 @@ USE_LIBTOOL_VER=15
USE_REINPLACE= yes
USE_AUTOCONF_VER=259
-CONFIGURE_TARGET=--build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET=--build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ENV+= CPPFLAGS="-I${LOCALBASE}/include -I${X11BASE}/include \
-I${X11BASE}/include/gtk12 -I${X11BASE}/include/gdk-pixbuf-1.0 \
-I${LOCALBASE}/include/glib12" \
diff --git a/multimedia/emovix/Makefile b/multimedia/emovix/Makefile
index 7fc5ef0..e065e27 100644
--- a/multimedia/emovix/Makefile
+++ b/multimedia/emovix/Makefile
@@ -16,7 +16,7 @@ MAINTAINER= h.eichmann@gmx.de
COMMENT= A mini linux distro to create bootable video CDs
GNU_CONFIGURE= yes
-CONFIGURE_TARGET=--build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET=--build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
USE_GMAKE= yes
USE_PERL5= yes
USE_PERL5_BUILD=yes
diff --git a/multimedia/kaffeine/Makefile b/multimedia/kaffeine/Makefile
index 3b628c8..1aac2ba 100644
--- a/multimedia/kaffeine/Makefile
+++ b/multimedia/kaffeine/Makefile
@@ -21,7 +21,7 @@ USE_GMAKE= yes
GNU_CONFIGURE= yes
CONFIGURE_ENV= CXXFLAGS="${CFLAGS}"
CONFIGURE_TARGET=
-CONFIGURE_ARGS+= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_ARGS+= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
MAN1= kaffeine.1
MANLANG= "" de
diff --git a/multimedia/kmplayer-kde4/Makefile b/multimedia/kmplayer-kde4/Makefile
index f7333a0..4dfc675 100644
--- a/multimedia/kmplayer-kde4/Makefile
+++ b/multimedia/kmplayer-kde4/Makefile
@@ -23,7 +23,7 @@ USE_XLIB= yes
USE_GMAKE= yes
USE_REINPLACE= yes
GNU_CONFIGURE= yes
-CONFIGURE_ARGS+=--build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_ARGS+=--build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_TARGET=
CONFIGURE_ARGS+=--with-x=${X11BASE} --disable-debug
diff --git a/multimedia/kmplayer/Makefile b/multimedia/kmplayer/Makefile
index f7333a0..4dfc675 100644
--- a/multimedia/kmplayer/Makefile
+++ b/multimedia/kmplayer/Makefile
@@ -23,7 +23,7 @@ USE_XLIB= yes
USE_GMAKE= yes
USE_REINPLACE= yes
GNU_CONFIGURE= yes
-CONFIGURE_ARGS+=--build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_ARGS+=--build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_TARGET=
CONFIGURE_ARGS+=--with-x=${X11BASE} --disable-debug
diff --git a/multimedia/libdvbpsi/Makefile b/multimedia/libdvbpsi/Makefile
index 63fd47c..9b088c5 100644
--- a/multimedia/libdvbpsi/Makefile
+++ b/multimedia/libdvbpsi/Makefile
@@ -18,7 +18,7 @@ COMMENT= A library for MPEG TS and DVB PSI tables decoding and generation
USE_REINPLACE= yes
GNU_CONFIGURE= yes
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ARGS= --enable-release
INSTALLS_SHLIB= yes
diff --git a/multimedia/libfame/Makefile b/multimedia/libfame/Makefile
index 944c9def..2f5828e 100644
--- a/multimedia/libfame/Makefile
+++ b/multimedia/libfame/Makefile
@@ -19,7 +19,7 @@ COMMENT= A video encoding library
USE_INC_LIBTOOL_VER=13
INSTALLS_SHLIB= yes
-CONFIGURE_TARGET=--build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET=--build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
MAN3= fame_close.3 fame_encode_frame.3 fame_get_object.3 fame_init.3 \
fame_open.3 fame_register.3 fame_unregister.3 fame_encode_slice.3 \
diff --git a/multimedia/libmpeg3/Makefile b/multimedia/libmpeg3/Makefile
index 9666de6..1fbe2da 100644
--- a/multimedia/libmpeg3/Makefile
+++ b/multimedia/libmpeg3/Makefile
@@ -31,9 +31,9 @@ post-patch:
do-install:
.for i in mpeg3cat mpeg3dump mpeg3toc
- ${INSTALL_PROGRAM} ${WRKSRC}/${ARCH}/${i} ${PREFIX}/bin
+ ${INSTALL_PROGRAM} ${WRKSRC}/${MACHINE_ARCH}/${i} ${PREFIX}/bin
.endfor
- ${INSTALL_DATA} ${WRKSRC}/${ARCH}/libmpeg3.a ${PREFIX}/lib
+ ${INSTALL_DATA} ${WRKSRC}/${MACHINE_ARCH}/libmpeg3.a ${PREFIX}/lib
.for i in libmpeg3.h mpeg3private.h
${INSTALL_DATA} ${WRKSRC}/${i} ${PREFIX}/include
.endfor
diff --git a/multimedia/transcode/Makefile b/multimedia/transcode/Makefile
index d6257d4..1662a3a 100644
--- a/multimedia/transcode/Makefile
+++ b/multimedia/transcode/Makefile
@@ -30,7 +30,7 @@ LDFLAGS= -L${LOCALBASE}/lib -L${X11BASE}/lib
CPPFLAGS= -I${X11BASE}/include -I${LOCALBASE}/include
CONFIGURE_ENV= CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}" \
SDL_CONFIG="${LOCALBASE}/bin/sdl11-config"
-CONFIGURE_TARGET=--build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET=--build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ARGS+= --with-ffmpeg_libs-prefix=${LOCALBASE} \
--with-libdvdread-prefix=${LOCALBASE} \
--with-libiconv-prefix=${LOCALBASE}
diff --git a/multimedia/xmms/Makefile b/multimedia/xmms/Makefile
index 2ae3c32..0186b5d 100644
--- a/multimedia/xmms/Makefile
+++ b/multimedia/xmms/Makefile
@@ -89,7 +89,7 @@ CONFIGURE_ARGS+= --disable-esd
PLIST_SUB+= ESDPLUGIN:="@comment "
.endif
-.if ${ARCH} != "i386"
+.if ${MACHINE_ARCH} != "i386"
WITHOUT_SIMD= yes
.endif
diff --git a/net-im/ari-yahoo/Makefile b/net-im/ari-yahoo/Makefile
index 6d11b76..f07bd68 100644
--- a/net-im/ari-yahoo/Makefile
+++ b/net-im/ari-yahoo/Makefile
@@ -18,7 +18,7 @@ COMMENT= A console Yahoo! messenger client
PLIST_FILES= bin/ari-yahoo
USE_GMAKE= yes
USE_AUTOCONF_VER= 253
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
pre-configure:
@(cd ${WRKSRC}/libyahoo && ${SETENV} ${AUTOCONF_ENV} ${AUTOCONF} \
diff --git a/net-im/climm/Makefile b/net-im/climm/Makefile
index 091fbb1..d2b002c 100644
--- a/net-im/climm/Makefile
+++ b/net-im/climm/Makefile
@@ -19,7 +19,7 @@ COMMENT= Text-based ICQ implementation
USE_GMAKE= yes
USE_OPENSSL= yes
GNU_CONFIGURE= yes
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ENV= CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}"
MAN1= micq.1
diff --git a/net-im/ickle/Makefile b/net-im/ickle/Makefile
index 1736306..9feb344 100644
--- a/net-im/ickle/Makefile
+++ b/net-im/ickle/Makefile
@@ -27,7 +27,7 @@ USE_LIBTOOL_VER= 13
USE_REINPLACE= yes
GNU_CONFIGURE= yes
INSTALLS_SHLIB= yes
-CONFIGURE_TARGET= --target=${ARCH}-unknown-freebsd${OSREL}
+CONFIGURE_TARGET= --target=${MACHINE_ARCH}-unknown-freebsd${OSREL}
CONFIGURE_ARGS= --with-sigc-prefix=${LOCALBASE} \
--with-gtkmm-prefix=${X11BASE}
CONFIGURE_ENV= CPPFLAGS="`${LOCALBASE}/bin/sigc-config --cflags`"
diff --git a/net-im/kf/Makefile b/net-im/kf/Makefile
index af8221a..b455d51 100644
--- a/net-im/kf/Makefile
+++ b/net-im/kf/Makefile
@@ -21,7 +21,7 @@ LIB_DEPENDS= loudmouth-1.0:${PORTSDIR}/net/loudmouth
USE_X_PREFIX= yes
USE_GNOME= libglade2
USE_GETOPT_LONG= yes
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
USE_LIBTOOL_VER= 15
CONFIGURE_ENV+= CPPFLAGS="-I${LOCALBASE}/include" \
diff --git a/net-im/linux-ymessenger/Makefile b/net-im/linux-ymessenger/Makefile
index 4a3b941..2d58e7c 100644
--- a/net-im/linux-ymessenger/Makefile
+++ b/net-im/linux-ymessenger/Makefile
@@ -10,7 +10,7 @@ PORTVERSION= 1.0.4.1
CATEGORIES= net
MASTER_SITES= http://download.yahoo.com/dl/unix/
PKGNAMEPREFIX= linux-
-DISTNAME= rh${BASEVERSION:C/([^\.])\..*/\1/}.${PORTNAME}-${PORTVERSION:C/\.([^\.]+)$/-\1/}.${ARCH}
+DISTNAME= rh${BASEVERSION:C/([^\.])\..*/\1/}.${PORTNAME}-${PORTVERSION:C/\.([^\.]+)$/-\1/}.${MACHINE_ARCH}
EXTRACT_SUFX= .rpm
MAINTAINER= sethk@meowfishies.com
diff --git a/net-im/micq/Makefile b/net-im/micq/Makefile
index 091fbb1..d2b002c 100644
--- a/net-im/micq/Makefile
+++ b/net-im/micq/Makefile
@@ -19,7 +19,7 @@ COMMENT= Text-based ICQ implementation
USE_GMAKE= yes
USE_OPENSSL= yes
GNU_CONFIGURE= yes
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ENV= CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}"
MAN1= micq.1
diff --git a/net-im/naim/Makefile b/net-im/naim/Makefile
index a251f94..7ceda94 100644
--- a/net-im/naim/Makefile
+++ b/net-im/naim/Makefile
@@ -17,7 +17,7 @@ USE_BZIP2= yes
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --with-pkgdocdir=${DOCSDIR} \
--mandir=${MANPREFIX}/man
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
MAN1= naim.1
MLINKS= naim.1 nirc.1 naim.1 nicq.1 naim.1 nlily.1
diff --git a/net-im/pork/Makefile b/net-im/pork/Makefile
index 5ba0ce7..5fd6657 100644
--- a/net-im/pork/Makefile
+++ b/net-im/pork/Makefile
@@ -19,6 +19,6 @@ USE_GETOPT_LONG= yes
USE_OPENSSL= yes
GNU_CONFIGURE= yes
-CONFIGURE_TARGET=--build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET=--build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
.include <bsd.port.mk>
diff --git a/net-im/sim-im/Makefile b/net-im/sim-im/Makefile
index 5ac2484..588d846 100644
--- a/net-im/sim-im/Makefile
+++ b/net-im/sim-im/Makefile
@@ -25,7 +25,7 @@ GNU_CONFIGURE= yes
USE_REINPLACE= yes
INSTALLS_SHLIB= yes
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
.if !defined(WITHOUT_SSL)
USE_OPENSSL= yes
diff --git a/net-im/simicq/Makefile b/net-im/simicq/Makefile
index 5ac2484..588d846 100644
--- a/net-im/simicq/Makefile
+++ b/net-im/simicq/Makefile
@@ -25,7 +25,7 @@ GNU_CONFIGURE= yes
USE_REINPLACE= yes
INSTALLS_SHLIB= yes
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
.if !defined(WITHOUT_SSL)
USE_OPENSSL= yes
diff --git a/net-mgmt/ap-utils/Makefile b/net-mgmt/ap-utils/Makefile
index 835d049..6d2b7ea 100644
--- a/net-mgmt/ap-utils/Makefile
+++ b/net-mgmt/ap-utils/Makefile
@@ -15,7 +15,7 @@ MAINTAINER= daniel+aputils@pelleg.org
COMMENT= A set of utilities to configure and monitor wireless access points
GNU_CONFIGURE= yes
-CONFIGURE_TARGET=--build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET=--build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
USE_BZIP2= yes
USE_REINPLACE= yes
CONFIGURE_ENV= LDFLAGS="-lintl -L${LOCALBASE}/lib"
diff --git a/net-mgmt/arpscan/Makefile b/net-mgmt/arpscan/Makefile
index d693d95..f1c32d8 100644
--- a/net-mgmt/arpscan/Makefile
+++ b/net-mgmt/arpscan/Makefile
@@ -18,7 +18,7 @@ BUILD_DEPENDS= ${LOCALBASE}/lib/libdnet.a:${PORTSDIR}/net/libdnet
BROKEN= Unfetchable
GNU_CONFIGURE= yes
-CONFIGURE_TARGET=--build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET=--build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
PLIST_FILES= bin/arpscan
diff --git a/net-mgmt/darkstat/Makefile b/net-mgmt/darkstat/Makefile
index 9d4f8c1..f82ad94 100644
--- a/net-mgmt/darkstat/Makefile
+++ b/net-mgmt/darkstat/Makefile
@@ -17,7 +17,7 @@ COMMENT= Network statistics gatherer, similar to ntop
USE_GETTEXT= yes
GNU_CONFIGURE= yes
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
.if defined(WITHOUT_NLS)
CONFIGURE_ARGS= --disable-nls
diff --git a/net-mgmt/disco/Makefile b/net-mgmt/disco/Makefile
index b715d8f..9dfd0dd 100644
--- a/net-mgmt/disco/Makefile
+++ b/net-mgmt/disco/Makefile
@@ -16,7 +16,7 @@ COMMENT= IP discovery and fingerprinting utility
GNU_CONFIGURE= yes
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
LIBS="-L${LOCALBASE}/lib"
-CONFIGURE_TARGET=--build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET=--build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
WRKSRC= ${WRKDIR}/${PORTNAME}
diff --git a/net-mgmt/echolot/Makefile b/net-mgmt/echolot/Makefile
index a05b1f3..e388d46 100644
--- a/net-mgmt/echolot/Makefile
+++ b/net-mgmt/echolot/Makefile
@@ -19,7 +19,7 @@ COMMENT= A packet sniffer that grabs ARP packets on any ethernet devices
GNU_CONFIGURE= yes
USE_GMAKE= yes
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
MAN1= echolot.1
diff --git a/net-mgmt/fprobe/Makefile b/net-mgmt/fprobe/Makefile
index ca22bd2..830a5fa 100644
--- a/net-mgmt/fprobe/Makefile
+++ b/net-mgmt/fprobe/Makefile
@@ -15,7 +15,7 @@ MAINTAINER= krion@FreeBSD.org
COMMENT= Tool that collects network traffic data
GNU_CONFIGURE= yes
-CONFIGURE_TARGET=--build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET=--build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
USE_BZIP2= yes
USE_REINPLACE= yes
diff --git a/net-mgmt/iftop/Makefile b/net-mgmt/iftop/Makefile
index a9032c0..9499208 100644
--- a/net-mgmt/iftop/Makefile
+++ b/net-mgmt/iftop/Makefile
@@ -15,7 +15,7 @@ MAINTAINER= krion@FreeBSD.org
COMMENT= Network utility for real-time bandwidth usage information
GNU_CONFIGURE= yes
-CONFIGURE_TARGET=--build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET=--build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
USE_REINPLACE= yes
MAN8= iftop.8
diff --git a/net-mgmt/nefu/Makefile b/net-mgmt/nefu/Makefile
index aef37e4..0784924 100644
--- a/net-mgmt/nefu/Makefile
+++ b/net-mgmt/nefu/Makefile
@@ -14,7 +14,7 @@ MAINTAINER= krion@FreeBSD.org
COMMENT= A network monitoring daemon
GNU_CONFIGURE= yes
-CONFIGURE_TARGET=--build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET=--build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
LIBS="-L${LOCALBASE}/lib"
CONFIGURE_ARGS+= --with-ssl=${OPENSSLBASE} --disable-html
diff --git a/net-mgmt/nfdump-devel/Makefile b/net-mgmt/nfdump-devel/Makefile
index 44bfe13..c920866 100644
--- a/net-mgmt/nfdump-devel/Makefile
+++ b/net-mgmt/nfdump-devel/Makefile
@@ -15,7 +15,7 @@ MAINTAINER= janos.mohacsi@bsd.hu
COMMENT= Command-line tools to collect and process NetFlow data
GNU_CONFIGURE= yes
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
PLIST_FILES= bin/nfcapd bin/nfdump bin/nfprofile bin/nfreplay bin/nfclean.pl
MAN1= nfcapd.1 nfdump.1 nfprofile.1 nfreplay.1
diff --git a/net-mgmt/nfdump/Makefile b/net-mgmt/nfdump/Makefile
index 44bfe13..c920866 100644
--- a/net-mgmt/nfdump/Makefile
+++ b/net-mgmt/nfdump/Makefile
@@ -15,7 +15,7 @@ MAINTAINER= janos.mohacsi@bsd.hu
COMMENT= Command-line tools to collect and process NetFlow data
GNU_CONFIGURE= yes
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
PLIST_FILES= bin/nfcapd bin/nfdump bin/nfprofile bin/nfreplay bin/nfclean.pl
MAN1= nfcapd.1 nfdump.1 nfprofile.1 nfreplay.1
diff --git a/net-mgmt/openvmps/Makefile b/net-mgmt/openvmps/Makefile
index 320f5b4..eafd30e 100644
--- a/net-mgmt/openvmps/Makefile
+++ b/net-mgmt/openvmps/Makefile
@@ -21,7 +21,7 @@ USE_RC_SUBR= yes
GNU_CONFIGURE= yes
USE_GMAKE= yes
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ARGS=--bindir=${PREFIX}/sbin
MAN1= vmpsd.1
diff --git a/net-mgmt/packit/Makefile b/net-mgmt/packit/Makefile
index 59eb1b8..bfe1b27 100644
--- a/net-mgmt/packit/Makefile
+++ b/net-mgmt/packit/Makefile
@@ -21,7 +21,7 @@ MAN8= packit.8
PLIST_FILES= sbin/packit
GNU_CONFIGURE= yes
-CONFIGURE_TARGET=--build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET=--build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
LIBS="-L${LOCALBASE}/lib"
diff --git a/net-mgmt/pmacct/Makefile b/net-mgmt/pmacct/Makefile
index f5f1092..e9158a2 100644
--- a/net-mgmt/pmacct/Makefile
+++ b/net-mgmt/pmacct/Makefile
@@ -36,7 +36,7 @@ CONFIGURE_ARGS+=--disable-mmap
.endif
GNU_CONFIGURE= yes
-GNUCONFIGURE_TARGET=--build=${ARCH}-portbld-freebsd${OSREL}
+GNUCONFIGURE_TARGET=--build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib"
USE_GETOPT_LONG=yes
diff --git a/net-mgmt/tcptrack/Makefile b/net-mgmt/tcptrack/Makefile
index 783182e..a36ba85 100644
--- a/net-mgmt/tcptrack/Makefile
+++ b/net-mgmt/tcptrack/Makefile
@@ -15,7 +15,7 @@ MAINTAINER= squat@squat.no
COMMENT= Packet sniffer which displays TCP information like top(1)
GNU_CONFIGURE= yes
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
PLIST_FILES= bin/tcptrack
MAN1= tcptrack.1
diff --git a/net-p2p/mutella/Makefile b/net-p2p/mutella/Makefile
index 5dc3a2c..ff2762f 100644
--- a/net-p2p/mutella/Makefile
+++ b/net-p2p/mutella/Makefile
@@ -18,7 +18,7 @@ COMMENT= A command line Gnutella client
MAN1= mutella.1
GNU_CONFIGURE= yes
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ENV= PTHREAD_CFLAGS="${PTHREAD_CFLAGS}" \
PTHREAD_LIBS="${PTHREAD_LIBS}"
diff --git a/net-p2p/opendchub/Makefile b/net-p2p/opendchub/Makefile
index 4f8bf84..418101c 100644
--- a/net-p2p/opendchub/Makefile
+++ b/net-p2p/opendchub/Makefile
@@ -18,7 +18,7 @@ COMMENT= Unofficial Unix version of the Direct Connect Hub software
USE_PERL5= yes
USE_GMAKE= yes
GNU_CONFIGURE= yes
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ENV+= CPPFLAGS="-I${LOCALBASE}/include"
post-install:
diff --git a/net-p2p/valknut/Makefile b/net-p2p/valknut/Makefile
index 3d96942f..a40deb8 100644
--- a/net-p2p/valknut/Makefile
+++ b/net-p2p/valknut/Makefile
@@ -26,7 +26,7 @@ GNU_CONFIGURE= yes
CONFIGURE_ARGS= --with-libdc=${LOCALBASE} \
--x-libraries=${X11BASE}/lib --x-includes=${X11BASE}/include
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
post-patch:
@${REINPLACE_CMD} -e 's/-O2//g; s/-lpthread/${PTHREAD_LIBS}/g' \
diff --git a/net/4g8/Makefile b/net/4g8/Makefile
index 80b3f1e..ec4143c 100644
--- a/net/4g8/Makefile
+++ b/net/4g8/Makefile
@@ -17,7 +17,7 @@ COMMENT= 4g8 is a tool that allows you to capture traffic
BUILD_DEPENDS= ${LOCALBASE}/lib/libnet.a:${PORTSDIR}/net/libnet-devel
GNU_CONFIGURE= yes
-CONFIGURE_TARGET=--build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET=--build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
LIBS="-L${LOCALBASE}/lib"
diff --git a/net/amule-devel/Makefile b/net/amule-devel/Makefile
index 6215e3d..06fa04f 100644
--- a/net/amule-devel/Makefile
+++ b/net/amule-devel/Makefile
@@ -27,7 +27,7 @@ USE_X_PREFIX= yes
USE_GNOME= gnomehier gnomehack gnomeprefix
USE_GMAKE= yes
GNU_CONFIGURE= yes
-CONFIGURE_TARGET=--build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET=--build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ARGS= --disable-debug \
--without-included-gettext \
--with-libintl-prefix=${LOCALBASE} \
diff --git a/net/ari-yahoo/Makefile b/net/ari-yahoo/Makefile
index 6d11b76..f07bd68 100644
--- a/net/ari-yahoo/Makefile
+++ b/net/ari-yahoo/Makefile
@@ -18,7 +18,7 @@ COMMENT= A console Yahoo! messenger client
PLIST_FILES= bin/ari-yahoo
USE_GMAKE= yes
USE_AUTOCONF_VER= 253
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
pre-configure:
@(cd ${WRKSRC}/libyahoo && ${SETENV} ${AUTOCONF_ENV} ${AUTOCONF} \
diff --git a/net/b2bua/Makefile b/net/b2bua/Makefile
index 6efa4bf..4f53ed97 100644
--- a/net/b2bua/Makefile
+++ b/net/b2bua/Makefile
@@ -32,7 +32,7 @@ BROKEN= "Does not compile on sparc64"
.endif
do-install:
- ${INSTALL_PROGRAM} ${WRKSRC}/sip/b2b/bin.nodebug.FreeBSD.${ARCH}/b2bua \
+ ${INSTALL_PROGRAM} ${WRKSRC}/sip/b2b/bin.nodebug.FreeBSD.${MACHINE_ARCH}/b2bua \
${PREFIX}/bin
${MKDIR} ${DOCSDIR}
.for file in LICENSE HOWTO HOWTO.PROV b2bdesign.pdf
diff --git a/net/beacon/Makefile b/net/beacon/Makefile
index f940175..745185d 100644
--- a/net/beacon/Makefile
+++ b/net/beacon/Makefile
@@ -23,7 +23,7 @@ PLIST_SUB+= VERSION=${PORTVERSION}
USE_PERL5= yes
USE_AUTOCONF_VER= 259
CONFIGURE_ARGS= --bindir=${WWW_DIR}/${PORTNAME}-${PORTVERSION}
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
.ifdef(WITH_IPV6)
#enable IPv6 name lookup, and sending IPv6 multicast
diff --git a/net/bfilter/Makefile b/net/bfilter/Makefile
index 65503ff..3de6859 100644
--- a/net/bfilter/Makefile
+++ b/net/bfilter/Makefile
@@ -20,7 +20,7 @@ LIB_DEPENDS= popt.0:${PORTSDIR}/devel/popt \
sigc-1.2.5:${PORTSDIR}/devel/libsigc++12
GNU_CONFIGURE= yes
-CONFIGURE_TARGET=--build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET=--build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib"
USE_RC_SUBR= yes
diff --git a/net/c3270/Makefile b/net/c3270/Makefile
index 0940add..aced92e 100644
--- a/net/c3270/Makefile
+++ b/net/c3270/Makefile
@@ -21,7 +21,7 @@ WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION:C/([0-9]\.[0-9])(\..*)/\1/}
USE_GMAKE= yes
GNU_CONFIGURE= yes
-CONFIGURE_TARGET=--build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET=--build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
USE_OPENSSL= yes
diff --git a/net/courier-authlib-ldap/Makefile b/net/courier-authlib-ldap/Makefile
index 96eb0a2..902b25b 100644
--- a/net/courier-authlib-ldap/Makefile
+++ b/net/courier-authlib-ldap/Makefile
@@ -55,7 +55,7 @@ CONFIGURE_ENV= CFLAGS="${CFLAGS} -I${LOCALBASE}/include" \
CXXFLAGS="${CPPFLAGS} -I${LOCALBASE}/include" \
LIBS="${LDFLAGS} -L${LOCALBASE}/lib"
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ARGS= --sysconfdir=${CONFDIR} \
--without-authshadow \
--without-authcustom \
diff --git a/net/dante/Makefile b/net/dante/Makefile
index 47d3258..455ca31 100644
--- a/net/dante/Makefile
+++ b/net/dante/Makefile
@@ -16,7 +16,7 @@ MAINTAINER= anders@FreeBSD.org
COMMENT= A circuit-level firewall/proxy
GNU_CONFIGURE= yes
-CONFIGURE_TARGET=--build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET=--build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ARGS= --with-socks-conf=${PREFIX}/etc/socks.conf \
--with-sockd-conf=${PREFIX}/etc/sockd.conf
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include ${PTHREAD_CFLAGS}" \
diff --git a/net/freewais-sf/Makefile b/net/freewais-sf/Makefile
index c777998..ae0da05 100644
--- a/net/freewais-sf/Makefile
+++ b/net/freewais-sf/Makefile
@@ -22,7 +22,7 @@ USE_PERL5_BUILD=yes
CONFIGURE_SCRIPT= Configure
CONFIGURE_ENV= PREFIX="${PREFIX}" CC="${CC}" CFLAGS="${CFLAGS}"
CONFIGURE_ARGS= -sde -Dprefix="${PREFIX}" \
- -Darchname="${ARCH}-freebsd"
+ -Darchname="${MACHINE_ARCH}-freebsd"
INSTALL_TARGET= install install.man
PORTDOCS= fwsf.ps
diff --git a/net/gutenfetch/Makefile b/net/gutenfetch/Makefile
index 38ac25c..b7aff28 100644
--- a/net/gutenfetch/Makefile
+++ b/net/gutenfetch/Makefile
@@ -17,7 +17,7 @@ COMMENT= Fetch listings and books from Project Gutenberg
LIB_DEPENDS= gutenfetch:${PORTSDIR}/devel/libgutenfetch
GNU_CONFIGURE= yes
-CONFIGURE_TARGET=--build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET=--build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include ${PTHREAD_CFLAGS}" \
LIBS="-L${LOCALBASE}/lib ${PTHREAD_LIBS}"
USE_GMAKE= yes
diff --git a/net/hidentd/Makefile b/net/hidentd/Makefile
index a6f11f4..b06bc0d 100644
--- a/net/hidentd/Makefile
+++ b/net/hidentd/Makefile
@@ -14,7 +14,7 @@ MAINTAINER= krion@FreeBSD.org
COMMENT= Simple and secure ident (RFC1413) server
GNU_CONFIGURE= yes
-CONFIGURE_TARGET=--build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET=--build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
MAN8= hidentd.8
diff --git a/net/honeyd/Makefile b/net/honeyd/Makefile
index b3a9689..8b4b7c2 100644
--- a/net/honeyd/Makefile
+++ b/net/honeyd/Makefile
@@ -21,7 +21,7 @@ BUILD_DEPENDS= ${LOCALBASE}/lib/libdnet.a:${PORTSDIR}/net/libdnet \
USE_REINPLACE= yes
INSTALLS_SHLIB= yes
GNU_CONFIGURE= yes
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ARGS= --with-libdnet=${LOCALBASE} \
--with-libevent=${LOCALBASE} \
--with-pcap
diff --git a/net/ickle/Makefile b/net/ickle/Makefile
index 1736306..9feb344 100644
--- a/net/ickle/Makefile
+++ b/net/ickle/Makefile
@@ -27,7 +27,7 @@ USE_LIBTOOL_VER= 13
USE_REINPLACE= yes
GNU_CONFIGURE= yes
INSTALLS_SHLIB= yes
-CONFIGURE_TARGET= --target=${ARCH}-unknown-freebsd${OSREL}
+CONFIGURE_TARGET= --target=${MACHINE_ARCH}-unknown-freebsd${OSREL}
CONFIGURE_ARGS= --with-sigc-prefix=${LOCALBASE} \
--with-gtkmm-prefix=${X11BASE}
CONFIGURE_ENV= CPPFLAGS="`${LOCALBASE}/bin/sigc-config --cflags`"
diff --git a/net/icpld/Makefile b/net/icpld/Makefile
index b909f5d..688c346 100644
--- a/net/icpld/Makefile
+++ b/net/icpld/Makefile
@@ -16,7 +16,7 @@ COMMENT= Internet connection performance logging daemon
USE_BZIP2= yes
GNU_CONFIGURE= yes
-CONFIGURE_TARGET=--build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET=--build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
MAN1= ${PORTNAME}.1
diff --git a/net/ipsumdump/Makefile b/net/ipsumdump/Makefile
index c763028..6887b1a 100644
--- a/net/ipsumdump/Makefile
+++ b/net/ipsumdump/Makefile
@@ -14,7 +14,7 @@ MAINTAINER= krion@FreeBSD.org
COMMENT= Produce ASCII summary of network traffic or tcpdump(1) file
GNU_CONFIGURE= yes
-CONFIGURE_TARGET=--build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET=--build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
USE_PERL5_BUILD=yes
USE_GMAKE= yes
diff --git a/net/kf/Makefile b/net/kf/Makefile
index af8221a..b455d51 100644
--- a/net/kf/Makefile
+++ b/net/kf/Makefile
@@ -21,7 +21,7 @@ LIB_DEPENDS= loudmouth-1.0:${PORTSDIR}/net/loudmouth
USE_X_PREFIX= yes
USE_GNOME= libglade2
USE_GETOPT_LONG= yes
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
USE_LIBTOOL_VER= 15
CONFIGURE_ENV+= CPPFLAGS="-I${LOCALBASE}/include" \
diff --git a/net/latd/Makefile b/net/latd/Makefile
index e78da1f..45aa393 100644
--- a/net/latd/Makefile
+++ b/net/latd/Makefile
@@ -15,7 +15,7 @@ MAINTAINER= tillman@seekingfire.com
COMMENT= The linux-decnet project LAT protocol suite
GNU_CONFIGURE= yes
-CONFIGURE_TARGET=--build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET=--build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
MAN1= llogin.1
MAN5= latd.conf.5
diff --git a/net/libnet-devel/Makefile b/net/libnet-devel/Makefile
index dd0c1c5..e7b1de2 100644
--- a/net/libnet-devel/Makefile
+++ b/net/libnet-devel/Makefile
@@ -17,7 +17,7 @@ COMMENT= A C library for creating IP packets (development version)
CONFLICTS= libnet-1.*
GNU_CONFIGURE= yes
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
WRKSRC= ${WRKDIR}/${PORTNAME}
diff --git a/net/libnetdude/Makefile b/net/libnetdude/Makefile
index 9be1fd4..ed1b19a 100644
--- a/net/libnetdude/Makefile
+++ b/net/libnetdude/Makefile
@@ -18,7 +18,7 @@ LIB_DEPENDS= pcapnav.0:${PORTSDIR}/net/libpcapnav
USE_INC_LIBTOOL_VER= 13
USE_GNOME= glib12
-CONFIGURE_TARGET=--build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET=--build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ARGS= --disable-gtk-doc --with-html-dir=${DOCSDIR}
INSTALLS_SHLIB= yes
USE_REINPLACE= yes
diff --git a/net/librsync/Makefile b/net/librsync/Makefile
index a652b54..1868e79 100644
--- a/net/librsync/Makefile
+++ b/net/librsync/Makefile
@@ -24,7 +24,7 @@ LIB_DEPENDS+= bz2.1:${PORTSDIR}/archivers/bzip2
USE_REINPLACE= yes
USE_GMAKE= yes
GNU_CONFIGURE= yes
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib"
CONFIGURE_ARGS= --enable-shared --disable-trace
diff --git a/net/linux-ymessenger/Makefile b/net/linux-ymessenger/Makefile
index 4a3b941..2d58e7c 100644
--- a/net/linux-ymessenger/Makefile
+++ b/net/linux-ymessenger/Makefile
@@ -10,7 +10,7 @@ PORTVERSION= 1.0.4.1
CATEGORIES= net
MASTER_SITES= http://download.yahoo.com/dl/unix/
PKGNAMEPREFIX= linux-
-DISTNAME= rh${BASEVERSION:C/([^\.])\..*/\1/}.${PORTNAME}-${PORTVERSION:C/\.([^\.]+)$/-\1/}.${ARCH}
+DISTNAME= rh${BASEVERSION:C/([^\.])\..*/\1/}.${PORTNAME}-${PORTVERSION:C/\.([^\.]+)$/-\1/}.${MACHINE_ARCH}
EXTRACT_SUFX= .rpm
MAINTAINER= sethk@meowfishies.com
diff --git a/net/micq/Makefile b/net/micq/Makefile
index 091fbb1..d2b002c 100644
--- a/net/micq/Makefile
+++ b/net/micq/Makefile
@@ -19,7 +19,7 @@ COMMENT= Text-based ICQ implementation
USE_GMAKE= yes
USE_OPENSSL= yes
GNU_CONFIGURE= yes
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ENV= CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}"
MAN1= micq.1
diff --git a/net/minisapserver/Makefile b/net/minisapserver/Makefile
index 687e4c4..d0c1cdf 100644
--- a/net/minisapserver/Makefile
+++ b/net/minisapserver/Makefile
@@ -16,7 +16,7 @@ COMMENT= SAP and SLP announcement for the VLC Media Player
USE_REINPLACE= yes
GNU_CONFIGURE= yes
-CONFIGURE_TARGET=--build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET=--build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
USE_GMAKE= yes
MAN1= sapserver.1
PORTDOCS= AUTHORS COPYING ChangeLog INSTALL NEWS README
diff --git a/net/mutella/Makefile b/net/mutella/Makefile
index 5dc3a2c..ff2762f 100644
--- a/net/mutella/Makefile
+++ b/net/mutella/Makefile
@@ -18,7 +18,7 @@ COMMENT= A command line Gnutella client
MAN1= mutella.1
GNU_CONFIGURE= yes
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ENV= PTHREAD_CFLAGS="${PTHREAD_CFLAGS}" \
PTHREAD_LIBS="${PTHREAD_LIBS}"
diff --git a/net/naim/Makefile b/net/naim/Makefile
index a251f94..7ceda94 100644
--- a/net/naim/Makefile
+++ b/net/naim/Makefile
@@ -17,7 +17,7 @@ USE_BZIP2= yes
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --with-pkgdocdir=${DOCSDIR} \
--mandir=${MANPREFIX}/man
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
MAN1= naim.1
MLINKS= naim.1 nirc.1 naim.1 nicq.1 naim.1 nlily.1
diff --git a/net/nast/Makefile b/net/nast/Makefile
index 52e926a..ee0889a 100644
--- a/net/nast/Makefile
+++ b/net/nast/Makefile
@@ -23,7 +23,7 @@ LIBNET_CONFIG?= ${LOCALBASE}/bin/libnet-config
MAN8= nast.8
GNU_CONFIGURE= yes
-CONFIGURE_TARGET=--build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET=--build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ENV= LIBS="${PTHREAD_LIBS}"
USE_GMAKE= yes
USE_REINPLACE= yes
diff --git a/net/nc6/Makefile b/net/nc6/Makefile
index a62c48f..dd30331 100644
--- a/net/nc6/Makefile
+++ b/net/nc6/Makefile
@@ -20,7 +20,7 @@ USE_ICONV= yes
GNU_CONFIGURE= yes
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib"
-CONFIGURE_TARGET= --target=${ARCH}-unknown-freebsd${OSREL}
+CONFIGURE_TARGET= --target=${MACHINE_ARCH}-unknown-freebsd${OSREL}
.if !defined(WITHOUT_NLS)
USE_GETTEXT= yes
diff --git a/net/netatalk/Makefile b/net/netatalk/Makefile
index d19052d..d91cf38 100644
--- a/net/netatalk/Makefile
+++ b/net/netatalk/Makefile
@@ -46,7 +46,7 @@ PLIST_SUB+= TIMELORD=""
PLIST_SUB+= TIMELORD="@comment "
.endif
USE_LIBTOOL_VER=15
-CONFIGURE_TARGET=--build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET=--build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
USE_GMAKE= yes
USE_PERL5= yes
FILES= AppleVolumes.default AppleVolumes.system afpd.conf \
diff --git a/net/ntop/Makefile b/net/ntop/Makefile
index d528eda1..382f174 100644
--- a/net/ntop/Makefile
+++ b/net/ntop/Makefile
@@ -32,7 +32,7 @@ USE_INC_LIBTOOL_VER=13
INSTALLS_SHLIB= yes
PLIST_SUB+= DBDIR=${DBDIR} \
SHLIB=${PORTVERSION:S/.p/pre/}
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ARGS= --localstatedir=${DBDIR} \
--with-ossl-root=${OPENSSLBASE} \
--with-gdbm-root=${LOCALBASE} \
diff --git a/net/nylon/Makefile b/net/nylon/Makefile
index ba14ee9..4bb76b0 100644
--- a/net/nylon/Makefile
+++ b/net/nylon/Makefile
@@ -21,7 +21,7 @@ RC_SCRIPTS_SUB=PREFIX=${PREFIX} RC_SUBR=${RC_SUBR}
GNU_CONFIGURE= yes
# Necessary for $PREFIX to work:
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ARGS= --with-libevent=${LOCALBASE}
MAN1= nylon.1
diff --git a/net/opendchub/Makefile b/net/opendchub/Makefile
index 4f8bf84..418101c 100644
--- a/net/opendchub/Makefile
+++ b/net/opendchub/Makefile
@@ -18,7 +18,7 @@ COMMENT= Unofficial Unix version of the Direct Connect Hub software
USE_PERL5= yes
USE_GMAKE= yes
GNU_CONFIGURE= yes
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ENV+= CPPFLAGS="-I${LOCALBASE}/include"
post-install:
diff --git a/net/openldap21-server/Makefile b/net/openldap21-server/Makefile
index 5e3b572..d87faeb 100644
--- a/net/openldap21-server/Makefile
+++ b/net/openldap21-server/Makefile
@@ -232,7 +232,7 @@ CPPFLAGS+= ${PTHREAD_CFLAGS} \
LDFLAGS+= -L${LOCALBASE}/lib
#LIBS+= ${PTHREAD_LIBS}
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ENV= CPPFLAGS="${CPPFLAGS}" \
LDFLAGS="${LDFLAGS}" \
LIBS="${LIBS}"
diff --git a/net/openldap22-server/Makefile b/net/openldap22-server/Makefile
index 7ce479d..9fb7289 100644
--- a/net/openldap22-server/Makefile
+++ b/net/openldap22-server/Makefile
@@ -304,7 +304,7 @@ CPPFLAGS+= ${PTHREAD_CFLAGS} \
LDFLAGS+= -L${LOCALBASE}/lib
#LIBS+= ${PTHREAD_LIBS}
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ENV+= CPPFLAGS="${CPPFLAGS}" \
LDFLAGS="${LDFLAGS}" \
LIBS="${LIBS}"
diff --git a/net/openslp/Makefile b/net/openslp/Makefile
index 2dee603..46374cf 100644
--- a/net/openslp/Makefile
+++ b/net/openslp/Makefile
@@ -22,7 +22,7 @@ USE_OPENSSL= yes
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --sysconfdir=${PREFIX}/etc/openslp \
--localstatedir=/var
-CONFIGURE_TARGET= --target=${ARCH}-unknown-freebsd${OSREL}
+CONFIGURE_TARGET= --target=${MACHINE_ARCH}-unknown-freebsd${OSREL}
.if defined(WITH_SLP_SECURITY)
CONFIGURE_ARGS+= --enable-slpv2-security
diff --git a/net/poink/Makefile b/net/poink/Makefile
index 5692fea..792dcf7 100644
--- a/net/poink/Makefile
+++ b/net/poink/Makefile
@@ -16,8 +16,8 @@ COMMENT= Nosuid, secure ping like utility
USE_ZIP= yes
-.if ${ARCH} == "sparc64"
-BROKEN= "Hostname resolution broken on ${ARCH}"
+.if ${MACHINE_ARCH} == "sparc64"
+BROKEN= "Hostname resolution broken on ${MACHINE_ARCH}"
.endif
MAN1= poink.1
diff --git a/net/pork/Makefile b/net/pork/Makefile
index 5ba0ce7..5fd6657 100644
--- a/net/pork/Makefile
+++ b/net/pork/Makefile
@@ -19,6 +19,6 @@ USE_GETOPT_LONG= yes
USE_OPENSSL= yes
GNU_CONFIGURE= yes
-CONFIGURE_TARGET=--build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET=--build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
.include <bsd.port.mk>
diff --git a/net/portfwd/Makefile b/net/portfwd/Makefile
index 0a8e017..1b6104c 100644
--- a/net/portfwd/Makefile
+++ b/net/portfwd/Makefile
@@ -16,7 +16,7 @@ MAINTAINER= ale@FreeBSD.org
COMMENT= A Port Forwarding Daemon
GNU_CONFIGURE= yes
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
USE_GMAKE= yes
USE_REINPLACE= yes
diff --git a/net/rrdtool/Makefile b/net/rrdtool/Makefile
index fda0e1a..501cf6d 100644
--- a/net/rrdtool/Makefile
+++ b/net/rrdtool/Makefile
@@ -23,7 +23,7 @@ INSTALLS_SHLIB= yes
CONFIGURE_ARGS= --enable-shared --enable-local-zlib \
--program-transform-name=''
CONFIGURE_ENV= PERL=${PERL}
-CONFIGURE_TARGET=--build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET=--build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CFLAGS+= -I${LOCALBASE}/include -L${LOCALBASE}/lib -fPIC
LDFLAGS+= -L${LOCALBASE}/lib
CFLAGS:= ${CFLAGS:N-ffast-math}
diff --git a/net/rrdtool10/Makefile b/net/rrdtool10/Makefile
index fda0e1a..501cf6d 100644
--- a/net/rrdtool10/Makefile
+++ b/net/rrdtool10/Makefile
@@ -23,7 +23,7 @@ INSTALLS_SHLIB= yes
CONFIGURE_ARGS= --enable-shared --enable-local-zlib \
--program-transform-name=''
CONFIGURE_ENV= PERL=${PERL}
-CONFIGURE_TARGET=--build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET=--build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CFLAGS+= -I${LOCALBASE}/include -L${LOCALBASE}/lib -fPIC
LDFLAGS+= -L${LOCALBASE}/lib
CFLAGS:= ${CFLAGS:N-ffast-math}
diff --git a/net/rsync/Makefile b/net/rsync/Makefile
index 12ef8ac..7ac45e1 100644
--- a/net/rsync/Makefile
+++ b/net/rsync/Makefile
@@ -31,7 +31,7 @@ GNU_CONFIGURE= yes
CONFIGURE_ARGS= --disable-debug \
--with-rsyncd-conf=${PREFIX}/etc/rsyncd.conf
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
.if defined(WITH_POPT_PORT)
CONFIGURE_ENV= CFLAGS="-I${LOCALBASE}/include" \
diff --git a/net/samba3/Makefile b/net/samba3/Makefile
index 19d031d..56b950c 100644
--- a/net/samba3/Makefile
+++ b/net/samba3/Makefile
@@ -43,7 +43,7 @@ SAMBA_CONFIG= ${SAMBA_CONFDIR}/smb.conf
CONFIGURE_ENV+= CPPFLAGS=-I${LOCALBASE}/include \
LDFLAGS=-L${LOCALBASE}/lib
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ARGS+= --exec-prefix=${PREFIX} \
--localstatedir=${VARDIR} \
diff --git a/net/serveez/Makefile b/net/serveez/Makefile
index dab760e..cbf71296 100644
--- a/net/serveez/Makefile
+++ b/net/serveez/Makefile
@@ -27,7 +27,7 @@ USE_GETOPT_LONG= yes
USE_GMAKE= yes
USE_INC_LIBTOOL_VER=13
LIBTOOLFLAGS= --disable-ltlibs --release-ignore
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ENV= CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}"
INSTALLS_SHLIB= yes
diff --git a/net/silc-client/Makefile b/net/silc-client/Makefile
index fcad1dd..3b43de9 100644
--- a/net/silc-client/Makefile
+++ b/net/silc-client/Makefile
@@ -31,7 +31,7 @@ COMMENT= Secure Internet Live Conferencing (SILC) network client
USE_BZIP2= yes
USE_PERL5= yes
GNU_CONFIGURE= yes
-CONFIGURE_TARGET=--build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET=--build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
USE_GNOME= glib12
#USE_LIBTOOL= yes
USE_GMAKE= yes
diff --git a/net/silky/Makefile b/net/silky/Makefile
index 4171258..df38e3f 100644
--- a/net/silky/Makefile
+++ b/net/silky/Makefile
@@ -19,7 +19,7 @@ LIB_DEPENDS= silcclient-1.0.3:${PORTSDIR}/devel/silc-toolkit
RUN_DEPENDS= ${LOCALBASE}/etc/mime.types:${PORTSDIR}/misc/mime-support
GNU_CONFIGURE= yes
-CONFIGURE_TARGET=--build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET=--build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ARGS= --with-silc-include=${LOCALBASE}/include/silc \
--with-silc-libs=${LOCALBASE}/lib \
--with-docdir=${DOCSDIR} \
diff --git a/net/simicq/Makefile b/net/simicq/Makefile
index 5ac2484..588d846 100644
--- a/net/simicq/Makefile
+++ b/net/simicq/Makefile
@@ -25,7 +25,7 @@ GNU_CONFIGURE= yes
USE_REINPLACE= yes
INSTALLS_SHLIB= yes
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
.if !defined(WITHOUT_SSL)
USE_OPENSSL= yes
diff --git a/net/socat/Makefile b/net/socat/Makefile
index 2643320..b6a7236 100644
--- a/net/socat/Makefile
+++ b/net/socat/Makefile
@@ -18,7 +18,7 @@ WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION:R:R}
USE_BZIP2= yes
GNU_CONFIGURE= yes
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
MAKE_ARGS= CCOPT="${CFLAGS}"
.if defined(WITHOUT_SSL)
diff --git a/net/tac_plus4/Makefile b/net/tac_plus4/Makefile
index 7acfd86..352bac6 100644
--- a/net/tac_plus4/Makefile
+++ b/net/tac_plus4/Makefile
@@ -18,7 +18,7 @@ USE_PERL5_BUILD=yes
GNU_CONFIGURE= yes
USE_RC_SUBR= yes
USE_REINPLACE= yes
-CONFIGURE_TARGET=--build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET=--build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
MAN5= tac_plus.conf.5
MAN8= tac_plus.8 tac_pwd.8
diff --git a/net/tacshell/Makefile b/net/tacshell/Makefile
index bd7cbd8..ba81792 100644
--- a/net/tacshell/Makefile
+++ b/net/tacshell/Makefile
@@ -14,7 +14,7 @@ MAINTAINER= krion@FreeBSD.org
COMMENT= Shell authentication for TACACS+ protocol
GNU_CONFIGURE= yes
-CONFIGURE_TARGET=--build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET=--build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
PORTDOCS= README WHATSNEW ChangeLog
PLIST_FILES= bin/tacshell etc/tacshell.conf.sample
diff --git a/net/tcpstat/Makefile b/net/tcpstat/Makefile
index d2a52ad..8ecacda 100644
--- a/net/tcpstat/Makefile
+++ b/net/tcpstat/Makefile
@@ -14,7 +14,7 @@ MAINTAINER= ports@FreeBSD.org
COMMENT= A program to report various network statistics
GNU_CONFIGURE= yes
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
MAN1= tcpstat.1 tcpprof.1
DOCS= AUTHORS ChangeLog LICENSE README doc/Tips_and_Tricks.txt
diff --git a/net/trickle/Makefile b/net/trickle/Makefile
index ebefd6a..19c4e2e 100644
--- a/net/trickle/Makefile
+++ b/net/trickle/Makefile
@@ -21,7 +21,7 @@ INSTALLS_SHLIB= yes
CONFIGURE_ARGS+=--with-libevent=${LOCALBASE}
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
LIBS="-L${LOCALBASE}/lib"
-CONFIGURE_TARGET=--build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET=--build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
MAN1= trickle.1
MAN5= trickled.conf.5
diff --git a/net/tridiavnc/Makefile b/net/tridiavnc/Makefile
index c471121..8e94735 100644
--- a/net/tridiavnc/Makefile
+++ b/net/tridiavnc/Makefile
@@ -26,8 +26,8 @@ XFREE86_HTML_MAN= no
.include <bsd.port.pre.mk>
-.if ${ARCH} != i386
-BROKEN= "Does not compile on ${ARCH}"
+.if ${MACHINE_ARCH} != i386
+BROKEN= "Does not compile on ${MACHINE_ARCH}"
.endif
post-patch:
diff --git a/net/uplog/Makefile b/net/uplog/Makefile
index 127fb28..b0cb79e 100644
--- a/net/uplog/Makefile
+++ b/net/uplog/Makefile
@@ -18,7 +18,7 @@ USE_REINPLACE= yes
GNU_CONFIGURE= yes
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
LIBS="-L${LOCALBASE}/lib"
-CONFIGURE_TARGET=--build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET=--build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
PORTDOCS= README
PLIST_FILES= bin/uplog
diff --git a/net/valknut/Makefile b/net/valknut/Makefile
index 3d96942f..a40deb8 100644
--- a/net/valknut/Makefile
+++ b/net/valknut/Makefile
@@ -26,7 +26,7 @@ GNU_CONFIGURE= yes
CONFIGURE_ARGS= --with-libdc=${LOCALBASE} \
--x-libraries=${X11BASE}/lib --x-includes=${X11BASE}/include
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
post-patch:
@${REINPLACE_CMD} -e 's/-O2//g; s/-lpthread/${PTHREAD_LIBS}/g' \
diff --git a/net/vomit/Makefile b/net/vomit/Makefile
index 7c5e55f..22d5c90 100644
--- a/net/vomit/Makefile
+++ b/net/vomit/Makefile
@@ -18,7 +18,7 @@ BUILD_DEPENDS= ${LOCALBASE}/lib/libevent.a:${PORTSDIR}/devel/libevent \
USE_REINPLACE= yes
GNU_CONFIGURE= yes
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib"
diff --git a/net/wol/Makefile b/net/wol/Makefile
index 7ab36af..7c30845 100644
--- a/net/wol/Makefile
+++ b/net/wol/Makefile
@@ -23,7 +23,7 @@ USE_ICONV= yes
CPPFLAGS= -I${LOCALBASE}/include
LDFLAGS= -L${LOCALBASE}/lib
CONFIGURE_ENV= CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}"
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
INFO= wol
DOCS= AUTHORS NEWS README TODO
diff --git a/news/fidogate-ds/Makefile b/news/fidogate-ds/Makefile
index 653a01e..9ae9406 100644
--- a/news/fidogate-ds/Makefile
+++ b/news/fidogate-ds/Makefile
@@ -72,7 +72,7 @@ CONFIGURE_ARGS+= --libexec=${PREFIX}/libexec/fidogate \
--with-vardir=${VARDIR} \
--with-spooldir=${SPOOLDIR} \
--with-btbasedir=${BTBASEDIR}
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
DOCS= doc/README.ru doc/README doc/FAQ.ru doc/FIDOGATE+tracker.ru \
ChangeLog Changes.ru doc/old/FAQ_fidogate \
diff --git a/news/leafnode/Makefile b/news/leafnode/Makefile
index 00850cc..b218703 100644
--- a/news/leafnode/Makefile
+++ b/news/leafnode/Makefile
@@ -38,7 +38,7 @@ PLIST_SUB= SPOOLDIR=${LEAFNODE_SPOOLDIR}
CONFIGURE_ARGS= --prefix=${PREFIX} --sysconfdir=${PREFIX}/etc/leafnode \
--with-spooldir=${LEAFNODE_SPOOLDIR} --with-ipv6
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
MAKE_ARGS=
PKGMESSAGE= ${WRKSRC}/pkg-message
diff --git a/news/multisuck/Makefile b/news/multisuck/Makefile
index ef9a181..240093b 100644
--- a/news/multisuck/Makefile
+++ b/news/multisuck/Makefile
@@ -16,7 +16,7 @@ MAINTAINER= ports@FreeBSD.org
COMMENT= Multi-server/conn news suck
GNU_CONFIGURE= yes
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/msuck ${PREFIX}/bin
diff --git a/news/nget/Makefile b/news/nget/Makefile
index a555256c3..28900d9 100644
--- a/news/nget/Makefile
+++ b/news/nget/Makefile
@@ -18,7 +18,7 @@ COMMENT= Auto-resuming command line nntp file grabber
MAN1= nget.1 ngetlite.1
MANCOMPRESSED= no
GNU_CONFIGURE= yes
-CONFIGURE_TARGET=--build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET=--build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
USE_GMAKE= yes
USE_GETOPT_LONG= yes
diff --git a/news/noffle/Makefile b/news/noffle/Makefile
index 17263c3..482ddd4 100644
--- a/news/noffle/Makefile
+++ b/news/noffle/Makefile
@@ -23,7 +23,7 @@ CONFIGURE_ARGS+=--with-configfile=${LOCALBASE}/etc/noffle.conf \
--with-usersfile=${LOCALBASE}/etc/noffle.users
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
LIBS="-L${LOCALBASE}/lib"
-CONFIGURE_TARGET=--build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET=--build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
SPOOL_DIR= /var/spool/noffle
PLIST_SUB+= SPOOL_DIR=${SPOOL_DIR}
diff --git a/news/pyne/Makefile b/news/pyne/Makefile
index c5245b7..f68dddb 100644
--- a/news/pyne/Makefile
+++ b/news/pyne/Makefile
@@ -26,7 +26,7 @@ BROKEN= "Broken pkg-plist"
USE_REINPLACE= yes
USE_PYTHON= yes
GNU_CONFIGURE= yes
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
MAKE_ENV= PYTHON_SITELIBDIR="${PYTHON_SITELIBDIR}"
ALL_TARGET= default
diff --git a/news/yencode/Makefile b/news/yencode/Makefile
index ab683a2..7583d50 100644
--- a/news/yencode/Makefile
+++ b/news/yencode/Makefile
@@ -19,7 +19,7 @@ COMMENT= A free (GPL) encoder and decoder for the yEnc Usenet file format
USE_GETOPT_LONG= yes
USE_GETTEXT= yes
GNU_CONFIGURE= yes
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ENV= CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}"
MAN1= ydecode.1 yencode.1 ypost.1
diff --git a/palm/synce-dccm/Makefile b/palm/synce-dccm/Makefile
index 8a8a2d1..e7fb19b 100644
--- a/palm/synce-dccm/Makefile
+++ b/palm/synce-dccm/Makefile
@@ -18,7 +18,7 @@ LIB_DEPENDS+= synce.0:${PORTSDIR}/palm/synce-libsynce
MAN1= dccm.1 synce-sound.1
GNU_CONFIGURE= yes
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ARGS+= --with-libiconv=${LOCALBASE}
CONFIGURE_ARGS+= --with-libsynce=${LOCALBASE}
USE_ICONV= yes
diff --git a/palm/synce-kde/Makefile b/palm/synce-kde/Makefile
index aa5b1f3..dd29928 100644
--- a/palm/synce-kde/Makefile
+++ b/palm/synce-kde/Makefile
@@ -29,7 +29,7 @@ USE_GMAKE= yes
USE_ICONV= yes
USE_LIBTOOL_VER=15
GNU_CONFIGURE= yes
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ENV= LDFLAGS="${PTHREAD_LIBS}"
PORTDOCS= *
DOCSDIR= ${PREFIX}/share/doc/HTML/en/raki
diff --git a/palm/synce-librapi2/Makefile b/palm/synce-librapi2/Makefile
index 8da98a6..8de49b6 100644
--- a/palm/synce-librapi2/Makefile
+++ b/palm/synce-librapi2/Makefile
@@ -23,7 +23,7 @@ USE_REINPLACE= yes
GNU_CONFIGURE= yes
USE_LIBTOOL_VER=13
USE_ICONV= yes
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ARGS+= --with-libiconv=${LOCALBASE}
CONFIGURE_ARGS+= --with-libsynce=${LOCALBASE}
diff --git a/palm/synce-librra/Makefile b/palm/synce-librra/Makefile
index 4dbda54..a48f339 100644
--- a/palm/synce-librra/Makefile
+++ b/palm/synce-librra/Makefile
@@ -23,7 +23,7 @@ MAN1= synce-matchmaker.1
USE_ICONV= yes
USE_LIBTOOL_VER=13
USE_REINPLACE= yes
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ARGS+= --with-libsynce=${LOCALBASE}
INSTALLS_SHLIB= yes
diff --git a/palm/synce-libsynce/Makefile b/palm/synce-libsynce/Makefile
index 14219de..975c219 100644
--- a/palm/synce-libsynce/Makefile
+++ b/palm/synce-libsynce/Makefile
@@ -18,7 +18,7 @@ MAN1= synce.1
USE_ICONV= yes
GNU_CONFIGURE= yes
USE_LIBTOOL_VER=13
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ARGS+= --with-libiconv-prefix=${LOCALBASE}
INSTALLS_SHLIB= yes
diff --git a/palm/synce-rra/Makefile b/palm/synce-rra/Makefile
index 4dbda54..a48f339 100644
--- a/palm/synce-rra/Makefile
+++ b/palm/synce-rra/Makefile
@@ -23,7 +23,7 @@ MAN1= synce-matchmaker.1
USE_ICONV= yes
USE_LIBTOOL_VER=13
USE_REINPLACE= yes
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ARGS+= --with-libsynce=${LOCALBASE}
INSTALLS_SHLIB= yes
diff --git a/palm/synce-serial/Makefile b/palm/synce-serial/Makefile
index 74e00bb..04206ad 100644
--- a/palm/synce-serial/Makefile
+++ b/palm/synce-serial/Makefile
@@ -16,6 +16,6 @@ COMMENT= Wrapper for pppd to initiate communications with WinCE devices
MAN8= synce-serial-config.8 synce-serial-start.8 synce-serial-abort.8
GNU_CONFIGURE= yes
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
.include <bsd.port.mk>
diff --git a/palm/synce-vdccm/Makefile b/palm/synce-vdccm/Makefile
index 8a8a2d1..e7fb19b 100644
--- a/palm/synce-vdccm/Makefile
+++ b/palm/synce-vdccm/Makefile
@@ -18,7 +18,7 @@ LIB_DEPENDS+= synce.0:${PORTSDIR}/palm/synce-libsynce
MAN1= dccm.1 synce-sound.1
GNU_CONFIGURE= yes
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ARGS+= --with-libiconv=${LOCALBASE}
CONFIGURE_ARGS+= --with-libsynce=${LOCALBASE}
USE_ICONV= yes
diff --git a/ports-mgmt/portdowngrade/Makefile b/ports-mgmt/portdowngrade/Makefile
index 12195d6..7ebf370 100644
--- a/ports-mgmt/portdowngrade/Makefile
+++ b/ports-mgmt/portdowngrade/Makefile
@@ -25,7 +25,7 @@ CONFIGURE_ARGS+= --enable-default-server=${DEFAULT_CVS_SERVER}
.endif
GNU_CONFIGURE= yes
-CONFIGURE_TARGET=--build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET=--build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
USE_GMAKE= yes
USE_BZIP2= yes
diff --git a/print/cpp2latex/Makefile b/print/cpp2latex/Makefile
index 61622d8..af270b4 100644
--- a/print/cpp2latex/Makefile
+++ b/print/cpp2latex/Makefile
@@ -16,7 +16,7 @@ COMMENT= Convert C++ source to a file you can input in an LaTeX-document
USE_REINPLACE= yes
GNU_CONFIGURE= yes
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
.include <bsd.port.pre.mk>
diff --git a/print/cups-pstoraster/Makefile b/print/cups-pstoraster/Makefile
index 41201d2..0e34487 100644
--- a/print/cups-pstoraster/Makefile
+++ b/print/cups-pstoraster/Makefile
@@ -30,7 +30,7 @@ USE_BZIP2= yes
USE_REINPLACE= yes
USE_GMAKE= yes
GNU_CONFIGURE= yes
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib"
CONFIGURE_ARGS= --without-x --without-ijs --without-gimp-print \
diff --git a/print/cups/Makefile.common b/print/cups/Makefile.common
index 41721db..78374a2 100644
--- a/print/cups/Makefile.common
+++ b/print/cups/Makefile.common
@@ -67,7 +67,7 @@ USE_GMAKE= yes
USE_PERL5_RUN= yes
GNU_CONFIGURE= yes
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ARGS+= --localstatedir=/var \
--disable-pam \
diff --git a/print/enscript-letter/Makefile b/print/enscript-letter/Makefile
index f9a5d6f..f81abd2 100644
--- a/print/enscript-letter/Makefile
+++ b/print/enscript-letter/Makefile
@@ -17,7 +17,7 @@ COMMENT= ASCII to PostScript filter
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --disable-nls --with-media=${PS}
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
INFO= enscript
MAN1= diffpp.1 enscript.1 sliceprint.1 states.1
diff --git a/print/fontforge/Makefile b/print/fontforge/Makefile
index ae58808..3185095 100644
--- a/print/fontforge/Makefile
+++ b/print/fontforge/Makefile
@@ -31,7 +31,7 @@ USE_GMAKE= yes
USE_XLIB= yes
USE_ICONV= yes
PATCH_STRIP= -l
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
.if !defined(FONTFORGE_NO_MULTILAYER)
CONFIGURE_ARGS= --with-multilayer --with-devicetables --without-freetype-src
.else
diff --git a/print/gv/Makefile b/print/gv/Makefile
index 2227d1f..c703bb5 100644
--- a/print/gv/Makefile
+++ b/print/gv/Makefile
@@ -23,7 +23,7 @@ USE_GHOSTSCRIPT= yes
USE_GETOPT_LONG= yes
USE_GMAKE= yes
GNU_CONFIGURE= yes
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ENV= CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}"
CONFIGURE_ARGS= --libdir=${PREFIX}/lib/X11
diff --git a/print/kaspaliste/Makefile b/print/kaspaliste/Makefile
index c4ab5f2..6736f1c 100644
--- a/print/kaspaliste/Makefile
+++ b/print/kaspaliste/Makefile
@@ -20,7 +20,7 @@ USE_KDEBASE_VER= 3
GNU_CONFIGURE= yes
USE_GMAKE= yes
CONFIGURE_TARGET=
-CONFIGURE_ARGS+= --build=${ARCH}-portbld-freebsd${OSREL} \
+CONFIGURE_ARGS+= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL} \
--with-pg-includes=${LOCALBASE}/include \
--with-pg-libs=${LOCALBASE}/lib
diff --git a/print/libotf/Makefile b/print/libotf/Makefile
index f311fa0..d1368e5 100644
--- a/print/libotf/Makefile
+++ b/print/libotf/Makefile
@@ -17,7 +17,7 @@ LIB_DEPENDS= freetype.9:${PORTSDIR}/print/freetype2
USE_XLIB= yes
USE_LIBTOOL_VER= 15
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
INSTALLS_SHLIB= yes
.include <bsd.port.mk>
diff --git a/print/mftrace/Makefile b/print/mftrace/Makefile
index b84c7ec..e44ed2c 100644
--- a/print/mftrace/Makefile
+++ b/print/mftrace/Makefile
@@ -31,7 +31,7 @@ GNU_CONFIGURE= yes
USE_GMAKE= yes
MAKEFILE= GNUmakefile
PLIST= ${WRKDIR}/pkg-plist
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
MAN1= mftrace.1
diff --git a/print/tipograf/Makefile b/print/tipograf/Makefile
index fb6bbd5..cfa3993 100644
--- a/print/tipograf/Makefile
+++ b/print/tipograf/Makefile
@@ -22,7 +22,7 @@ USE_QT_VER= 3
USE_REINPLACE= yes
USE_GMAKE= yes
GNU_CONFIGURE= yes
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ARGS= --with-qt-dir=${QT_PREFIX}
QTCPPFLAGS+= ${PTHREAD_CFLAGS}
diff --git a/print/typetools/Makefile b/print/typetools/Makefile
index 469534e..8137542 100644
--- a/print/typetools/Makefile
+++ b/print/typetools/Makefile
@@ -18,7 +18,7 @@ COMMENT= Tools for manipulating fonts
BUILD_DEPENDS= ${LOCALBASE}/lib/libkpathsea.a:${PORTSDIR}/print/teTeX-base
GNU_CONFIGURE= yes
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ARGS= --with-kpathsea=${LOCALBASE}
MAN1= cfftot1.1 mmafm.1 mmpfb.1 otfinfo.1 otftotfm.1 t1dotlessj.1 \
diff --git a/russian/ksocrat/Makefile b/russian/ksocrat/Makefile
index 7ea91c0..4a5ee8e 100644
--- a/russian/ksocrat/Makefile
+++ b/russian/ksocrat/Makefile
@@ -28,7 +28,7 @@ NO_CDROM= ${RESTRICTED}
#NO_PACKAGE= ${RESTRICTED}
ONFIGURE_TARGET=
-CONFIGURE_ARGS+=--build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_ARGS+=--build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ENV+= LDFLAGS="${LDFLAGS} -L${LOCALBASE}/lib"
post-install:
diff --git a/russian/xruskb/Makefile b/russian/xruskb/Makefile
index 7406eba..bd8168d 100644
--- a/russian/xruskb/Makefile
+++ b/russian/xruskb/Makefile
@@ -18,7 +18,7 @@ USE_X_PREFIX= YES
USE_BZIP2= YES
GNU_CONFIGURE= YES
CONFIGURE_ARGS= --datadir=${PREFIX}/share
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
.if defined(WITH_MOTIF)
CONFIGURE_ARGS+= --with-toolkit=motif
diff --git a/science/2dhf/Makefile b/science/2dhf/Makefile
index cd62ca6..c7ae2db 100644
--- a/science/2dhf/Makefile
+++ b/science/2dhf/Makefile
@@ -26,7 +26,7 @@ LIB_DEPENDS= lapack:${PORTSDIR}/math/lapack \
.if defined(WITH_OPTIMIZED_FLAGS)
FFLAGS+= -O3 -ffast-math -finline-functions -fomit-frame-pointer -funroll-loops -fexpensive-optimizations -malign-double
-.if (${ARCH} == "i386")
+.if (${MACHINE_ARCH} == "i386")
FFLAGS+= -mfancy-math-387
.endif # i386
.endif
diff --git a/science/buddy/Makefile b/science/buddy/Makefile
index 4d71df8..64e0e9f 100644
--- a/science/buddy/Makefile
+++ b/science/buddy/Makefile
@@ -15,7 +15,7 @@ MAINTAINER= llwang@infor.org
COMMENT= A Binary Decision Diagram library
USE_LIBTOOL_VER=15
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
USE_GMAKE= yes
INSTALLS_SHLIB= yes
diff --git a/science/chemtool/Makefile b/science/chemtool/Makefile
index 291b511..4356204 100644
--- a/science/chemtool/Makefile
+++ b/science/chemtool/Makefile
@@ -21,7 +21,7 @@ USE_GMAKE= yes
USE_AUTOCONF_VER= 259
GNU_CONFIGURE= yes
CFLAGS+= -I${LOCALBASE}/include -I${LOCALBASE}/include/libEMF
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ENV= CFLAGS+="${CFLAGS}" LDFLAGS="-L${LOCALBASE}/lib"
CONFIGURE_ARGS= --enable-emf=yes --with-localedir=${PREFIX}
diff --git a/science/dft++/Makefile b/science/dft++/Makefile
index 145136a..547fc92 100644
--- a/science/dft++/Makefile
+++ b/science/dft++/Makefile
@@ -31,7 +31,7 @@ FFTW= -lfftw
.if defined(WITH_OPTIMIZED_FLAGS)
OPTIMIZED_FLAGS+= -O3 -ffast-math -finline-functions -fomit-frame-pointer -funroll-loops -fexpensive-optimizations -malign-double
-.if (${ARCH} == "i386")
+.if (${MACHINE_ARCH} == "i386")
OPTIMIZED_FLAGS+= -mcpu=i686 -march=i686 -mfancy-math-387 -mpreferred-stack-boundary=3
.endif # i386
.endif
diff --git a/science/getdp/Makefile b/science/getdp/Makefile
index 50aadc7..5eb15b6 100644
--- a/science/getdp/Makefile
+++ b/science/getdp/Makefile
@@ -20,7 +20,7 @@ LIB_DEPENDS= fftw.2:${PORTSDIR}/math/fftw \
lapack.3:${PORTSDIR}/math/lapack
GNU_CONFIGURE= yes
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ARGS= --with-fftw-prefix=${LOCALBASE} \
--with-gsl-prefix=${LOCALBASE}
diff --git a/science/gromacs/Makefile b/science/gromacs/Makefile
index acad6dc..7397bc3 100644
--- a/science/gromacs/Makefile
+++ b/science/gromacs/Makefile
@@ -25,11 +25,11 @@ RUN_DEPENDS= ${LOCALBASE}/mpich/bin/mpicc:${PORTSDIR}/net/mpich
USE_GMAKE= yes
USE_LIBTOOL_VER= 15
INSTALLS_SHLIB= yes
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ENV= CPPFLAGS=-I${LOCALBASE}/include LDFLAGS=-L${LOCALBASE}/lib
CONFIGURE_ARGS= --exec-prefix=${PREFIX}
-PLIST_SUB= BUILD=${ARCH}-portbld-freebsd${OSREL}
+PLIST_SUB= BUILD=${MACHINE_ARCH}-portbld-freebsd${OSREL}
.ifndef WITHOUT_FFTW
.ifdef WITH_FLOAT
diff --git a/science/kmovisto/Makefile b/science/kmovisto/Makefile
index 1b2695c..37ee5b9 100644
--- a/science/kmovisto/Makefile
+++ b/science/kmovisto/Makefile
@@ -20,7 +20,7 @@ USE_GL= yes
USE_REINPLACE= yes
USE_GMAKE= yes
GNU_CONFIGURE= yes
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
post-patch:
@${REINPLACE_CMD} -e 's|-lpthread|${PTHREAD_LIBS}|g ; \
diff --git a/science/netcdf/Makefile b/science/netcdf/Makefile
index 3631bcf..b907ef0 100644
--- a/science/netcdf/Makefile
+++ b/science/netcdf/Makefile
@@ -20,7 +20,7 @@ WRKSRC= ${WRKDIR}/${DISTNAME}/src
CONFLICTS= hdf-4.*
GNU_CONFIGURE= yes
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ENV= CPPFLAGS="-fPIC -DPIC -Df2cFortran"
INSTALLS_SHLIB= yes
diff --git a/science/netcdf4/Makefile b/science/netcdf4/Makefile
index 3631bcf..b907ef0 100644
--- a/science/netcdf4/Makefile
+++ b/science/netcdf4/Makefile
@@ -20,7 +20,7 @@ WRKSRC= ${WRKDIR}/${DISTNAME}/src
CONFLICTS= hdf-4.*
GNU_CONFIGURE= yes
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ENV= CPPFLAGS="-fPIC -DPIC -Df2cFortran"
INSTALLS_SHLIB= yes
diff --git a/security/barnyard/Makefile b/security/barnyard/Makefile
index 14fbe3e..b4551b9 100644
--- a/security/barnyard/Makefile
+++ b/security/barnyard/Makefile
@@ -28,7 +28,7 @@ RC_SCRIPTS_SUB= PREFIX=${PREFIX} RC_SUBR=${RC_SUBR}
GNU_CONFIGURE= yes
CONFIGURE_ENV= LDFLAGS="${LDFLAGS}"
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
DOCS= AUTHORS COPYING LICENSE.QPL README docs/BUGS docs/ChangeLog \
docs/FAQ docs/INSTALL docs/NEWS docs/USAGE
diff --git a/security/beecrypt/Makefile b/security/beecrypt/Makefile
index 57d8bc5..90371ca 100644
--- a/security/beecrypt/Makefile
+++ b/security/beecrypt/Makefile
@@ -16,7 +16,7 @@ MAINTAINER= krion@FreeBSD.org
COMMENT= BeeCrypt is an open source cryptography library
GNU_CONFIGURE= yes
-CONFIGURE_TARGET=--build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET=--build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
USE_LIBTOOL_VER=15
USE_REINPLACE= yes
INSTALLS_SHLIB= yes
diff --git a/security/bro/Makefile b/security/bro/Makefile
index aaae8ca..889d922 100644
--- a/security/bro/Makefile
+++ b/security/bro/Makefile
@@ -21,7 +21,7 @@ WRKSRC= ${WRKDIR}/${PORTNAME}-pub-${PORTVERSION}a37
USE_REINPLACE= yes
GNU_CONFIGURE= yes
MAKE_ENV+= CC="${CC}"
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ARGS= --libdir=${PREFIX}/share
USE_BISON= yes
USE_PERL5= yes
diff --git a/security/bubblegum/Makefile b/security/bubblegum/Makefile
index f922887..5218ea0 100644
--- a/security/bubblegum/Makefile
+++ b/security/bubblegum/Makefile
@@ -14,7 +14,7 @@ MAINTAINER= ports@FreeBSD.org
COMMENT= Watch a file for changes
GNU_CONFIGURE= yes
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
MAN1= bubblegum.1
MANCOMPRESSED= no
diff --git a/security/checkpassword-pam/Makefile b/security/checkpassword-pam/Makefile
index 6918743..d345938 100644
--- a/security/checkpassword-pam/Makefile
+++ b/security/checkpassword-pam/Makefile
@@ -19,6 +19,6 @@ GNU_CONFIGURE= yes
MAN8= checkpassword-pam.8
PLIST_FILES= bin/checkpassword-pam
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
.include <bsd.port.mk>
diff --git a/security/clamav-devel/Makefile b/security/clamav-devel/Makefile
index 496df9c..ab5cb27 100644
--- a/security/clamav-devel/Makefile
+++ b/security/clamav-devel/Makefile
@@ -27,7 +27,7 @@ OPTIONS= MILTER "Compile the milter interface" Off \
CURL "Support URL downloading" Off
USE_REINPLACE= yes
GNU_CONFIGURE= yes
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
USE_AUTOCONF_VER=259
USE_AUTOMAKE_VER=19
USE_LIBTOOL_VER=15
diff --git a/security/clamav/Makefile b/security/clamav/Makefile
index 3ac777f..a5f35cb 100644
--- a/security/clamav/Makefile
+++ b/security/clamav/Makefile
@@ -29,7 +29,7 @@ OPTIONS= MILTER "Compile the milter interface" Off \
CURL "Support URL downloading" Off
USE_REINPLACE= yes
USE_LIBTOOL_VER=15
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
INSTALLS_SHLIB= yes
USE_RC_SUBR= yes
diff --git a/security/courier-authlib-base/Makefile b/security/courier-authlib-base/Makefile
index 96eb0a2..902b25b 100644
--- a/security/courier-authlib-base/Makefile
+++ b/security/courier-authlib-base/Makefile
@@ -55,7 +55,7 @@ CONFIGURE_ENV= CFLAGS="${CFLAGS} -I${LOCALBASE}/include" \
CXXFLAGS="${CPPFLAGS} -I${LOCALBASE}/include" \
LIBS="${LDFLAGS} -L${LOCALBASE}/lib"
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ARGS= --sysconfdir=${CONFDIR} \
--without-authshadow \
--without-authcustom \
diff --git a/security/courier-authlib/Makefile b/security/courier-authlib/Makefile
index 96eb0a2..902b25b 100644
--- a/security/courier-authlib/Makefile
+++ b/security/courier-authlib/Makefile
@@ -55,7 +55,7 @@ CONFIGURE_ENV= CFLAGS="${CFLAGS} -I${LOCALBASE}/include" \
CXXFLAGS="${CPPFLAGS} -I${LOCALBASE}/include" \
LIBS="${LDFLAGS} -L${LOCALBASE}/lib"
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ARGS= --sysconfdir=${CONFDIR} \
--without-authshadow \
--without-authcustom \
diff --git a/security/digest/Makefile b/security/digest/Makefile
index e7df460..1d57d34 100644
--- a/security/digest/Makefile
+++ b/security/digest/Makefile
@@ -24,7 +24,7 @@ MAN1?= ${PORTNAME}.1
PLIST_FILES?= bin/${PORTNAME}
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
.include <bsd.port.pre.mk>
diff --git a/security/fakeroot/Makefile b/security/fakeroot/Makefile
index 8d13958..2a9f9d4 100644
--- a/security/fakeroot/Makefile
+++ b/security/fakeroot/Makefile
@@ -17,7 +17,7 @@ COMMENT= Simulate the root user behaviour
USE_LIBTOOL_VER=15
GNU_CONFIGURE= yes
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
MANLANG= "" es sv
diff --git a/security/fcrackzip/Makefile b/security/fcrackzip/Makefile
index 5f86502..8f7d8a7 100644
--- a/security/fcrackzip/Makefile
+++ b/security/fcrackzip/Makefile
@@ -14,7 +14,7 @@ MAINTAINER= sw@gegenunendlich.de
COMMENT= Portable, fast and featureful ZIP password cracker
GNU_CONFIGURE= yes
-CONFIGURE_TARGET=--build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET=--build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
USE_GETOPT_LONG=yes
USE_PERL5_BUILD=yes
USE_REINPLACE= yes
diff --git a/security/gnupg/Makefile b/security/gnupg/Makefile
index fc80109..1d15b2d 100644
--- a/security/gnupg/Makefile
+++ b/security/gnupg/Makefile
@@ -20,9 +20,9 @@ COMMENT= The GNU Privacy Guard
USE_BZIP2= YES
USE_GMAKE= YES
GNU_CONFIGURE= YES
-CONFIGURE_TARGET= --build ${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build ${MACHINE_ARCH}-portbld-freebsd${OSREL}
.if ${MACHINE_CPU:Mi586}
-ARCH= i586
+MACHINE_ARCH= i586
.endif
CFLAGS:= ${CFLAGS:S/-pipe//g}
.if !defined(WITHOUT_NLS)
diff --git a/security/gnupg1/Makefile b/security/gnupg1/Makefile
index fc80109..1d15b2d 100644
--- a/security/gnupg1/Makefile
+++ b/security/gnupg1/Makefile
@@ -20,9 +20,9 @@ COMMENT= The GNU Privacy Guard
USE_BZIP2= YES
USE_GMAKE= YES
GNU_CONFIGURE= YES
-CONFIGURE_TARGET= --build ${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build ${MACHINE_ARCH}-portbld-freebsd${OSREL}
.if ${MACHINE_CPU:Mi586}
-ARCH= i586
+MACHINE_ARCH= i586
.endif
CFLAGS:= ${CFLAGS:S/-pipe//g}
.if !defined(WITHOUT_NLS)
diff --git a/security/gnutls-devel/Makefile b/security/gnutls-devel/Makefile
index 80b5d02..ab902bd 100644
--- a/security/gnutls-devel/Makefile
+++ b/security/gnutls-devel/Makefile
@@ -33,7 +33,7 @@ INSTALLS_SHLIB= yes
CPPFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib
CONFIGURE_ENV= CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}"
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ARGS= --with-included-lzo
MAN1= certtool.1 gnutls-cli.1 gnutls-cli-debug.1 \
diff --git a/security/gnutls/Makefile b/security/gnutls/Makefile
index 5afa81d..90009b1 100644
--- a/security/gnutls/Makefile
+++ b/security/gnutls/Makefile
@@ -42,7 +42,7 @@ INSTALLS_SHLIB= yes
CPPFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib
CONFIGURE_ENV= CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}"
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ARGS= --with-included-lzo
MAN1= certtool.1 gnutls-cli.1 gnutls-cli-debug.1 \
diff --git a/security/gpgme/Makefile b/security/gpgme/Makefile
index 142c3d7..4be43f2 100644
--- a/security/gpgme/Makefile
+++ b/security/gpgme/Makefile
@@ -22,7 +22,7 @@ USE_LIBTOOL_VER=15
USE_GMAKE= yes
INSTALLS_SHLIB= yes
USE_REINPLACE= yes
-CONFIGURE_TARGET=--build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET=--build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ARGS= --with-gpg=${LOCALBASE}/bin/gpg \
--with-gpgsm=${LOCALBASE}/bin/gpgsm \
--includedir=${PREFIX}/include/gpgme
diff --git a/security/hashish/Makefile b/security/hashish/Makefile
index 5be705d..04169d0 100644
--- a/security/hashish/Makefile
+++ b/security/hashish/Makefile
@@ -26,7 +26,7 @@ LIB_DEPENDS= wx_gtk2-2.4.0:${PORTSDIR}/x11-toolkits/wxgtk2
.endif
GNU_CONFIGURE= yes
-CONFIGURE_TARGET=--build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET=--build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib"
.if !defined(WITH_GTK1)
diff --git a/security/libbf/Makefile b/security/libbf/Makefile
index 3c78d28..1c27cae 100644
--- a/security/libbf/Makefile
+++ b/security/libbf/Makefile
@@ -16,7 +16,7 @@ MASTER_SITES= ftp://ftp.funet.fi/pub/mirrors/ftp.psy.uq.oz.au/libeay/ \
MAINTAINER= jim@corebsd.or.id
COMMENT= The Blowfish block cipher Library
-.if ${ARCH} == "i386"
+.if ${MACHINE_ARCH} == "i386"
MAKEFLAGS+= BF_ENC=asm/bx86-elf.o
.else
MAKEFLAGS+= BF_ENC=bf_enc.o
diff --git a/security/libgpg-error/Makefile b/security/libgpg-error/Makefile
index e71fd21..1605da3 100644
--- a/security/libgpg-error/Makefile
+++ b/security/libgpg-error/Makefile
@@ -20,7 +20,7 @@ SIG_SUFFIX= .sig
USE_INC_LIBTOOL_VER= 15
INSTALLS_SHLIB= yes
GNU_CONFIGURE= yes
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
.if defined(WITHOUT_NLS)
CONFIGURE_ARGS= --without-nls
diff --git a/security/libksba/Makefile b/security/libksba/Makefile
index f98bab7..6c3708e 100644
--- a/security/libksba/Makefile
+++ b/security/libksba/Makefile
@@ -21,7 +21,7 @@ GNU_CONFIGURE= yes
USE_INC_LIBTOOL_VER=15
INSTALLS_SHLIB= yes
CONFIGURE_TARGET=
-CONFIGURE_ARGS+=--build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_ARGS+=--build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
USE_PERL5_BUILD=yes
INFO= ksba
diff --git a/security/libmcrypt/Makefile b/security/libmcrypt/Makefile
index bd591f5..4e6dedb 100644
--- a/security/libmcrypt/Makefile
+++ b/security/libmcrypt/Makefile
@@ -16,7 +16,7 @@ MAINTAINER= ports@FreeBSD.org
COMMENT= Multi-cipher cryptographic library (used in PHP)
GNU_CONFIGURE= yes
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ARGS= --enable-static
INSTALLS_SHLIB= yes
diff --git a/security/libprelude/Makefile b/security/libprelude/Makefile
index 054862a..48a5e55 100644
--- a/security/libprelude/Makefile
+++ b/security/libprelude/Makefile
@@ -16,7 +16,7 @@ USE_REINPLACE= yes
USE_GMAKE= yes
USE_LIBTOOL_VER= 13
INSTALLS_SHLIB= yes
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ARGS= --with-html-dir=${PREFIX}/share/doc --localstatedir=/var
.if defined(WITHOUT_SSL)
diff --git a/security/libtasn1/Makefile b/security/libtasn1/Makefile
index d5ad6a7..b4e62ae 100644
--- a/security/libtasn1/Makefile
+++ b/security/libtasn1/Makefile
@@ -22,7 +22,7 @@ SIG_SUFFIX= .sig
INSTALLS_SHLIB= yes
USE_LIBTOOL_VER= 15
USE_GETOPT_LONG= yes
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
DOCS= AUTHORS NEWS README THANKS doc/TODO \
doc/libtasn1.html doc/libtasn1.pdf doc/libtasn1.ps
diff --git a/security/mcrypt/Makefile b/security/mcrypt/Makefile
index 36fd5e1..d9d479c 100644
--- a/security/mcrypt/Makefile
+++ b/security/mcrypt/Makefile
@@ -29,7 +29,7 @@ CONFIGURE_ARGS+= ${CONFIGURE_SHARED}
CONFIGURE_ARGS+= --enable-static --with-catgets
CONFIGURE_ENV+= CPPFLAGS="-I${LOCALBASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib -lintl"
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
GNU_CONFIGURE= yes
DOCS= FORMAT magic
MAN1= mcrypt.1
diff --git a/security/mhash/Makefile b/security/mhash/Makefile
index 16129d9..900686a 100644
--- a/security/mhash/Makefile
+++ b/security/mhash/Makefile
@@ -16,7 +16,7 @@ COMMENT= An easy-to-use library for strong hashes such as MD5 and SHA1
INSTALLS_SHLIB= yes
USE_LIBTOOL_VER=13
-CONFIGURE_TARGET=--build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET=--build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ARGS+= --with-LDFLAGS="${PTHREAD_LIBS}" --enable-static \
--with-gnu-ld
diff --git a/security/nmap/Makefile b/security/nmap/Makefile
index b5b35de..e467473 100644
--- a/security/nmap/Makefile
+++ b/security/nmap/Makefile
@@ -25,7 +25,7 @@ USE_REINPLACE= yes
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --without-localdirs
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
.ifndef BUILD_NMAPFE
diff --git a/security/oidentd/Makefile b/security/oidentd/Makefile
index f3ee703..7672b3c 100644
--- a/security/oidentd/Makefile
+++ b/security/oidentd/Makefile
@@ -18,7 +18,7 @@ COMMENT= Ident server that supports user-defined ident strings
USE_RC_SUBR= yes
USE_REINPLACE= yes
GNU_CONFIGURE= yes
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
MAN5= oidentd.conf.5 oidentd_masq.conf.5
MAN8= oidentd.8
diff --git a/security/opencdk/Makefile b/security/opencdk/Makefile
index 4e27a38..b8a5249 100644
--- a/security/opencdk/Makefile
+++ b/security/opencdk/Makefile
@@ -26,7 +26,7 @@ SIG_SUFFIX= .sig.asc
USE_BZIP2= yes
USE_LIBTOOL_VER=15
INSTALLS_SHLIB= yes
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ARGS= --with-libgcrypt-prefix=${LOCALBASE}
USE_REINPLACE= yes
diff --git a/security/osiris/Makefile b/security/osiris/Makefile
index 1bb812a..e348cd9 100644
--- a/security/osiris/Makefile
+++ b/security/osiris/Makefile
@@ -19,7 +19,7 @@ OPTIONS= OSIRISMD "Enable to build the management daemon" off \
CLI "Enable to build the management CLI" off
GNU_CONFIGURE= yes
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL} \
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL} \
--enable-fancy-cli
USE_LIBTOOL_VER= 15
USE_RC_SUBR= yes
diff --git a/security/pam_ldap/Makefile b/security/pam_ldap/Makefile
index 20a8102..a620f2d 100644
--- a/security/pam_ldap/Makefile
+++ b/security/pam_ldap/Makefile
@@ -23,7 +23,7 @@ CONFIGURE_ARGS= --with-ldap-lib=openldap \
--with-ldap-dir=${LOCALBASE} \
--with-ldap-conf-file=${PREFIX}/etc/ldap.conf \
--with-ldap-secret-file=${PREFIX}/etc/ldap.secret
-CONFIGURE_TARGET=--build=${ARCH}-unknown-freebsd${OSREL}
+CONFIGURE_TARGET=--build=${MACHINE_ARCH}-unknown-freebsd${OSREL}
PKGMESSAGE= ${WRKDIR}/pkg-message
diff --git a/security/pgp/Makefile b/security/pgp/Makefile
index e4adda2..28afa6d 100644
--- a/security/pgp/Makefile
+++ b/security/pgp/Makefile
@@ -19,7 +19,7 @@ COMMENT= PGP International version - Public-Key encryption for the masses
WRKSRC= ${WRKDIR}/src
MAKEFILE= makefile
-ALL_TARGET= freebsd-${ARCH}
+ALL_TARGET= freebsd-${MACHINE_ARCH}
MAKE_ENV= PREFIX="${PREFIX}" OS_CFLAGS="${CFLAGS}"
PGPLIB= ${PREFIX}/share/pgp
MAN1= pgp.1 pgp2.1
diff --git a/security/pgpin/Makefile b/security/pgpin/Makefile
index dba0507..41add2b 100644
--- a/security/pgpin/Makefile
+++ b/security/pgpin/Makefile
@@ -18,7 +18,7 @@ COMMENT= PGP International version - improved for use in IN-CA
WRKSRC= ${WRKDIR}/pgp263in/src
MAKEFILE= makefile
-ALL_TARGET= freebsd-${ARCH} OS_CFLAGS="${CFLAGS}"
+ALL_TARGET= freebsd-${MACHINE_ARCH} OS_CFLAGS="${CFLAGS}"
PGPLIB= ${PREFIX}/lib/pgpin
MAN1= pgpin.1
diff --git a/security/prelude-lml/Makefile b/security/prelude-lml/Makefile
index a9cd6de..49955e3 100644
--- a/security/prelude-lml/Makefile
+++ b/security/prelude-lml/Makefile
@@ -18,7 +18,7 @@ LIB_DEPENDS+= prelude.1:${PORTSDIR}/security/libprelude \
USE_GMAKE= yes
USE_LIBTOOL_VER= 13
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ARGS+= --with-html-dir=${PREFIX}/share/doc
.include <bsd.port.mk>
diff --git a/security/prelude-manager/Makefile b/security/prelude-manager/Makefile
index a2bc476..4e89bd7 100644
--- a/security/prelude-manager/Makefile
+++ b/security/prelude-manager/Makefile
@@ -18,7 +18,7 @@ LIB_DEPENDS+= prelude.1:${PORTSDIR}/security/libprelude \
USE_GMAKE= yes
GNU_CONFIGURE= yes
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ARGS= --with-html-dir=${PREFIX}/share/doc \
--localstatedir=/var
diff --git a/security/prelude-nids/Makefile b/security/prelude-nids/Makefile
index d06b814..b905a2d 100644
--- a/security/prelude-nids/Makefile
+++ b/security/prelude-nids/Makefile
@@ -17,7 +17,7 @@ LIB_DEPENDS= prelude.1:${PORTSDIR}/security/libprelude
USE_GMAKE= yes
USE_LIBTOOL_VER= 13
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ARGS+= --prefix=${PREFIX} \
--with-html-dir=${PREFIX}/share/doc
diff --git a/security/snort/Makefile b/security/snort/Makefile
index 7f195ed..18034c2 100644
--- a/security/snort/Makefile
+++ b/security/snort/Makefile
@@ -29,7 +29,7 @@ USE_RC_SUBR= yes
RC_SCRIPTS_SUB= PREFIX=${PREFIX} RC_SUBR=${RC_SUBR}
GNU_CONFIGURE= yes
CONFIGURE_ENV= LDFLAGS="${LDFLAGS}"
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
MAN8= snort.8
DOCS= ChangeLog doc/AUTHORS doc/BUGS doc/CREDITS doc/NEWS \
diff --git a/security/steghide/Makefile b/security/steghide/Makefile
index 74dc64a..1777113 100644
--- a/security/steghide/Makefile
+++ b/security/steghide/Makefile
@@ -25,7 +25,7 @@ USE_LIBTOOL_VER=13
GNU_CONFIGURE= yes
USE_GCC= 3.4
CONFIGURE_TARGET=
-CONFIGURE_ARGS= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_ARGS= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
USE_GMAKE= yes
CONFIGURE_ENV= CPPFLAGS="${CFLAGS} -I${LOCALBASE}/include" \
LIBS="-L${LOCALBASE}/lib -lintl -lmcrypt"
diff --git a/security/stunnel/Makefile b/security/stunnel/Makefile
index cc85769..7330326 100644
--- a/security/stunnel/Makefile
+++ b/security/stunnel/Makefile
@@ -21,7 +21,7 @@ USE_LIBTOOL_VER= 15
USE_RC_SUBR= YES
GNU_CONFIGURE= yes
-CONFIGURE_TARGET= --target=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --target=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ARGS= --localstatedir=/var/tmp --with-pem-dir=${PEM_DIR} \
--enable-static
diff --git a/security/tor-devel/Makefile b/security/tor-devel/Makefile
index f30b705..dc79814 100644
--- a/security/tor-devel/Makefile
+++ b/security/tor-devel/Makefile
@@ -17,7 +17,7 @@ COMMENT= An anonymizing overlay network for TCP
RUN_DEPENDS= tsocks:${PORTSDIR}/net/tsocks
GNU_CONFIGURE= yes
-CONFIGURE_TARGET=--build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET=--build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
USE_OPENSSL= yes
USE_REINPLACE= yes
diff --git a/security/tor/Makefile b/security/tor/Makefile
index f30b705..dc79814 100644
--- a/security/tor/Makefile
+++ b/security/tor/Makefile
@@ -17,7 +17,7 @@ COMMENT= An anonymizing overlay network for TCP
RUN_DEPENDS= tsocks:${PORTSDIR}/net/tsocks
GNU_CONFIGURE= yes
-CONFIGURE_TARGET=--build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET=--build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
USE_OPENSSL= yes
USE_REINPLACE= yes
diff --git a/security/xmlsec/Makefile b/security/xmlsec/Makefile
index 2ed6cad..06f868d 100644
--- a/security/xmlsec/Makefile
+++ b/security/xmlsec/Makefile
@@ -24,7 +24,7 @@ BUILD_DEPENDS= ${RUN_DEPENDS}
USE_OPENSSL= yes
USE_GNOME= gnomehack libxslt
USE_INC_LIBTOOL_VER=13
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
INSTALLS_SHLIB= yes
MAN1= xmlsec.1 xmlsec-config.1
diff --git a/security/yafic/Makefile b/security/yafic/Makefile
index 6d7a45f..8879fbd 100644
--- a/security/yafic/Makefile
+++ b/security/yafic/Makefile
@@ -16,7 +16,7 @@ MAINTAINER= allan@saddi.com
COMMENT= Yet Another File Integrity Checker, similar to Tripwire
GNU_CONFIGURE= yes
-CONFIGURE_TARGET=--build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET=--build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
USE_GMAKE= yes
CONFIGURE_ENV= LDFLAGS="-static"
diff --git a/shells/bash/Makefile b/shells/bash/Makefile
index 83265f0..e6ae1fa 100644
--- a/shells/bash/Makefile
+++ b/shells/bash/Makefile
@@ -25,7 +25,7 @@ PATCHFILES+= ${PORTNAME}${PORTVERSION:R:S/.//g}-0${patch}:bash
PATCHLEVEL= ${patch}
.endfor
-MAINTAINER= eik@FreeBSD.org
+MAINTAINER= eik@FreeBSD.org, obrien@FreeBSD.org
COMMENT= The GNU Project's Bourne Again SHell
IGNOREFILES= FAQ
@@ -53,6 +53,7 @@ PORTDOCS= FAQ INTRO CHANGES COMPAT NEWS POSIX RBASH
.endif
CONFIGURE_ARGS= --without-bash-malloc \
+ --with-installed-readline \
--disable-rpath \
--enable-disabled-builtins
diff --git a/shells/zsh-devel/Makefile b/shells/zsh-devel/Makefile
index 72c7949..4333956 100644
--- a/shells/zsh-devel/Makefile
+++ b/shells/zsh-devel/Makefile
@@ -63,7 +63,7 @@ CONFLICTS= zsh-4.0.*
USE_BZIP2= yes
GNU_CONFIGURE= yes
-#CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+#CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ARGS= --enable-etcdir=${ZSH_ETCDIR} --with-curses-terminfo \
--enable-fndir=${ZSH_FNDIR} --enable-function-subdirs \
--enable-site-fndir=${ZSH_SITEFNDIR}
diff --git a/shells/zsh/Makefile b/shells/zsh/Makefile
index c127f88..29b58a2 100644
--- a/shells/zsh/Makefile
+++ b/shells/zsh/Makefile
@@ -60,7 +60,7 @@ USE_BZIP2= yes
GNU_CONFIGURE= yes
USE_REINPLACE= yes
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ARGS= --with-curses-terminfo --with-tcsetpgrp \
--enable-etcdir=${ZSH_ETCDIR} \
--enable-fndir=${ZSH_FNDIR} --enable-function-subdirs \
diff --git a/sysutils/aaccli/Makefile b/sysutils/aaccli/Makefile
index b563ea6..263a947a 100644
--- a/sysutils/aaccli/Makefile
+++ b/sysutils/aaccli/Makefile
@@ -22,8 +22,8 @@ RESTRICTED= "May not be redistributed in binary form"
NO_CDROM= yes
ONLY_FOR_ARCHS= i386
-PLIST= ${MASTERDIR}/pkg-plist.${ARCH}
-MD5_FILE= ${MASTERDIR}/distinfo.${ARCH}
+PLIST= ${MASTERDIR}/pkg-plist.${MACHINE_ARCH}
+MD5_FILE= ${MASTERDIR}/distinfo.${MACHINE_ARCH}
NO_BUILD= yes
NO_WRKSUBDIR= yes
diff --git a/sysutils/anteater/Makefile b/sysutils/anteater/Makefile
index 2511af8..998821e 100644
--- a/sysutils/anteater/Makefile
+++ b/sysutils/anteater/Makefile
@@ -17,7 +17,7 @@ COMMENT= A MTA log analyzer
USE_BZIP2= yes
GNU_CONFIGURE= yes
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
MAN1= anteater.1
PLIST_FILES= bin/anteater
diff --git a/sysutils/ccd2iso/Makefile b/sysutils/ccd2iso/Makefile
index 550cefe..c18d17f 100644
--- a/sysutils/ccd2iso/Makefile
+++ b/sysutils/ccd2iso/Makefile
@@ -19,7 +19,7 @@ COMMENT= A CloneCD to ISO converter
PLIST_FILES= bin/ccd2iso
GNU_CONFIGURE= yes
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/src/ccd2iso ${PREFIX}/bin
diff --git a/sysutils/cdf/Makefile b/sysutils/cdf/Makefile
index 09be552..5be3114 100644
--- a/sysutils/cdf/Makefile
+++ b/sysutils/cdf/Makefile
@@ -16,6 +16,6 @@ COMMENT= A colorized df
PLIST_FILES= bin/cdf
GNU_CONFIGURE= yes
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
.include <bsd.port.mk>
diff --git a/sysutils/cfengine2/Makefile b/sysutils/cfengine2/Makefile
index 5bb269d..bad9c0f 100644
--- a/sysutils/cfengine2/Makefile
+++ b/sysutils/cfengine2/Makefile
@@ -17,7 +17,7 @@ COMMENT= A systems administration tool for networks
USE_OPENSSL= yes
GNU_CONFIGURE= yes
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ARGS= --with-berkeleydb=${LOCALBASE} --with-docs
USE_REINPLACE= yes
diff --git a/sysutils/dump9660/Makefile b/sysutils/dump9660/Makefile
index 3a3366e8..102a802 100644
--- a/sysutils/dump9660/Makefile
+++ b/sysutils/dump9660/Makefile
@@ -21,7 +21,7 @@ MLINKS= mk9660.8 dump9660.8
USE_REINPLACE= yes
ONLY_FOR_ARCHS= alpha i386 powerpc
-OBJTYPE= ${ARCH:S/i386/386/:S/powerpc/power/}
+OBJTYPE= ${MACHINE_ARCH:S/i386/386/:S/powerpc/power/}
MAKE_ENV= systype=${OPSYS} objtype=${OBJTYPE}
post-patch:
diff --git a/sysutils/grub/Makefile b/sysutils/grub/Makefile
index c43c921..633406f 100644
--- a/sysutils/grub/Makefile
+++ b/sysutils/grub/Makefile
@@ -17,7 +17,7 @@ USE_AUTOMAKE_VER= 19
USE_AUTOCONF_VER= 259
GNU_CONFIGURE= yes
USE_GMAKE= yes
-CONFIGURE_TARGET= --build=${ARCH}-freebsd-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-freebsd-freebsd${OSREL}
ONLY_FOR_ARCHS= i386
GRUB_DIR= ${DATADIR:C|^${PREFIX}/||}/i386-freebsd
diff --git a/sysutils/hdup/Makefile b/sysutils/hdup/Makefile
index 083cb5c..eb87ddb 100644
--- a/sysutils/hdup/Makefile
+++ b/sysutils/hdup/Makefile
@@ -28,7 +28,7 @@ USE_BZIP2= yes
USE_GMAKE= yes
GNU_CONFIGURE= yes
USE_GNOME= glib20
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
USE_AUTOCONF_VER= 259
MAN1= hdup.1
diff --git a/sysutils/hourglass/Makefile b/sysutils/hourglass/Makefile
index 81a665d..cb33784 100644
--- a/sysutils/hourglass/Makefile
+++ b/sysutils/hourglass/Makefile
@@ -17,7 +17,7 @@ RUN_DEPENDS= jgraph:${PORTSDIR}/graphics/jgraph
USE_REINPLACE= yes
GNU_CONFIGURE= yes
-CONFIGURE_TARGET=--build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET=--build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
PLIST_FILES= bin/busy bin/hourglass
PORTDOCS= CALIBRATION
diff --git a/sysutils/ipmitool/Makefile b/sysutils/ipmitool/Makefile
index 38a2269..41f779f 100644
--- a/sysutils/ipmitool/Makefile
+++ b/sysutils/ipmitool/Makefile
@@ -21,7 +21,7 @@ USE_BZIP2= yes
USE_GMAKE= yes
USE_OPENSSL= yes
GNU_CONFIGURE= yes
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
# On FreeBSD only lan and lanplus interfaces are supported at this time
CONFIGURE_ARGS+= --enable-intf-lan --enable-intf-lanplus \
--disable-intf-open --disable-intf-imb --disable-intf-lipmi
diff --git a/sysutils/k3b-kde4/Makefile b/sysutils/k3b-kde4/Makefile
index 06b764a..8ae0298 100644
--- a/sysutils/k3b-kde4/Makefile
+++ b/sysutils/k3b-kde4/Makefile
@@ -23,7 +23,7 @@ LIB_DEPENDS= mad:${PORTSDIR}/audio/libmad \
USE_BZIP2= yes
GNU_CONFIGURE= yes
-CONFIGURE_TARGET=--build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET=--build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ARGS= --with-k3bsetup=no
USE_GMAKE= yes
USE_INC_LIBTOOL_VER=13
diff --git a/sysutils/k3b/Makefile b/sysutils/k3b/Makefile
index 06b764a..8ae0298 100644
--- a/sysutils/k3b/Makefile
+++ b/sysutils/k3b/Makefile
@@ -23,7 +23,7 @@ LIB_DEPENDS= mad:${PORTSDIR}/audio/libmad \
USE_BZIP2= yes
GNU_CONFIGURE= yes
-CONFIGURE_TARGET=--build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET=--build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ARGS= --with-k3bsetup=no
USE_GMAKE= yes
USE_INC_LIBTOOL_VER=13
diff --git a/sysutils/linux-afaapps/Makefile b/sysutils/linux-afaapps/Makefile
index 8376651..319d1ee 100644
--- a/sysutils/linux-afaapps/Makefile
+++ b/sysutils/linux-afaapps/Makefile
@@ -11,7 +11,7 @@ PORTREVISION= 3
CATEGORIES= sysutils linux
MASTER_SITES= ftp://ftp.us.dell.com/scsi-raid/
PKGNAMEPREFIX= linux-
-DISTNAME= aacraid-util-rh8.0-${ARCH}
+DISTNAME= aacraid-util-rh8.0-${MACHINE_ARCH}
MAINTAINER= bms@FreeBSD.org
COMMENT= DELL PowerEdge Raid Controller 2 (apps)
@@ -32,10 +32,10 @@ LDCONFIG_LINUX= ${LINUXBASE}/sbin/ldconfig
ONLY_FOR_ARCHS= i386
NO_FILTER_SHLIBS= yes
-PLIST= ${MASTERDIR}/pkg-plist.${ARCH}
-MD5_FILE= ${MASTERDIR}/distinfo.${ARCH}
+PLIST= ${MASTERDIR}/pkg-plist.${MACHINE_ARCH}
+MD5_FILE= ${MASTERDIR}/distinfo.${MACHINE_ARCH}
-RPMFILE= ${PORTNAME}-${PORTVERSION}-2.${ARCH}.rpm
+RPMFILE= ${PORTNAME}-${PORTVERSION}-2.${MACHINE_ARCH}.rpm
DBPATH= /var/lib/rpm
RPMFLAGS= --ignoreos --root ${PREFIX} --dbpath ${DBPATH} \
diff --git a/sysutils/lookat/Makefile b/sysutils/lookat/Makefile
index 1084687..2bb3167 100644
--- a/sysutils/lookat/Makefile
+++ b/sysutils/lookat/Makefile
@@ -15,7 +15,7 @@ MAINTAINER= ports@FreeBSD.org
COMMENT= Lookat is a program to view Un*x text files and manual pages
GNU_CONFIGURE= yes
-CONFIGURE_TARGET=--build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET=--build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
USE_GMAKE= yes
USE_REINPLACE= yes
diff --git a/sysutils/metalog/Makefile b/sysutils/metalog/Makefile
index c3ff5f2..973e342 100644
--- a/sysutils/metalog/Makefile
+++ b/sysutils/metalog/Makefile
@@ -19,7 +19,7 @@ LIB_DEPENDS= pcre.0:${PORTSDIR}/devel/pcre
GNU_CONFIGURE= yes
CONFIGURE_ENV= CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}"
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
# Needed for metalog's configure to find installed devel/pcre port
CPPFLAGS+= -I${LOCALBASE}/include
diff --git a/sysutils/ntfsprogs/Makefile b/sysutils/ntfsprogs/Makefile
index 9ffaeca8..a8d2028 100644
--- a/sysutils/ntfsprogs/Makefile
+++ b/sysutils/ntfsprogs/Makefile
@@ -22,7 +22,7 @@ USE_GETOPT_LONG= yes
USE_INC_LIBTOOL_VER= 13
INSTALLS_SHLIB= yes
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
OPTIONS= GNOMEVFS2 "Install Gnome-VFS-2.0 libntfs interface" off
diff --git a/sysutils/nvtv/Makefile b/sysutils/nvtv/Makefile
index 3386b7d..125c914 100644
--- a/sysutils/nvtv/Makefile
+++ b/sysutils/nvtv/Makefile
@@ -20,7 +20,7 @@ LIB_DEPENDS= pci.2:${PORTSDIR}/devel/libpci
ONLY_FOR_ARCHS= i386
CONFIGURE_ENV= CC="${CC} -I${PREFIX}/include"
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
USE_LIBTOOL_VER= 15
USE_GETOPT_LONG= yes
diff --git a/sysutils/pipemeter/Makefile b/sysutils/pipemeter/Makefile
index e20b3fd..b76908e 100644
--- a/sysutils/pipemeter/Makefile
+++ b/sysutils/pipemeter/Makefile
@@ -15,7 +15,7 @@ MAINTAINER= rabbi@abditum.com
COMMENT= Measure speed of data going through a pipe
GNU_CONFIGURE= yes
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
MAN1= pipemeter.1
PORTDOCS= Changelog README
diff --git a/sysutils/portdowngrade/Makefile b/sysutils/portdowngrade/Makefile
index 12195d6..7ebf370 100644
--- a/sysutils/portdowngrade/Makefile
+++ b/sysutils/portdowngrade/Makefile
@@ -25,7 +25,7 @@ CONFIGURE_ARGS+= --enable-default-server=${DEFAULT_CVS_SERVER}
.endif
GNU_CONFIGURE= yes
-CONFIGURE_TARGET=--build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET=--build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
USE_GMAKE= yes
USE_BZIP2= yes
diff --git a/sysutils/progsreiserfs/Makefile b/sysutils/progsreiserfs/Makefile
index dabc72f..46e5053 100644
--- a/sysutils/progsreiserfs/Makefile
+++ b/sysutils/progsreiserfs/Makefile
@@ -22,7 +22,7 @@ USE_GETOPT_LONG=yes
USE_LIBTOOL_VER=15
INSTALLS_SHLIB= yes
USE_REINPLACE= yes
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ARGS= --disable-debug
.if defined(WITHOUT_NLS)
diff --git a/sysutils/rsnapshot/Makefile b/sysutils/rsnapshot/Makefile
index 7d4a9fd..c26cd5c 100644
--- a/sysutils/rsnapshot/Makefile
+++ b/sysutils/rsnapshot/Makefile
@@ -18,7 +18,7 @@ RUN_DEPENDS= rsync:${PORTSDIR}/net/rsync
USE_PERL5= yes
GNU_CONFIGURE= yes
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
MAN1= rsnapshot.1
DOCS= AUTHORS ChangeLog README TODO
diff --git a/sysutils/sdd/Makefile b/sysutils/sdd/Makefile
index db45b39..0b3c792 100644
--- a/sysutils/sdd/Makefile
+++ b/sysutils/sdd/Makefile
@@ -18,14 +18,14 @@ MAN1= sdd.1
.include <bsd.port.pre.mk>
-.if ${ARCH} != "i386" || ${CC} != "cc"
+.if ${MACHINE_ARCH} != "i386" || ${CC} != "cc"
post-extract:
@${LN} -sf i386-freebsd-cc.rul \
- ${WRKSRC}/RULES/${ARCH}-freebsd-${CC}.rul
+ ${WRKSRC}/RULES/${MACHINE_ARCH}-freebsd-${CC}.rul
.endif
do-install:
- ${INSTALL_PROGRAM} ${WRKSRC}/sdd/OBJ/${ARCH}-freebsd-${CC}/sdd \
+ ${INSTALL_PROGRAM} ${WRKSRC}/sdd/OBJ/${MACHINE_ARCH}-freebsd-${CC}/sdd \
${PREFIX}/bin
${INSTALL_MAN} ${WRKSRC}/sdd/sdd.1 ${PREFIX}/man/man1
diff --git a/sysutils/smartmontools-devel/Makefile b/sysutils/smartmontools-devel/Makefile
index e1321e9f..69fd570 100644
--- a/sysutils/smartmontools-devel/Makefile
+++ b/sysutils/smartmontools-devel/Makefile
@@ -20,7 +20,7 @@ USE_RC_SUBR= yes
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --with-initscriptdir=${PREFIX}/etc/rc.d \
--with-docdir=${DOCSDIR} --enable-sample
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
PROGRAMS= smartctl smartd
MAN5= smartd.conf.5
diff --git a/sysutils/smartmontools/Makefile b/sysutils/smartmontools/Makefile
index e1321e9f..69fd570 100644
--- a/sysutils/smartmontools/Makefile
+++ b/sysutils/smartmontools/Makefile
@@ -20,7 +20,7 @@ USE_RC_SUBR= yes
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --with-initscriptdir=${PREFIX}/etc/rc.d \
--with-docdir=${DOCSDIR} --enable-sample
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
PROGRAMS= smartctl smartd
MAN5= smartd.conf.5
diff --git a/sysutils/srmt/Makefile b/sysutils/srmt/Makefile
index ae051ed..dfb610f 100644
--- a/sysutils/srmt/Makefile
+++ b/sysutils/srmt/Makefile
@@ -22,9 +22,9 @@ MAKE_ENV= MAKEPROG=${GMAKE} CCOM=${CC}
MAN1= srmt.1
post-extract:
-.if ${ARCH} != "i386" || ${CC} != "cc"
+.if ${MACHINE_ARCH} != "i386" || ${CC} != "cc"
@${LN} -sf i386-freebsd-cc.rul \
- ${WRKSRC}/RULES/${ARCH}-freebsd-${CC}.rul
+ ${WRKSRC}/RULES/${MACHINE_ARCH}-freebsd-${CC}.rul
.endif
post-patch:
@@ -34,7 +34,7 @@ post-patch:
do-install:
@${INSTALL_PROGRAM} \
- ${WRKSRC}/rmt/OBJ/${ARCH}-freebsd-${CC}/rmt \
+ ${WRKSRC}/rmt/OBJ/${MACHINE_ARCH}-freebsd-${CC}/rmt \
${PREFIX}/sbin/srmt
@${INSTALL_MAN} ${WRKSRC}/rmt/rmt.1 ${MANPREFIX}/man/man1/srmt.1
@${INSTALL_DATA} ${WRKSRC}/rmt/rmt.dfl ${PREFIX}/etc/srmt.conf.dist
diff --git a/sysutils/stress/Makefile b/sysutils/stress/Makefile
index a935601..772e781 100644
--- a/sysutils/stress/Makefile
+++ b/sysutils/stress/Makefile
@@ -14,7 +14,7 @@ MAINTAINER= setagllib@optusnet.com.au
COMMENT= Tool to impose load on and stress test Unix-like systems
GNU_CONFIGURE= yes
-CONFIGURE_TARGET= --build ${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build ${MACHINE_ARCH}-portbld-freebsd${OSREL}
INFO= stress
MAN1= stress.1
diff --git a/sysutils/synergy/Makefile b/sysutils/synergy/Makefile
index f727369..f4e37a6 100644
--- a/sysutils/synergy/Makefile
+++ b/sysutils/synergy/Makefile
@@ -16,7 +16,7 @@ COMMENT= Mouse and keyboard sharing utility
GNU_CONFIGURE= yes
USE_X_PREFIX= yes
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
DOCS= AUTHORS COPYING ChangeLog INSTALL NEWS README
diff --git a/sysutils/testdisk/Makefile b/sysutils/testdisk/Makefile
index 2516cf3..4c8c5cb 100644
--- a/sysutils/testdisk/Makefile
+++ b/sysutils/testdisk/Makefile
@@ -15,7 +15,7 @@ COMMENT= Tool to check and undelete partitions
GNU_CONFIGURE= yes
USE_REINPLACE= yes
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ENV= CPPFLAGS="-I${PREFIX}/include" LDFLAGS="-L${PREFIX}/lib"
MAN1= testdisk.1 photorec.1
diff --git a/sysutils/uptimec/Makefile b/sysutils/uptimec/Makefile
index 8204846..6633e4a 100644
--- a/sysutils/uptimec/Makefile
+++ b/sysutils/uptimec/Makefile
@@ -18,7 +18,7 @@ USE_RC_SUBR= yes
USE_REINPLACE= yes
USE_GMAKE= yes
GNU_CONFIGURE= yes
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
PLIST_FILES= sbin/uptimec etc/uptimecrc.sample etc/rc.d/uptimec.sh
PORTDOCS= README ChangeLog INSTALL protocol.txt
diff --git a/sysutils/userinfo/Makefile b/sysutils/userinfo/Makefile
index e9bb549..74f19d6 100644
--- a/sysutils/userinfo/Makefile
+++ b/sysutils/userinfo/Makefile
@@ -14,7 +14,7 @@ MAINTAINER= bjk@m-net.arbornet.org
COMMENT= Show information about local users
GNU_CONFIGURE= yes
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
MAN1= ui.1
PLIST_FILES= bin/ui
diff --git a/sysutils/wmfsm/Makefile b/sysutils/wmfsm/Makefile
index a0694f0..0279836 100644
--- a/sysutils/wmfsm/Makefile
+++ b/sysutils/wmfsm/Makefile
@@ -17,7 +17,7 @@ USE_X_PREFIX= yes
USE_XPM= yes
USE_GETOPT_LONG= yes
GNU_CONFIGURE= yes
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ENV= CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}"
MAN1= wmfsm.1
diff --git a/sysutils/xvidcap/Makefile b/sysutils/xvidcap/Makefile
index dfd155c..d488c0b 100644
--- a/sysutils/xvidcap/Makefile
+++ b/sysutils/xvidcap/Makefile
@@ -21,7 +21,7 @@ COMMENT= Capture your X display to individual frames or MPEG video
RUN_DEPENDS= animate:${PORTSDIR}/graphics/ImageMagick
GNU_CONFIGURE= yes
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
#CONFIGURE_ENV= CFLAGS="${CFLAGS} -I${LOCALBASE}/include" \
# LDFLAGS=-L${LOCALBASE}/lib
CONFIGURE_ARGS= --with-forced-embedded-ffmpeg # To be removed after 1.1.4pre2?
diff --git a/textproc/aft/Makefile b/textproc/aft/Makefile
index 4e41487..06dc4df 100644
--- a/textproc/aft/Makefile
+++ b/textproc/aft/Makefile
@@ -16,7 +16,7 @@ COMMENT= A document preparation system using an Almost Free Text input format
USE_PERL5= yes
GNU_CONFIGURE= yes
-CONFIGURE_TARGET= -build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= -build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
.if defined(NOPORTDOCS)
INSTALL_TARGET= install-binSCRIPTS install-pkgdataDATA install-pkgdataSCRIPTS
diff --git a/textproc/dbacl/Makefile b/textproc/dbacl/Makefile
index 554b124..7d817ef 100644
--- a/textproc/dbacl/Makefile
+++ b/textproc/dbacl/Makefile
@@ -17,7 +17,7 @@ COMMENT= Digramic Bayesian classifier
RUN_DEPENDS= bash:${PORTSDIR}/shells/bash2
GNU_CONFIGURE= yes
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
USE_REINPLACE= yes
PROGRAMS= bayesol dbacl mailinspect
diff --git a/textproc/dictfmt/Makefile b/textproc/dictfmt/Makefile
index 13c409d..11e5e3e 100644
--- a/textproc/dictfmt/Makefile
+++ b/textproc/dictfmt/Makefile
@@ -18,7 +18,7 @@ COMMENT= Formats a DICT protocol dictionary database
USE_GETOPT_LONG= yes
USE_GMAKE= yes
GNU_CONFIGURE= yes
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ENV= CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}"
CONFIGURE_ARGS= --with-cflags="${CFLAGS}"
ALL_TARGET= dictfmt
diff --git a/textproc/docbook-to-man/Makefile b/textproc/docbook-to-man/Makefile
index b4d3529..ebb2b73 100644
--- a/textproc/docbook-to-man/Makefile
+++ b/textproc/docbook-to-man/Makefile
@@ -23,7 +23,7 @@ COMMENT= A DocBook SGML DTD into nroff/troff -man macros converter
# Jade is preferred, but it currently doesn't compile on 2.1.x
# system, so use sp in that case.
-.if ${ARCH} == "alpha"
+.if ${MACHINE_ARCH} == "alpha"
WITH_OPENJADE= yes
.endif
diff --git a/textproc/filepp/Makefile b/textproc/filepp/Makefile
index 130e82c..5bec960 100644
--- a/textproc/filepp/Makefile
+++ b/textproc/filepp/Makefile
@@ -16,7 +16,7 @@ COMMENT= A generic file preprocessor
USE_PERL5= yes
GNU_CONFIGURE= yes
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
NO_BUILD= yes
MAN1= filepp.1
diff --git a/textproc/gmetadom/Makefile b/textproc/gmetadom/Makefile
index 8d6ec4e..a9cb6c3 100644
--- a/textproc/gmetadom/Makefile
+++ b/textproc/gmetadom/Makefile
@@ -23,7 +23,7 @@ RUN_DEPENDS= pkg-config:${PORTSDIR}/devel/pkgconfig
USE_GNOME= glib20 gnomehack libxml2
USE_GMAKE= yes
GNU_CONFIGURE= yes
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib"
INSTALLS_SHLIB= yes
diff --git a/textproc/gsed/Makefile b/textproc/gsed/Makefile
index 998ee7f..0a1f982 100644
--- a/textproc/gsed/Makefile
+++ b/textproc/gsed/Makefile
@@ -21,7 +21,7 @@ COMMENT= The GNU stream editor
USE_REINPLACE= yes
GNU_CONFIGURE= yes
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ENV= MAKEINFO="makeinfo --no-split"
CONFIGURE_ARGS= --disable-nls
USE_GMAKE= yes
diff --git a/textproc/gxmlviewer/Makefile b/textproc/gxmlviewer/Makefile
index 3aa5065..7c6afae 100644
--- a/textproc/gxmlviewer/Makefile
+++ b/textproc/gxmlviewer/Makefile
@@ -27,7 +27,7 @@ USE_GNOME= gnomelibs bonobo gnomeprefix
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --with-libiconv-prefix="${LOCALBASE}"
-.if ${ARCH:L} == "amd64"
+.if ${MACHINE_ARCH:L} == "amd64"
CFLAGS+= -fPIC
.endif
diff --git a/textproc/iiimf-client-lib/Makefile b/textproc/iiimf-client-lib/Makefile
index 3dbf6f1..67408b2 100644
--- a/textproc/iiimf-client-lib/Makefile
+++ b/textproc/iiimf-client-lib/Makefile
@@ -29,7 +29,7 @@ USE_AUTOHEADER_VER= 259
USE_AUTOMAKE_VER= 19
WANT_LIBTOOL_VER= 15
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
WRKSRC= ${WRKDIR}/${DISTNAME:S/src-//}/lib/iiimcf
PATCH_WRKSRC= ${WRKDIR}/${DISTNAME:S/src-//}
diff --git a/textproc/iiimf-csconv/Makefile b/textproc/iiimf-csconv/Makefile
index 1344361..8313328 100644
--- a/textproc/iiimf-csconv/Makefile
+++ b/textproc/iiimf-csconv/Makefile
@@ -28,7 +28,7 @@ USE_AUTOCONF_VER= 259
WANT_AUTOMAKE_VER= 19
WANT_LIBTOOL_VER= 15
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
WRKSRC= ${WRKDIR}/${DISTNAME:S/src-//}/lib/CSConv
PATCH_WRKSRC= ${WRKDIR}/${DISTNAME:S/src-//}
diff --git a/textproc/iiimf-gnome-im-switcher/Makefile b/textproc/iiimf-gnome-im-switcher/Makefile
index fc12847..7eb9393 100644
--- a/textproc/iiimf-gnome-im-switcher/Makefile
+++ b/textproc/iiimf-gnome-im-switcher/Makefile
@@ -34,7 +34,7 @@ USE_AUTOMAKE_VER= 19
WANT_LIBTOOL_VER= 15
AUTOMAKE_ARGS+= --add-missing
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
WRKSRC= ${WRKDIR}/${DISTNAME:S/src-//}/gnome-im-switcher
PATCH_WRKSRC= ${WRKDIR}/${DISTNAME:S/src-//}
diff --git a/textproc/iiimf-gtk/Makefile b/textproc/iiimf-gtk/Makefile
index 854db3c..148bfd8 100644
--- a/textproc/iiimf-gtk/Makefile
+++ b/textproc/iiimf-gtk/Makefile
@@ -34,7 +34,7 @@ USE_AUTOMAKE_VER= 19
WANT_LIBTOOL_VER= 15
AUTOMAKE_ARGS+= --add-missing
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
WRKSRC= ${WRKDIR}/${DISTNAME:S/src-//}/iiimgcf
PATCH_WRKSRC= ${WRKDIR}/${DISTNAME:S/src-//}
diff --git a/textproc/iiimf-le-unit/Makefile b/textproc/iiimf-le-unit/Makefile
index b4ae3f4..6ecae1a 100644
--- a/textproc/iiimf-le-unit/Makefile
+++ b/textproc/iiimf-le-unit/Makefile
@@ -31,7 +31,7 @@ USE_AUTOMAKE_VER= 19
WANT_LIBTOOL_VER= 15
AUTOMAKE_ARGS+= --add-missing
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
WRKSRC= ${WRKDIR}/${DISTNAME:S/src-//}/leif
PATCH_WRKSRC= ${WRKDIR}/${DISTNAME:S/src-//}
diff --git a/textproc/iiimf-protocol-lib/Makefile b/textproc/iiimf-protocol-lib/Makefile
index a587b03..a565493 100644
--- a/textproc/iiimf-protocol-lib/Makefile
+++ b/textproc/iiimf-protocol-lib/Makefile
@@ -27,7 +27,7 @@ USE_AUTOHEADER_VER= 259
USE_AUTOMAKE_VER= 19
WANT_LIBTOOL_VER= 15
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
WRKSRC= ${WRKDIR}/${DISTNAME:S/src-//}/lib/iiimp
PATCH_WRKSRC= ${WRKDIR}/${DISTNAME:S/src-//}
diff --git a/textproc/iiimf-server/Makefile b/textproc/iiimf-server/Makefile
index 3f66ee1..4c372a9 100644
--- a/textproc/iiimf-server/Makefile
+++ b/textproc/iiimf-server/Makefile
@@ -31,7 +31,7 @@ USE_AUTOHEADER_VER= 259
USE_AUTOMAKE_VER= 19
WANT_LIBTOOL_VER= 15
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
WRKSRC= ${WRKDIR}/${DISTNAME:S/src-//}/iiimsf
PATCH_WRKSRC= ${WRKDIR}/${DISTNAME:S/src-//}
diff --git a/textproc/iiimf-x-lib/Makefile b/textproc/iiimf-x-lib/Makefile
index f43475c..2363398 100644
--- a/textproc/iiimf-x-lib/Makefile
+++ b/textproc/iiimf-x-lib/Makefile
@@ -33,7 +33,7 @@ USE_AUTOHEADER_VER= 259
USE_AUTOMAKE_VER= 19
WANT_LIBTOOL_VER= 15
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
WRKSRC= ${WRKDIR}/${DISTNAME:S/src-//}/iiimxcf/xiiimp.so
PATCH_WRKSRC= ${WRKDIR}/${DISTNAME:S/src-//}
diff --git a/textproc/iiimf-x/Makefile b/textproc/iiimf-x/Makefile
index afac1c1..7a82a8f 100644
--- a/textproc/iiimf-x/Makefile
+++ b/textproc/iiimf-x/Makefile
@@ -31,7 +31,7 @@ USE_AUTOHEADER_VER= 259
USE_AUTOMAKE_VER= 19
WANT_LIBTOOL_VER= 15
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
WRKSRC= ${WRKDIR}/${DISTNAME:S/src-//}/iiimxcf/htt_xbe
PATCH_WRKSRC= ${WRKDIR}/${DISTNAME:S/src-//}
diff --git a/textproc/ipdf/Makefile b/textproc/ipdf/Makefile
index 02734b9..ba237e2 100644
--- a/textproc/ipdf/Makefile
+++ b/textproc/ipdf/Makefile
@@ -20,7 +20,7 @@ LIB_DEPENDS= pdf.7:${PORTSDIR}/print/pdflib \
tiff.4:${PORTSDIR}/graphics/tiff
GNU_CONFIGURE= yes
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib"
diff --git a/textproc/libhtmlparse/Makefile b/textproc/libhtmlparse/Makefile
index a428544..d9b8cee 100644
--- a/textproc/libhtmlparse/Makefile
+++ b/textproc/libhtmlparse/Makefile
@@ -17,6 +17,6 @@ USE_LIBTOOL_VER=15
INSTALLS_SHLIB= yes
CONFIGURE_TARGET=
-CONFIGURE_ARGS+=--build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_ARGS+=--build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
.include <bsd.port.mk>
diff --git a/textproc/libparsifal/Makefile b/textproc/libparsifal/Makefile
index 881b604..10f9166 100644
--- a/textproc/libparsifal/Makefile
+++ b/textproc/libparsifal/Makefile
@@ -16,7 +16,7 @@ COMMENT= Lightweight XML Parser
USE_REINPLACE= yes
USE_LIBTOOL_VER= 15
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
INSTALLS_SHLIB= yes
PLIST_SUB= VERSION=${PORTVERSION}
diff --git a/textproc/libpathan/Makefile b/textproc/libpathan/Makefile
index b7f9137..b611749 100644
--- a/textproc/libpathan/Makefile
+++ b/textproc/libpathan/Makefile
@@ -25,7 +25,7 @@ USE_LIBTOOL_VER=13
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
INSTALLS_SHLIB= yes
XERCESCROOT= `cd ${PORTSDIR}/textproc/xerces-c2; ${MAKE} -V WRKSRC`
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ENV+= XERCESCROOT=${XERCESCROOT}
CONFIGURE_SCRIPT= runConfigure
CONFIGURE_ARGS+= --disable-static
diff --git a/textproc/linux-f10-libxml/Makefile b/textproc/linux-f10-libxml/Makefile
index fd4a49b..c9590a2 100644
--- a/textproc/linux-f10-libxml/Makefile
+++ b/textproc/linux-f10-libxml/Makefile
@@ -13,6 +13,6 @@ CATEGORIES= textproc linux
MAINTAINER= freebsd-emulation@FreeBSD.org
COMMENT= RPM of libxml
-RPM_SET= libxml-${PORTVERSION}-1.${ARCH}.rpm
+RPM_SET= libxml-${PORTVERSION}-1.${MACHINE_ARCH}.rpm
.include "../../x11-toolkits/linux-gtk/Makefile"
diff --git a/textproc/linux-f10-libxml2/Makefile b/textproc/linux-f10-libxml2/Makefile
index fd4a49b..c9590a2 100644
--- a/textproc/linux-f10-libxml2/Makefile
+++ b/textproc/linux-f10-libxml2/Makefile
@@ -13,6 +13,6 @@ CATEGORIES= textproc linux
MAINTAINER= freebsd-emulation@FreeBSD.org
COMMENT= RPM of libxml
-RPM_SET= libxml-${PORTVERSION}-1.${ARCH}.rpm
+RPM_SET= libxml-${PORTVERSION}-1.${MACHINE_ARCH}.rpm
.include "../../x11-toolkits/linux-gtk/Makefile"
diff --git a/textproc/linux-f8-libxml/Makefile b/textproc/linux-f8-libxml/Makefile
index fd4a49b..c9590a2 100644
--- a/textproc/linux-f8-libxml/Makefile
+++ b/textproc/linux-f8-libxml/Makefile
@@ -13,6 +13,6 @@ CATEGORIES= textproc linux
MAINTAINER= freebsd-emulation@FreeBSD.org
COMMENT= RPM of libxml
-RPM_SET= libxml-${PORTVERSION}-1.${ARCH}.rpm
+RPM_SET= libxml-${PORTVERSION}-1.${MACHINE_ARCH}.rpm
.include "../../x11-toolkits/linux-gtk/Makefile"
diff --git a/textproc/linux-f8-libxml2/Makefile b/textproc/linux-f8-libxml2/Makefile
index fd4a49b..c9590a2 100644
--- a/textproc/linux-f8-libxml2/Makefile
+++ b/textproc/linux-f8-libxml2/Makefile
@@ -13,6 +13,6 @@ CATEGORIES= textproc linux
MAINTAINER= freebsd-emulation@FreeBSD.org
COMMENT= RPM of libxml
-RPM_SET= libxml-${PORTVERSION}-1.${ARCH}.rpm
+RPM_SET= libxml-${PORTVERSION}-1.${MACHINE_ARCH}.rpm
.include "../../x11-toolkits/linux-gtk/Makefile"
diff --git a/textproc/linux-libxml/Makefile b/textproc/linux-libxml/Makefile
index fd4a49b..c9590a2 100644
--- a/textproc/linux-libxml/Makefile
+++ b/textproc/linux-libxml/Makefile
@@ -13,6 +13,6 @@ CATEGORIES= textproc linux
MAINTAINER= freebsd-emulation@FreeBSD.org
COMMENT= RPM of libxml
-RPM_SET= libxml-${PORTVERSION}-1.${ARCH}.rpm
+RPM_SET= libxml-${PORTVERSION}-1.${MACHINE_ARCH}.rpm
.include "../../x11-toolkits/linux-gtk/Makefile"
diff --git a/textproc/linux-libxml2/Makefile b/textproc/linux-libxml2/Makefile
index fd4a49b..c9590a2 100644
--- a/textproc/linux-libxml2/Makefile
+++ b/textproc/linux-libxml2/Makefile
@@ -13,6 +13,6 @@ CATEGORIES= textproc linux
MAINTAINER= freebsd-emulation@FreeBSD.org
COMMENT= RPM of libxml
-RPM_SET= libxml-${PORTVERSION}-1.${ARCH}.rpm
+RPM_SET= libxml-${PORTVERSION}-1.${MACHINE_ARCH}.rpm
.include "../../x11-toolkits/linux-gtk/Makefile"
diff --git a/textproc/sgmlformat/Makefile b/textproc/sgmlformat/Makefile
index bade1d3..87785e2 100644
--- a/textproc/sgmlformat/Makefile
+++ b/textproc/sgmlformat/Makefile
@@ -20,7 +20,7 @@ COMMENT= Generates groff and HTML from linuxdoc and docbook SGML documents
.include <bsd.port.pre.mk>
-.if ${ARCH} != "i386"
+.if ${MACHINE_ARCH} != "i386"
WITH_OPENJADE= yes
.endif
diff --git a/textproc/source-highlight/Makefile b/textproc/source-highlight/Makefile
index f7aa929..fa7aba6 100644
--- a/textproc/source-highlight/Makefile
+++ b/textproc/source-highlight/Makefile
@@ -15,7 +15,7 @@ MAINTAINER= kevlo@FreeBSD.org
COMMENT= C/C++ and Java sources to HTML converter
GNU_CONFIGURE= yes
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
.if defined(NOPORTDOCS)
MAKE_ENV+= NOPORTDOCS="${NOPORTDOCS}"
.endif
diff --git a/textproc/sp/Makefile b/textproc/sp/Makefile
index 7c010d3..82635e0 100644
--- a/textproc/sp/Makefile
+++ b/textproc/sp/Makefile
@@ -13,8 +13,8 @@ MASTER_SITES= ftp://ftp.jclark.com/pub/sp/
MAINTAINER= ports@FreeBSD.org
COMMENT= An object-oriented toolkit for SGML parsing and entity management
-.if ${ARCH} == sparc64
-BROKEN= does not compile on ${ARCH}
+.if ${MACHINE_ARCH} == sparc64
+BROKEN= does not compile on ${MACHINE_ARCH}
.endif
USE_SUBMAKE= yes
diff --git a/textproc/webcpp/Makefile b/textproc/webcpp/Makefile
index 5d6526a..4a2998e 100644
--- a/textproc/webcpp/Makefile
+++ b/textproc/webcpp/Makefile
@@ -21,7 +21,7 @@ COMMENT= Convert your source code to syntax highlighted HTML
USE_GCC= 3.2
.endif
GNU_CONFIGURE= yes
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" LDFLAGS="-L${LOCALBASE}/lib"
USE_REINPLACE= yes
diff --git a/textproc/wv/Makefile b/textproc/wv/Makefile
index 9c0119f..66ba9bb 100644
--- a/textproc/wv/Makefile
+++ b/textproc/wv/Makefile
@@ -38,7 +38,7 @@ MLINKS= wvWare.1 wvConvert.1
CPPFLAGS= -I${LOCALBASE}/include/libpng -I${LOCALBASE}/include
LDFLAGS= -L${LOCALBASE}/lib
-.if ${ARCH:L} == "amd64"
+.if ${MACHINE_ARCH:L} == "amd64"
USE_GNOME+= glib20
CONFIGURE_ARGS+= --with-glib
.else
diff --git a/textproc/xlhtml/Makefile b/textproc/xlhtml/Makefile
index 95cd88f..b32cb57 100644
--- a/textproc/xlhtml/Makefile
+++ b/textproc/xlhtml/Makefile
@@ -20,7 +20,7 @@ COMMENT= Convert Excel and PowerPoint files to HTML and text
USE_GMAKE= yes
USE_AUTOMAKE_VER= 14
USE_AUTOCONF_VER= 213
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
MAN1= ppthtml.1 xlhtml.1
diff --git a/textproc/xmlto/Makefile b/textproc/xmlto/Makefile
index 757b277..aa336cf 100644
--- a/textproc/xmlto/Makefile
+++ b/textproc/xmlto/Makefile
@@ -35,7 +35,7 @@ USE_BZIP2= yes
USE_REINPLACE= yes
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --with-bash=${BASH_CMD} --with-getopt=${GETOPT_CMD}
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
BASH_CMD= ${LOCALBASE}/bin/bash
GETOPT_CMD= ${LOCALBASE}/bin/getopt
diff --git a/vietnamese/xvnkb/Makefile b/vietnamese/xvnkb/Makefile
index 870172d..2f42568 100644
--- a/vietnamese/xvnkb/Makefile
+++ b/vietnamese/xvnkb/Makefile
@@ -19,7 +19,7 @@ USE_XLIB= yes
USE_GNOME= gtk20
GNU_CONFIGURE= yes
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
INSTALLS_SHLIB= yes
.if defined(WITHOUT_XFT)
diff --git a/www/cadaver/Makefile b/www/cadaver/Makefile
index 4119e8b..94ec948 100644
--- a/www/cadaver/Makefile
+++ b/www/cadaver/Makefile
@@ -22,7 +22,7 @@ USE_GPG?= yes
SIG_FILES= ${DISTNAME}${EXTRACT_SUFX}.asc
USE_GETOPT_LONG= yes
GNU_CONFIGURE= yes
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ENV= CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}"
CONFIGURE_ARGS= --enable-netrc
ALL_TARGET= cadaver
diff --git a/www/cgicc/Makefile b/www/cgicc/Makefile
index eba9fde..7a0a8e5 100644
--- a/www/cgicc/Makefile
+++ b/www/cgicc/Makefile
@@ -17,7 +17,7 @@ COMMENT= A C++ class library for writing CGI applications
USE_REINPLACE= yes
USE_GMAKE= yes
USE_INC_LIBTOOL_VER=13
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
MAKE_ARGS= NOPORTDOCS=${NOPORTDOCS}
INSTALLS_SHLIB= yes
diff --git a/www/dpsearch/Makefile b/www/dpsearch/Makefile
index bb4621e..999e674 100644
--- a/www/dpsearch/Makefile
+++ b/www/dpsearch/Makefile
@@ -21,7 +21,7 @@ INSTALLS_SHLIB= yes
USE_GMAKE= yes
USE_LIBTOOL_VER=13
DOCSDIR= ${PREFIX}/share/doc/dataparksearch
-CONFIGURE_TARGET=--build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET=--build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ARGS+=--sysconfdir=${PREFIX}/etc/dpsearch \
--localstatedir=/var/dpsearch \
--enable-mp3 \
diff --git a/www/ffproxy/Makefile b/www/ffproxy/Makefile
index 9512bfc..6888b12 100644
--- a/www/ffproxy/Makefile
+++ b/www/ffproxy/Makefile
@@ -14,7 +14,7 @@ MAINTAINER= krion@FreeBSD.org
COMMENT= Filtering HTTP proxy server
GNU_CONFIGURE= yes
-CONFIGURE_TARGET=--build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET=--build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
LIBS="-L${LOCALBASE}/lib"
diff --git a/www/httrack/Makefile b/www/httrack/Makefile
index 7a80f4f..40d5a1d 100644
--- a/www/httrack/Makefile
+++ b/www/httrack/Makefile
@@ -19,7 +19,7 @@ WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
USE_REINPLACE= yes
USE_GMAKE= yes
USE_LIBTOOL_VER= 15
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
INSTALLS_SHLIB= yes
MAN1= htsserver.1 httrack.1 webhttrack.1
diff --git a/www/hydra/Makefile b/www/hydra/Makefile
index 5fc64e2..ea5b6be 100644
--- a/www/hydra/Makefile
+++ b/www/hydra/Makefile
@@ -21,7 +21,7 @@ LIB_DEPENDS= gnutls.12:${PORTSDIR}/security/gnutls
NO_LATEST_LINK= yes
USE_REINPLACE= yes
GNU_CONFIGURE= yes
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ENV= CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}"
CPPFLAGS= -I${LOCALBASE}/include
diff --git a/www/lighttpd/Makefile b/www/lighttpd/Makefile
index 25ebbb3..b86cb44 100644
--- a/www/lighttpd/Makefile
+++ b/www/lighttpd/Makefile
@@ -23,7 +23,7 @@ USE_REINPLACE= yes
USE_RC_SUBR= yes
USE_LIBTOOL_VER= 15
USE_GNOME= lthack
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ENV= CPPFLAGS=-I${PREFIX}/include LIBS=-L${PREFIX}/lib
CONFIGURE_ARGS= --libdir=${PREFIX}/lib/lighttpd
STARTUP_FILE= ${PREFIX}/etc/rc.d/lighttpd.sh
diff --git a/www/linux-lesstif-ns/Makefile b/www/linux-lesstif-ns/Makefile
index 003c93f..f8ee74e 100644
--- a/www/linux-lesstif-ns/Makefile
+++ b/www/linux-lesstif-ns/Makefile
@@ -32,7 +32,7 @@ USE_BZIP2= yes
USE_LINUX_PREFIX= yes
PREFIX= ${LINUXBASE}${X11BASE}
HAS_CONFIGURE= yes
-CONFIGURE_ARGS= --host=${ARCH}--linux-gnu \
+CONFIGURE_ARGS= --host=${MACHINE_ARCH}--linux-gnu \
--enable-shared --enable-production \
--enable-build-12 --enable-default-12 --disable-build-20 \
--disable-debug --no-recursion \
diff --git a/www/lynx-current/Makefile b/www/lynx-current/Makefile
index 3ef3e55..bc28445 100644
--- a/www/lynx-current/Makefile
+++ b/www/lynx-current/Makefile
@@ -18,7 +18,7 @@ WRKSRC= ${WRKDIR}/${PORTNAME}2-8-6
USE_BZIP2= yes
NO_LATEST_LINK= yes
GNU_CONFIGURE= yes
-CONFIGURE_TARGET=--build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET=--build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ARGS= --with-screen=ncurses --with-zlib --libdir="${L_LIB}" \
--enable-nsl-fork --enable-nls --with-bzlib \
--enable-nested-tables --enable-locale-charset \
diff --git a/www/man2web/Makefile b/www/man2web/Makefile
index 38fd160..120dabc 100644
--- a/www/man2web/Makefile
+++ b/www/man2web/Makefile
@@ -16,7 +16,7 @@ MAINTAINER= naddy@FreeBSD.org
COMMENT= Convert man pages to HTML
GNU_CONFIGURE= yes
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ARGS= --bindir="${PREFIX}/${CGIDIR}" \
--sysconfdir="${PREFIX}/etc" \
--with-manpath=/usr/share/man:${X11BASE}/man:${LOCALBASE}/man \
diff --git a/www/middleman/Makefile b/www/middleman/Makefile
index 4bcbbe4..a29e784 100644
--- a/www/middleman/Makefile
+++ b/www/middleman/Makefile
@@ -17,7 +17,7 @@ COMMENT= A robust proxy server
WRKSRC= ${WRKDIR}/${PORTNAME}
GNU_CONFIGURE= yes
-CONFIGURE_TARGET=--build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET=--build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
USE_GMAKE= yes
USE_REINPLACE= yes
diff --git a/www/mnogosearch/Makefile b/www/mnogosearch/Makefile
index 2a55ec6..88016f2 100644
--- a/www/mnogosearch/Makefile
+++ b/www/mnogosearch/Makefile
@@ -23,7 +23,7 @@ INSTALLS_SHLIB= yes
USE_GMAKE= yes
USE_LIBTOOL_VER=13
GNU_CONFIGURE= yes
-CONFIGURE_TARGET=--build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET=--build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ARGS+=--enable-phrase \
--enable-shared \
--sysconfdir=${PREFIX}/etc/mnogosearch \
diff --git a/www/mnogosearch31/Makefile b/www/mnogosearch31/Makefile
index 2a55ec6..88016f2 100644
--- a/www/mnogosearch31/Makefile
+++ b/www/mnogosearch31/Makefile
@@ -23,7 +23,7 @@ INSTALLS_SHLIB= yes
USE_GMAKE= yes
USE_LIBTOOL_VER=13
GNU_CONFIGURE= yes
-CONFIGURE_TARGET=--build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET=--build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ARGS+=--enable-phrase \
--enable-shared \
--sysconfdir=${PREFIX}/etc/mnogosearch \
diff --git a/www/mplayer-plugin/Makefile b/www/mplayer-plugin/Makefile
index 38f0c3a..813d1fb 100644
--- a/www/mplayer-plugin/Makefile
+++ b/www/mplayer-plugin/Makefile
@@ -32,7 +32,7 @@ USE_REINPLACE= yes
USE_GMAKE= yes
PLUGINSFILES= mplayerplug-in.so mplayerplug-in.xpt
GNU_CONFIGURE= yes
-CONFIGURE_TARGET=--build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET=--build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ENV= CPPFLAGS="-I${X11BASE}/include -DBSD" \
LDFLAGS="-L${X11BASE}/lib"
diff --git a/www/netrik/Makefile b/www/netrik/Makefile
index ae8c27d..288eb0a 100644
--- a/www/netrik/Makefile
+++ b/www/netrik/Makefile
@@ -22,7 +22,7 @@ RUN_DEPENDS= wget:${PORTSDIR}/ftp/wget
USE_GMAKE= yes
USE_GETOPT_LONG=yes
GNU_CONFIGURE= yes
-CONFIGURE_TARGET=--build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET=--build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
.if defined(NOPORTDOCS)
USE_REINPLACE= yes
.endif
diff --git a/www/tidy-devel/Makefile b/www/tidy-devel/Makefile
index 09edccf..c0918a0 100644
--- a/www/tidy-devel/Makefile
+++ b/www/tidy-devel/Makefile
@@ -28,7 +28,7 @@ PLIST_SUB= SHLIB="@comment "
USE_AUTOMAKE_VER= 15
AUTOMAKE_ARGS+= -a -c --foreign
USE_AUTOCONF_VER= 213
-CONFIGURE_TARGET= --target=${ARCH}-unknown-freebsd${OSREL}
+CONFIGURE_TARGET= --target=${MACHINE_ARCH}-unknown-freebsd${OSREL}
USE_LIBTOOL_VER=13
INSTALLS_SHLIB= yes
PLIST_SUB= SHLIB=""
diff --git a/www/wml/Makefile b/www/wml/Makefile
index 73be542..5f47736 100644
--- a/www/wml/Makefile
+++ b/www/wml/Makefile
@@ -22,7 +22,7 @@ GNU_CONFIGURE= yes
CONFIGURE_ARGS= --with-perl=${PERL5}
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" LDFLAGS="-L${LOCALBASE}/lib" \
PERL_ARCH="${PERL_ARCH}"
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
USE_LIBTOOL_VER= 15
LIBTOOLFILES= wml_backend/p2_mp4h/configure
PLIST_SUB+= ARCH=${PERL_ARCH}
diff --git a/x11-clocks/wmclockmon/Makefile b/x11-clocks/wmclockmon/Makefile
index 9459288..585bd89 100644
--- a/x11-clocks/wmclockmon/Makefile
+++ b/x11-clocks/wmclockmon/Makefile
@@ -18,7 +18,7 @@ USE_XPM= yes
USE_GNOME= gtk12
USE_REINPLACE= yes
GNU_CONFIGURE= yes
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
MAN1= wmclockmon.1 wmclockmon-config.1 wmclockmon-cal.1
diff --git a/x11-clocks/xdaliclock/Makefile b/x11-clocks/xdaliclock/Makefile
index e7069dd..201bbfd 100644
--- a/x11-clocks/xdaliclock/Makefile
+++ b/x11-clocks/xdaliclock/Makefile
@@ -19,7 +19,7 @@ WRKSRC= ${WRKDIR}/${DISTNAME}/X11
USE_X_PREFIX= yes
GNU_CONFIGURE= yes
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
MAN1= xdaliclock.1
PLIST_FILES= bin/xdaliclock
diff --git a/x11-fm/FSViewer/Makefile b/x11-fm/FSViewer/Makefile
index 8f92fb2..2256a9d 100644
--- a/x11-fm/FSViewer/Makefile
+++ b/x11-fm/FSViewer/Makefile
@@ -23,7 +23,7 @@ LIB_DEPENDS= wraster.4:${PORTSDIR}/x11-wm/windowmaker
USE_X_PREFIX= yes
USE_GMAKE= yes
GNU_CONFIGURE= yes
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ENV= CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}"
CPPFLAGS= `pkg-config --cflags WINGs`
diff --git a/x11-fm/krusader/Makefile b/x11-fm/krusader/Makefile
index 145e348..e9a257d 100644
--- a/x11-fm/krusader/Makefile
+++ b/x11-fm/krusader/Makefile
@@ -23,7 +23,7 @@ QTDIR?=${X11BASE}/bin
KDEDIR?=${LOCALBASE}/bin
CONFIGURE_TARGET=
CONFIGURE_ENV+=QTDIR=${QTDIR} KDEDIR=${KDEDIR}
-CONFIGURE_ARGS+=--build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_ARGS+=--build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
INSTALLS_SHLIB= yes
MAN1= krusader.1
diff --git a/x11-fm/krusader2/Makefile b/x11-fm/krusader2/Makefile
index 145e348..e9a257d 100644
--- a/x11-fm/krusader2/Makefile
+++ b/x11-fm/krusader2/Makefile
@@ -23,7 +23,7 @@ QTDIR?=${X11BASE}/bin
KDEDIR?=${LOCALBASE}/bin
CONFIGURE_TARGET=
CONFIGURE_ENV+=QTDIR=${QTDIR} KDEDIR=${KDEDIR}
-CONFIGURE_ARGS+=--build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_ARGS+=--build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
INSTALLS_SHLIB= yes
MAN1= krusader.1
diff --git a/x11-fm/tkdesk/Makefile b/x11-fm/tkdesk/Makefile
index 937dcc4..fe6e7bb 100644
--- a/x11-fm/tkdesk/Makefile
+++ b/x11-fm/tkdesk/Makefile
@@ -20,7 +20,7 @@ LIB_DEPENDS= itcl32:${PORTSDIR}/lang/itcl \
USE_REINPLACE= yes
USE_GMAKE= yes
GNU_CONFIGURE= yes
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ENV= CPPFLAG="-I${LOCALBASE}/include/itcl3.2" \
LDFLAGS="-L${LOCALBASE}/lib -litcl32"
CONFIGURE_ARGS= --with-tcl=${LOCALBASE}/lib/tcl8.3 \
diff --git a/x11-fonts/libXfont/Makefile b/x11-fonts/libXfont/Makefile
index 0bc178f..f539d17 100644
--- a/x11-fonts/libXfont/Makefile
+++ b/x11-fonts/libXfont/Makefile
@@ -22,7 +22,7 @@ CONFLICTS= XFree86-libraries-* xorg-libraries-*
USE_BZIP2= yes
PREFIX?= ${X11BASE}
GNU_CONFIGURE= yes
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
USE_GMAKE= yes
CONFIGURE_ARGS= --enable-freetype
INSTALLS_SHLIB= yes
diff --git a/x11-servers/Xfstt/Makefile b/x11-servers/Xfstt/Makefile
index 2751f4e..a392799 100644
--- a/x11-servers/Xfstt/Makefile
+++ b/x11-servers/Xfstt/Makefile
@@ -16,7 +16,7 @@ COMMENT= A TrueType font server for X11
USE_X_PREFIX= yes
USE_REINPLACE= yes
GNU_CONFIGURE= yes
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ARGS= --localstatedir=/var --disable-nls
MAN1= xfstt.1x
diff --git a/x11-themes/linux-gtk-bluecurve-theme/Makefile b/x11-themes/linux-gtk-bluecurve-theme/Makefile
index d1c55ed..6e5d5fd 100644
--- a/x11-themes/linux-gtk-bluecurve-theme/Makefile
+++ b/x11-themes/linux-gtk-bluecurve-theme/Makefile
@@ -8,8 +8,8 @@
PORTNAME= linux-gtk-bluecurve-theme
PORTVERSION= 0.73
CATEGORIES= x11-themes
-MASTER_SITES= ftp://fr.rpmfind.net/linux/redhat/9/en/os/${ARCH}/RedHat/RPMS/
-DISTFILES= redhat-artwork-${PORTVERSION}-1.${ARCH}.rpm
+MASTER_SITES= ftp://fr.rpmfind.net/linux/redhat/9/en/os/${MACHINE_ARCH}/RedHat/RPMS/
+DISTFILES= redhat-artwork-${PORTVERSION}-1.${MACHINE_ARCH}.rpm
DIST_SUBDIR= rpm
MAINTAINER= jylefort@brutele.be
diff --git a/x11-toolkits/Xaw3d/Makefile b/x11-toolkits/Xaw3d/Makefile
index 7205dca..bac6290 100644
--- a/x11-toolkits/Xaw3d/Makefile
+++ b/x11-toolkits/Xaw3d/Makefile
@@ -33,7 +33,7 @@ post-extract:
${SED} 's|%%XAWVER%%|${XAWVER}|g' ${MSG_FILE} > ${PKGMESSAGE}
# Workaround a bug in egcs on FreeBSD/Alpha.
-.if ${ARCH} == "alpha"
+.if ${MACHINE_ARCH} == "alpha"
post-configure:
@(cd ${WRKSRC}; ${MV} Makefile Makefile.orig; ${SED} -e \
's/CDEBUGFLAGS = -O/CDEBUGFLAGS =/g' Makefile.orig > Makefile)
diff --git a/x11-toolkits/fltk/Makefile b/x11-toolkits/fltk/Makefile
index ff62100..9c0dd83 100644
--- a/x11-toolkits/fltk/Makefile
+++ b/x11-toolkits/fltk/Makefile
@@ -36,7 +36,7 @@ VERSION= 1.1.6
USE_BZIP2= yes
INSTALLS_SHLIB= yes
GNU_CONFIGURE= yes
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ARGS+=--enable-shared --enable-xft
# configure ignores ${CXX} and keeps on linking C++ code with ${CC}
CONFIGURE_ENV+= CC="${CXX}" CPPFLAGS="${CPPFLAGS} -I${LOCALBASE}/include" \
diff --git a/x11-toolkits/flvw/Makefile b/x11-toolkits/flvw/Makefile
index e3496ba..624a00f 100644
--- a/x11-toolkits/flvw/Makefile
+++ b/x11-toolkits/flvw/Makefile
@@ -35,7 +35,7 @@ INC_FILES= Flv_CStyle.H Flv_Data_Source.H Flv_List.H Flv_Style.H \
INSTALLS_SHLIB= yes
-.if ${ARCH:L} == "amd64"
+.if ${MACHINE_ARCH:L} == "amd64"
CFLAGS+= -fPIC
.endif
diff --git a/x11-toolkits/fox-devel/Makefile b/x11-toolkits/fox-devel/Makefile
index 30cf13b..bba06ef 100644
--- a/x11-toolkits/fox-devel/Makefile
+++ b/x11-toolkits/fox-devel/Makefile
@@ -31,7 +31,7 @@ PLIST_SUB+= MAJORVER=${MAJORVER} SHVER=${SHVER}
USE_GL= yes
USE_REINPLACE= yes
USE_LIBTOOL_VER= 15
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ENV= CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}"
CONFIGURE_ARGS= --with-opengl --with-x --enable-threadsafe
INSTALLS_SHLIB= yes
diff --git a/x11-toolkits/fox14/Makefile b/x11-toolkits/fox14/Makefile
index 30cf13b..bba06ef 100644
--- a/x11-toolkits/fox14/Makefile
+++ b/x11-toolkits/fox14/Makefile
@@ -31,7 +31,7 @@ PLIST_SUB+= MAJORVER=${MAJORVER} SHVER=${SHVER}
USE_GL= yes
USE_REINPLACE= yes
USE_LIBTOOL_VER= 15
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ENV= CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}"
CONFIGURE_ARGS= --with-opengl --with-x --enable-threadsafe
INSTALLS_SHLIB= yes
diff --git a/x11-toolkits/gai/Makefile b/x11-toolkits/gai/Makefile
index fa7bba4..619d6f7 100644
--- a/x11-toolkits/gai/Makefile
+++ b/x11-toolkits/gai/Makefile
@@ -31,7 +31,7 @@ PLIST_FILES= include/gai/gai.h lib/libgai.so.0.5.4 lib/libgai.so.0 \
PLIST_DIRS= include/gai
INSTALLS_SHLIB= yes
-.if ${ARCH:L} == "amd64"
+.if ${MACHINE_ARCH:L} == "amd64"
CFLAGS+= -fPIC
.endif
diff --git a/x11-toolkits/gauche-gtk/Makefile b/x11-toolkits/gauche-gtk/Makefile
index c76f0d3..b3092c4 100644
--- a/x11-toolkits/gauche-gtk/Makefile
+++ b/x11-toolkits/gauche-gtk/Makefile
@@ -26,7 +26,7 @@ GNU_CONFIGURE= yes
EXAMPLESDIR= ${PREFIX}/share/examples/${PORTNAME}/gtk
DOCSDIR= ${PREFIX}/share/doc/${PORTNAME}/gtk
PLIST_SUB= VERSION="`gauche-config -V`" \
- TARGET="${ARCH}-portbld-freebsd${OSREL}"
+ TARGET="${MACHINE_ARCH}-portbld-freebsd${OSREL}"
.if defined(WITH_GTKGLEXT)
LIB_DEPENDS+= gtkglext-x11-1.0.2:${PORTSDIR}/x11-toolkits/gtkglext
diff --git a/x11-toolkits/gob/Makefile b/x11-toolkits/gob/Makefile
index 0e8c308..7f2b76b 100644
--- a/x11-toolkits/gob/Makefile
+++ b/x11-toolkits/gob/Makefile
@@ -20,7 +20,7 @@ USE_GNOME= gtk12
GNU_CONFIGURE= yes
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
LIBS="-L${LOCALBASE}/lib"
-CONFIGURE_TARGET= --target=${ARCH}-unknown-freebsd${OSREL}
+CONFIGURE_TARGET= --target=${MACHINE_ARCH}-unknown-freebsd${OSREL}
MAN1= gob.1
diff --git a/x11-toolkits/libXaw/Makefile b/x11-toolkits/libXaw/Makefile
index 70b5768..048ef7f 100644
--- a/x11-toolkits/libXaw/Makefile
+++ b/x11-toolkits/libXaw/Makefile
@@ -27,7 +27,7 @@ CONFLICTS= XFree86-libraries-* xorg-libraries-*
USE_BZIP2= yes
PREFIX?= ${X11BASE}
GNU_CONFIGURE= yes
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
USE_GMAKE= yes
USE_LIBTOOL_VER=13
CFLAGS+= -DMALLOC_0_RETURNS_NULL
diff --git a/x11-toolkits/libXmu/Makefile b/x11-toolkits/libXmu/Makefile
index 0d87e91..27cb4e4 100644
--- a/x11-toolkits/libXmu/Makefile
+++ b/x11-toolkits/libXmu/Makefile
@@ -23,7 +23,7 @@ CONFLICTS= XFree86-libraries-* xorg-libraries-*
USE_BZIP2= yes
PREFIX?= ${X11BASE}
GNU_CONFIGURE= yes
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
USE_GMAKE= yes
USE_INC_LIBTOOL_VER=13
CFLAGS+= -DMALLOC_0_RETURNS_NULL
diff --git a/x11-toolkits/libXt/Makefile b/x11-toolkits/libXt/Makefile
index a9a4853..8fcdf76 100644
--- a/x11-toolkits/libXt/Makefile
+++ b/x11-toolkits/libXt/Makefile
@@ -25,7 +25,7 @@ USE_BZIP2= yes
PREFIX?= ${X11BASE}
GNU_CONFIGURE= yes
USE_GMAKE= yes
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
USE_LIBTOOL_VER=13
CFLAGS+= -DMALLOC_0_RETURNS_NULL
INSTALLS_SHLIB= yes
diff --git a/x11-toolkits/libgtkeditor/Makefile b/x11-toolkits/libgtkeditor/Makefile
index edc65e2..8b2255f 100644
--- a/x11-toolkits/libgtkeditor/Makefile
+++ b/x11-toolkits/libgtkeditor/Makefile
@@ -30,7 +30,7 @@ CFLAGS+= -fPIC
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib"
-CONFIGURE_TARGET= ${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= ${MACHINE_ARCH}-portbld-freebsd${OSREL}
pre-configure:
.for file in install-sh mkinstalldirs
diff --git a/x11-toolkits/linux-f10-openmotif/Makefile b/x11-toolkits/linux-f10-openmotif/Makefile
index 60d6b42..40884e0c 100644
--- a/x11-toolkits/linux-f10-openmotif/Makefile
+++ b/x11-toolkits/linux-f10-openmotif/Makefile
@@ -11,7 +11,7 @@ CATEGORIES= x11-toolkits linux
MASTER_SITES= ftp://ftp.ics.com/pub/Products/Motif/%SUBDIR%/
MASTER_SITE_SUBDIR= om2.2.4/redhat-7.3
PKGNAMEPREFIX= linux-
-EXTRACT_SUFX= -0.1.${ARCH}.rpm
+EXTRACT_SUFX= -0.1.${MACHINE_ARCH}.rpm
DIST_SUBDIR= rpm
EXTRACT_ONLY=
@@ -25,7 +25,7 @@ ONLY_FOR_ARCHS= i386
USE_LINUX_PREFIX= yes
NO_BUILD= yes
NO_FILTER_SHLIBS= yes
-MD5_FILE= ${MASTERDIR}/distinfo.${ARCH}
+MD5_FILE= ${MASTERDIR}/distinfo.${MACHINE_ARCH}
EXTRACT_FILES= ./usr/X11R6/lib/libMrm.so.3.0.3 \
./usr/X11R6/lib/libUil.so.3.0.3 \
diff --git a/x11-toolkits/linux-f8-openmotif/Makefile b/x11-toolkits/linux-f8-openmotif/Makefile
index 60d6b42..40884e0c 100644
--- a/x11-toolkits/linux-f8-openmotif/Makefile
+++ b/x11-toolkits/linux-f8-openmotif/Makefile
@@ -11,7 +11,7 @@ CATEGORIES= x11-toolkits linux
MASTER_SITES= ftp://ftp.ics.com/pub/Products/Motif/%SUBDIR%/
MASTER_SITE_SUBDIR= om2.2.4/redhat-7.3
PKGNAMEPREFIX= linux-
-EXTRACT_SUFX= -0.1.${ARCH}.rpm
+EXTRACT_SUFX= -0.1.${MACHINE_ARCH}.rpm
DIST_SUBDIR= rpm
EXTRACT_ONLY=
@@ -25,7 +25,7 @@ ONLY_FOR_ARCHS= i386
USE_LINUX_PREFIX= yes
NO_BUILD= yes
NO_FILTER_SHLIBS= yes
-MD5_FILE= ${MASTERDIR}/distinfo.${ARCH}
+MD5_FILE= ${MASTERDIR}/distinfo.${MACHINE_ARCH}
EXTRACT_FILES= ./usr/X11R6/lib/libMrm.so.3.0.3 \
./usr/X11R6/lib/libUil.so.3.0.3 \
diff --git a/x11-toolkits/linux-openmotif/Makefile b/x11-toolkits/linux-openmotif/Makefile
index 60d6b42..40884e0c 100644
--- a/x11-toolkits/linux-openmotif/Makefile
+++ b/x11-toolkits/linux-openmotif/Makefile
@@ -11,7 +11,7 @@ CATEGORIES= x11-toolkits linux
MASTER_SITES= ftp://ftp.ics.com/pub/Products/Motif/%SUBDIR%/
MASTER_SITE_SUBDIR= om2.2.4/redhat-7.3
PKGNAMEPREFIX= linux-
-EXTRACT_SUFX= -0.1.${ARCH}.rpm
+EXTRACT_SUFX= -0.1.${MACHINE_ARCH}.rpm
DIST_SUBDIR= rpm
EXTRACT_ONLY=
@@ -25,7 +25,7 @@ ONLY_FOR_ARCHS= i386
USE_LINUX_PREFIX= yes
NO_BUILD= yes
NO_FILTER_SHLIBS= yes
-MD5_FILE= ${MASTERDIR}/distinfo.${ARCH}
+MD5_FILE= ${MASTERDIR}/distinfo.${MACHINE_ARCH}
EXTRACT_FILES= ./usr/X11R6/lib/libMrm.so.3.0.3 \
./usr/X11R6/lib/libUil.so.3.0.3 \
diff --git a/x11-toolkits/neXtaw/Makefile b/x11-toolkits/neXtaw/Makefile
index db1181d..08c077c 100644
--- a/x11-toolkits/neXtaw/Makefile
+++ b/x11-toolkits/neXtaw/Makefile
@@ -16,7 +16,7 @@ COMMENT= Athena Widgets with N*XTSTEP appearance
USE_X_PREFIX= yes
USE_REINPLACE= yes
USE_INC_LIBTOOL_VER=13
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ENV= CPPFLAGS="-I${X11BASE}/include" \
LDFLAGS="-L${X11BASE}/lib"
INSTALLS_SHLIB= yes
diff --git a/x11-toolkits/py-gtk/Makefile b/x11-toolkits/py-gtk/Makefile
index 467d650..b5bbd76 100644
--- a/x11-toolkits/py-gtk/Makefile
+++ b/x11-toolkits/py-gtk/Makefile
@@ -29,7 +29,7 @@ USE_GNOME= gnomelibs gdkpixbuf libglade
USE_PYTHON= yes
USE_LIBTOOL_VER=15
CONFIGURE_ENV= PYTHON=${PYTHON_CMD}
-CONFIGURE_TARGET= --target=${ARCH}-unknown-freebsd${OSREL}
+CONFIGURE_TARGET= --target=${MACHINE_ARCH}-unknown-freebsd${OSREL}
EG_SRC_DIR= ${WRKSRC}/examples
EG_DST_DIR= ${PREFIX}/share/examples/py-gtk
diff --git a/x11-toolkits/scx/Makefile b/x11-toolkits/scx/Makefile
index 61cec4d..7e4735f 100644
--- a/x11-toolkits/scx/Makefile
+++ b/x11-toolkits/scx/Makefile
@@ -18,7 +18,7 @@ RUN_DEPENDS= ${LOCALBASE}/lib/scsh/scsh-install-pkg:${PORTSDIR}/devel/scsh-insta
NO_BUILD= yes
USE_XLIB= yes
-PLIST_SUB= TARGET=${ARCH}-portbld-freebsd${OSREL}
+PLIST_SUB= TARGET=${MACHINE_ARCH}-portbld-freebsd${OSREL}
do-install:
(cd ${WRKSRC}; ${LOCALBASE}/lib/scsh/scsh-install-pkg --prefix=${PREFIX}/lib/scsh)
diff --git a/x11-toolkits/soqt/Makefile b/x11-toolkits/soqt/Makefile
index 164127c..39b666f 100644
--- a/x11-toolkits/soqt/Makefile
+++ b/x11-toolkits/soqt/Makefile
@@ -20,7 +20,7 @@ LIB_DEPENDS= Coin.43:${PORTSDIR}/graphics/Coin
USE_QT_VER= 3
USE_GMAKE= yes
USE_LIBTOOL_VER= 15
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ENV= QTDIR="${QT_PREFIX}"
CONFIGURE_ARGS= --with-pthread=yes --with-coin=${X11BASE}
INSTALLS_SHLIB= yes
diff --git a/x11-toolkits/v/Makefile b/x11-toolkits/v/Makefile
index e37a507..2342fb4 100644
--- a/x11-toolkits/v/Makefile
+++ b/x11-toolkits/v/Makefile
@@ -14,7 +14,7 @@ MASTER_SITES= http://programming.ccp14.ac.uk/ftp-mirror/programming/objectcentra
MAINTAINER= ports@FreeBSD.org
COMMENT= A C++ GUI development framework for X11 and Microsoft Windows
-.if ${ARCH} == "alpha"
+.if ${MACHINE_ARCH} == "alpha"
BROKEN= compiler error in function fixup_memory_subreg
.endif
diff --git a/x11-toolkits/wxgtk/Makefile b/x11-toolkits/wxgtk/Makefile
index 872dcbb..9b0fc3d 100644
--- a/x11-toolkits/wxgtk/Makefile
+++ b/x11-toolkits/wxgtk/Makefile
@@ -73,7 +73,7 @@ LIB_DEPENDS+= wx_gtk2u-2.4.0:${PORTSDIR}/x11-toolkits/wxgtk2-unicode
.if ${WXGTK_FLAVOR:Mgtk2*} != ""
USE_GNOME= gtk20
-CONFIGURE_ARGS+=--enable-gtk2 ${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_ARGS+=--enable-gtk2 ${MACHINE_ARCH}-portbld-freebsd${OSREL}
.else
USE_GNOME= gtk12
CONFIGURE_ARGS+=--host=${CONFIGURE_TARGET} --build=${CONFIGURE_TARGET}
diff --git a/x11-toolkits/wxgtk24/Makefile b/x11-toolkits/wxgtk24/Makefile
index 872dcbb..9b0fc3d 100644
--- a/x11-toolkits/wxgtk24/Makefile
+++ b/x11-toolkits/wxgtk24/Makefile
@@ -73,7 +73,7 @@ LIB_DEPENDS+= wx_gtk2u-2.4.0:${PORTSDIR}/x11-toolkits/wxgtk2-unicode
.if ${WXGTK_FLAVOR:Mgtk2*} != ""
USE_GNOME= gtk20
-CONFIGURE_ARGS+=--enable-gtk2 ${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_ARGS+=--enable-gtk2 ${MACHINE_ARCH}-portbld-freebsd${OSREL}
.else
USE_GNOME= gtk12
CONFIGURE_ARGS+=--host=${CONFIGURE_TARGET} --build=${CONFIGURE_TARGET}
diff --git a/x11-toolkits/xbae/Makefile b/x11-toolkits/xbae/Makefile
index 2ba788b..b012e04 100644
--- a/x11-toolkits/xbae/Makefile
+++ b/x11-toolkits/xbae/Makefile
@@ -19,7 +19,7 @@ COMMENT= A Motif-based widget which displays a grid of cells as a spreadsheet
USE_LIBTOOL_VER=13
INSTALLS_SHLIB= yes
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
USE_MOTIF= yes
USE_X_PREFIX= yes
diff --git a/x11-wm/bbconf/Makefile b/x11-wm/bbconf/Makefile
index f159468..be7563f 100644
--- a/x11-wm/bbconf/Makefile
+++ b/x11-wm/bbconf/Makefile
@@ -18,7 +18,7 @@ USE_X_PREFIX= yes
USE_QT_VER= 3
USE_PERL5_BUILD= yes
USE_LIBTOOL_VER= 15
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
MAN1= bbconf.1
PORTDOCS= AUTHORS ChangeLog README README.html TODO
diff --git a/x11-wm/fbpager/Makefile b/x11-wm/fbpager/Makefile
index a8086be..27da828 100644
--- a/x11-wm/fbpager/Makefile
+++ b/x11-wm/fbpager/Makefile
@@ -15,7 +15,7 @@ COMMENT= Desktop pager for the Fluxbox window manager
USE_X_PREFIX= yes
GNU_CONFIGURE= yes
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
PLIST_FILES= bin/fbpager
PORTDOCS= AUTHORS ChangeLog NEWS README TODO
diff --git a/x11-wm/peksystray/Makefile b/x11-wm/peksystray/Makefile
index 87bfe5c..bff430b 100644
--- a/x11-wm/peksystray/Makefile
+++ b/x11-wm/peksystray/Makefile
@@ -16,7 +16,7 @@ COMMENT= A system tray dockapp similar to the GNOME notification area applet
USE_X_PREFIX= yes
GNU_CONFIGURE= yes
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
PLIST_FILES= bin/peksystray
diff --git a/x11-wm/pekwm/Makefile b/x11-wm/pekwm/Makefile
index 82a1fda..0abb792 100644
--- a/x11-wm/pekwm/Makefile
+++ b/x11-wm/pekwm/Makefile
@@ -25,7 +25,7 @@ USE_GMAKE= yes
USE_X_PREFIX= yes
GNU_CONFIGURE= yes
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ARGS= --enable-shape --enable-xinerama --enable-xrandr \
--disable-pcre --enable-xft --enable-imlib2 --disable-debug \
--enable-menus --enable-harbour
diff --git a/x11-wm/ude/Makefile b/x11-wm/ude/Makefile
index b33c473..4193710 100644
--- a/x11-wm/ude/Makefile
+++ b/x11-wm/ude/Makefile
@@ -20,7 +20,7 @@ USE_X_PREFIX= yes
USE_XPM= yes
USE_REINPLACE= yes
GNU_CONFIGURE= yes
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib"
diff --git a/x11-wm/wmconfig/Makefile b/x11-wm/wmconfig/Makefile
index 77d91f3..7957594 100644
--- a/x11-wm/wmconfig/Makefile
+++ b/x11-wm/wmconfig/Makefile
@@ -19,7 +19,7 @@ RUN_DEPENDS= wish8.4:${PORTSDIR}/x11-toolkits/tk84 \
USE_BZIP2= yes
USE_GETOPT_LONG= yes
GNU_CONFIGURE= yes
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
MAN1= wmconfig.1x
diff --git a/x11-wm/xfce/Makefile b/x11-wm/xfce/Makefile
index 10c15ae..213d38e 100644
--- a/x11-wm/xfce/Makefile
+++ b/x11-wm/xfce/Makefile
@@ -23,7 +23,7 @@ USE_XPM= yes
USE_GNOME= gdkpixbuf
USE_REINPLACE= yes
GNU_CONFIGURE= yes
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib"
CONFIGURE_ARGS= --with-conf-dir=${PREFIX}/etc/xfce \
diff --git a/x11/3ddesktop/Makefile b/x11/3ddesktop/Makefile
index 4af8efe..1eedc75 100644
--- a/x11/3ddesktop/Makefile
+++ b/x11/3ddesktop/Makefile
@@ -23,7 +23,7 @@ USE_GL= yes
USE_GETOPT_LONG= yes
USE_REINPLACE= yes
GNU_CONFIGURE= yes
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ENV= CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}"
PORTDOCS= README README.windowmanagers
diff --git a/x11/XFree86-4-libraries/Makefile b/x11/XFree86-4-libraries/Makefile
index 8420bd0..5af3dc5 100644
--- a/x11/XFree86-4-libraries/Makefile
+++ b/x11/XFree86-4-libraries/Makefile
@@ -119,7 +119,7 @@ PLIST_SUB+= OSMESA:=""
.endif
# sparc64 doesn't have a working libc_r yet, and -current doesn't need libXThrStub.
-.if ${ARCH} == "sparc64" || ${OSVERSION} >= 500043
+.if ${MACHINE_ARCH} == "sparc64" || ${OSVERSION} >= 500043
PLIST_SUB+= XTHRSTUB:="@comment "
.else
PLIST_SUB+= XTHRSTUB:=""
diff --git a/x11/XFree86/Makefile b/x11/XFree86/Makefile
index 2f50616..6aff6a5 100644
--- a/x11/XFree86/Makefile
+++ b/x11/XFree86/Makefile
@@ -33,7 +33,7 @@ INSTALL_TARGET+= install.linkkit
.endif
DIST_SUBDIR= xc
SCRIPTS_ENV= OSVERSION=${OSVERSION} MACHINE=${MACHINE} \
- ARCH=${ARCH}
+ MACHINE_ARCH=${MACHINE_ARCH}
MAKE_ARGS= WORLDOPTS=
# can't use USE_X_PREFIX here -- it will cause a circular dependency
PREFIX= ${X11BASE}
diff --git a/x11/compositeext/Makefile b/x11/compositeext/Makefile
index 5e8563e..326b32b 100644
--- a/x11/compositeext/Makefile
+++ b/x11/compositeext/Makefile
@@ -21,7 +21,7 @@ RUN_DEPENDS= ${LIB_PC_DEPENDS}
USE_BZIP2= yes
PREFIX?= ${X11BASE}
GNU_CONFIGURE= yes
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
USE_GMAKE= yes
NO_BUILD= yes
USE_GNOME= gnomehack pkgconfig
diff --git a/x11/damageext/Makefile b/x11/damageext/Makefile
index a61ffc0..702b4cc 100644
--- a/x11/damageext/Makefile
+++ b/x11/damageext/Makefile
@@ -21,7 +21,7 @@ RUN_DEPENDS= ${LIB_PC_DEPENDS}
USE_BZIP2= yes
PREFIX?= ${X11BASE}
GNU_CONFIGURE= yes
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
USE_GMAKE= yes
NO_BUILD= yes
USE_GNOME= gnomehack pkgconfig
diff --git a/x11/fixesext/Makefile b/x11/fixesext/Makefile
index 15f7ea4..bed51ef 100644
--- a/x11/fixesext/Makefile
+++ b/x11/fixesext/Makefile
@@ -21,7 +21,7 @@ RUN_DEPENDS= ${LIB_PC_DEPENDS}
USE_BZIP2= yes
PREFIX?= ${X11BASE}
GNU_CONFIGURE= yes
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
USE_GMAKE= yes
NO_BUILD= yes
USE_GNOME= gnomehack pkgconfig
diff --git a/x11/kdelibs3/Makefile b/x11/kdelibs3/Makefile
index d551133..bb24110 100644
--- a/x11/kdelibs3/Makefile
+++ b/x11/kdelibs3/Makefile
@@ -59,7 +59,7 @@ GNU_CONFIGURE= yes
CONFIGURE_TARGET=# empty
CONFIGURE_ARGS+=--disable-ltdl-install \
--enable-mt \
- --build=${ARCH}-portbld-freebsd${OSREL} \
+ --build=${MACHINE_ARCH}-portbld-freebsd${OSREL} \
--x-libraries=${X11BASE}/lib --x-includes=${X11BASE}/include
CONFIGURE_ENV+= libltdl_cv_shlibext=".so"
diff --git a/x11/kdelibs4/Makefile b/x11/kdelibs4/Makefile
index d551133..bb24110 100644
--- a/x11/kdelibs4/Makefile
+++ b/x11/kdelibs4/Makefile
@@ -59,7 +59,7 @@ GNU_CONFIGURE= yes
CONFIGURE_TARGET=# empty
CONFIGURE_ARGS+=--disable-ltdl-install \
--enable-mt \
- --build=${ARCH}-portbld-freebsd${OSREL} \
+ --build=${MACHINE_ARCH}-portbld-freebsd${OSREL} \
--x-libraries=${X11BASE}/lib --x-includes=${X11BASE}/include
CONFIGURE_ENV+= libltdl_cv_shlibext=".so"
diff --git a/x11/libSM/Makefile b/x11/libSM/Makefile
index 7073a1a..50fbc75 100644
--- a/x11/libSM/Makefile
+++ b/x11/libSM/Makefile
@@ -23,7 +23,7 @@ CONFLICTS= XFree86-libraries-* xorg-libraries-*
USE_BZIP2= yes
PREFIX?= ${X11BASE}
GNU_CONFIGURE= yes
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
USE_GMAKE= yes
USE_LIBTOOL_VER=13
INSTALLS_SHLIB= yes
diff --git a/x11/libX11/Makefile b/x11/libX11/Makefile
index cfb14e2..e1bf184 100644
--- a/x11/libX11/Makefile
+++ b/x11/libX11/Makefile
@@ -26,7 +26,7 @@ CONFLICTS= XFree86-libraries-* xorg-libraries-*
USE_BZIP2= yes
PREFIX?= ${X11BASE}
GNU_CONFIGURE= yes
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
USE_GMAKE= yes
CONFIGURE_ARGS+= --enable-xdmauth
CFLAGS+= -DMALLOC_0_RETURNS_NULL
diff --git a/x11/libXau/Makefile b/x11/libXau/Makefile
index 8dcfca2..7960cd3 100644
--- a/x11/libXau/Makefile
+++ b/x11/libXau/Makefile
@@ -21,7 +21,7 @@ CONFLICTS= XFree86-libraries-* xorg-libraries-*
USE_BZIP2= yes
PREFIX?= ${X11BASE}
GNU_CONFIGURE= yes
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
USE_GMAKE= yes
USE_LIBTOOL_VER=13
USE_GNOME= gnomehack pkgconfig
diff --git a/x11/libXcomposite/Makefile b/x11/libXcomposite/Makefile
index 63531e0..3ee1261 100644
--- a/x11/libXcomposite/Makefile
+++ b/x11/libXcomposite/Makefile
@@ -23,7 +23,7 @@ RUN_DEPENDS= ${LIB_PC_DEPENDS}
USE_BZIP2= yes
PREFIX?= ${X11BASE}
GNU_CONFIGURE= yes
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
USE_GMAKE= yes
USE_LIBTOOL_VER=13
CFLAGS+= -DMALLOC_0_RETURNS_NULL
diff --git a/x11/libXcursor/Makefile b/x11/libXcursor/Makefile
index 66de74c..2409ff3 100644
--- a/x11/libXcursor/Makefile
+++ b/x11/libXcursor/Makefile
@@ -27,7 +27,7 @@ CONFLICTS= XFree86-libraries-* xorg-libraries-*
USE_BZIP2= yes
PREFIX?= ${X11BASE}
GNU_CONFIGURE= yes
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
USE_GMAKE= yes
USE_LIBTOOL_VER=13
CFLAGS+= -DMALLOC_0_RETURNS_NULL
diff --git a/x11/libXdamage/Makefile b/x11/libXdamage/Makefile
index 3e0ada2..1aa2c98 100644
--- a/x11/libXdamage/Makefile
+++ b/x11/libXdamage/Makefile
@@ -23,7 +23,7 @@ RUN_DEPENDS= ${LIB_PC_DEPENDS}
USE_BZIP2= yes
PREFIX?= ${X11BASE}
GNU_CONFIGURE= yes
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
USE_GMAKE= yes
USE_LIBTOOL_VER=13
CFLAGS+= -DMALLOC_0_RETURNS_NULL
diff --git a/x11/libXdmcp/Makefile b/x11/libXdmcp/Makefile
index de2a863..613cac4 100644
--- a/x11/libXdmcp/Makefile
+++ b/x11/libXdmcp/Makefile
@@ -27,7 +27,7 @@ CONFLICTS= XFree86-libraries-* xorg-libraries-*
USE_BZIP2= yes
PREFIX?= ${X11BASE}
GNU_CONFIGURE= yes
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
USE_GMAKE= yes
INSTALLS_SHLIB= yes
USE_GNOME= gnomehack pkgconfig
diff --git a/x11/libXext/Makefile b/x11/libXext/Makefile
index 3c7644d..ca4a848 100644
--- a/x11/libXext/Makefile
+++ b/x11/libXext/Makefile
@@ -23,7 +23,7 @@ CONFLICTS= XFree86-libraries-* xorg-libraries-*
USE_BZIP2= yes
PREFIX?= ${X11BASE}
GNU_CONFIGURE= yes
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
USE_GMAKE= yes
USE_INC_LIBTOOL_VER=13
CFLAGS+= -DMALLOC_0_RETURNS_NULL
diff --git a/x11/libXfixes/Makefile b/x11/libXfixes/Makefile
index 7aacbc4..834e5f9 100644
--- a/x11/libXfixes/Makefile
+++ b/x11/libXfixes/Makefile
@@ -23,7 +23,7 @@ RUN_DEPENDS= ${LIB_PC_DEPENDS}
USE_BZIP2= yes
PREFIX?= ${X11BASE}
GNU_CONFIGURE= yes
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
USE_GMAKE= yes
USE_LIBTOOL_VER=13
CFLAGS+= -DMALLOC_0_RETURNS_NULL
diff --git a/x11/libXfont/Makefile b/x11/libXfont/Makefile
index 0bc178f..f539d17 100644
--- a/x11/libXfont/Makefile
+++ b/x11/libXfont/Makefile
@@ -22,7 +22,7 @@ CONFLICTS= XFree86-libraries-* xorg-libraries-*
USE_BZIP2= yes
PREFIX?= ${X11BASE}
GNU_CONFIGURE= yes
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
USE_GMAKE= yes
CONFIGURE_ARGS= --enable-freetype
INSTALLS_SHLIB= yes
diff --git a/x11/libXi/Makefile b/x11/libXi/Makefile
index b5945eb..643c11e 100644
--- a/x11/libXi/Makefile
+++ b/x11/libXi/Makefile
@@ -25,7 +25,7 @@ CONFLICTS= XFree86-libraries-* xorg-libraries-*
USE_BZIP2= yes
PREFIX?= ${X11BASE}
GNU_CONFIGURE= yes
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
USE_GMAKE= yes
USE_LIBTOOL_VER=13
CFLAGS+= -DMALLOC_0_RETURNS_NULL
diff --git a/x11/libXinerama/Makefile b/x11/libXinerama/Makefile
index 47106d6..b3a1d50 100644
--- a/x11/libXinerama/Makefile
+++ b/x11/libXinerama/Makefile
@@ -23,7 +23,7 @@ CONFLICTS= XFree86-libraries-* xorg-libraries-*
USE_BZIP2= yes
PREFIX?= ${X11BASE}
GNU_CONFIGURE= yes
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
USE_GMAKE= yes
CFLAGS+= -DMALLOC_0_RETURNS_NULL
INSTALLS_SHLIB= yes
diff --git a/x11/libXpm/Makefile b/x11/libXpm/Makefile
index 6ff9206..258d25d 100644
--- a/x11/libXpm/Makefile
+++ b/x11/libXpm/Makefile
@@ -25,7 +25,7 @@ USE_BZIP2= yes
PREFIX?= ${X11BASE}
GNU_CONFIGURE= yes
USE_GMAKE= yes
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
USE_INC_LIBTOOL_VER=13
CFLAGS+= -DMALLOC_0_RETURNS_NULL
INSTALLS_SHLIB= yes
diff --git a/x11/libXrandr/Makefile b/x11/libXrandr/Makefile
index 6e810f3..0b50160 100644
--- a/x11/libXrandr/Makefile
+++ b/x11/libXrandr/Makefile
@@ -27,7 +27,7 @@ CONFLICTS= XFree86-libraries-* xorg-libraries-*
USE_BZIP2= yes
PREFIX?= ${X11BASE}
GNU_CONFIGURE= yes
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
USE_GMAKE= yes
CFLAGS+= -DMALLOC_0_RETURNS_NULL
INSTALLS_SHLIB= yes
diff --git a/x11/libXrender/Makefile b/x11/libXrender/Makefile
index 8b7aec4..3e7e282 100644
--- a/x11/libXrender/Makefile
+++ b/x11/libXrender/Makefile
@@ -26,7 +26,7 @@ CONFLICTS= XFree86-libraries-* xorg-libraries-*
USE_BZIP2= yes
PREFIX?= ${X11BASE}
GNU_CONFIGURE= yes
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
USE_GMAKE= yes
USE_INC_LIBTOOL_VER=13
CFLAGS+= -DMALLOC_0_RETURNS_NULL
diff --git a/x11/libXres/Makefile b/x11/libXres/Makefile
index 5e2364c..469d860 100644
--- a/x11/libXres/Makefile
+++ b/x11/libXres/Makefile
@@ -28,7 +28,7 @@ USE_BZIP2= yes
PREFIX?= ${X11BASE}
GNU_CONFIGURE= yes
USE_GMAKE= yes
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
USE_LIBTOOL_VER=13
CFLAGS+= -DMALLOC_0_RETURNS_NULL
INSTALLS_SHLIB= yes
diff --git a/x11/libXtrans/Makefile b/x11/libXtrans/Makefile
index 6d264b2..aaf12ab 100644
--- a/x11/libXtrans/Makefile
+++ b/x11/libXtrans/Makefile
@@ -17,7 +17,7 @@ COMMENT= Network API translation layer for X applications and libraries
USE_BZIP2= yes
PREFIX?= ${X11BASE}
GNU_CONFIGURE= yes
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
USE_GMAKE= yes
USE_GNOME= gnomehack
diff --git a/x11/libXv/Makefile b/x11/libXv/Makefile
index ce87a45..8faacf9 100644
--- a/x11/libXv/Makefile
+++ b/x11/libXv/Makefile
@@ -22,7 +22,7 @@ CONFLICTS= XFree86-libraries-* xorg-libraries-*
USE_BZIP2= yes
PREFIX?= ${X11BASE}
GNU_CONFIGURE= yes
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
USE_GMAKE= yes
USE_LIBTOOL_VER=13
CFLAGS+= -DMALLOC_0_RETURNS_NULL
diff --git a/x11/linux-gnomelibs/Makefile b/x11/linux-gnomelibs/Makefile
index 55a2f1b..2abe160 100644
--- a/x11/linux-gnomelibs/Makefile
+++ b/x11/linux-gnomelibs/Makefile
@@ -13,12 +13,12 @@ CATEGORIES= x11 linux
MAINTAINER= freebsd-emulation@FreeBSD.org
COMMENT= RPM of gnome-libs
-RPM_SET= gnome-libs-${PORTVERSION}-11.${ARCH}.rpm
+RPM_SET= gnome-libs-${PORTVERSION}-11.${MACHINE_ARCH}.rpm
.include "../../x11-toolkits/linux-gtk/Makefile"
-.if (${ARCH} == "i386")
+.if (${MACHINE_ARCH} == "i386")
MASTER_SITES+= ftp://ftp.redhat.com/pub/redhat/linux/7.1/en/os/i386/RedHat/RPMS/
-.elif (${ARCH} == "alpha")
+.elif (${MACHINE_ARCH} == "alpha")
MASTER_SITES+= ftp://ftp.redhat.com/pub/redhat/linux/7.1/en/os/alpha/RedHat/RPMS/
.endif
diff --git a/x11/multi-aterm/Makefile b/x11/multi-aterm/Makefile
index b81997b..cac30db 100644
--- a/x11/multi-aterm/Makefile
+++ b/x11/multi-aterm/Makefile
@@ -16,7 +16,7 @@ COMMENT= A multi terminal based on aterm
USE_X_PREFIX= yes
USE_LIBTOOL_VER=13
GNU_CONFIGURE= yes
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
DOCS= AUTHORS ChangeLog INSTALL TODO
MAN1= multi-aterm.1
diff --git a/x11/panoramixext/Makefile b/x11/panoramixext/Makefile
index 85e98a4..7006759 100644
--- a/x11/panoramixext/Makefile
+++ b/x11/panoramixext/Makefile
@@ -18,7 +18,7 @@ CONFLICTS= XFree86-libraries-* xorg-libraries-*
USE_BZIP2= yes
PREFIX?= ${X11BASE}
GNU_CONFIGURE= yes
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
USE_GMAKE= yes
USE_GNOME= gnomehack
diff --git a/x11/randrext/Makefile b/x11/randrext/Makefile
index 7553e54..73b4dcd 100644
--- a/x11/randrext/Makefile
+++ b/x11/randrext/Makefile
@@ -18,7 +18,7 @@ CONFLICTS= XFree86-libraries-* xorg-libraries-*
USE_BZIP2= yes
PREFIX?= ${X11BASE}
GNU_CONFIGURE= yes
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
USE_GMAKE= yes
NO_BUILD= yes
diff --git a/x11/renderext/Makefile b/x11/renderext/Makefile
index 4c4b3ed..4ef86b0 100644
--- a/x11/renderext/Makefile
+++ b/x11/renderext/Makefile
@@ -19,7 +19,7 @@ CONFLICTS= XFree86-libraries-* xorg-libraries-*
USE_BZIP2= yes
PREFIX?= ${X11BASE}
GNU_CONFIGURE= yes
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
USE_GMAKE= yes
USE_GNOME= gnomehack pkgconfig
diff --git a/x11/resourceext/Makefile b/x11/resourceext/Makefile
index 2659991..c82986e 100644
--- a/x11/resourceext/Makefile
+++ b/x11/resourceext/Makefile
@@ -19,7 +19,7 @@ CONFLICTS= XFree86-libraries-* xorg-libraries-*
USE_BZIP2= yes
PREFIX?= ${X11BASE}
GNU_CONFIGURE= yes
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
USE_GMAKE= yes
NO_BUILD= yes
USE_GNOME= gnomehack
diff --git a/x11/rxvt-unicode/Makefile b/x11/rxvt-unicode/Makefile
index 4aacb8f..000c88a 100644
--- a/x11/rxvt-unicode/Makefile
+++ b/x11/rxvt-unicode/Makefile
@@ -22,7 +22,7 @@ USE_X_PREFIX= yes
USE_XPM= yes
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --enable-shared --enable-everything --with-term=rxvt
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
USE_BZIP2= yes
USE_GMAKE= yes
diff --git a/x11/wdm/Makefile b/x11/wdm/Makefile
index 31a5e28..64f5390 100644
--- a/x11/wdm/Makefile
+++ b/x11/wdm/Makefile
@@ -27,7 +27,7 @@ USE_BZIP2= yes
USE_X_PREFIX= yes
USE_REINPLACE= yes
GNU_CONFIGURE= yes
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ENV= CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}" \
DEF_SERVER="${DEF_SERVER}"
CONFIGURE_ARGS= --with-logdir=/var/log \
diff --git a/x11/xautomation/Makefile b/x11/xautomation/Makefile
index 88395cf..803be8a 100644
--- a/x11/xautomation/Makefile
+++ b/x11/xautomation/Makefile
@@ -18,7 +18,7 @@ LIB_DEPENDS= png.5:${PORTSDIR}/graphics/png
USE_XLIB= yes
GNU_CONFIGURE= yes
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include -I${X11BASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib -L${X11BASE}/lib"
diff --git a/x11/xextensions/Makefile b/x11/xextensions/Makefile
index b5a3188..10de5b8 100644
--- a/x11/xextensions/Makefile
+++ b/x11/xextensions/Makefile
@@ -21,7 +21,7 @@ CONFLICTS= XFree86-libraries-* xorg-libraries-*
USE_BZIP2= yes
PREFIX?= ${X11BASE}
GNU_CONFIGURE= yes
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
USE_GMAKE= yes
NO_BUILD= yes
USE_GNOME= gnomehack
diff --git a/x11/xlockmore/Makefile b/x11/xlockmore/Makefile
index 82baf16..382a75d 100644
--- a/x11/xlockmore/Makefile
+++ b/x11/xlockmore/Makefile
@@ -34,7 +34,7 @@ USE_X_PREFIX= yes
USE_XPM= yes
MAN1= xlock.1
-.if ${ARCH} == "amd64"
+.if ${MACHINE_ARCH} == "amd64"
WITH_MESAGL= no
.else
WITH_MESAGL?= yes
diff --git a/x11/xnee/Makefile b/x11/xnee/Makefile
index cc752b2..b129372 100644
--- a/x11/xnee/Makefile
+++ b/x11/xnee/Makefile
@@ -20,7 +20,7 @@ BUILD_DEPENDS= texi2html:${PORTSDIR}/textproc/texi2html
USE_X_PREFIX= yes
USE_PERL5= yes
GNU_CONFIGURE= yes
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
MAN1= xnee.1
INFO= xnee xnee_develop
diff --git a/x11/xproto/Makefile b/x11/xproto/Makefile
index f284f9c..9616df5 100644
--- a/x11/xproto/Makefile
+++ b/x11/xproto/Makefile
@@ -18,7 +18,7 @@ CONFLICTS= XFree86-libraries-* xorg-libraries-*
USE_BZIP2= yes
PREFIX?= ${X11BASE}
GNU_CONFIGURE= yes
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
USE_GMAKE= yes
NO_BUILD= yes
USE_GNOME= gnomehack
diff --git a/x11/xterm/Makefile b/x11/xterm/Makefile
index f8a45f1..9156c91 100644
--- a/x11/xterm/Makefile
+++ b/x11/xterm/Makefile
@@ -20,7 +20,7 @@ LIB_DEPENDS= Xft.2:${PORTSDIR}/x11-fonts/libXft
USE_X_PREFIX= yes
GNU_CONFIGURE= yes
-CONFIGURE_TARGET=--build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET=--build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ENV= CPPFLAGS="-I${X11BASE}/include" \
LIBS="-L${X11BASE}/lib"
CONFIGURE_ARGS+= --enable-wide-chars --enable-luit --with-utempter
diff --git a/x11/xtermcontrol/Makefile b/x11/xtermcontrol/Makefile
index e907228..f8ea771 100644
--- a/x11/xtermcontrol/Makefile
+++ b/x11/xtermcontrol/Makefile
@@ -18,7 +18,7 @@ RUN_DEPENDS= xterm-static:${PORTSDIR}/x11/xterm
USE_X_PREFIX= yes
USE_GETTEXT= yes
GNU_CONFIGURE= yes
-CONFIGURE_TARGET=--build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET=--build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ENV= CPPFLAGS="-I${X11BASE}/include -I${LOCALBASE}/include" \
LIBS="-L${X11BASE}/lib -L${LOCALBASE}/lib"
diff --git a/x11/xvattr/Makefile b/x11/xvattr/Makefile
index d40396c..ce8f278 100644
--- a/x11/xvattr/Makefile
+++ b/x11/xvattr/Makefile
@@ -20,7 +20,7 @@ USE_PERL5_BUILD= yes
USE_GETOPT_LONG= yes
USE_GNOME= gtk12
GNU_CONFIGURE= yes
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
MAN1= xvattr.1
OpenPOWER on IntegriCloud