summaryrefslogtreecommitdiff
path: root/devel/scmgit/Makefile.common
blob: 9fe0a12d22c429cdef7e93b7c4f6dd6b87531537 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# $NetBSD: Makefile.common,v 1.3 2007/12/30 13:34:19 joerg Exp $
#

DISTNAME=	git-${GIT_VERSION}
CATEGORIES=	devel scm
MASTER_SITES?=	http://www.kernel.org/pub/software/scm/git/

MAINTAINER?=	pancake@phreaker.net
HOMEPAGE?=	http://git.or.cz/


PKG_DESTDIR_SUPPORT=	user-destdir

GIT_VERSION=	1.5.3.7

.include "../../mk/bsd.fast.prefs.mk"

.if "${PKGPATH}" != "devel/scmgit"
PATCHDIR=	${.CURDIR}/../scmgit-base/patches
DISTINFO_FILE=	${.CURDIR}/../scmgit-base/distinfo

MAKE_ENV+=	HOME=${PREFIX:Q}
USE_TOOLS+=	gmake tar perl sh
EXTRACT_USING=	gtar

MAKE_ENV+=	PERL_PATH=${PERL5:Q}
MAKE_ENV+=	SHELL_PATH=${SH:Q}
MAKE_ENV+=	TAR=${TAR:Q}
MAKE_FLAGS+=	mandir=${PREFIX}/${PKGMANDIR}

LDFLAGS+=	${COMPILER_RPATH_FLAG}${PREFIX}/lib
LIBS.SunOS+=	-liconv
CFLAGS.NetBSD+=	-D_NETBSD_SOURCE

AUTO_MKDIRS?=	yes
.endif