summaryrefslogtreecommitdiff
path: root/x11/tk-Tix/Makefile
blob: 40f9db9bc03896b2eb1e2d2b96291236a49dd5c5 (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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
# $NetBSD: Makefile,v 1.29 2020/01/26 05:26:28 rillig Exp $
#

DISTNAME=	Tix${TIX_VERSION}-src
TIX_VERSION=	8.4.3
PKGNAME=	tk-Tix-${TIX_VERSION}
PKGREVISION=	6
CATEGORIES=	x11 tcl tk
MASTER_SITES=	http://downloads.sourceforge.net/project/tix/tix/8.4.3/

MAINTAINER=	he@NetBSD.org
HOMEPAGE=	http://tix.sourceforge.net/
COMMENT=	Powerful widget library for Tcl/Tk
LICENSE=	2-clause-bsd

MAKE_JOBS_SAFE=		no
WRKSRC=			${WRKDIR}/Tix8.4.3
GNU_CONFIGURE=		yes

.include "options.mk"

CONFIGURE_ARGS+=	--enable-shared
CONFIGURE_ARGS+=	--with-tcl=${BUILDLINK_PREFIX.tcl}/lib
CONFIGURE_ARGS+=	--with-tk=${BUILDLINK_PREFIX.tk}/lib
CONFIGURE_ARGS+=	--disable-stubs
CONFIGURE_ARGS+=	--x-includes=${X11BASE:Q}/include
CONFIGURE_ARGS+=	--x-libraries=${X11BASE:Q}/lib${LIBABISUFFIX:Q}
MAKE_ENV+=		TCL_DIR=${BUILDLINK_PREFIX.tcl}
MAKE_ENV+=		TK_DIR=${BUILDLINK_PREFIX.tk}
MAKE_ENV+=		LIBS=${X11_LDFLAGS:Q}
INSTALL_MAKE_FLAGS+=	INSTALL_ROOT=${DESTDIR}
TEST_TARGET=		test
INSTALLATION_DIRS+=	${PKGMANDIR}/mann
INSTALLATION_DIRS+=	lib/Tix${TIX_VERSION}/docs
USE_TOOLS+=		tar autoconf

CPPFLAGS+=	-DUSE_INTERP_RESULT

pre-configure:
	cd ${WRKSRC} && aclocal && autoconf

post-install:
	for f in ${WRKSRC}/man/*.n; do \
		${INSTALL_DATA} -m 444 $$f \
			${DESTDIR}${PREFIX}/${PKGMANDIR}/mann; \
	done
	(cd ${WRKSRC}/docs; tar cf - . ) | \
		(cd ${DESTDIR}${PREFIX}/lib/Tix${TIX_VERSION}/docs; tar xfpB -)

.include "../../lang/tcl/buildlink3.mk"
.include "../../x11/tk/buildlink3.mk"
.include "../../x11/libX11/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"