summaryrefslogtreecommitdiff
path: root/lang/rexx-imc/Makefile
blob: f332578f85c3977404bc351b4e51cdd6b0291ea8 (plain) (blame)
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
73
74
75
76
77
# New ports collection makefile for:	REXX/imc
# Date created:				Septermber 21 96
# Whom:	      				James FitzGibbon <jfitz@FreeBSD.org>
#
# $FreeBSD$
#

PORTNAME=	rexx-imc
PORTVERSION=	1.76
PORTREVISION=	2
CATEGORIES=	lang
MASTER_SITES=	http://users.comlab.ox.ac.uk/ian.collier/distribution/ \
		ftp://ftp.sai.msu.su/pub/unix/rexx/

MAINTAINER=	g.gonter@ieee.org
COMMENT=	A procedural programming language designed by IBM's UK Laboratories

CONFLICTS=	rexx-regina-* oorexx-[0-9]*

HAS_CONFIGURE=		yes
CONFIGURE_SCRIPT=	Make
CONFIGURE_ENV=		PREFIX="${PREFIX}"
CONFIGURE_ARGS=		o all

# configures and builds in one step
NO_BUILD=		yes

USE_LDCONFIG=		yes

MAN1=		rexx.1 rxstack.1 rxque.1

DOCFILES=	rexx.info rexx.ref rexx.summary rexx.tech
RMEFILES=	README README.Y2K README.bugreport README.docs \
		README.files README.make README.news README.platforms

.include <bsd.port.pre.mk>

.if ${OSVERSION} >= 900000
BROKEN=		does not build
.endif

post-patch:
# CFLAGS safeness for ARCHs other than i386
	@${REINPLACE_CMD} -e 's|-O2||' ${WRKSRC}/Make
# CC safeness
	@${REINPLACE_CMD} -E -e 's|^CC=.+$$|CC=${CC}|' ${WRKSRC}/Make

do-install:
# install interpreter and daemon helpers
.for prog in rexx rxque rxstack
	@${INSTALL_PROGRAM} ${WRKSRC}/${prog} ${PREFIX}/bin
.endfor
# install shared libraries, include file, and rxlib
# DO NOT delete rxlib or you will lose ability to call mathlib!!
.for lib in librexx.so.2 rxmathfn.rxfn
	@${INSTALL_PROGRAM} ${WRKSRC}/${lib} ${PREFIX}/lib
.endfor
	@${LN} -sf ${PREFIX}/lib/librexx.so.2 ${PREFIX}/lib/librexx.so
	@${INSTALL_DATA} ${WRKSRC}/rexxsaa.h ${PREFIX}/include
	@${INSTALL_DATA} ${WRKSRC}/rxmathfn.rxlib ${PREFIX}/lib
# install man pages
.for man in ${MAN1}
	@${INSTALL_MAN} ${WRKSRC}/${man} ${PREFIX}/man/man1
.endfor
# install documenation and examples
.if !defined(NOPORTDOCS)
	@${MKDIR} ${DOCSDIR}
.for FILE in ${DOCFILES} ${RMEFILES}
	@${INSTALL_DATA} ${WRKSRC}/${FILE} ${DOCSDIR}
.endfor
	@${MKDIR} ${PREFIX}/share/examples/rexx-imc
.for ex in box rexxcps.rexx rexxtest.rexx rxmathfn.rexx shell.rexx
	@${INSTALL_SCRIPT} ${WRKSRC}/${ex} ${PREFIX}/share/examples/rexx-imc
.endfor
.endif

.include <bsd.port.post.mk>