aboutsummaryrefslogtreecommitdiffstats
path: root/sysutils/luckybackup/Makefile
blob: 8d4d555c3433bcae9b419148164166b7f7ee21eb (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
# $FreeBSD$

PORTNAME=   luckybackup
PORTVERSION=    0.4.7
PORTREVISION=   1
CATEGORIES= sysutils
MASTER_SITES=   SF/${PORTNAME}/${PORTVERSION}/source

MAINTAINER= jhale@FreeBSD.org
COMMENT=    QT4 frontend to the backup utility rsync

LICENSE=    GPLv3

RUN_DEPENDS=    rsync:${PORTSDIR}/net/rsync

USES=       qmake
USE_QT4=    gui qmake_build moc_build rcc_build uic_build

post-patch:
    ${REINPLACE_CMD} -e 's|/usr|$$$${PREFIX}|g' -e '/INSTALLS/s|debianmenu ||' \
        -e '/manpage/s|share/||' -e 's|QMAKE_STRIP.*|QMAKE_STRIP = ${STRIP_CMD}|g' \
        ${WRKSRC}/luckybackup.pro
    ${REINPLACE_CMD} -e 's|/usr/bin/||g' -e 's|/usr/share/pixmaps/||g' \
        ${WRKSRC}/menu/*.desktop
    ${REINPLACE_CMD} -e 's|/usr|${LOCALBASE}|g' \
        ${WRKSRC}/src/executenow.cpp
    ${REINPLACE_CMD} -e 's|/usr|${PREFIX}|g' \
        ${WRKSRC}/src/global.h \
        ${WRKSRC}/src/scheduleDialog.cpp

.include <bsd.port.mk>