summaryrefslogtreecommitdiffstats
path: root/lang/rexx-regutil/Makefile
blob: 7e2acd8e5cea0dab25af50b6696bd8247573d7c1 (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
# Created by: Bob Eager <bob@eager.cx>
# $FreeBSD$

PORTNAME=	regutil
PORTVERSION=	1.26
PORTREVISION=	1
CATEGORIES=	lang
MASTER_SITES=	http://home.interlog.com/~ptjm/ \
		http://www.ancientgeek.org.uk/distfiles/
PKGNAMEPREFIX=	rexx-
DISTNAME=	${PORTNAME}${PORTVERSION:S/.//}

MAINTAINER=	bob@eager.cx
COMMENT=	Implementation of IBM's RexxUtil function library for Regina

LICENSE=	MPL

BUILD_DEPENDS=	${LOCALBASE}/include/rexxsaa.h:lang/rexx-regina

USES=		ncurses zip

WRKSRC=		${WRKDIR}/${PORTNAME}
USE_LDCONFIG=	yes
MAKEFILE=	Makefile.bsd
MAKE_ARGS+=	PLIBS="${LDFLAGS:M-L*} -lncurses"

SUB_FILES=	regutil.1

PLIST_FILES=	lib/librexxutil.so \
		man/man1/regutil.1.gz

PORTDOCS=	regutil.pdf
PORTEXAMPLES=	*.rex

OPTIONS_DEFINE=	DOCS EXAMPLES

do-install:
		${INSTALL_LIB} ${WRKSRC}/librexxutil.so ${STAGEDIR}${PREFIX}/lib/
		${INSTALL_MAN} ${WRKDIR}/regutil.1 ${STAGEDIR}${PREFIX}/man/man1/

do-install-DOCS-on:
		${MKDIR} ${STAGEDIR}${DOCSDIR}
		${INSTALL_MAN} ${WRKSRC}/regutil.pdf ${STAGEDIR}${DOCSDIR}/

do-install-EXAMPLES-on:
		${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
		${INSTALL_MAN} ${WRKSRC}/*.rex ${STAGEDIR}${EXAMPLESDIR}

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