2010-02-26 11:28:30 +01:00
|
|
|
# $NetBSD: Makefile,v 1.27 2010/02/26 10:28:33 wiz Exp $
|
2002-01-01 18:36:28 +01:00
|
|
|
#
|
2001-01-18 02:50:46 +01:00
|
|
|
|
2003-07-16 10:34:59 +02:00
|
|
|
DISTNAME= pdmenu_1.2.65
|
|
|
|
PKGNAME= ${DISTNAME:S/_/-/}
|
2006-02-06 00:08:03 +01:00
|
|
|
PKGREVISION= 3
|
2001-01-18 02:50:46 +01:00
|
|
|
CATEGORIES= misc
|
2003-07-16 10:34:59 +02:00
|
|
|
MASTER_SITES= http://www.kitenet.net/programs/pdmenu/
|
2001-01-18 02:50:46 +01:00
|
|
|
|
2010-02-26 11:28:30 +01:00
|
|
|
MAINTAINER= pkgsrc-users@NetBSD.org
|
2007-02-22 20:01:13 +01:00
|
|
|
HOMEPAGE= http://www.kitenet.net/~joey/code/pdmenu.html
|
2001-02-17 18:52:59 +01:00
|
|
|
COMMENT= Simple console menu program
|
2001-01-18 02:50:46 +01:00
|
|
|
|
2009-02-16 19:39:00 +01:00
|
|
|
PKG_DESTDIR_SUPPORT= user-destdir
|
|
|
|
|
2004-01-20 13:18:15 +01:00
|
|
|
WRKSRC= ${WRKDIR}/pdmenu
|
2001-01-18 02:50:46 +01:00
|
|
|
GNU_CONFIGURE= YES
|
2005-07-16 03:19:06 +02:00
|
|
|
USE_TOOLS+= gmake perl:run
|
2001-01-18 02:50:46 +01:00
|
|
|
|
2002-01-01 18:36:28 +01:00
|
|
|
REPLACE_PERL= examples/showdir.pl
|
|
|
|
|
2001-01-18 02:50:46 +01:00
|
|
|
|
2005-12-05 21:49:47 +01:00
|
|
|
CONFIGURE_ENV+= SLANG_LIB_LOC=${BUILDLINK_PREFIX.libslang:Q}/lib
|
|
|
|
CONFIGURE_ENV+= SLANG_H_LOC=${BUILDLINK_PREFIX.libslang:Q}/include/slang.h
|
2001-01-18 02:50:46 +01:00
|
|
|
|
2009-02-16 19:39:00 +01:00
|
|
|
INSTALLATION_DIRS= lib/pdmenu share/doc/pdmenu \
|
|
|
|
share/examples/pdmenu/newbie
|
|
|
|
|
|
|
|
INSTALL_MAKE_FLAGS+= INSTALL_PREFIX=${DESTDIR}
|
|
|
|
|
2001-01-18 02:50:46 +01:00
|
|
|
pre-install:
|
2002-01-01 18:36:28 +01:00
|
|
|
${SED} "s,.B /etc/pdmenurc,.B ${PREFIX}/etc/pdmenurc,g" \
|
2001-04-28 14:44:57 +02:00
|
|
|
${WRKSRC}/doc/pdmenurc.man > ${WRKSRC}/doc/pdmenurc.man.done
|
|
|
|
${MV} ${WRKSRC}/doc/pdmenurc.man.done ${WRKSRC}/doc/pdmenurc.man
|
2001-01-18 02:50:46 +01:00
|
|
|
|
|
|
|
post-install:
|
2002-01-01 18:36:28 +01:00
|
|
|
cd ${WRKSRC}/doc && ${INSTALL_DATA} ANNOUNCE BUGS TODO \
|
2009-02-16 19:39:00 +01:00
|
|
|
${DESTDIR}${PREFIX}/share/doc/pdmenu
|
2002-01-01 18:36:28 +01:00
|
|
|
cd ${WRKSRC}/examples && ${INSTALL_DATA} README ba.lpd pdmenurc \
|
|
|
|
pdmenurc.complex pdmenurc.monitor showdir.pl \
|
2009-02-16 19:39:00 +01:00
|
|
|
${DESTDIR}${PREFIX}/share/examples/pdmenu
|
2002-01-01 18:36:28 +01:00
|
|
|
cd ${WRKSRC}/examples/newbie && ${INSTALL_DATA} modem-check \
|
|
|
|
pdmenurc.newbie rpm-info-on-command \
|
2009-02-16 19:39:00 +01:00
|
|
|
${DESTDIR}${PREFIX}/share/examples/pdmenu/newbie
|
2001-01-18 02:50:46 +01:00
|
|
|
|
2004-04-18 21:32:27 +02:00
|
|
|
.include "../../devel/libslang/buildlink3.mk"
|
2001-01-18 02:50:46 +01:00
|
|
|
.include "../../mk/bsd.pkg.mk"
|