# Created by: Andy Pavlo # $FreeBSD$ # # Note: Make sure there are no older versions of HTCondor installed during # build. The build system may pick up incompatible headers and libs. PORTNAME= condor PORTVERSION= 8.4.9 PORTREVISION= 2 CATEGORIES= sysutils net MASTER_SITES= http://www.acadix.biz/Ports/distfiles/ DISTNAME= condor_src-${PORTVERSION}-all-all MAINTAINER= bacon4000@gmail.com COMMENT= High-throughput computing on distributively owned resources LICENSE= APACHE20 LICENSE_FILE= ${WRKSRC}/LICENSE-2.0.txt BROKEN_powerpc64= Does not build LIB_DEPENDS+= libkrb5support.so:security/krb5 \ libpcre.so:devel/pcre \ libcurl.so:ftp/curl \ libboost_python.so:devel/boost-python-libs \ libexpat.so:textproc/expat2 WRKSRC= ${WRKDIR}/condor-${PORTVERSION} USE_LDCONFIG= yes # Does not build with Python 3 USES= cmake cpe perl5 pgsql python:2 shebangfix ssl CPE_VENDOR= condor_project SHEBANG_FILES= src/condor_scripts/condor_qsub \ src/condor_gridmanager/remote_gahp \ src/condor_examples/condor_limits_wrapper.sh \ src/condor_examples/condor_schedd.init \ src/condor_starter.V6.1/condor_ssh_to_job_shell_setup WANT_PGSQL= server CXXFLAGS+= -I${LOCALBASE}/include -fPIC LDFLAGS+= -Wl,-rpath=${_GCC_RUNTIME}:${LOCALBASE}/lib:/usr/lib:/lib -fPIC # Does not build with Python 3 CMAKE_ARGS+= -DCMAKE_CXX_FLAGS:STRING=${CXXFLAGS} \ -DCMAKE_EXE_LINKER_FLAGS:STRING=${LDFLAGS} \ -DPYTHON_INCLUDE_DIR:PATH=${LOCALBASE}/include/${PYTHON_VERSION} \ -DPYTHON_LIBRARY:FILEPATH=${LOCALBASE}/lib/lib${PYTHON_VERSION}.so SUB_FILES= condor-config condor_config.local pkg-message PLIST_SUB+= CONDOR_UVER=${PORTVERSION:S/./_/g} USERS= condor GROUPS= ${USERS} USE_RC_SUBR= condor PORTEXAMPLES= * PORTDOCS= * OPTIONS_DEFINE= DOCS EXAMPLES pre-everything:: @( ${PRINTF} "\nWARNING: Condor needs approximately 3GB to build!"; \ ${PRINTF} " Please make sure your build environment has that much before continuing.\n" ) post-patch: @${REINPLACE_CMD} \ -e 's,\(set( C_SHARE_EXAMPLES \)share/condor,\1${EXAMPLESDIR_REL},' \ ${WRKSRC}/build/cmake/CondorPackageConfig.cmake @${REINPLACE_CMD} \ -e '/create_symlink/d' \ ${WRKSRC}/src/condor_scripts/CMakeLists.txt @${REINPLACE_CMD} \ -e 's|/usr/local/condor|${PREFIX}|g' \ -e 's|$$(LOCAL_DIR)/condor_config.local|$$(RELEASE_DIR)/etc/condor_config.local|g' \ -e 's|/bin/mail|/usr/bin/mail|g' \ -e 's|/usr/bin/java|${LOCALBASE}/bin/java|g' \ -e 's|^CONDOR_HOST|## CONDOR_HOST|' \ -e 's|#CONDOR_IDS=x.x|CONDOR_IDS=466.466|' \ ${WRKSRC}/src/condor_examples/condor_config.annotated post-install: ${INSTALL_DATA} \ ${STAGEDIR}${ETCDIR}/examples/condor_config.annotated \ ${STAGEDIR}${PREFIX}/etc/condor_config.sample ${INSTALL_DATA} ${WRKDIR}/condor_config.local \ ${STAGEDIR}${PREFIX}/etc/condor_config.local.sample ${INSTALL_SCRIPT} ${WRKDIR}/condor-config ${STAGEDIR}${PREFIX}/sbin .include