Index: Makefile =================================================================== --- Makefile (revision 483812) +++ Makefile (working copy) @@ -13,7 +13,7 @@ LICENSE= APACHE20 LICENSE_FILE= ${WRKSRC}/LICENSE -USES= cpe gmake iconv libtool pathfix +USES= cpe iconv libtool pathfix CONFIGURE_ARGS= --enable-netaccessor-socket \ --enable-transcoder-iconv \ @@ -29,6 +29,16 @@ CPE_PRODUCT= xerces-c++ CPE_VENDOR= apache +.include <bsd.port.pre.mk> + +.if ${ARCH:Mpowerpc*} +PLIST_SUB+= POWERPC="" \ + NOT_POWERPC="@comment " +.else +PLIST_SUB+= POWERPC="@comment " \ + NOT_POWERPC="" +.endif + post-patch: @${REINPLACE_CMD} -e "s,@DEFS@,& -D__STDC_LIMIT_MACROS," ${WRKSRC}/src/Makefile.in @@ -35,4 +45,4 @@ post-install: ${LN} -s libxerces-c-${PORTVERSION:R}.so ${STAGEDIR}${PREFIX}/lib/libxerces-c.so.${PORTVERSION:R:R} -.include <bsd.port.mk> +.include <bsd.port.post.mk> Index: pkg-plist =================================================================== --- pkg-plist (revision 483812) +++ pkg-plist (working copy) @@ -264,7 +264,8 @@ include/xercesc/util/LogicalPath.c include/xercesc/util/MsgLoaders/InMemory/InMemMsgLoader.hpp include/xercesc/util/MsgLoaders/InMemory/XercesMessages_en_US.hpp -include/xercesc/util/MutexManagers/StdMutexMgr.hpp +%%POWERPC%%include/xercesc/util/MutexManagers/PosixMutexMgr.hpp +%%NOT_POWERPC%%include/xercesc/util/MutexManagers/StdMutexMgr.hpp include/xercesc/util/Mutexes.hpp include/xercesc/util/NameIdPool.c include/xercesc/util/NameIdPool.hpp