Код: Выделить всё
.if ${.CURDIR:N/usr/src/*} && ${.CURDIR:N/usr/obj/*}
WITHOUT_NLS=yes
#NOPORTDOCS=yes
DISTDIR?=/d/dist
PYTHON_DEFAULT_VERSION=python2.6
WITH_BDB_VER=47
WITH_GECKO=xulrunner
.MAKEFLAGS+=JAVA_HOME=/usr/local/jdk1.6.0
.if ${.CURDIR:M/usr/ports/*}
WRKDIRPREFIX?=/var/tmp/ports
.endif
#CFLAGS+=-ggdb
#WITH_DEBUG=yes
# exceptions for parallel ports' build
.if ${.CURDIR:N*/emacs-devel} && ${.CURDIR:N*/cross-binutils} \
&& ${.CURDIR:N*/libgpg-error} && ${.CURDIR:N*/perl5.8} \
&& ${.CURDIR:N*/libthai} && ${.CURDIR:N*/libiconv} \
&& ${.CURDIR:N*/m17n-lib} && ${.CURDIR:N*/qemu-devel} \
&& ${.CURDIR:N*/nasm} && ${.CURDIR:N*/tightvnc} \
&& ${.CURDIR:N*/db47} && ${.CURDIR:N*/subversion*} \
&& ${.CURDIR:N*/ghostscript8} && ${.CURDIR:N*/pth} \
&& ${.CURDIR:N*/cdrtools*} && ${.CURDIR:N*/w3m*} \
&& ${.CURDIR:N*/xmp} && ${.CURDIR:N*/libslang2} \
&& ${.CURDIR:N*/ezm3} && ${.CURDIR:N*/dcget} \
&& ${.CURDIR:N*/libxml2} && ${.CURDIR:N*/vim} \
&& ${.CURDIR:N*/gperf} && ${.CURDIR:N*/ffcall} \
&& ${.CURDIR:N*/ORBit2} && ${.CURDIR:N*/py-gtk2} \
&& ${.CURDIR:N*/xkeyboard-config} && ${.CURDIR:N*/ruby18} \
&& ${.CURDIR:N*/clisp} && ${.CURDIR:N*/jdk16} \
&& ${.CURDIR:N*/p7zip}
JOBS!= let `sysctl -n hw.ncpu` + 1
MAKE_FLAGS= -j${JOBS} -f
.endif
.if ${.CURDIR:N*/xmp}
CFLAGS+= -combine
.endif
# don't over-optimize kernel modules, they can easily send you to heaven
.if ${.CURDIR:M*/nvidia-driver*} || ${.CURDIR:M*/kqemu-kmod*} \
|| ${.CURDIR:M*/devcpu*} || ${.CURDIR:M*/drm/bsd-core} \
|| ${.CURDIR:M*/fusefs-kmod*}
CC=/usr/bin/cc
MAKE_FLAGS=WITH_CTF=yes -f
DEBUG_FLAGS?= -ggdb
.else
## exceptions for gcc44
# add to /etc/csh.cshrc `set path = ( /usr/local/libexec/ccache /usr/local/libexec/mygcc $path )'
# and populate mygcc with symlinks from gcc44 and cross-binutils
# note: some ports don't care about CC and CXX variables and sometimes even CFLAGS
.if ${.CURDIR:M*/nmap} || ${.CURDIR:M*/boost*} || ${.CURDIR:M*/wesnoth*}
CXX=/usr/bin/c++
CFLAGS+= -msse3
.elif ${.CURDIR:M*/xulrunner} || ${.CURDIR:M*/firefox3}
CC=/usr/bin/cc
CXX=/usr/bin/c++
CFLAGS+= -msse3
.elif ${.CURDIR:M*/sdl12} # crashes on SDL_BlitCopy with gcc44
CC=/usr/bin/cc
CFLAGS+= -msse3
.else
CFLAGS+= -msse4.1
.endif
CFLAGS+= -frename-registers -fweb -ftree-vectorize \
-freorder-blocks-and-partition \
-fgcse-sm -fgcse-las -fgcse-after-reload \
-fmerge-all-constants
.endif
# for -msse4.1
.if ${.CURDIR:M*/cross-binutils}
TGTARCH=amd64
TGTABI=freebsd
.endif
.if ${.CURDIR:M*/sqlite3}
TCL_V=8.5
.endif
.endif