blob: 4f1a0cf0db3b2861aaab50043c9e8a7b0c958d01 (
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
|
# $NetBSD: Makefile,v 1.17 2020/06/02 10:29:50 sjmulder Exp $
DISTNAME= sc-im-0.7.0
PKGREVISION= 15
CATEGORIES= math
MASTER_SITES= ${MASTER_SITE_GITHUB:=andmarti1424/}
GITHUB_TAG= v${PKGVERSION_NOREV}
MAINTAINER= sjmulder@NetBSD.org
HOMEPAGE= https://github.com/andmarti1424/sc-im/
COMMENT= Curses-based spreadsheet program based on sc
LICENSE= original-bsd
BUILD_DIRS= src
INSTALL_DIRS= src
.include "../../mk/bsd.prefs.mk"
# pkg-config to avoid broken Makefile self-configuration
USE_TOOLS+= gmake pkg-config yacc
# gnuplot is invoked through the shell, no need to check at compile time
CFLAGS+= -DGNUPLOT
MAKE_ENV+= CFLAGS_CURSES=${BUILDLINK_CFLAGS.ncursesw:Q}
MAKE_ENV+= LDLIBS_CURSES=${BUILDLINK_LDADD.ncursesw:Q}
MAKE_ENV+= CFLAGS_DL=${BUILDLINK_CFLAGS.dl:Q}
MAKE_ENV+= LDLIBS_DL=${BUILDLINK_LDADD.dl:Q}
MAKE_ENV+= LDLIBS=${LDLIBS:Q}
# defaults to scim
MAKE_FLAGS+= name=sc-im
MAKE_FLAGS+= prefix=${PREFIX}
MAKE_FLAGS+= MANDIR=${PREFIX}/${PKGMANDIR}/man1
.include "../../devel/ncursesw/buildlink3.mk"
.include "../../mk/dlopen.buildlink3.mk"
# Include after ncursesw bl3, otherwise ncurses bl3 (non-wide), included
# as a transitive dependency of lua, sabotages the -lncurses transform.
.include "options.mk"
.include "../../mk/bsd.pkg.mk"
|