summaryrefslogtreecommitdiff
path: root/lang/cim/Makefile
blob: 7baf29e3f9c9a1816bf54f921958aea99f9daef3 (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
# $NetBSD: Makefile,v 1.19 2004/10/03 00:15:00 tv Exp $

DISTNAME=		cim-3.30
PKGREVISION=		1
CATEGORIES=		lang
MASTER_SITES=		${MASTER_SITE_GNU:=cim/}

MAINTAINER=		tech-pkg@NetBSD.org
HOMEPAGE=		http://www.gnu.org/software/cim/cim.html
COMMENT=		Simula compiler based on the C programming language

USE_BUILDLINK3=		YES
GNU_CONFIGURE=		YES
USE_LIBTOOL=		YES
LTCONFIG_OVERRIDE=	${WRKSRC}/ltconfig

INFO_FILES=		cim.info

SUBST_CLASSES+=	x
SUBST_STAGE.x=	post-patch
SUBST_FILES.x=	src/cimcomp.c
SUBST_SED.x=	-e "s|SCC|\"${CC}\"|"
SUBST_SED.x+=	-e "s|SCFLAGS|\"${CFLAGS} -I${PREFIX}/include\"|"
SUBST_SED.x+=	-e "s|SLDFLAGS|\"-L${PREFIX}/lib ${COMPILER_RPATH_FLAG}${PREFIX}/lib\"|"
SUBST_SED.x+=	-e "s|= LIBDIR|= \"${PREFIX}/lib\"|"
SUBST_SED.x+=	-e "s|= INCLUDEDIR|= \"${PREFIX}/include\"|"

.include "../../lang/perl5/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"