Lines 2-8
Link Here
|
2 |
# $FreeBSD$ |
2 |
# $FreeBSD$ |
3 |
|
3 |
|
4 |
PORTNAME= qTox |
4 |
PORTNAME= qTox |
5 |
PORTVERSION= 1.11.0 |
5 |
PORTVERSION= 1.12.1 |
6 |
DISTVERSIONPREFIX= v |
6 |
DISTVERSIONPREFIX= v |
7 |
CATEGORIES= net-im net-p2p |
7 |
CATEGORIES= net-im net-p2p |
8 |
|
8 |
|
Lines 10-15
Link Here
|
10 |
COMMENT= Qt 5 based Tox client |
10 |
COMMENT= Qt 5 based Tox client |
11 |
|
11 |
|
12 |
LICENSE= GPLv3 |
12 |
LICENSE= GPLv3 |
|
|
13 |
LICENSE_FILE= ${WRKSRC}/LICENSE |
13 |
|
14 |
|
14 |
BUILD_DEPENDS= ${LOCALBASE}/include/linux/videodev2.h:multimedia/v4l_compat |
15 |
BUILD_DEPENDS= ${LOCALBASE}/include/linux/videodev2.h:multimedia/v4l_compat |
15 |
LIB_DEPENDS= libtoxcore.so:net-im/tox \ |
16 |
LIB_DEPENDS= libtoxcore.so:net-im/tox \ |
Lines 25-53
Link Here
|
25 |
libfreetype.so:print/freetype2 \ |
26 |
libfreetype.so:print/freetype2 \ |
26 |
libfontconfig.so:x11-fonts/fontconfig |
27 |
libfontconfig.so:x11-fonts/fontconfig |
27 |
|
28 |
|
|
|
29 |
OPTIONS_DEFINE= PLATFORM_EXTENSIONS |
30 |
OPTIONS_DEFAULT=PLATFORM_EXTENSIONS |
31 |
PLATFORM_EXTENSIONS_DESC= Enable platform specific extensions |
32 |
|
28 |
USE_GITHUB= yes |
33 |
USE_GITHUB= yes |
29 |
GH_ACCOUNT= qTox |
34 |
GH_ACCOUNT= qTox |
|
|
35 |
GH_TAGNAME= cd8a7ad |
30 |
|
36 |
|
31 |
SUB_FILES= pkg-message |
|
|
32 |
|
33 |
USES= compiler:c++11-lib desktop-file-utils gettext openal:soft pkgconfig cmake |
37 |
USES= compiler:c++11-lib desktop-file-utils gettext openal:soft pkgconfig cmake |
34 |
USE_GNOME= glib20 gtk20 cairo gdkpixbuf2 |
38 |
USE_GNOME= gtk20 cairo |
35 |
USE_XORG= x11 xscrnsaver |
39 |
USE_QT5= core gui network xml opengl sql sql-sqlite3_run widgets svg \ |
36 |
USE_GL= gl |
40 |
concurrent_build buildtools_build linguisttools_build testlib_build |
37 |
USE_QT5= core gui network xml opengl sql sql-sqlite3_run widgets svg testlib \ |
41 |
# bug#220813: qmake isn't needed, but build fails without qmake_build |
38 |
concurrent buildtools_build linguisttools_build |
|
|
39 |
# bug#220813: qmake isn't needed, but the build fails without qmake_build |
40 |
USE_QT5+= qmake_build |
42 |
USE_QT5+= qmake_build |
41 |
CMAKE_ARGS= -DGIT_DESCRIBE:STRING=${FULLVERSION} |
43 |
CMAKE_ARGS= -DGIT_DESCRIBE:STRING=${FULLVERSION} |
42 |
INSTALLS_ICONS= yes |
44 |
INSTALLS_ICONS= yes |
43 |
ICON_SIZES= 14x14 16x16 22x22 24x24 32x32 36x36 48x48 64x64 72x72 96x96 128x128 192x192 256x256 512x512 |
|
|
44 |
|
45 |
|
|
|
46 |
PLATFORM_EXTENSIONS_CMAKE_OFF= -DPLATFORM_EXTENSIONS:BOOL=OFF |
47 |
PLATFORM_EXTENSIONS_USE= XORG=x11,xscrnsaver |
48 |
|
45 |
PLIST_FILES= bin/qtox \ |
49 |
PLIST_FILES= bin/qtox \ |
46 |
share/applications/qtox.desktop \ |
50 |
share/applications/qtox.desktop \ |
47 |
share/icons/hicolor/scalable/apps/qtox.svgz \ |
51 |
share/icons/hicolor/scalable/apps/qtox.svgz \ |
48 |
share/appdata/qTox.appdata.xml |
52 |
share/appdata/qTox.appdata.xml |
49 |
.for SZ in ${ICON_SIZES} |
53 |
.for SZ in 14 16 22 24 32 36 48 64 72 96 128 192 256 512 |
50 |
PLIST_FILES+= share/icons/hicolor/${SZ}/apps/qtox.png |
54 |
PLIST_FILES+= share/icons/hicolor/${SZ}x${SZ}/apps/qtox.png |
51 |
.endfor |
55 |
.endfor |
52 |
|
56 |
|
53 |
.include <bsd.port.pre.mk> |
57 |
.include <bsd.port.pre.mk> |
Lines 72-87
Link Here
|
72 |
@${REINPLACE_CMD} '/Comment/s,=.*,=${COMMENT},' \ |
76 |
@${REINPLACE_CMD} '/Comment/s,=.*,=${COMMENT},' \ |
73 |
${WRKSRC}/qtox.desktop |
77 |
${WRKSRC}/qtox.desktop |
74 |
|
78 |
|
75 |
post-install: |
|
|
76 |
${MKDIR} ${STAGEDIR}${PREFIX}/share/icons/hicolor/scalable/apps |
77 |
@${GZIP_CMD} \ |
78 |
< ${STAGEDIR}${PREFIX}/share/icons/hicolor/scalable/apps/qtox.svg \ |
79 |
> ${STAGEDIR}${PREFIX}/share/icons/hicolor/scalable/apps/qtox.svgz |
80 |
@${RM} ${STAGEDIR}${PREFIX}/share/icons/hicolor/scalable/apps/qtox.svg |
81 |
.for SZ in ${ICON_SIZES} |
82 |
@${MKDIR} ${STAGEDIR}${PREFIX}/share/icons/hicolor/${SZ}/apps |
83 |
${INSTALL_DATA} ${WRKSRC}/img/icons/${SZ}/qtox.png \ |
84 |
${STAGEDIR}${PREFIX}/share/icons/hicolor/${SZ}/apps/qtox.png |
85 |
.endfor |
86 |
|
87 |
.include <bsd.port.post.mk> |
79 |
.include <bsd.port.post.mk> |