summaryrefslogtreecommitdiffstats
path: root/x11-fonts/xfed/Makefile
blob: 87a7a9d4f19057c6b9b23706132d94d59352d72e (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
# New ports collection makefile for:    xfed
# Version required:     something old
# Date created:         7 December 1994
# Whom:                 asami
#
# $Id: Makefile,v 1.9 1995/04/22 11:58:42 asami Exp $
#

DISTNAME=	xfed
PKGNAME=	xfed-1.0
CATEGORIES+=	x11

MAINTAINER=	asami@FreeBSD.ORG

USE_IMAKE=	yes

MAKE_FLAGS=	MANDIR=${PREFIX}/man/man1 BINDIR=${PREFIX}/bin -f
TARFILE=	xfed.tar.gz
.if !defined(MASTER_SITE_OVERRIDE)
SOURCEFILES=	Epistle,README,Imakefile,xfed.man \
		icon.bit,next.bit,prev.bit,quit.bit,save.bit \
		defs.h,main.c,output.c,parse.y,scan.l
#MASTER_SITES=	ftp://me10.lbl.gov/pub/hp_X11R3_tape/source/app/
SOURCESITE=	ftp://ftp.cs.orst.edu/pub/src/X11R4/contrib/clients/xfed/
#EXTRACT_SUFX=	.tar.Z

do-fetch:
	@if [ ! -d ${DISTDIR} ]; then mkdir -p ${DISTDIR}; fi
	@noglob= ; \
	if [ ! -f ${DISTDIR}/${TARFILE} ]; then \
	  rm -rf ${.CURDIR}/src; \
	  mkdir -p ${.CURDIR}/src/xfed; \
	  echo ">> Fetching files from remote site...";  \
	  for file in ${SOURCEFILES}; do \
	    (cd ${.CURDIR}/src/xfed; \
	      ${NCFTP} ${NCFTPFLAGS} ${SOURCESITE}\{$$file\}); \
	  done; \
	  echo ">> Now creating a tarball ${DISTDIR}/${TARFILE}..."; \
	  tar -C ${.CURDIR}/src -cf - xfed | \
	    gzip --best > ${DISTDIR}/${TARFILE}; \
	  rm -rf ${.CURDIR}/src; \
	fi
.endif

pre-clean:
	-rm -rf ${.CURDIR}/src

.include <bsd.port.mk>
OpenPOWER on IntegriCloud