aboutsummaryrefslogtreecommitdiffstats
path: root/textproc/fldiff/Makefile
blob: 2178a04b104fa3fcd7569c9c1031ad24bd4ec39e (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
# Created by: Emanuel Haupt <ehaupt@critical.ch>
# $FreeBSD$

PORTNAME=   fldiff
PORTVERSION=    1.1
PORTREVISION=   8
CATEGORIES= textproc
MASTER_SITES=   CRITICAL
DISTNAME=   ${PORTNAME}-${PORTVERSION}-source

MAINTAINER= ehaupt@FreeBSD.org
COMMENT=    Graphical diff program using FLTK

LICENSE=    GPLv2

LIB_DEPENDS=    libfltk.so:${PORTSDIR}/x11-toolkits/fltk

GNU_CONFIGURE=  yes

WRKSRC=     ${WRKDIR}/${PORTNAME}-${PORTVERSION}

PORTDOCS=   index.html fldiff.jpg

OPTIONS_DEFINE= DOCS

.include <bsd.port.options.mk>

post-patch:
    @${REINPLACE_CMD} -e 's|@OPTIM@||' ${WRKSRC}/Makefile.in
    @${REINPLACE_CMD} -e 's|=Development|=Application;Development;|' \
        ${WRKSRC}/fldiff.desktop

do-install:
    ${INSTALL_PROGRAM} ${WRKSRC}/fldiff ${STAGEDIR}${PREFIX}/bin
    ${INSTALL_MAN} ${WRKSRC}/fldiff.man ${STAGEDIR}${MAN1PREFIX}/man/man1/fldiff.1
    ${INSTALL_DATA} ${WRKSRC}/fldiff.desktop ${STAGEDIR}${PREFIX}/share/applications
    ${INSTALL_DATA} ${WRKSRC}/fldiff.png ${STAGEDIR}${PREFIX}/share/pixmaps
    ${MKDIR} ${STAGEDIR}${DOCSDIR}
    ${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}

.include <bsd.port.mk>