1998-10-21 08:31:09 +00:00
|
|
|
# New ports collection makefile for: tet
|
|
|
|
# Version required: 3.2b
|
|
|
|
# Date created: 02 Oct 1998
|
|
|
|
# Whom: jkoshy
|
|
|
|
#
|
1999-02-11 09:05:38 +00:00
|
|
|
# $Id: Makefile,v 1.5 1998/11/28 09:33:21 asami Exp $
|
1998-10-21 08:31:09 +00:00
|
|
|
#
|
|
|
|
|
1999-02-11 09:05:38 +00:00
|
|
|
DISTNAME= tet3.2e-unsup
|
|
|
|
PKGNAME= tet-3.2e
|
1998-10-21 08:31:09 +00:00
|
|
|
CATEGORIES= misc
|
1998-11-28 09:33:23 +00:00
|
|
|
MASTER_SITES= ftp://ftp.rdg.opengroup.org/pub/TET/TET3/ \
|
|
|
|
http://freefall.freebsd.org/~jkoshy/PORTS/
|
1998-10-21 08:31:09 +00:00
|
|
|
EXTRACT_SUFX= .src.tgz
|
|
|
|
|
|
|
|
MAINTAINER= jkoshy@freebsd.org
|
|
|
|
|
|
|
|
NO_WRKSUBDIR= yes
|
|
|
|
NO_PACKAGE= TET_ROOT needs to be set at compile time
|
|
|
|
HAS_CONFIGURE= yes
|
|
|
|
CONFIGURE_ARGS= -t ${TET_CONFIG_TARGET}
|
|
|
|
|
|
|
|
TET_CONFIG_TARGET?= inet # options are `lite', `xti' and `inet'
|
|
|
|
|
|
|
|
do-build:
|
|
|
|
cd ${WRKDIR}/src && ${MAKE} ${ALL_TARGET}
|
|
|
|
|
1998-10-26 03:10:58 +00:00
|
|
|
pre-extract:
|
1998-10-21 08:31:09 +00:00
|
|
|
.if !defined(TET_ROOT)
|
|
|
|
@echo
|
|
|
|
@echo "The environment variable \"TET_ROOT\" is not set."
|
|
|
|
@echo "You must set it to the directory where you would like "
|
1998-10-26 03:10:58 +00:00
|
|
|
@echo "this port to reside before attempting extraction."
|
1998-10-21 08:31:09 +00:00
|
|
|
@echo
|
|
|
|
@false
|
|
|
|
.else
|
|
|
|
@true
|
|
|
|
.endif
|
|
|
|
|
1998-10-26 03:10:58 +00:00
|
|
|
# remove the TET_ROOT directory if it exists
|
|
|
|
pre-clean:
|
|
|
|
.if defined(TET_ROOT)
|
1998-10-27 03:34:54 +00:00
|
|
|
${RM} -rf ${TET_ROOT}
|
1998-10-26 03:10:58 +00:00
|
|
|
.endif
|
1998-10-27 03:34:54 +00:00
|
|
|
${RM} -rf ${WRKDIR}
|
1998-10-26 03:10:58 +00:00
|
|
|
|
1998-10-21 08:31:09 +00:00
|
|
|
# move the work directory to $TET_ROOT after extraction
|
|
|
|
post-extract:
|
|
|
|
chmod +x ${WRKDIR}/configure
|
|
|
|
${MKDIR} ${TET_ROOT}
|
|
|
|
cd ${WRKDIR} && tar cf - . | (cd ${TET_ROOT} && tar xf -)
|
|
|
|
${RM} -rf ${WRKDIR} && ${LN} -s ${TET_ROOT} ${WRKDIR}
|
|
|
|
|
|
|
|
do-install:
|
|
|
|
cd ${WRKDIR}/src && ${MAKE} ${INSTALL_TARGET}
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|