blob: 15edccb375b238afe3a4772e31f064d686b8fa52 (
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
|
# $NetBSD: Makefile,v 1.12 1998/11/13 01:26:58 frueauf Exp $
#
DISTNAME= nt.1.5a23
PKGNAME= nte-1.5a23
CATEGORIES= mbone tk80
MASTER_SITES= ftp://cs.ucl.ac.uk/mice/nte/
MAINTAINER= mycroft@netbsd.org
.include "../../mk/bsd.prefs.mk"
.ifdef WRKOBJDIR
BUILD_ROOT= ${WRKOBJDIR}
.else
BUILD_ROOT= ${PKGSRCDIR}
.endif
BUILD_DEPENDS= ${BUILD_ROOT}/x11/tk80/${WRKDIR:T}/tk8.0/generic/default.h:${TK_DIR}:configure
DEPENDS+= tk-8.0p2:../../x11/tk80
TK_DIR= ${BUILD_ROOT}/x11/tk80
TK_SRC= ${TK_DIR}/${WRKDIR:T}/tk8.0
NOT_FOR_ARCHS= alpha # ANSI headers cause LP64 problems
RESTRICTED= "Contains DES encryption"
MIRROR_DISTFILE=no
NO_WRKSUBDIR= yes
USE_GMAKE= yes
# Pass this on to our child
MAKE_ENV= TK_SRC=${TK_SRC}
do-configure:
cd ${WRKSRC}/netbsd && sh configure
.include "../../mk/bsd.pkg.mk"
#DISGUSTING HACK ALERT
#Although nte includes an hsearch.c for those who don't have it in
# libc, there's no way to get the default Makefile to build it.
# So we build it here.
#This is below the .include "../../mk/bsd.pkg.mk" since variable names in
# targets or dependencies are evaluated when they are read so
# bsd.pkg.mk must have defined ${WRKSRC} already.
pre-build: ${WRKSRC}/netbsd/hsearch.o
${WRKSRC}/netbsd/hsearch.o: ${WRKSRC}/src/hsearch.c
${CC} -I${WRKSRC}/src ${CFLAGS} -c -o $@ ${WRKSRC}/src/hsearch.c
|