blob: 5471d467c2c74aaf2f96c742adcd208b7084330f (
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
44
45
46
47
|
# $NetBSD: Makefile,v 1.27 2010/02/26 10:28:33 wiz Exp $
#
DISTNAME= pdmenu_1.2.65
PKGNAME= ${DISTNAME:S/_/-/}
PKGREVISION= 3
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
PKG_DESTDIR_SUPPORT= user-destdir
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"
|