mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-11 07:22:22 +00:00
Do something sensible for make clean if TET_ROOT is not defined. Add
trailing slash to MASTER_SITE. Pointed-out-by: Steve Price and Andreas Klemm.
This commit is contained in:
parent
7b1535eda6
commit
7b92f12fb8
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=14181
@ -3,13 +3,13 @@
|
||||
# Date created: 02 Oct 1998
|
||||
# Whom: jkoshy
|
||||
#
|
||||
# $Id: Makefile,v 1.1.1.1 1998/10/21 08:31:08 jkoshy Exp $
|
||||
# $Id: Makefile,v 1.2 1998/10/25 00:58:16 jkoshy Exp $
|
||||
#
|
||||
|
||||
DISTNAME= tet3.2c-unsup
|
||||
PKGNAME= tet-3.2c
|
||||
CATEGORIES= misc
|
||||
MASTER_SITES= ftp://ftp.rdg.opengroup.org/pub/TET/TET3
|
||||
MASTER_SITES= ftp://ftp.rdg.opengroup.org/pub/TET/TET3/
|
||||
EXTRACT_SUFX= .src.tgz
|
||||
|
||||
MAINTAINER= jkoshy@freebsd.org
|
||||
@ -24,18 +24,26 @@ TET_CONFIG_TARGET?= inet # options are `lite', `xti' and `inet'
|
||||
do-build:
|
||||
cd ${WRKDIR}/src && ${MAKE} ${ALL_TARGET}
|
||||
|
||||
pre-extract pre-clean:
|
||||
pre-extract:
|
||||
.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 "
|
||||
@echo "this port to reside before attempting extraction or cleaning."
|
||||
@echo "this port to reside before attempting extraction."
|
||||
@echo
|
||||
@false
|
||||
.else
|
||||
@true
|
||||
.endif
|
||||
|
||||
# remove the TET_ROOT directory if it exists
|
||||
pre-clean:
|
||||
.if defined(TET_ROOT)
|
||||
if [ -d ${TET_ROOT} ]; then ${RM} -rf ${TET_ROOT}; fi
|
||||
.else
|
||||
@true
|
||||
.endif
|
||||
|
||||
# move the work directory to $TET_ROOT after extraction
|
||||
post-extract:
|
||||
chmod +x ${WRKDIR}/configure
|
||||
|
Loading…
Reference in New Issue
Block a user