summaryrefslogtreecommitdiffstats
path: root/textproc/mifluz/Makefile
blob: 5ea4ff321c79e13b7700676119f632a069f52585 (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
48
49
# New ports collection makefile for:	GNU/mifluz
# Date created:				07 June 2002
# Whom:					Frederic Dubuy <fdubuy@free.fr>
#
# $FreeBSD$
#

PORTNAME=	mifluz
PORTVERSION=	0.23.0
PORTREVISION=	1
CATEGORIES=	textproc
MASTER_SITES=	${MASTER_SITE_GNU}
MASTER_SITE_SUBDIR=	${PORTNAME}

MAINTAINER=	ports@FreeBSD.org

LIB_DEPENDS=	iconv.3:${PORTSDIR}/converters/libiconv

USE_REINPLACE=	yes
USE_LIBTOOL=	yes
CONFIGURE_ARGS=	--with-libiconv-prefix=${LOCALBASE} \
		--without-unac
INSTALLS_SHLIB= yes

MAN1=	htdb_dump.1 htdb_stat.1 htdb_load.1 mifluzdump.1 mifluzload.1 \
	mifluzsearch.1 mifluzdict.1
MAN3=	WordContext.3 WordList.3 WordDict.3 WordListOne.3 WordKey.3 \
	WordKeyInfo.3 WordType.3 WordDBInfo.3 WordRecordInfo.3 \
	WordRecord.3 WordReference.3 WordCursor.3 WordCursorOne.3 \
	WordMonitor.3 Configuration.3 mifluz.3

PKGMESSAGE=	${WRKDIR}/pkg-message

post-patch:
	@${REINPLACE_CMD} 's|-D_THREAD_SAFE -pthread|${PTHREAD_CFLAGS}|g ; \
		 s|-lpthread|${PTHREAD_LIBS}|g' ${WRKSRC}/configure

pre-build:
	@cd ${WRKSRC}/doc \
		&& makeinfo --no-split --force mifluz.texinfo || ${TRUE}

post-install:
	@${SED} -e "s:%%PREFIX%%:${PREFIX}:g" ${PKGDIR}/pkg-message > \
	${PKGMESSAGE}
	@${ECHO_MSG}
	@${CAT} ${PKGMESSAGE}
	@${ECHO_MSG}

.include <bsd.port.mk>
OpenPOWER on IntegriCloud