summaryrefslogtreecommitdiffstats
path: root/editors/wily/Makefile
blob: ec867fd1172aa03b9b825f7922168ebd390ce7b7 (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
# New ports collection makefile for: wily
# Date created:   	23 September 1997
# Whom: 		koshy
#
# $FreeBSD$
#

PORTNAME=	wily
PORTVERSION=	0.13.42
CATEGORIES=	editors plan9
MASTER_SITES=	${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR=	${PORTNAME}

MAINTAINER=	serge.gagnon@b2b2c.ca
COMMENT=	A clone of the Plan9 editor `acme'

RUN_DEPENDS=	${LOCALBASE}/bin/rc:${PORTSDIR}/shells/rc \
		${X11BASE}/lib/X11/fonts/Xg/unicode.9.font:${PORTSDIR}/x11-fonts/Xg

USE_XLIB=	YES
GNU_CONFIGURE=	YES
USE_GMAKE=	YES
MAN1=		wgoto.1 win.1 wreplace.1 Tag.1 mktags.1 Man.1

PORTDOCS=	index.html intro.html download.html credits.html FAQ.html \
		onepage.html user.html idioms.html C.html python.html \
		hack.html AcmeVsWily.html Tcl.html \
		pythonpaper.html winmanager.html auug.html one.html \
		example.gif thumb.gif cartoon.gif \
		FAQ.txt Tcl.txt changes.txt perl.txt \
		Credits fonts mouse
TUTEDOCS=	hello.c start typescript
TUTESHS=	findword script send_to_gary

.include <bsd.port.pre.mk>

.if (${OSVERSION} < 500000)
BROKEN=		Requires more recent libc
.endif

post-patch:
	cd  ${WRKSRC}/tools/win; ${REINPLACE_CMD} -e 's," in " __FUNCTION__ "()",,' \
		win.c wgoto.c wreplace.c; \
		${CHMOD} 755 configure mkinstalldirs;

# Run the configure script in the tools directory.
post-configure:
	@${RM} ${WRKSRC}/tools/win/config.cache
	cd ${WRKSRC}/tools/win && \
		${SETENV} CC=${CC} "CFLAGS=${CFLAGS}" \
		${SH} ./configure --prefix=${PREFIX}

# The default Wily makefile does not install any documentation.  Rectify.
post-install:
	@${STRIP_CMD} ${PREFIX}/bin/wily
.if !defined(NOPORTDOCS)
	@${MKDIR} ${DOCSDIR}/tute
. for doc in ${PORTDOCS}
	@${INSTALL_DATA} ${WRKSRC}/Doc/${doc} ${DOCSDIR}
. endfor
. for doc in ${TUTEDOCS}
	@${INSTALL_DATA} ${WRKSRC}/Doc/tute/${doc} ${DOCSDIR}/tute
. endfor
. for doc in ${TUTESHS}
	@${INSTALL_SCRIPT} ${WRKSRC}/Doc/tute/${doc} ${DOCSDIR}/tute
. endfor
.endif
	@${CAT} ${PKGMESSAGE}

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