1 # $NetBSD: Makefile,v 1.37 2010/02/10 18:11:45 joerg Exp $
8 MASTER_SITES= http://www-mice.cs.ucl.ac.uk/multimedia/software/nte/1.5a23/
10 MAINTAINER= pkgsrc-users@NetBSD.org
11 HOMEPAGE= http://www-mice.cs.ucl.ac.uk/multimedia/software/nte/
12 COMMENT= Multicast Network Text Editor
14 BROKEN= Depends on TCL/TK 8.3
20 # Pass this on to our child
22 cd ${WRKSRC}/netbsd && ${SH} configure
24 #.include "../../x11/tk83/buildlink3.mk"
25 .include "../../mk/bsd.pkg.mk"
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
36 ${WRKSRC}/netbsd/hsearch.o: ${WRKSRC}/src/hsearch.c
37 ${CC} -I${WRKSRC}/src ${CFLAGS} -c -o $@ ${WRKSRC}/src/hsearch.c