~cypheon/pkgsrc-wip

pkgsrc-wip/pal/Makefile -rw-r--r-- 1.1 KiB
5f1bf4f5 — Johann Rudloff Subst PLIST paths for platform specific files for other architectures 6 months ago
                                                                                
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
44
45
46
47
48
49
50
51
52
# $NetBSD: Makefile,v 1.6 2012/10/04 19:44:06 asau Exp $
#

DISTNAME=		pal-0.4.3
CATEGORIES=		time
MASTER_SITES=		${MASTER_SITE_SOURCEFORGE:=palcal/}
EXTRACT_SUFX=		.tgz
LICENSE=		gnu-gpl-v2

MAINTAINER=		esg@sdf.lonestar.org
HOMEPAGE=		http://palcal.sourceforge.net/
COMMENT=		Command-line calendar program

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


USE_TOOLS+=		gmake pkg-config
USE_PKGLOCALEDIR=	yes
USE_GNU_READLINE=	yes
MANCOMPRESSED=		yes

SUBST_CLASSES+=		path
SUBST_STAGE.path=	pre-configure
SUBST_MESSAGE.path=	Fixing hardcoded paths
SUBST_FILES.path=	Makefile.defs Makefile input.c ../pal.conf
SUBST_VARS.path=	PKG_SYSCONFDIR
SUBST_VARS.path+=	PKGMANDIR
SUBST_VARS.path+=	PREFIX
SUBST_VARS.path+=	EGDIR

EGDIR=			${PREFIX}/share/examples/pal

CONF_FILES=		${EGDIR}/pal.conf ${PKG_SYSCONFDIR}/pal.conf

MAKE_JOBS_SAFE=		no

USE_NCURSES=		yes

CFLAGS+=		-DCURSES

do-build:
	cd ${WRKSRC} && make

do-install:
	cd ${WRKSRC} && make install-no-rm


.include "../../devel/ncurses/buildlink3.mk"
.include "../../devel/readline/buildlink3.mk"
.include "../../devel/gettext-lib/buildlink3.mk"
.include "../../devel/glib2/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"