[BACK]Return to Makefile CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / pkgsrc / misc / pdmenu

File: [cvs.NetBSD.org] / pkgsrc / misc / pdmenu / Makefile (download)

Revision 1.38, Mon May 24 19:53:10 2021 UTC (6 months, 1 week ago) by wiz
Branch: MAIN
CVS Tags: pkgsrc-2021Q3-base, pkgsrc-2021Q3, pkgsrc-2021Q2-base, pkgsrc-2021Q2, HEAD
Changes since 1.37: +2 -2 lines

*: recursive bump for perl 5.34

# $NetBSD: Makefile,v 1.38 2021/05/24 19:53:10 wiz Exp $
#

DISTNAME=	pdmenu_1.2.65
PKGNAME=	${DISTNAME:S/_/-/}
PKGREVISION=	12
CATEGORIES=	misc
MASTER_SITES=	http://www.kitenet.net/programs/pdmenu/

MAINTAINER=	pkgsrc-users@NetBSD.org
#HOMEPAGE=	http://www.kitenet.net/~joey/code/pdmenu.html
COMMENT=	Simple console menu program

WRKSRC=		${WRKDIR}/pdmenu
GNU_CONFIGURE=	YES
USE_TOOLS+=	gmake perl:run

REPLACE_PERL=	examples/showdir.pl


CONFIGURE_ENV+=	SLANG_LIB_LOC=${BUILDLINK_PREFIX.libslang:Q}/lib
CONFIGURE_ENV+=	SLANG_H_LOC=${BUILDLINK_PREFIX.libslang:Q}/include/slang.h

INSTALLATION_DIRS=	lib/pdmenu share/doc/pdmenu \
			share/examples/pdmenu/newbie

INSTALL_MAKE_FLAGS+=	INSTALL_PREFIX=${DESTDIR}

pre-install:
	${SED} "s,.B /etc/pdmenurc,.B ${PREFIX}/etc/pdmenurc,g"		\
		${WRKSRC}/doc/pdmenurc.man > ${WRKSRC}/doc/pdmenurc.man.done
	${MV} ${WRKSRC}/doc/pdmenurc.man.done ${WRKSRC}/doc/pdmenurc.man

post-install:
	cd ${WRKSRC}/doc && ${INSTALL_DATA} ANNOUNCE BUGS TODO \
		${DESTDIR}${PREFIX}/share/doc/pdmenu
	cd ${WRKSRC}/examples && ${INSTALL_DATA} README ba.lpd pdmenurc \
		pdmenurc.complex pdmenurc.monitor showdir.pl \
		${DESTDIR}${PREFIX}/share/examples/pdmenu
	cd ${WRKSRC}/examples/newbie && ${INSTALL_DATA} modem-check \
		pdmenurc.newbie	rpm-info-on-command \
		${DESTDIR}${PREFIX}/share/examples/pdmenu/newbie

.include "../../devel/libslang/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"