summaryrefslogtreecommitdiff
path: root/devel/gcvs/Makefile
blob: a7d8579639dc617c829f1366fffcb02b08fd824b (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
37
38
# $NetBSD: Makefile,v 1.47 2020/08/31 18:07:20 wiz Exp $

DISTNAME=		gcvs-1.0
PKGREVISION=		15
CATEGORIES=		devel
MASTER_SITES=		${MASTER_SITE_SOURCEFORGE:=cvsgui/}
# extra distfile containing an updated configure script
DISTFILES=		${DISTNAME}${EXTRACT_SUFX} gcvs-1.0-configure.tar.gz

MAINTAINER=		pkgsrc-users@NetBSD.org
HOMEPAGE=		http://cvsgui.sourceforge.net/
COMMENT=		GTK interface for CVS

CONFLICTS=		cvs-[0-9]*

USE_LANGUAGES=	c c++
USE_TOOLS+=	gmake makeinfo perl:run
GNU_CONFIGURE=	yes
INFO_FILES=	yes

CONFIGURE_ARGS+=	--with-tclinclude="${BUILDLINK_PREFIX.tcl}/include"
CONFIGURE_ARGS+=	--with-tcllib="${BUILDLINK_PREFIX.tcl}/lib"
CONFIGURE_ARGS+=	perl_path=${PERL5}

CPPFLAGS+=	-DUSE_INTERP_RESULT

# Uh oh, Pascal-style strings with undefined behavior for length >= 128.
# ../rf/ustr.h: In member function 'bool UPStr::endsWith(char) const':
# ../rf/ustr.h:96:75: error: array subscript has type 'char' [-Werror=char-subscripts]
#   inline bool endsWith(char c) const {return str == 0L ? false : str[str[0]] == c;}
#                                                                            ^
# Maybe fix this later.
BUILDLINK_TRANSFORM+=	rm:-Werror=char-subscripts

.include "../../lang/tcl/buildlink3.mk"
.include "../../x11/gtk/buildlink3.mk"

.include "../../mk/bsd.pkg.mk"