summaryrefslogtreecommitdiff
path: root/devel/lemon/Makefile
blob: 2ee51e84fc3df20e435cbb879b0f2ec9ff01e90d (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
# $NetBSD: Makefile,v 1.1.1.1 2008/06/23 14:51:15 joerg Exp $

PKGNAME=	lemon-1.0
DISTNAME=	sqlite-3.5.9
PKGREVISION=	1
CATEGORIES=	devel
MASTER_SITES=	http://www.hwaci.com/sw/sqlite/ \
		http://www.sqlite.org/

MAINTAINER=	airhead@users.sf.net
HOMEPAGE=	http://www.hwaci.com/sw/lemon/
COMMENT=	Simple LALR(1) parser generator

WRKSRC=		${WRKDIR}/${DISTNAME}/tool

PKG_DESTDIR_SUPPORT=	user-destdir

INSTALLATION_DIRS=	bin share/lemon

SUBST_CLASSES+=		paths
SUBST_FILES.paths=	lemon.c
SUBST_SED.paths+=	-e 's,"lempar.c","${PREFIX}/share/lemon/lempar.c",g'
SUBST_STAGE.paths=	post-patch

do-build:
	cd ${WRKSRC} && ${CC} ${CFLAGS} lemon.c -o lemon

do-install:
	${INSTALL_PROGRAM} ${WRKSRC}/lemon ${DESTDIR}${PREFIX}/bin
	${INSTALL_DATA} ${WRKSRC}/lempar.c ${DESTDIR}${PREFIX}/share/lemon

.include "../../mk/bsd.pkg.mk"