2009-12-11 04:37:53 -05:00
|
|
|
# $OpenBSD: Makefile,v 1.62 2009/12/11 09:37:53 bernd Exp $
|
2006-11-12 10:59:05 -05:00
|
|
|
|
2007-07-24 01:16:04 -04:00
|
|
|
COMMENT-main= GIT - Tree History Storage Tool
|
|
|
|
COMMENT-svn= GIT - subversion interoperability tools
|
2008-04-01 18:36:30 -04:00
|
|
|
COMMENT-x11= GIT - graphical tools
|
2006-11-12 10:59:05 -05:00
|
|
|
|
2009-12-11 04:37:53 -05:00
|
|
|
V= 1.6.5.6
|
2006-11-16 14:28:53 -05:00
|
|
|
DISTNAME= git-${V}
|
2009-12-03 06:39:51 -05:00
|
|
|
PKGNAME-main= ${DISTNAME}
|
2008-05-28 01:22:07 -04:00
|
|
|
PKGNAME-svn= git-svn-${V}
|
2009-12-03 06:39:51 -05:00
|
|
|
PKGNAME-x11= git-x11-${V}
|
2006-11-12 10:59:05 -05:00
|
|
|
CATEGORIES= devel
|
|
|
|
|
2009-04-05 06:05:35 -04:00
|
|
|
HOMEPAGE= http://git-scm.com/
|
2006-11-12 10:59:05 -05:00
|
|
|
|
2007-04-20 04:44:40 -04:00
|
|
|
MAINTAINER= Bernd Ahlers <bernd@openbsd.org>
|
2006-11-12 10:59:05 -05:00
|
|
|
|
2009-03-18 04:01:08 -04:00
|
|
|
# GPLv2 only
|
2006-11-12 10:59:05 -05:00
|
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
|
|
PERMIT_PACKAGE_FTP= Yes
|
|
|
|
PERMIT_DISTFILES_CDROM= Yes
|
|
|
|
PERMIT_DISTFILES_FTP= Yes
|
|
|
|
|
2007-09-08 07:29:40 -04:00
|
|
|
DOC_DISTFILES= git-manpages-${V}${EXTRACT_SUFX} \
|
2007-04-12 05:37:12 -04:00
|
|
|
git-htmldocs-${V}${EXTRACT_SUFX}
|
2007-09-08 07:29:40 -04:00
|
|
|
DISTFILES= ${DISTNAME}${EXTRACT_SUFX} ${DOC_DISTFILES}
|
|
|
|
EXTRACT_ONLY= ${DISTNAME}${EXTRACT_SUFX}
|
2006-11-16 14:28:53 -05:00
|
|
|
|
2008-10-27 17:00:24 -04:00
|
|
|
MASTER_SITES= ftp://ftp.kernel.org/pub/software/scm/git/ \
|
|
|
|
ftp://ftp.de.kernel.org/pub/software/scm/git/ \
|
|
|
|
ftp://ftp.au.kernel.org/pub/software/scm/git/
|
2006-11-12 10:59:05 -05:00
|
|
|
|
|
|
|
TAR= ${LOCALBASE}/bin/gtar
|
|
|
|
|
2009-03-18 04:01:08 -04:00
|
|
|
MODULES= converters/libiconv x11/tk
|
2006-11-12 10:59:05 -05:00
|
|
|
|
|
|
|
BUILD_DEPENDS= ::archivers/gtar \
|
|
|
|
::devel/p5-Error
|
|
|
|
|
2008-04-01 18:36:30 -04:00
|
|
|
MULTI_PACKAGES= -main -svn -x11
|
2007-04-13 06:19:45 -04:00
|
|
|
|
2009-01-26 03:58:43 -05:00
|
|
|
WANTLIB-main= c expat crypto ssl z
|
2008-04-01 18:36:30 -04:00
|
|
|
RUN_DEPENDS-main= ::net/rsync \
|
2007-04-13 06:19:45 -04:00
|
|
|
::devel/p5-Error \
|
2009-11-24 14:48:01 -05:00
|
|
|
:cvsps-*:devel/cvsps \
|
2007-04-13 06:19:45 -04:00
|
|
|
${MODLIBICONV_RUN_DEPENDS}
|
|
|
|
LIB_DEPENDS-main= curl.>=3::net/curl \
|
|
|
|
${MODLIBICONV_LIB_DEPENDS}
|
|
|
|
|
|
|
|
RUN_DEPENDS-svn= ::${BASE_PKGPATH} \
|
2008-05-15 04:57:23 -04:00
|
|
|
::devel/p5-Term-ReadKey \
|
2007-04-13 06:19:45 -04:00
|
|
|
::devel/subversion,-perl \
|
|
|
|
::www/p5-URI \
|
|
|
|
::www/p5-libwww
|
|
|
|
LIB_DEPENDS-svn=
|
|
|
|
PKG_ARCH-svn= *
|
|
|
|
|
2009-04-05 06:05:35 -04:00
|
|
|
RUN_DEPENDS-x11= ::${BASE_PKGPATH},-main \
|
2009-03-18 04:01:08 -04:00
|
|
|
${MODTK_RUN_DEPENDS}
|
2008-04-01 18:36:30 -04:00
|
|
|
LIB_DEPENDS-x11=
|
|
|
|
PKG_ARCH-x11= *
|
|
|
|
|
2007-04-20 04:44:40 -04:00
|
|
|
MAKE_ENV= prefix=${PREFIX} CC="${CC}" CFLAGS="${CFLAGS}" V=1 \
|
2007-06-14 17:44:49 -04:00
|
|
|
SYSCONFDIR=${SYSCONFDIR} \
|
2009-03-18 04:01:08 -04:00
|
|
|
TCLTK_PATH=${MODTK_BIN} \
|
|
|
|
TCL_PATH=${MODTCL_BIN}
|
2006-11-12 10:59:05 -05:00
|
|
|
|
|
|
|
USE_GMAKE= Yes
|
|
|
|
|
2007-12-17 15:00:05 -05:00
|
|
|
REGRESS_DEPENDS= :zip-*:archivers/zip \
|
2008-06-24 16:28:00 -04:00
|
|
|
:cvsps-*:devel/cvsps \
|
2009-05-18 15:23:58 -04:00
|
|
|
::devel/subversion,-perl
|
|
|
|
|
|
|
|
GITWEB= README INSTALL git-favicon.png git-logo.png \
|
|
|
|
gitweb.cgi gitweb.css
|
2007-04-13 06:19:45 -04:00
|
|
|
|
|
|
|
post-extract:
|
2007-09-08 07:29:40 -04:00
|
|
|
@mkdir -p ${WRKSRC}/doc
|
|
|
|
.for distfile in ${DOC_DISTFILES}
|
|
|
|
@${TAR} -C ${WRKSRC}/doc -xzf ${FULLDISTDIR}/${distfile}${EXTRACT_SUFX}
|
|
|
|
.endfor
|
|
|
|
@rm -f ${WRKSRC}/doc/man1/git-p4import.1
|
2009-05-18 15:23:58 -04:00
|
|
|
@cd ${WRKSRC} && perl -pi -e "s|/usr/share/git|${TRUEPREFIX}/share/git|g" \
|
|
|
|
Documentation/git-clone.txt Documentation/git-init.txt \
|
|
|
|
doc/man1/git-clone.1 doc/man1/git-init.1 doc/git-clone.txt \
|
|
|
|
doc/git-init.txt doc/git-clone.html doc/git-init.html
|
2006-11-12 10:59:05 -05:00
|
|
|
|
2006-11-16 14:28:53 -05:00
|
|
|
post-install:
|
2007-07-12 14:26:04 -04:00
|
|
|
${INSTALL_DATA} ${WRKBUILD}/libgit.a ${PREFIX}/lib
|
2007-04-13 06:19:45 -04:00
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/emacs/site-lisp
|
|
|
|
${INSTALL_DATA} ${WRKBUILD}/contrib/emacs/*.el \
|
|
|
|
${PREFIX}/share/emacs/site-lisp
|
2007-09-08 07:29:40 -04:00
|
|
|
cd ${WRKBUILD}/doc && \
|
2007-04-13 06:19:45 -04:00
|
|
|
pax -rw -s,man7/git.7,man1/git.1, man* ${PREFIX}/man
|
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/git
|
2007-09-08 07:29:40 -04:00
|
|
|
cd ${WRKBUILD}/doc && \
|
2007-04-13 06:19:45 -04:00
|
|
|
pax -rw *.html howto/*.html *.txt howto/*.txt \
|
|
|
|
${PREFIX}/share/doc/git
|
2008-04-26 05:24:04 -04:00
|
|
|
${INSTALL_DATA} ${WRKBUILD}/contrib/hooks/post-receive-email \
|
2008-09-27 17:47:20 -04:00
|
|
|
${PREFIX}/share/git-core/templates/hooks/post-receive-email.sample
|
|
|
|
chown -R ${BINOWN}:${BINGRP} ${PREFIX}/libexec/git
|
2009-05-18 15:23:58 -04:00
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/gitweb
|
|
|
|
cd ${WRKSRC}/gitweb && \
|
|
|
|
${INSTALL_DATA} ${GITWEB} ${PREFIX}/share/gitweb
|
2007-04-13 06:19:45 -04:00
|
|
|
|
|
|
|
do-regress:
|
2008-06-24 16:28:00 -04:00
|
|
|
cd ${WRKSRC} && ${MAKE_ENV} ${MAKE_PROGRAM} \
|
2007-05-08 05:48:07 -04:00
|
|
|
HOME=${WRKDIST}/t/trash TAR=${TAR} test
|
2006-11-16 14:28:53 -05:00
|
|
|
|
2006-11-12 10:59:05 -05:00
|
|
|
.include <bsd.port.mk>
|