summaryrefslogtreecommitdiffstats
path: root/lang/dis/Makefile
blob: ab208c5b4e210313047b4a36666e009c9f2e2bf2 (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
# New ports collection makefile for:   dis
# Date created:        14 June 2001
# Whom:                simond@irrelevant.org
#
# $FreeBSD$
#

PORTNAME=	dis
PORTVERSION=	1.0
CATEGORIES=	lang
MASTER_SITES=	http://www.mines.edu/students/b/bolmstea/malbolge/
DISTNAME=	dis

MAINTAINER=    simond@irrelevant.org

post-patch:
	${PERL} -pi -e "s|<malloc.h>|<stdlib.h>|g" ${WRKSRC}/dis.c

do-build:
	${CC} ${CFLAGS} ${WRKSRC}/dis.c -o ${WRKSRC}/dis

do-install:
	${INSTALL_PROGRAM} ${WRKSRC}/dis ${PREFIX}/bin
.if !defined(NOPORTDOCS)
	${MKDIR} ${PREFIX}/share/doc/dis
	${INSTALL_DATA} ${WRKSRC}/dis.txt ${PREFIX}/share/doc/dis
.endif
	${MKDIR} ${PREFIX}/share/examples/dis
	${INSTALL_DATA} ${WRKSRC}/666.dis ${PREFIX}/share/examples/dis
	${INSTALL_DATA} ${WRKSRC}/cat.dis ${PREFIX}/share/examples/dis
	${INSTALL_DATA} ${WRKSRC}/cat_expl.dis ${PREFIX}/share/examples/dis

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