1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-04 01:48:54 +00:00
freebsd-ports/sysutils/condor/Makefile

127 lines
2.9 KiB
Makefile

# Created by: Andy Pavlo
# $FreeBSD$
PORTNAME= condor
PORTVERSION= 7.8.7
PORTREVISION= 1
CATEGORIES= sysutils net
MASTER_SITES= # empty
DISTNAME= condor_src-${PORTVERSION}-all-all
MAINTAINER= jwbacon@tds.net
COMMENT= High-throughput distributed batch system
LIB_DEPENDS+= krb5support:${PORTSDIR}/security/krb5 \
pcre:${PORTSDIR}/devel/pcre \
curl:${PORTSDIR}/ftp/curl
RESTRICTED= Requires manual distfile fetch
WRKSRC= ${WRKDIR}/condor-${PORTVERSION}
USE_LDCONFIG= yes
USES= cmake gmake perl5
USE_PGSQL= server
CXXFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -rpath=${LOCALBASE}/lib:/usr/lib:/lib
CMAKE_ARGS+= -DCMAKE_CXX_FLAGS:STRING=${CXXFLAGS} \
-DCMAKE_EXE_LINKER_FLAGS:STRING=${LDFLAGS}
SUB_FILES= condor_config condor_config.local pkg-message
USERS= condor
GROUPS= ${USERS}
USE_RC_SUBR= condor
PORTEXAMPLES= *
PORTDOCS= *
MANCOMPRESSED= yes
MAN1= \
cleanup_release.1 \
condor_advertise.1 \
condor_check_userlogs.1 \
condor_checkpoint.1 \
condor_chirp.1 \
condor_cod.1 \
condor_cold_start.1 \
condor_cold_stop.1 \
condor_compile.1 \
condor_config_bind.1 \
condor_config_val.1 \
condor_configure.1 \
condor_continue.1 \
condor_dagman.1 \
condor_fetchlog.1 \
condor_findhost.1 \
condor_gather_info.1 \
condor_glidein.1 \
condor_history.1 \
condor_hold.1 \
condor_load_history.1 \
condor_master.1 \
condor_off.1 \
condor_on.1 \
condor_power.1 \
condor_preen.1 \
condor_prio.1 \
condor_procd.1 \
condor_q.1 \
condor_qedit.1 \
condor_reconfig.1 \
condor_release.1 \
condor_reschedule.1 \
condor_restart.1 \
condor_rm.1 \
condor_router_history.1 \
condor_router_q.1 \
condor_router_rm.1 \
condor_run.1 \
condor_set_shutdown.1 \
condor_ssh_to_job.1 \
condor_stats.1 \
condor_status.1 \
condor_store_cred.1 \
condor_submit.1 \
condor_submit_dag.1 \
condor_suspend.1 \
condor_transfer_data.1 \
condor_updates_stats.1 \
condor_userlog.1 \
condor_userprio.1 \
condor_vacate.1 \
condor_vacate_job.1 \
condor_version.1 \
condor_wait.1 \
filelock_midwife.1 \
filelock_undertaker.1 \
gidd_alloc.1 \
install_release.1 \
procd_ctl.1 \
uniq_pid_midwife.1 \
uniq_pid_undertaker.1
NO_STAGE= yes
.include <bsd.port.pre.mk>
.if !exists(${DISTDIR}/${DISTNAME}${EXTRACT_SUFX})
IGNORE= requires that you go to http://research.cs.wisc.edu/condor/ to register and manually download the source distribution ${DISTNAME}${EXTRACT_SUFX}, place it in ${DISTDIR}, and then run make again
.endif
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
post-install:
${INSTALL_DATA} ${WRKDIR}/condor_config ${ETCDIR}
${INSTALL_DATA} ${WRKDIR}/condor_config.local ${ETCDIR}
${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
@${CAT} ${PKGMESSAGE}
.include <bsd.port.post.mk>