blob: 14c57f0b13b150e02cff46eb10fd52651a377ddb (
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
|
# Created by: Maxim Sobolev <sobomax@FreeBSD.org>
# $FreeBSD$
PORTNAME= manedit
PORTVERSION= 1.2.1
PORTREVISION= 1
CATEGORIES= editors
MASTER_SITES= http://wolfsinger.com/~wolfpack/packages/
MAINTAINER= johans@FreeBSD.org
COMMENT= UNIX manual page editor and viewer
WRKSRC= ${WRKDIR}/${DISTNAME}/${PORTNAME}
MAKEFILE= Makefile.FreeBSD
USE_BZIP2= yes
USE_GNOME= gtk12
MAKE_ARGS= STAGEDIR="$(STAGEDIR)"
pre-configure:
@${CP} ${FILESDIR}/mntent* ${WRKSRC}
post-patch:
@${REINPLACE_CMD} -e '/-o $$(BIN)/s/(CC)/(CXX)/' ${WRKSRC}/${MAKEFILE}
@${REINPLACE_CMD} -e '/^MAN/s/.bz2//' \
-e 's/(PREFIX)/(STAGEDIR)$$&/' \
-e '/@echo/s/^/#/' \
${WRKSRC}/Makefile.install.FreeBSD
@${REINPLACE_CMD} -e '/^SRC_C =/s//& mntent_compat.c/' \
${WRKSRC}/Makefile.srclist
post-install:
@${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/manedit
.include <bsd.port.mk>
|