summaryrefslogtreecommitdiff
path: root/net/gnut/Makefile
blob: a0592b554da3192a17d7562774fc19c87d4136ee (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
54
55
# $NetBSD: Makefile,v 1.5 2000/12/28 16:49:37 wiz Exp $
#

DISTNAME=	gnut-0.4.12
CATEGORIES=	net
MASTER_SITES=	http://www.mrob.com/gnut/tars/

MAINTAINER=	deberg@netbsd.org
HOMEPAGE=	http://www.mrob.com/gnut/

#BUILD_DEPENDS+=	autoreconf:../../devel/autoconf
#BUILD_DEPENDS+=	automake:../../devel/automake
#DEPENDS+=	pth>=1.3.6:../../devel/pth

DEPENDS+=	unproven-pthreads-0.*:../../devel/unproven-pthreads
CONFIGURE_ENV+=	CC=${LOCALBASE}/pthreads/bin/pgcc \
		CXX=${LOCALBASE}/pthreads/bin/pg++

# Sync these with devel/unproven-pthreads:
ONLY_FOR_PLATFORM=	NetBSD-*-alpha NetBSD-*-arm32 NetBSD-*-i386 \
			NetBSD-*-m68k

GNU_CONFIGURE=	yes

GNUTDOCDIR=	${PREFIX}/share/doc/gnut

# Find <pthread.h>
#.if make(do-configure)
#CFLAGS+=	-I${LOCALBASE}/include
#.endif

.if make(do-configure)
LDFLAGS=	-Wl,-R${LOCALBASE}/pthreads/lib -L${LOCALBASE}/pthreads/lib
.endif

#post-patch:
#	cd ${WRKSRC} && ${CP} aclocal.m4 acinclude.m4 && autoreconf

GNUTDOCS=	TUTORIAL \
		gnut-1.html \
		gnut-2.html \
		gnut-3.html \
		gnut-4.html \
		gnut-5.html \
		gnut-6.html \
		gnut.html

post-install:
	${MKDIR} ${GNUTDOCDIR}
	for i in ${GNUTDOCS}; do \
	    ${INSTALL_DATA} ${WRKSRC}/doc/$$i ${GNUTDOCDIR}; \
	done
	${INSTALL_DATA} ${WRKSRC}/gnutrc.sample ${GNUTDOCDIR}

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