51 lines
1.2 KiB
Makefile
51 lines
1.2 KiB
Makefile
# $NetBSD: Makefile,v 1.5 2011/01/17 10:48:04 emil_s Exp $
|
|
#
|
|
|
|
DISTNAME= pal-0.4.3
|
|
#PKGREVISION= 1
|
|
CATEGORIES= time
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=palcal/}
|
|
EXTRACT_SUFX= .tgz
|
|
|
|
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_SED.path= -e 's,@PKG_SYSCONFDIR@,${PKG_SYSCONFDIR},g'
|
|
SUBST_SED.path+= -e 's,@PKGMANDIR@,${PKGMANDIR},g'
|
|
SUBST_SED.path+= -e 's,@PREFIX@,${PREFIX},g'
|
|
SUBST_SED.path+= -e 's,@EGDIR@,${EGDIR},g'
|
|
|
|
EGDIR= ${PREFIX}/share/examples/pal
|
|
|
|
CONF_FILES= ${EGDIR:Q}/pal.conf ${PKG_SYSCONFDIR:Q}/pal.conf
|
|
|
|
MAKE_JOBS_SAFE= no
|
|
|
|
USE_NCURSES= yes
|
|
|
|
CFLAGS+= -DCURSES
|
|
|
|
do-build:
|
|
cd ${WRKSRC:Q} && make
|
|
|
|
do-install:
|
|
cd ${WRKSRC:Q} && 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"
|