aboutsummaryrefslogtreecommitdiffstats
path: root/x11-fm/ultracopier/Makefile
blob: e57f583f00abfd8eef1b5bf55e6d5bf885b9ef62 (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
# Created by: Mario Sergio Fujikawa Ferreira <lioux@FreeBSD.org>
# $FreeBSD$

PORTNAME=   ultracopier
PORTVERSION=    0.2.0.16
PORTREVISION=   8
CATEGORIES= x11-fm kde
MASTER_SITES=   http://files.first-world.info/ultracopier/${PORTVERSION}/
DISTNAME=   ${PORTNAME}-src-${PORTVERSION}

MAINTAINER= ports@FreeBSD.org
COMMENT=    Advanced file copier

LICENSE=    GPLv3
LICENSE_FILE=   ${WRKSRC}/COPYING

USE_KDE4=   automoc4 kdelibs
USE_QT4=    corelib dbus gui moc_build network qmake_build rcc_build svg \
        uic_build xml xmlpatterns

USES=       cmake desktop-file-utils tar:bzip2
CMAKE_ARGS+=    -DCMAKE_BUILD_KDE4:bool=true
WRKSRC=     ${WRKDIR}/${PORTNAME}-${PORTVERSION}

PLIST_FILES=    ${DESKTOPDIR:Q}/ultracopier.desktop \
        bin/ultracopier \
        share/icons/hicolor/16x16/apps/ultracopier.png \
        share/icons/hicolor/128x128/apps/ultracopier.png
        
post-patch:
    @${REINPLACE_CMD} -E \
        -e 's|0\.2\.0\.15|0.2.0.16|; \
        s|0,2,0,15|0,2,0,16|' \
        ${WRKSRC}/src/var.h

post-install:
# install icons
.for dimensions in 16x16 128x128
    @${MKDIR} ${STAGEDIR}${PREFIX}/share/icons/hicolor/${dimensions}/apps
    ${INSTALL_DATA} ${WRKSRC}/src/other/ultracopier-${dimensions}.png \
        ${STAGEDIR}${PREFIX}/share/icons/hicolor/${dimensions}/apps/ultracopier.png
.endfor
# install desktop file
    @${MKDIR} ${STAGEDIR}${DESKTOPDIR}
    ${INSTALL_DATA} ${WRKSRC}/src/other/ultracopier.desktop \
        ${STAGEDIR}${DESKTOPDIR}

.include <bsd.port.mk>