Merge from vendor branch TNF:
[pkgsrcv2.git] / mbone / nte / Makefile
1 # $NetBSD: Makefile,v 1.37 2010/02/10 18:11:45 joerg Exp $
2 #
3
4 DISTNAME=               nt.1.5a23
5 PKGNAME=                nte-1.5a23
6 PKGREVISION=            1
7 CATEGORIES=             mbone tk
8 MASTER_SITES=           http://www-mice.cs.ucl.ac.uk/multimedia/software/nte/1.5a23/
9
10 MAINTAINER=             pkgsrc-users@NetBSD.org
11 HOMEPAGE=               http://www-mice.cs.ucl.ac.uk/multimedia/software/nte/
12 COMMENT=                Multicast Network Text Editor
13
14 BROKEN=         Depends on TCL/TK 8.3
15
16 WRKSRC=                 ${WRKDIR}
17 CRYPTO=                 yes
18 USE_TOOLS+=             gmake
19
20 # Pass this on to our child
21 do-configure:
22         cd ${WRKSRC}/netbsd && ${SH} configure
23
24 #.include "../../x11/tk83/buildlink3.mk"
25 .include "../../mk/bsd.pkg.mk"
26
27 #DISGUSTING HACK ALERT
28 #Although nte includes an hsearch.c for those who don't have it in
29 # libc, there's no way to get the default Makefile to build it.
30 # So we build it here.
31 #This is below the .include "../../mk/bsd.pkg.mk" since variable names in
32 # targets or dependencies are evaluated when they are read so
33 # bsd.pkg.mk must have defined ${WRKSRC} already.
34 pre-build:      ${WRKSRC}/netbsd/hsearch.o
35
36 ${WRKSRC}/netbsd/hsearch.o:     ${WRKSRC}/src/hsearch.c
37         ${CC} -I${WRKSRC}/src ${CFLAGS} -c -o $@ ${WRKSRC}/src/hsearch.c