pkgsrc/mbone/nte/Makefile

46 lines
1.3 KiB
Makefile
Raw Normal View History

# $NetBSD: Makefile,v 1.17 1999/05/24 20:39:45 tv Exp $
#
DISTNAME= nt.1.5a23
PKGNAME= nte-1.5a23
CATEGORIES= mbone tk80
MASTER_SITES= http://www-mice.cs.ucl.ac.uk/multimedia/software/nte/1.5a23/
MAINTAINER= mycroft@netbsd.org
HOMEPAGE= http://www-mice.cs.ucl.ac.uk/multimedia/software/nte/
BUILD_DEPENDS= ${TK_SRC}/generic/default.h:${TK_DIR}:configure
DEPENDS+= tk-8.0.5:../../x11/tk80
TK_DIR= ${.CURDIR}/../../x11/tk80
TK_SRC= ${TK_DIR}/${WRKDIR:T}/tk8.0.5
NOT_FOR_PLATFORM= *-*-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
pre-clean:
@cd ${TK_DIR} && ${MAKE} clean