Changeset View
Changeset View
Standalone View
Standalone View
devel/git/Makefile
# Created by: Eric Anholt | # Created by: Eric Anholt | ||||
# $FreeBSD$ | # $FreeBSD$ | ||||
PORTNAME= git | PORTNAME= git | ||||
DISTVERSION= 2.22.0 | DISTVERSION= 2.22.0 | ||||
PORTREVISION= 1 | |||||
CATEGORIES= devel | CATEGORIES= devel | ||||
MASTER_SITES= KERNEL_ORG/software/scm/git | MASTER_SITES= KERNEL_ORG/software/scm/git | ||||
DISTFILES= ${DISTNAME}${EXTRACT_SUFX} \ | DISTFILES= ${DISTNAME}${EXTRACT_SUFX} \ | ||||
${PORTNAME}-manpages-${DISTVERSION}${EXTRACT_SUFX} | ${PORTNAME}-manpages-${DISTVERSION}${EXTRACT_SUFX} | ||||
# We manually extract the htmldocs. | # We manually extract the htmldocs. | ||||
EXTRACT_ONLY= ${DISTNAME}${EXTRACT_SUFX} \ | EXTRACT_ONLY= ${DISTNAME}${EXTRACT_SUFX} \ | ||||
${PORTNAME}-manpages-${DISTVERSION}${EXTRACT_SUFX} | ${PORTNAME}-manpages-${DISTVERSION}${EXTRACT_SUFX} | ||||
Show All 33 Lines | SHEBANG_FILES= *.perl */*.perl */*/*.perl */*.pl */*/*.pl */*/*/*.pl \ | ||||
contrib/svn-fe/svnrdump_sim.py \ | contrib/svn-fe/svnrdump_sim.py \ | ||||
templates/hooks--fsmonitor-watchman.sample | templates/hooks--fsmonitor-watchman.sample | ||||
TEST_TARGET= test | TEST_TARGET= test | ||||
CONFIGURE_ARGS= --enable-pthreads=-pthread ac_cv_header_libcharset_h=no | CONFIGURE_ARGS= --enable-pthreads=-pthread ac_cv_header_libcharset_h=no | ||||
OPTIONS_RADIO= PCRE_VERSION | OPTIONS_RADIO= PCRE_VERSION | ||||
OPTIONS_RADIO_PCRE_VERSION= PCRE PCRE2 | OPTIONS_RADIO_PCRE_VERSION= PCRE PCRE2 | ||||
OPTIONS_DEFINE= GUI SVN GITWEB CONTRIB P4 CVS HTMLDOCS PERL ICONV CURL \ | OPTIONS_DEFINE= GUI SUBVERSION GITWEB CONTRIB PERFORCE CVS HTMLDOCS PERL ICONV CURL \ | ||||
SEND_EMAIL NLS SUBTREE | SEND_EMAIL NLS SUBTREE | ||||
OPTIONS_DEFAULT= CONTRIB P4 CVS PERL GITWEB ICONV CURL SEND_EMAIL PCRE \ | OPTIONS_DEFAULT= CONTRIB PERFORCE CVS PERL GITWEB ICONV CURL SEND_EMAIL PCRE \ | ||||
SUBTREE | SUBTREE | ||||
OPTIONS_SUB= yes | OPTIONS_SUB= yes | ||||
GITWEB_DESC= Install gitweb | GITWEB_DESC= Install gitweb | ||||
CONTRIB_DESC= Install contributed scripts | CONTRIB_DESC= Install contributed scripts | ||||
P4_DESC= Enable Perforce support | |||||
PCRE2_DESC= Use Perl Compatible Regular Expressions (v2) | PCRE2_DESC= Use Perl Compatible Regular Expressions (v2) | ||||
CVS_DESC= Enable CVS support | |||||
HTMLDOCS_DESC= Install additional documentation | HTMLDOCS_DESC= Install additional documentation | ||||
SEND_EMAIL_DESC=Enable the git-send-email(1) script | SEND_EMAIL_DESC=Enable the git-send-email(1) script | ||||
SUBTREE_DESC= Install git-subtree | SUBTREE_DESC= Install git-subtree | ||||
NLS_USES= gettext | NLS_USES= gettext | ||||
NLS_MAKE_ARGS_OFF= NO_GETTEXT=yes | NLS_MAKE_ARGS_OFF= NO_GETTEXT=yes | ||||
PERL_USES= perl5 | PERL_USES= perl5 | ||||
Show All 30 Lines | |||||
GUI_MAKE_ARGS= TCL_PATH=${TCLSH} TCLTK_PATH=${WISH} | GUI_MAKE_ARGS= TCL_PATH=${TCLSH} TCLTK_PATH=${WISH} | ||||
GUI_MAKE_ARGS_OFF= NO_TCLTK=yes | GUI_MAKE_ARGS_OFF= NO_TCLTK=yes | ||||
# While this port does not explicitly honor WITH_SUBVERSION_VER knob it does | # While this port does not explicitly honor WITH_SUBVERSION_VER knob it does | ||||
# depend upon devel/p5-subversion, which does honor that knob. If you want | # depend upon devel/p5-subversion, which does honor that knob. If you want | ||||
# to have git use devel/subversion18 it will be brought in through | # to have git use devel/subversion18 it will be brought in through | ||||
# devel/p5-subversion if you set WITH_SUBVERSION_VER=18. Otherwise | # devel/p5-subversion if you set WITH_SUBVERSION_VER=18. Otherwise | ||||
# devel/subversion will be brought in. | # devel/subversion will be brought in. | ||||
SVN_RUN_DEPENDS= p5-Term-ReadKey>=0:devel/p5-Term-ReadKey \ | SUBVERSION_RUN_DEPENDS= p5-Term-ReadKey>=0:devel/p5-Term-ReadKey \ | ||||
p5-subversion>=0:devel/p5-subversion | p5-subversion>=0:devel/p5-subversion | ||||
SUBTREE_BUILD_DEPENDS= xmlto:textproc/xmlto \ | SUBTREE_BUILD_DEPENDS= xmlto:textproc/xmlto \ | ||||
asciidoc:textproc/asciidoc \ | asciidoc:textproc/asciidoc \ | ||||
docbook-xml>0:textproc/docbook-xml | docbook-xml>0:textproc/docbook-xml | ||||
CVS_RUN_DEPENDS= cvsps:devel/cvsps | CVS_RUN_DEPENDS= cvsps:devel/cvsps | ||||
.include <bsd.port.options.mk> | .include <bsd.port.options.mk> | ||||
# This is intentionally not exposed as an option. | # This is intentionally not exposed as an option. | ||||
.if defined(STRIP) && ${STRIP} != "" | .if defined(STRIP) && ${STRIP} != "" | ||||
ALL_TARGET= all strip | ALL_TARGET= all strip | ||||
.endif | .endif | ||||
.if ${PORT_OPTIONS:MP4} || ${PORT_OPTIONS:MCONTRIB} | .if ${PORT_OPTIONS:MPERFORCE} || ${PORT_OPTIONS:MCONTRIB} | ||||
USES+= python | USES+= python | ||||
CONFIGURE_ARGS+= --with-python=${PYTHON_CMD} | CONFIGURE_ARGS+= --with-python=${PYTHON_CMD} | ||||
.else | .else | ||||
CONFIGURE_ARGS+= --without-python | CONFIGURE_ARGS+= --without-python | ||||
.endif | .endif | ||||
.if empty(PORT_OPTIONS:MGUI) | .if empty(PORT_OPTIONS:MGUI) | ||||
RMMAN1+= git-citool.1 \ | RMMAN1+= git-citool.1 \ | ||||
git-gui.1 \ | git-gui.1 \ | ||||
gitk.1 | gitk.1 | ||||
.endif | .endif | ||||
.if empty(PORT_OPTIONS:MSVN) | .if empty(PORT_OPTIONS:MSUBVERSION) | ||||
RMMAN1+= git-svn.1 | RMMAN1+= git-svn.1 | ||||
.endif | .endif | ||||
.if empty(PORT_OPTIONS:MCVS) | .if empty(PORT_OPTIONS:MCVS) | ||||
RMMAN1+= git-cvsimport.1 \ | RMMAN1+= git-cvsimport.1 \ | ||||
git-cvsexportcommit.1 \ | git-cvsexportcommit.1 \ | ||||
git-cvsserver.1 | git-cvsserver.1 | ||||
RMMAN7+= gitcvs-migration.7 | RMMAN7+= gitcvs-migration.7 | ||||
Show All 21 Lines | |||||
post-patch-CVS-off: | post-patch-CVS-off: | ||||
@${REINPLACE_CMD} -e '/git-cvsexportcommit.perl/d; \ | @${REINPLACE_CMD} -e '/git-cvsexportcommit.perl/d; \ | ||||
/git-cvsimport.perl/d; \ | /git-cvsimport.perl/d; \ | ||||
/git-cvsserver.perl/d; \ | /git-cvsserver.perl/d; \ | ||||
/documented,gitcvs-migration/d; \ | /documented,gitcvs-migration/d; \ | ||||
s/git-cvsserver//' \ | s/git-cvsserver//' \ | ||||
${WRKSRC}/Makefile | ${WRKSRC}/Makefile | ||||
post-patch-SVN-off: | post-patch-SUBVERSION-off: | ||||
@${REINPLACE_CMD} -e '/git-svn.perl/d' ${WRKSRC}/Makefile | @${REINPLACE_CMD} -e '/git-svn.perl/d' ${WRKSRC}/Makefile | ||||
post-patch-GITWEB-off: | post-patch-GITWEB-off: | ||||
@${REINPLACE_CMD} -e '/$$(MAKE) -C gitweb install/d' ${WRKSRC}/Makefile | @${REINPLACE_CMD} -e '/$$(MAKE) -C gitweb install/d' ${WRKSRC}/Makefile | ||||
@${REINPLACE_CMD} -e "s,/usr/bin/perl,${PERL}," ${WRKSRC}/t/gitweb-lib.sh | @${REINPLACE_CMD} -e "s,/usr/bin/perl,${PERL}," ${WRKSRC}/t/gitweb-lib.sh | ||||
post-patch-P4-off: | post-patch-PERFORCE-off: | ||||
@${REINPLACE_CMD} -e '/^SCRIPT_PYTHON += git-p4.py$$/d' ${WRKSRC}/Makefile | @${REINPLACE_CMD} -e '/^SCRIPT_PYTHON += git-p4.py$$/d' ${WRKSRC}/Makefile | ||||
@${REINPLACE_CMD} -e 's|/bin/bash|/bin/sh|' \ | @${REINPLACE_CMD} -e 's|/bin/bash|/bin/sh|' \ | ||||
${WRKSRC}/contrib/subtree/git-subtree.sh | ${WRKSRC}/contrib/subtree/git-subtree.sh | ||||
.if ${PORT_OPTIONS:MP4} || ${PORT_OPTIONS:MCONTRIB} | .if ${PORT_OPTIONS:MPERFORCE} || ${PORT_OPTIONS:MCONTRIB} | ||||
post-build: | post-build: | ||||
@${FIND} ${WRKSRC} -name "*.bak" -delete | @${FIND} ${WRKSRC} -name "*.bak" -delete | ||||
.endif | .endif | ||||
post-build-CONTRIB-on: | post-build-CONTRIB-on: | ||||
${SETENV} ${MAKE_ENV} ${MAKE_CMD} -C ${WRKSRC}/contrib/diff-highlight | ${SETENV} ${MAKE_ENV} ${MAKE_CMD} -C ${WRKSRC}/contrib/diff-highlight | ||||
${RM} ${WRKSRC}/contrib/diff-highlight/shebang.perl | ${RM} ${WRKSRC}/contrib/diff-highlight/shebang.perl | ||||
Show All 32 Lines | @${LN} -s ../../share/git-core/contrib/completion/git-completion.bash \ | ||||
${STAGEDIR}${PREFIX}/etc/bash_completion.d/ | ${STAGEDIR}${PREFIX}/etc/bash_completion.d/ | ||||
post-install-CONTRIB-off: | post-install-CONTRIB-off: | ||||
# Install the contrib completions anyway | # Install the contrib completions anyway | ||||
@${MKDIR} ${STAGEDIR}${PREFIX}/etc/bash_completion.d | @${MKDIR} ${STAGEDIR}${PREFIX}/etc/bash_completion.d | ||||
${INSTALL_SCRIPT} ${WRKSRC}/contrib/completion/git-completion.bash \ | ${INSTALL_SCRIPT} ${WRKSRC}/contrib/completion/git-completion.bash \ | ||||
${STAGEDIR}${PREFIX}/etc/bash_completion.d/ | ${STAGEDIR}${PREFIX}/etc/bash_completion.d/ | ||||
post-install-P4-on: | post-install-PERFORCE-on: | ||||
${INSTALL_SCRIPT} ${WRKSRC}/git-p4.py ${STAGEDIR}${PREFIX}/bin/ | ${INSTALL_SCRIPT} ${WRKSRC}/git-p4.py ${STAGEDIR}${PREFIX}/bin/ | ||||
post-install-GITWEB-on: | post-install-GITWEB-on: | ||||
${MKDIR} ${STAGEDIR}${ETCDIR} | ${MKDIR} ${STAGEDIR}${ETCDIR} | ||||
${INSTALL_DATA} ${WRKDIR}/gitweb.conf \ | ${INSTALL_DATA} ${WRKDIR}/gitweb.conf \ | ||||
${STAGEDIR}${ETCDIR}/gitweb.conf.sample | ${STAGEDIR}${ETCDIR}/gitweb.conf.sample | ||||
.include <bsd.port.mk> | .include <bsd.port.mk> |