2013-01-01 13:35:42 -05:00
|
|
|
# $OpenBSD: Makefile,v 1.87 2013/01/01 18:35:42 dcoppa Exp $
|
2006-11-12 10:59:05 -05:00
|
|
|
|
2009-12-11 04:42:45 -05:00
|
|
|
COMMENT-main = GIT - Tree History Storage Tool
|
|
|
|
COMMENT-svn = GIT - subversion interoperability tools
|
|
|
|
COMMENT-x11 = GIT - graphical tools
|
2006-11-12 10:59:05 -05:00
|
|
|
|
2013-01-01 13:35:42 -05:00
|
|
|
V = 1.8.0.3
|
2009-12-11 04:42:45 -05:00
|
|
|
DISTNAME = git-${V}
|
2010-10-07 05:42:23 -04:00
|
|
|
PKGNAME-main = ${DISTNAME}
|
|
|
|
PKGNAME-svn = git-svn-${V}
|
|
|
|
PKGNAME-x11 = git-x11-${V}
|
2009-12-11 04:42:45 -05:00
|
|
|
CATEGORIES = devel
|
2006-11-12 10:59:05 -05:00
|
|
|
|
2009-12-11 04:42:45 -05:00
|
|
|
HOMEPAGE = http://git-scm.com/
|
2006-11-12 10:59:05 -05:00
|
|
|
|
2011-07-28 17:54:26 -04:00
|
|
|
MAINTAINER = Benoit Lecocq <benoit@openbsd.org>
|
2006-11-12 10:59:05 -05:00
|
|
|
|
2009-03-18 04:01:08 -04:00
|
|
|
# GPLv2 only
|
2009-12-11 04:42:45 -05:00
|
|
|
PERMIT_PACKAGE_CDROM = Yes
|
|
|
|
PERMIT_PACKAGE_FTP = Yes
|
|
|
|
PERMIT_DISTFILES_CDROM = Yes
|
|
|
|
PERMIT_DISTFILES_FTP = Yes
|
2006-11-12 10:59:05 -05:00
|
|
|
|
2012-11-30 16:16:30 -05:00
|
|
|
DOC_DISTFILE = git-manpages-${V}${EXTRACT_SUFX}
|
|
|
|
DISTFILES = ${DISTNAME}${EXTRACT_SUFX} ${DOC_DISTFILE}
|
2009-12-11 04:42:45 -05:00
|
|
|
EXTRACT_ONLY = ${DISTNAME}${EXTRACT_SUFX}
|
2006-11-16 14:28:53 -05:00
|
|
|
|
2012-11-30 16:16:30 -05:00
|
|
|
MASTER_SITES = http://git-core.googlecode.com/files/
|
2006-11-12 10:59:05 -05:00
|
|
|
|
2012-11-30 16:16:30 -05:00
|
|
|
MODULES = devel/gettext x11/tk
|
2006-11-12 10:59:05 -05:00
|
|
|
|
2012-11-30 16:16:30 -05:00
|
|
|
BUILD_DEPENDS = devel/p5-Error
|
2006-11-12 10:59:05 -05:00
|
|
|
|
2009-12-11 04:42:45 -05:00
|
|
|
MULTI_PACKAGES = -main -svn -x11
|
2007-04-13 06:19:45 -04:00
|
|
|
|
2012-11-30 16:16:30 -05:00
|
|
|
WANTLIB-main = c expat crypto curl pthread ssl z ${MODGETTEXT_WANTLIB}
|
2010-11-15 14:45:56 -05:00
|
|
|
RUN_DEPENDS-main = net/rsync \
|
|
|
|
devel/p5-Error \
|
|
|
|
devel/cvsps \
|
2012-11-30 16:16:30 -05:00
|
|
|
${MODGETTEXT_RUN_DEPENDS}
|
2010-11-15 14:45:56 -05:00
|
|
|
LIB_DEPENDS-main = net/curl \
|
2012-11-30 16:16:30 -05:00
|
|
|
${MODGETTEXT_LIB_DEPENDS}
|
2007-04-13 06:19:45 -04:00
|
|
|
|
2010-11-15 14:45:56 -05:00
|
|
|
RUN_DEPENDS-svn = ${BASE_PKGPATH} \
|
|
|
|
devel/p5-Term-ReadKey \
|
|
|
|
devel/subversion,-perl \
|
|
|
|
www/p5-URI \
|
|
|
|
www/p5-libwww
|
2009-12-11 04:42:45 -05:00
|
|
|
LIB_DEPENDS-svn =
|
2010-11-06 06:18:38 -04:00
|
|
|
WANTLIB-svn =
|
2009-12-11 04:42:45 -05:00
|
|
|
PKG_ARCH-svn = *
|
2007-04-13 06:19:45 -04:00
|
|
|
|
2010-11-15 14:45:56 -05:00
|
|
|
RUN_DEPENDS-x11 = ${BASE_PKGPATH},-main \
|
2009-03-18 04:01:08 -04:00
|
|
|
${MODTK_RUN_DEPENDS}
|
2009-12-11 04:42:45 -05:00
|
|
|
LIB_DEPENDS-x11 =
|
2010-11-06 06:18:38 -04:00
|
|
|
WANTLIB-x11 =
|
2009-12-11 04:42:45 -05:00
|
|
|
PKG_ARCH-x11 = *
|
2008-04-01 18:36:30 -04:00
|
|
|
|
2009-12-11 04:42:45 -05:00
|
|
|
MAKE_ENV = prefix=${PREFIX} CC="${CC}" CFLAGS="${CFLAGS}" V=1 \
|
2011-08-30 02:00:07 -04:00
|
|
|
sysconfdir=${SYSCONFDIR} \
|
2009-03-18 04:01:08 -04:00
|
|
|
TCLTK_PATH=${MODTK_BIN} \
|
2010-04-02 12:08:09 -04:00
|
|
|
TCL_PATH=${MODTCL_BIN} \
|
|
|
|
REGRESS_SHELL=${LOCALBASE}/bin/bash
|
2006-11-12 10:59:05 -05:00
|
|
|
|
2009-12-11 04:42:45 -05:00
|
|
|
USE_GMAKE = Yes
|
2010-11-15 14:45:56 -05:00
|
|
|
USE_GROFF = Yes
|
2006-11-12 10:59:05 -05:00
|
|
|
|
2010-11-15 14:45:56 -05:00
|
|
|
REGRESS_DEPENDS = archivers/zip \
|
|
|
|
devel/cvsps \
|
|
|
|
devel/subversion,-perl \
|
|
|
|
shells/bash
|
2009-05-18 15:23:58 -04:00
|
|
|
|
2009-12-11 04:42:45 -05:00
|
|
|
GITWEB = README INSTALL git-favicon.png git-logo.png \
|
2009-05-18 15:23:58 -04:00
|
|
|
gitweb.cgi gitweb.css
|
2007-04-13 06:19:45 -04:00
|
|
|
|
2010-04-02 12:08:09 -04:00
|
|
|
# Skipt tests I have to fix.
|
|
|
|
SKIP_TESTS = t9502-gitweb-standalone-parse-output.sh
|
|
|
|
|
2007-04-13 06:19:45 -04:00
|
|
|
post-extract:
|
2007-09-08 07:29:40 -04:00
|
|
|
@mkdir -p ${WRKSRC}/doc
|
2012-11-30 16:16:30 -05:00
|
|
|
@cd ${WRKSRC}/doc && ${TAR} -xzf ${FULLDISTDIR}/${DOC_DISTFILE}
|
2009-05-18 15:23:58 -04:00
|
|
|
@cd ${WRKSRC} && perl -pi -e "s|/usr/share/git|${TRUEPREFIX}/share/git|g" \
|
2012-11-30 16:16:30 -05:00
|
|
|
doc/man1/git-clone.1 doc/man1/git-init.1 doc/man1/gitweb.1
|
2010-06-20 11:04:39 -04: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 && \
|
2012-11-30 16:16:30 -05:00
|
|
|
pax -rw . ${PREFIX}/man
|
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
|
2010-10-07 05:42:23 -04:00
|
|
|
cd ${WRKBUILD}/gitweb && \
|
|
|
|
${MAKE_ENV} ${MAKE_PROGRAM} gitwebdir=${TRUEPREFIX}/share/gitweb install
|
2011-07-24 12:29:28 -04:00
|
|
|
perl -pi -e "s|${WRKINST}||g" ${PREFIX}/share/gitweb/gitweb.cgi
|
2010-10-07 05:42:23 -04:00
|
|
|
${INSTALL_DATA} ${WRKBUILD}/gitweb/README ${PREFIX}/share/gitweb
|
2007-04-13 06:19:45 -04:00
|
|
|
|
|
|
|
do-regress:
|
2010-04-02 12:08:09 -04:00
|
|
|
cd ${WRKSRC}/t && rm -f ${SKIP_TESTS}
|
2008-06-24 16:28:00 -04:00
|
|
|
cd ${WRKSRC} && ${MAKE_ENV} ${MAKE_PROGRAM} \
|
2012-11-30 16:16:30 -05:00
|
|
|
HOME=${WRKDIST}/t/trash test
|
2006-11-16 14:28:53 -05:00
|
|
|
|
2006-11-12 10:59:05 -05:00
|
|
|
.include <bsd.port.mk>
|