Prune www/mod_log_mysql
[dports.git] / archivers / sharutils / Makefile
1 # Created by: ache
2 # $FreeBSD$
3
4 PORTNAME=       sharutils
5 PORTVERSION=    4.14
6 CATEGORIES=     archivers
7 MASTER_SITES=   GNU
8
9 MAINTAINER=     garga@FreeBSD.org
10 COMMENT=        Pack, send, and unpack shell archives; synchronize via e-mail
11
12 LICENSE=        GPLv3
13
14 OPTIONS_DEFINE= NLS
15
16 GNU_CONFIGURE=  yes
17 CONFIGURE_ARGS= --program-prefix=g --disable-uucode
18 INSTALL_TARGET= install install-man
19 INFO=           sharutils
20 USES=           charsetfix perl5 tar:xz
21 OPTIONS_SUB=    yes
22
23 NLS_USES=       gettext
24 NLS_CONFIGURE_ON=       --with-libintl-prefix="${LOCALBASE}"
25 NLS_CONFIGURE_OFF=      --disable-nls
26
27 post-patch:
28         @${REINPLACE_CMD} -e '/Please include config.h first./ s,^.*$$,#include <config.h>,' \
29                 ${WRKSRC}/lib/unistd.in.h
30 .for man in shar.1 unshar.1
31         @${REINPLACE_CMD} \
32                 -e 's, SHAR , GSHAR ,' \
33                 -e 's,Shar,Gshar,' \
34                 -e 's, shar , gshar ,g' \
35                 -e 's,^shar ,gshar ,' \
36                 -e 's, UNSHAR , GUNSHAR ,' \
37                 -e 's,Unshar,Gunshar,' \
38                 -e 's,^unshar ,gunshar ,' \
39                 -e 's,f2shar\\f1,f2gshar\\f1,' \
40                 -e 's, unshar , gunshar ,g' \
41                 -e 's,gshar file,shar file,g' \
42                 -e 's,shar\,,gshar\,,' \
43                 -e 's,shar(,gshar(,' \
44                 -e 's,unshar(,gunshar(,' \
45                 -e 's, shar\$$, gshar,' \
46                 ${WRKSRC}/doc/${man}
47 .endfor
48
49 .include <bsd.port.mk>