blob: 3cdfcde6f5da56bc31d7e3ce64c49d9f8341c5b9 (
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
|
# $NetBSD: Makefile,v 1.7 2020/01/26 17:30:58 rillig Exp $
.include "../../databases/sqlite3/Makefile.common"
LEMON_VERSION= 1.0
# Concatenate versions of lemon and sqlite3
# The reasoning for it is as follows:
# - currently lemon is an integral part of sqlite3
# - lemon has its own conservative versioning regardless of changes in its code
# - leave room for possible standalone lemon package with bumped versions
# - reflect reality and make it human readable without checking the sources
PKGNAME= lemon-${LEMON_VERSION}.${SQLITE3_VERSION}
DISTNAME= sqlite-src-${SQLITE3_DISTVERSION}
CATEGORIES= devel
EXTRACT_SUFX= .zip
MAINTAINER= airhead@users.sf.net
HOMEPAGE= https://www.hwaci.com/sw/lemon/
COMMENT= Simple LALR(1) parser generator
CHECK_PORTABILITY_SKIP= configure
INSTALLATION_DIRS= bin share/lemon share/doc/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= pre-configure
do-build:
cd ${WRKSRC}/tool && ${CC} ${CFLAGS} ${LDFLAGS} lemon.c -o lemon
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/tool/lemon ${DESTDIR}${PREFIX}/bin
${INSTALL_DATA} ${WRKSRC}/tool/lempar.c ${DESTDIR}${PREFIX}/share/lemon
${INSTALL_DATA} ${WRKSRC}/doc/lemon.html ${DESTDIR}${PREFIX}/share/doc/lemon
.include "../../mk/bsd.pkg.mk"
|