summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorzeising <zeising@058c260c-8361-11dd-a0ac-aa2bafec7d09>2013-09-09 19:10:38 +0800
committerzeising <zeising@058c260c-8361-11dd-a0ac-aa2bafec7d09>2013-09-09 19:10:38 +0800
commit089bf5eeb2a1203ad6e9c5e0e8fd727c382551f4 (patch)
tree54bca94bdbb64651edca74d95c0c6231bcf4afe5
parentf364fc7aa9737ce8ffce4d911403800fb2ef6020 (diff)
downloadxorg-devel-ports-089bf5eeb2a1203ad6e9c5e0e8fd727c382551f4.tar
xorg-devel-ports-089bf5eeb2a1203ad6e9c5e0e8fd727c382551f4.tar.gz
xorg-devel-ports-089bf5eeb2a1203ad6e9c5e0e8fd727c382551f4.tar.bz2
xorg-devel-ports-089bf5eeb2a1203ad6e9c5e0e8fd727c382551f4.tar.lz
xorg-devel-ports-089bf5eeb2a1203ad6e9c5e0e8fd727c382551f4.tar.xz
xorg-devel-ports-089bf5eeb2a1203ad6e9c5e0e8fd727c382551f4.tar.zst
xorg-devel-ports-089bf5eeb2a1203ad6e9c5e0e8fd727c382551f4.zip
Sync with ports
git-svn-id: https://trillian.chruetertee.ch/svn/ports/trunk@1147 058c260c-8361-11dd-a0ac-aa2bafec7d09
-rw-r--r--Mk/bsd.port.mk12
1 files changed, 9 insertions, 3 deletions
diff --git a/Mk/bsd.port.mk b/Mk/bsd.port.mk
index 3e5c718..bf4634e 100644
--- a/Mk/bsd.port.mk
+++ b/Mk/bsd.port.mk
@@ -319,6 +319,7 @@ FreeBSD_MAINTAINER= portmgr@FreeBSD.org
# USE_GCC - If set, this port requires this version of gcc, either in
# the system or installed from a port.
# USE_CSTD - Override the default C language standard (gnu89, gnu99)
+# USE_CXXSTD Override the default C++ language standard
# USE_BINUTILS - Use binutils suite from port instead of the version in base.
##
# USE_GHOSTSCRIPT
@@ -2141,6 +2142,10 @@ CFLAGS+= -fno-strict-aliasing
CFLAGS:= ${CFLAGS:N-std=*} -std=${USE_CSTD}
.endif
+.if defined(USE_CXXSTD)
+CXXFLAGS:= ${CXXFLAGS:N-std=*} -std=${USE_CXXSTD}
+.endif
+
# Multiple make jobs support
.if defined(DISABLE_MAKE_JOBS) || defined(MAKE_JOBS_UNSAFE)
_MAKE_JOBS= #
@@ -3445,7 +3450,7 @@ do-fetch:
esac; \
if ${SETENV} ${FETCH_ENV} ${FETCH_CMD} ${FETCH_BEFORE_ARGS} $${args} ${FETCH_AFTER_ARGS}; then \
actual_size=`stat -f %z "$${file}"`; \
- if [ -n "${DISABLE_SIZE}" ] || [ $${actual_size} -eq $${CKSIZE} ]; then \
+ if [ -n "${DISABLE_SIZE}" ] || [ -z "$${CKSIZE}" ] || [ $${actual_size} -eq $${CKSIZE} ]; then \
continue 2; \
else \
${ECHO_MSG} "=> Fetched file size mismatch (expected $${CKSIZE}, actual $${actual_size})"; \
@@ -4936,7 +4941,7 @@ _INSTALL_DEPENDS= \
else \
${PKG_ADD} $${subpkgfile}; \
fi; \
- elif [ -n "${USE_PACKAGE_DEPENDS_ONLY}" ]; then \
+ elif [ -n "${USE_PACKAGE_DEPENDS_ONLY}" -a "$${target}" = "${DEPENDS_TARGET}" ]; then \
${ECHO_MSG} "===> ${PKGNAME} depends on package: $${subpkgfile} - not found"; \
${ECHO_MSG} "===> USE_PACKAGE_DEPENDS_ONLY set - will not build from source"; \
exit 1; \
@@ -5062,7 +5067,8 @@ lib-depends:
for libdir in $$dirs; do \
test -f $${libdir}/$${lib} || continue; \
if [ -x /usr/bin/file ]; then \
- [ `file -b -L --mime-type $${libdir}/$${lib}` = "application/x-sharedlib" ] || continue ; \
+ _LIB_FILE=`realpath $${libdir}/$${lib}`; \
+ [ `file -b -L --mime-type $${_LIB_FILE}` = "application/x-sharedlib" ] || continue ; \
fi ; \
found=1 ; \
${ECHO_MSG} " - found"; \