aboutsummaryrefslogtreecommitdiffstats
path: root/japanese/namazu/Makefile
blob: dcfe529406a88d84abc5aa942a22c3a61bef08bc (plain) (blame)
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
# Created by: Seiichirou Hiraoka
# $FreeBSD$

PORTNAME=   namazu
PORTVERSION=    1.3.0.11
PORTREVISION=   1
CATEGORIES= japanese textproc
MASTER_SITES=   http://www.namazu.org/stable/ \
        LOCAL/flathill

MAINTAINER= ports@FreeBSD.org
COMMENT=    Search engine software intended for easy use

BUILD_DEPENDS=  kakasi:japanese/kakasi \
        nkf:japanese/nkf
RUN_DEPENDS=    kakasi:japanese/kakasi \
        nkf:japanese/nkf

USES=       perl5 shebangfix
SHEBANG_FILES=  ../contrib/bnamazu
GNU_CONFIGURE=  yes

WRKSRC=     ${WRKDIR}/${DISTNAME}/src

post-install:
    ${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/namazu \
        ${STAGEDIR}${PREFIX}/namazu/bin/namazu

post-patch:
    @${REINPLACE_CMD} '/^int main/ s|uchar|char|' ${WRKSRC}/namazu.c

.include <bsd.port.mk>