aboutsummaryrefslogtreecommitdiffstats
path: root/net-p2p/awgg/Makefile
blob: 33f6c5af8129958ef18e8860bd0493eb132737b7 (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
49
50
51
52
53
54
55
56
57
# $FreeBSD$

PORTNAME=   awgg
PORTVERSION=    0.5.1
PORTREVISION=   1
CATEGORIES= net-p2p
PKGNAMESUFFIX=  ${LAZARUS_PKGNAMESUFFIX}

MAINTAINER= acm@FreeBSD.org
COMMENT=    Advanced wget GUI

LICENSE=    GPLv2

RUN_DEPENDS=    aria2c:www/aria2 \
        wget:ftp/wget \
        curl:ftp/curl \
        youtube-dl:www/youtube_dl \
        axel:ftp/axel

gtk2_CONFLICTS_INSTALL= ${PORTNAME}-qt4 ${PORTNAME}-qt5
qt4_CONFLICTS_INSTALL=  ${PORTNAME}-gtk2 ${PORTNAME}-qt5
qt5_CONFLICTS_INSTALL=  ${PORTNAME}-gtk2 ${PORTNAME}-qt4

USES=       fpc lazarus:flavors
USE_FPC=    chm fcl-base fcl-db fcl-image fcl-json fcl-registry fcl-xml \
        pasjpeg regexpr rtl-extra rtl-objpas x11
USE_XORG=   x11
USE_GITHUB= yes
GH_ACCOUNT= Nenirey
GH_PROJECT= AWGG
GH_TAGNAME= 28d009f

DESKTOP_ENTRIES="AWGG" \
        "Advanced wget GUI" \
        "${PREFIX}/share/pixmaps/AWGG16x16.png" \
        "${PORTNAME}" \
        "Network;P2P;" \
        ${TRUE}

USE_FPC_gtk2=   cairo
USE_GNOME_gtk2= cairo
USE_FPC+=   ${USE_FPC_${FLAVOR}}
USE_GNOME+= ${USE_GNOME_${FLAVOR}}

LAZBUILD_ARGS=  -d
LAZARUS_PROJECT_FILES=  src/awgg.lpi
LLD_UNSAFE= yes

post-patch:
    ${REINPLACE_CMD} 's|/usr/bin/shutdown|/sbin/shutdown|g' ${WRKSRC}/src/fmain.pas
    ${REINPLACE_CMD} 's|/usr|${LOCALBASE}|g' ${WRKSRC}/src/fmain.pas

do-install:
    ${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin/${PORTNAME}
    cd ${WRKSRC}/pixmaps && ${COPYTREE_SHARE} . ${STAGEDIR}${PREFIX}/share/pixmaps

.include <bsd.port.mk>