summaryrefslogtreecommitdiff
path: root/lang/rexx-regutil/Makefile
blob: 87b8bec629f23f26dbf4d26cc2fdca05fa4f8d70 (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
PORTNAME=	regutil
PORTVERSION=	1.26
PORTREVISION=	2
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
WWW=		http://pages.interlog.com/~pjtm/

LICENSE=	MPL10

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"
CFLAGS+=	-D_WANT_SEMUN

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}${MANPREFIX}/man/man1

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

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

.include <bsd.port.mk>