blob: c0db1d6079c7e91f90a808012cc49651c5698eaa (
plain)
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
|
PORTNAME= transmission-remote-gui
PORTVERSION= 5.18.0
PORTREVISION= 17
DISTVERSIONPREFIX= v
CATEGORIES= net-p2p
PKGNAMESUFFIX= ${LAZARUS_PKGNAMESUFFIX}
USE_GITHUB= yes
GH_PROJECT= transgui
MAINTAINER= acm@FreeBSD.org
COMMENT= Remote GUI for transmission daemon
WWW= https://github.com/transmission-remote-gui/transgui
LICENSE= GPLv2+
LICENSE_FILE= ${WRKSRC}/COPYING.txt
USES= desktop-file-utils fpc gnome iconv lazarus:flavors xorg
USE_GNOME= cairo
USE_XORG= x11
DESKTOP_ENTRIES="Transmission Remote GUI" \
"Remote GUI for transmission daemon" \
"transgui" \
"${PREFIX}/bin/transgui" \
"Network;P2P;" \
${TRUE}
PLIST_FILES= bin/transgui \
share/icons/hicolor/48x48/apps/transgui.png
PORTDATA= *
SUB_FILES= pkg-message
LAZARUS_PROJECT_FILES= transgui.lpi
LAZBUILD_ARGS= -d
PROJECT_NAME= transgui
gtk2_CONFLICTS_INSTALL= ${PORTNAME}-qt5
qt5_CONFLICTS_INSTALL= ${PORTNAME}-gtk2
post-patch:
${REINPLACE_CMD} -e 's|%%DATADIR%%|${DATADIR}|g' ${WRKSRC}/restranslator.pas
do-install:
@cd ${WRKSRC}/units && \
${INSTALL_PROGRAM} transgui ${STAGEDIR}${PREFIX}/bin
@cd ${WRKSRC} && \
${COPYTREE_SHARE} lang ${STAGEDIR}${DATADIR}
@${MKDIR} ${STAGEDIR}${PREFIX}/share/icons/hicolor/48x48/apps
${INSTALL_DATA} ${WRKSRC}/transgui.png ${STAGEDIR}${PREFIX}/share/icons/hicolor/48x48/apps/transgui.png
.include <bsd.port.mk>
|