blob: b2461e8eeec95fe94072659b57ba260c9a9d95ff (
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
|
# $NetBSD: Makefile,v 1.6 2001/06/11 20:05:18 zuntum Exp $
#
DISTNAME= ${PKGNAME:S,manedit-,manedit,}
PKGNAME= manedit-0.4h
CATEGORIES= editors
MASTER_SITES= ftp://fox.mit.edu/pub/xsw/
EXTRACT_SUFX= .tgz
MAINTAINER= zuntum@netbsd.org
HOMEPAGE= http://wolfpack.twu.net/ManEdit/
COMMENT= UNIX Manual (man, manpage) page editor, viewer, and browser for X11
DEPENDS+= gtk+-*:../../x11/gtk
WRKSRC= ${WRKDIR}/${DISTNAME}/manedit
MAKE_ENV+= CPP="${CXX}"
post-patch:
${SED} -e "s,@PREFIX@,${PREFIX},g" ${WRKSRC}/manedit.1 \
> ${WRKSRC}/manedit.1.done
${MV} ${WRKSRC}/manedit.1.done ${WRKSRC}/manedit.1
${SED} -e "s,gtk-config,${X11BASE}/bin/gtk-config,g" \
${WRKSRC}/Makefile > ${WRKSRC}/Makefile.done
${MV} ${WRKSRC}/Makefile.done ${WRKSRC}/Makefile
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/manedit ${PREFIX}/bin
${INSTALL_DATA_DIR} ${PREFIX}/share/manedit \
${PREFIX}/share/manedit/templates \
${PREFIX}/share/manedit/icons
${INSTALL_MAN} ${WRKSRC}/manedit.1 ${PREFIX}/man/man1
${INSTALL_MAN} ${WRKSRC}/help/manpage_writing_procedures \
${PREFIX}/man/man7/manpage_writing_procedures.7
${INSTALL_MAN} ${WRKSRC}/help/manpage_xml_referance \
${PREFIX}/man/man7/manpage_xml_reference.7
cd ${WRKSRC}/templates && ${INSTALL_DATA} api.mpt config.mpt \
intro.mpt program.mpt ${PREFIX}/share/manedit/templates
cd ${WRKSRC} && ${INSTALL_DATA} manedit.xpm \
${PREFIX}/share/manedit/icons
.include "../../mk/bsd.pkg.mk"
|