aboutsummaryrefslogtreecommitdiffstats
path: root/french/dico/Makefile
blob: 115d99fb4fe8f6acb5ce48712465d066806fa946 (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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
# Created by: Cyrille Lefevre <clefevre@citeweb.net>
# $FreeBSD$

PORTNAME=   dico
PORTVERSION=    1.1
PORTREVISION=   7
CATEGORIES= french
MASTER_SITES=   ftp://ftp.supelec.fr/lsi/pub/security/
DISTNAME=   le_dico

MAINTAINER= ports@FreeBSD.org
COMMENT=    Interactive dictionary in french

BROKEN_WWW= http://www.montefiore.ulg.ac.be/cgi-bin-ulg/DICO.html

# Global variables
#

WRKSRC=     ${WRKDIR}/${PORTNAME}
USE_AUTOTOOLS=  automake14 autoconf
CONFIGURE_ARGS= --mandir=${PREFIX}/man
USES=       gmake
AUTOMAKE_ARGS=  --add-missing --foreign --include-deps
MAKE_ARGS=  prefix=${PREFIX}
MAN1=       dico.1
REINPLACE_SUB=  PREFIX=${PREFIX}

# Post-patch
#

NO_STAGE=   yes
post-patch:
    @${REINPLACE_CMD} ${REINPLACE_SUB:S/$/!g/:S/^/ -e s!%%/:S/=/%%!/} \
        ${WRKSRC}/sources/dico.c

# Pre-configure
#

pre-configure:
    @cd ${WRKSRC} && ${ACLOCAL}

# Post-install
#

post-install:
.if defined(NOPORTDOCS)
    @${RM} -rf ${DOCSDIR}
.endif

.include <bsd.port.mk>