1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-20 08:27:15 +00:00

- obey CFLAGS

- make WITHOUT_GUI work properly

PR:		113030
Submitted by:	Ed Schouten <ed@fxq.nl>
Approved by:	anholt (maintainer)
This commit is contained in:
Alexander Botero-Lowry 2007-05-27 23:43:32 +00:00
parent d8e9d828a1
commit 6e7faaeeed
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=192154
4 changed files with 49 additions and 25 deletions

View File

@ -7,6 +7,7 @@
PORTNAME= git
PORTVERSION= 1.5.2
PORTREVISION= 1
CATEGORIES= devel
MASTER_SITES= http://www.kernel.org/pub/software/scm/git/
@ -24,7 +25,7 @@ LIB_DEPENDS= expat.6:${PORTSDIR}/textproc/expat2
CONFLICTS= cogito-0.1[012] git-4.*
MAN3PREFIX= ${TARGETDIR}/lib/perl5/${PERL_VERSION}
.if !defined(NOPORTDOCS)
MAN1= git-add.1 \
git-am.1 \
git-annotate.1 \
@ -157,17 +158,23 @@ MAN1= git-add.1 \
git-whatchanged.1 \
git-write-tree.1 \
gitk.1
MAN3= Git.3
MAN5= gitattributes.5
MAN7= git.7
.endif
MAN3PREFIX= ${TARGETDIR}/lib/perl5/${PERL_VERSION}
MAN3= Git.3
USE_BZIP2= yes
USE_PERL5= yes
USE_PYTHON= yes
USE_ICONV= yes
USE_GMAKE= yes
ALL_TARGET= all doc
INSTALL_TARGET= install install-doc
ALL_TARGET= all
INSTALL_TARGET= install
.if !defined(NOPORTDOCS)
ALL_TARGET+= doc
INSTALL_TARGET+=install-doc
.endif
CFLAGS+= -I${LOCALBASE}/include
MAKE_ENV+= CURLDIR=${LOCALBASE} \
NEEDS_LIBICONV=yes \
@ -179,22 +186,15 @@ MAKE_ARGS+= prefix="${PREFIX}"
.ifndef WITHOUT_GUI
PLIST_SUB+= GUI=""
GITGUIVERSION= 0.6-GITGUI
RUN_DEPENDS+= wish8.4:${PORTSDIR}/x11-toolkits/tk84
MAKE_ENV+= TCL_PATH=tclsh8.4 TCLTK_PATH=wish8.4
.else
PLIST_SUB+= GUI="@comment "
MAKE_ENV+= NO_GUI=yes
.endif
# We should place version files to avoid git's attempt to figure it by itself
post-patch:
${ECHO} "GIT_VERSION = ${PORTVERSION}-dirty" > ${WRKSRC}/GIT-VERSION-FILE; ${ECHO} '#!/bin/sh' > ${WRKSRC}/GIT-VERSION-GEN
.ifndef WITHOUT_GUI
${ECHO} "GIT_VERSION = ${GITGUIVERSION}-dirty" > ${WRKSRC}/git-gui/GIT-VERSION-FILE; ${ECHO} '#!/bin/sh' > ${WRKSRC}/git-gui/GIT-VERSION-GEN
MAKE_ENV+= NO_TCLTK=yes
.endif
post-install:
${TEST} -f ${PREFIX}/lib/perl5/${PERL_VERSION}/mach/perllocal.pod && ${RM} -f ${PREFIX}/lib/perl5/${PERL_VERSION}/mach/perllocal.pod
-${RM} -f ${PREFIX}/lib/perl5/${PERL_VERSION}/mach/perllocal.pod
${MKDIR} ${PREFIX}/share/emacs/site-lisp/git
${MKDIR} ${PREFIX}/lib/xemacs/site-lisp/git
${INSTALL_DATA} ${WRKSRC}/contrib/emacs/git.el \

View File

@ -0,0 +1,34 @@
--- Makefile Sun May 20 10:40:55 2007
+++ Makefile Sat May 26 20:43:02 2007
@@ -135,8 +135,8 @@
# CFLAGS and LDFLAGS are for the users to override from the command line.
-CFLAGS = -g -O2 -Wall
-LDFLAGS =
+CFLAGS ?= -g -O2 -Wall
+LDFLAGS ?=
ALL_CFLAGS = $(CFLAGS)
ALL_LDFLAGS = $(LDFLAGS)
STRIP ?= strip
@@ -172,13 +172,13 @@
export prefix bindir gitexecdir sharedir template_dir sysconfdir
-CC = gcc
-AR = ar
-TAR = tar
-INSTALL = install
-RPMBUILD = rpmbuild
-TCL_PATH = tclsh
-TCLTK_PATH = wish
+CC ?= gcc
+AR ?= ar
+TAR ?= tar
+INSTALL ?= install
+RPMBUILD ?= rpmbuild
+TCL_PATH ?= tclsh
+TCLTK_PATH ?= wish
export TCL_PATH TCLTK_PATH

View File

@ -1,10 +0,0 @@
--- gitk.orig Tue Feb 7 23:58:47 2006
+++ gitk Tue Feb 7 23:58:55 2006
@@ -1,6 +1,6 @@
#!/bin/sh
# Tcl ignores the next line -*- tcl -*- \
-exec wish "$0" -- "$@"
+exec wish8.4 "$0" -- "$@"
# Copyright (C) 2005 Paul Mackerras. All rights reserved.
# This program is free software; it may be used, copied, modified

View File

@ -142,7 +142,7 @@ bin/git-verify-pack
bin/git-verify-tag
bin/git-whatchanged
bin/git-write-tree
bin/gitk
%%GUI%%bin/gitk
%%SITE_PERL%%/Git.pm
%%SITE_PERL%%/%%PERL_ARCH%%/auto/Git/.packlist
lib/xemacs/site-lisp/git/git.el