summaryrefslogtreecommitdiffstats
path: root/x11/XFree86-4-clients/Makefile
blob: ebda54445823cadc30d279285fdb0d6c514ef702 (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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
# uncomment one of the 2 lines below!
#X11_ON_CDROM	=	yes
X11_VIA_FTP	=	yes

#if you are compiling from a cdrom, set the directory where the
# the patch files are
#X11FIXES = /home/X11R6

#define this if you are short of space - save ~28 Mbytes
#REMOVE_NOT_ESSENTIAL	=	yes

#######################################################################
DISTNAME	=	xc
PKGNAME		= 	XFree86-3.1.1
WRKDIR?=                ${.CURDIR}/work
BUILD_COOKIE?=		${WRKDIR}/.build_done
EXTRACT_COOKIE?=	${WRKDIR}/.extract_done
IS_INTERACTIVE=		yes

.if defined(X11_ON_CDROM) || defined(X11_VIA_FTP)

build: configure ${BUILD_COOKIE}

${BUILD_COOKIE}:
	@echo "===>  Building for ${DISTNAME}"
.if defined(REMOVE_NOT_ESSENTIAL)
	@rm -rf ${WRKSRC}/test ${WRKSRC}/doc/hardcopy ${WRKSRC}/doc/specs
	@find ${WRKSRC}/ -name '*.orig' -exec rm -f {} ';'
.endif
	@(cd ${WRKSRC}; echo Good night...; make World)
	@touch ${WRKDIR}/.build_done

install:
	@(cd ${WRKSRC}; make install; make install.man)
	@touch ${WRKDIR}/.install_done
.if defined(X11_ON_CDROM) 
	@find /usr/X11R6/ -name 00_TRANS.TBL -exec rm -f {} ';'
.endif
.endif

.if defined(X11_ON_CDROM)
.if !defined (X11FIXES)
configure:
	@echo Edit the makefile and set X11FIXES !!!!
	@exit 1;
.endif
fetch:
	@echo -n
${EXTRACT_COOKIE}:
	@rm -rf ${WRKDIR}
	@mkdir -p ${WRKDIR}
	@echo ${X11FIXES} > ${WRKDIR}/.cdrom
	@${TOUCH} ${TOUCH_FLAGS} ${EXTRACT_COOKIE}

.elif defined(X11_VIA_FTP)
.include "Makefile.ftp"
.else
all:
	@echo -n
fetch:
	@echo -n
extract:
	@echo -n
configure:
	@echo -n
build:
	@echo -n
install:
	@echo -n
.endif

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