aboutsummaryrefslogtreecommitdiffstats
path: root/french/dico/Makefile
blob: 6cfea0e9d6b928cb7d32a9334b74b570adeea2dc (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
# Created by: Cyrille Lefevre <clefevre@citeweb.net>
# $FreeBSD$

PORTNAME=   dico
PORTVERSION=    1.1
PORTREVISION=   8
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

WRKSRC=     ${WRKDIR}/${PORTNAME}

OPTIONS_DEFINE= DOCS

do-build:
    (cd ${WRKSRC}/sources && ${CC} ${CFLAGS} ${LDFLAGS} -o dico dico.c)

do-install:
    ${MKDIR} ${STAGEDIR}${PREFIX}/bin
    ${INSTALL_PROGRAM} ${WRKSRC}/sources/dico ${STAGEDIR}${PREFIX}/bin
    ${MKDIR} ${STAGEDIR}${DATADIR}
    ${INSTALL_DATA} ${WRKSRC}/lexique/*.dic ${STAGEDIR}${DATADIR}
    ${MKDIR} ${STAGEDIR}${DOCSDIR}
    ${INSTALL_DATA} ${WRKSRC}/README.TXT ${STAGEDIR}${DOCSDIR}
    ${INSTALL_DATA} ${WRKSRC}/manuel/copying.doc ${STAGEDIR}${DOCSDIR}
    ${MKDIR} ${STAGEDIR}${MAN1PREFIX}/man/man1
    ${INSTALL_MAN} ${WRKSRC}/manuel/dico.1 ${STAGEDIR}${MAN1PREFIX}/man/man1

post-patch:
    @${REINPLACE_CMD} 's,/usr/local,${PREFIX},' \
        ${WRKSRC}/README.TXT ${WRKSRC}/manuel/dico.1 \
        ${WRKSRC}/sources/dico.c

.include <bsd.port.mk>