Basically the same fix as used for PostgreSQL. Both ptlib and the sole port that depends on ptlib (net/h323plus) package fine with this.
This is the only port in the tree that still uses FAKE_AS_ROOT = always-wrap. OKs? Thanks, Jeremy Index: Makefile =================================================================== RCS file: /cvs/ports/devel/ptlib/Makefile,v retrieving revision 1.29 diff -u -p -r1.29 Makefile --- Makefile 16 Sep 2014 09:09:46 -0000 1.29 +++ Makefile 16 Oct 2014 03:48:09 -0000 @@ -8,12 +8,11 @@ V= 2.12.9 DISTNAME= ptlib-${V} EXTRACT_SUFX= .tar.bz2 SUBST_VARS= V -REVISION= 4 +REVISION= 5 SHARED_LIBS= pt 7.0 CATEGORIES= devel telephony -FAKE_AS_ROOT = always-wrap HOMEPAGE= http://www.opalvoip.org/ @@ -66,7 +65,13 @@ pre-configure: cp ${FILESDIR}/{Makefile,sound_sndio.*} ${WRKSRC}/plugins/sound_sndio ${SUBST_CMD} ${WRKSRC}/make/unix.mak +INSTALL_REPLACE = 's/^INSTALL := .*$$/ifdef BSD_INSTALL_SCRIPT\nINSTALL +INSTALL_REPLACE += := \$$\(subst -m 755,,\$${BSD_INSTALL_SCRIPT}\) +INSTALL_REPLACE += \nelse\nINSTALL := \/usr\/bin\/install -c -o ${BINOWN} +INSTALL_REPLACE += -g ${BINGRP}\nendif/' post-install: ${INSTALL_DATA} ${WRKSRC}/version.h ${PREFIX}/share/ptlib + perl -i -pe ${INSTALL_REPLACE} \ + ${PREFIX}/share/ptlib/make/ptbuildopts.mak .include <bsd.port.mk>