.include <bsd.port.pre.mk>
.if ${ARCH} == "arm"
BROKEN= Does not compile on arm
.endif
.if ${ARCH} == "i386"
CONFIGURE_ARGS+=--enable-assembler --with-berkeley-db
CONFIGURE_ARGS+=--enable-assembler
post-patch:
@${REINPLACE_CMD} 's/*.1/${MAN1}/' ${WRKSRC}/man/CMakeLists.txt
.include <bsd.port.mk>
.include <bsd.port.post.mk>
BROKEN= Does not install on arm
post-extract:
.if ${PYTHON_REL} < 300
@${CP} ${FILESDIR}/setup.py ${WRKSRC}
@${REINPLACE_CMD} -e "s|'cc'|'${CC:Q:C/[[:space:]]+/', '/g}'|g" \
${WRKSRC}/giscanner/sourcescanner.py
.if defined(WITHOUT_THREADS)
CONFIGURE_ARGS+= --enable-threads=no
.else
.if ${ARCH} == "sparc64"
.elif ${ARCH} == "sparc64"
BROKEN= does not compile on sparc64
@${REINPLACE_CMD} -e 's,-lpthread,${PTHREAD_LIBS},g ; s,echo aout,echo elf,g' ${WRKSRC}/${CONFIGURE_SCRIPT}
BROKEN= Does not install on arm: mtree
CFLAGS= -O1
CONFIGURE_ENV= PTHREAD_LIBS="${PTHREAD_LIBS}"
.if ${ARCH} == "alpha"
CXXFLAGS+= -mieee
pre-build:
cd ${BUILD_WRKSRC}/../bootstrap && ${MAKE}
BROKEN= Does not configure on arm
.if ${ARCH} == "ia64"
BROKEN= Emacs 24.X does not currently build on arm
.elif ${ARCH} == "ia64"
BROKEN= Emacs 24.X does not currently build on ia64
.if defined(WITH_GL)
USE_GL= gl
CONFIGURE_ARGS+= --enable-gl
.if ${ARCH} == "amd64"
CONFIGURE_TARGET= x86_64-portbld-freebsd${OSREL}
BROKEN= Does not build on arm
.if !defined(WITHOUT_TCL_MODULES)
RUN_DEPENDS+= ${LOCALBASE}/lib/tcl8/8.5/tcltest-2.3.4.tm:${PORTSDIR}/lang/tcl-modules
# sed script for dovecot.conf
REINPLACE= s!%%PROTOCOLS%%!${PROTOCOLS}!g;\
s!/usr/!${PREFIX}/!g;\
# Default requirement for dovecot rc script
_REQUIRE= LOGIN
.if !defined(WITHOUT_XMLRPC)
CONFIGURE_ARGS+= --with-xmlrpc-c
LIB_DEPENDS+= xmlrpc.3:${PORTSDIR}/net/xmlrpc-c-devel
cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${DOCSDIR}
.if !defined(WITHOUT_SERVER)
MASTER_SITES+= ${MASTER_SITE_XORG:S/$/:x/}
MASTER_SITE_SUBDIR+= 4.3.0/:x
CONFIGURE_SCRIPT= Configure
CONFIGURE_ARGS= -n freebsd
CONFIGURE_ENV= LSOF_CC="${CC}" FREEBSD_SYS="${SRC_BASE}/sys"
.endfor
@${CAT} ${PKGMESSAGE}