aboutsummaryrefslogtreecommitdiffstats
path: root/textproc/beediff/Makefile
blob: 9ef71f7587ed3149e47b99a5b21e32a64427a60c (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
# New ports collection makefile for:    beediff
# Date created:     2008-03-23
# Whom:         Max Brazhnikov <makc@issp.ac.ru>
#
# $FreeBSD$
#

PORTNAME=   beediff
PORTVERSION=    1.9
PORTREVISION=   1
CATEGORIES= textproc devel
MASTER_SITES=   http://www.beesoft.pl/download/
DISTNAME=   ${PORTNAME}_${PORTVERSION}_src

MAINTAINER= makc@FreeBSD.org
COMMENT=    QT4 based diff frontend

USE_QT_VER= 4
QT_COMPONENTS=  gui moc_build rcc_build qmake_build
HAS_CONFIGURE=  yes
INSTALLS_ICONS= yes

WRKSRC=     ${WRKDIR}/${PORTNAME}

PLIST_FILES=    bin/beediff share/pixmaps/beediff.png

DESKTOP_ENTRIES="BeeDiff" "diff frontend" "beediff.png" \
        "beediff" "" false

do-configure:
    cd ${WRKSRC} && ${SETENV} ${CONFIGURE_ENV} ${QMAKE}

post-configure:
    @${REINPLACE_CMD} -e \
            's|^CC .*|CC=${CC}|; \
            s|^CXX .*|CXX=${CXX}|; \
            s|^LINK .*|LINK=${CXX}|' \
            ${WRKSRC}/Makefile

do-install:
    ${INSTALL_PROGRAM} ${WRKSRC}/beediff ${PREFIX}/bin/
    ${INSTALL_DATA} ${WRKSRC}/img/beediff.png ${PREFIX}/share/pixmaps/

.include <bsd.port.mk>