aboutsummaryrefslogtreecommitdiff
path: root/lang/rexx-wrapper/Makefile
blob: 2d7af1d5a5c4b0ad424d0e4176b747c099743358 (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
# Created by: ijliao
# $FreeBSD$

PORTNAME=	wrapper
PORTVERSION=	2.4
CATEGORIES=	lang
MASTER_SITES=	SF/rexx${PORTNAME}/rexx${PORTNAME}/${PORTVERSION}
PKGNAMEPREFIX=	rexx-
DISTNAME=	RexxWrapper-${PORTVERSION}

MAINTAINER=	ports@FreeBSD.org
COMMENT=	A tool that wraps Rexx source or tokenised code into an executable

BUILD_DEPENDS=	rexx:${PORTSDIR}/lang/rexx-regina
RUN_DEPENDS=	rexx:${PORTSDIR}/lang/rexx-regina

GNU_CONFIGURE=	yes
CONFIGURE_ARGS=	--with-rexx=regina
DATADIR=	${PREFIX}/share/rexx${PORTNAME}

post-patch:	.SILENT
	@${REINPLACE_CMD} -Ee "/^compiler\.unix/s,'.*','${CC:T}'," \
		-e "s,cc\.cc = .*,cc.${CC:T} = '${CC}'," \
		-e "/ opt/s/-[Og][^' ]?//" \
		-e "s,cflags\. = '(.*)',cflags. = '\1 ${CFLAGS}'," \
		${WRKSRC}/rexxwrap.cmd
	@${REINPLACE_CMD} 's/-compiler=$$(CC/&:T/' ${WRKSRC}/Makefile.in

NO_STAGE=	yes
.include <bsd.port.mk>