| @@ -1,48 +1,50 @@ | | | @@ -1,48 +1,50 @@ |
1 | # $NetBSD: Makefile,v 1.68 2023/04/19 08:11:59 adam Exp $ | | 1 | # $NetBSD: Makefile,v 1.69 2023/07/09 09:09:11 nia Exp $ |
2 | | | 2 | |
3 | DISTNAME= tint2-v17.0.2 | | 3 | DISTNAME= tint2-v17.0.2 |
4 | PKGNAME= ${DISTNAME:S/-v/-/} | | 4 | PKGNAME= ${DISTNAME:S/-v/-/} |
5 | PKGREVISION= 6 | | 5 | PKGREVISION= 6 |
6 | CATEGORIES= x11 | | 6 | CATEGORIES= x11 |
7 | MASTER_SITES= ${MASTER_SITE_GITLAB:=o9000/} | | 7 | MASTER_SITES= ${MASTER_SITE_GITLAB:=o9000/} |
8 | GITLAB_PROJECT= tint2 | | 8 | GITLAB_PROJECT= tint2 |
9 | GITLAB_RELEASE= v${PKGVERSION_NOREV} | | 9 | GITLAB_RELEASE= v${PKGVERSION_NOREV} |
10 | EXTRACT_SUFX= .tar.bz2 | | 10 | EXTRACT_SUFX= .tar.bz2 |
11 | | | 11 | |
12 | MAINTAINER= fernandotcl@gmail.com | | 12 | MAINTAINER= fernandotcl@gmail.com |
13 | HOMEPAGE= https://gitlab.com/o9000/tint2 | | 13 | HOMEPAGE= https://gitlab.com/o9000/tint2 |
14 | COMMENT= Lightweight panel/taskbar for X11 | | 14 | COMMENT= Lightweight panel/taskbar for X11 |
15 | LICENSE= gnu-gpl-v2 | | 15 | LICENSE= gnu-gpl-v2 |
16 | | | 16 | |
17 | USE_LANGUAGES= c c++ # XXX CMake. pkg does not really need c++ | | 17 | # error: 'for' loop initial declarations are only allowed in C99 mode |
| | | 18 | # XXX CMake. pkg does not really need c++ |
| | | 19 | USE_LANGUAGES= c99 c++ |
18 | USE_CMAKE= yes | | 20 | USE_CMAKE= yes |
19 | USE_LIBTOOL= yes | | 21 | USE_LIBTOOL= yes |
20 | USE_TOOLS+= msgfmt msgmerge pkg-config | | 22 | USE_TOOLS+= msgfmt msgmerge pkg-config |
21 | | | 23 | |
22 | INSTALLATION_DIRS= share/examples/tint2 | | 24 | INSTALLATION_DIRS= share/examples/tint2 |
23 | OWN_DIRS= ${PKG_SYSCONFDIR}/xdg/tint2 | | 25 | OWN_DIRS= ${PKG_SYSCONFDIR}/xdg/tint2 |
24 | CONF_FILES= ${PREFIX}/share/examples/tint2/tint2rc \ | | 26 | CONF_FILES= ${PREFIX}/share/examples/tint2/tint2rc \ |
25 | ${PKG_SYSCONFDIR}/xdg/tint2/tint2rc | | 27 | ${PKG_SYSCONFDIR}/xdg/tint2/tint2rc |
26 | | | 28 | |
27 | CMAKE_ARGS.Linux= -DENABLE_BATTERY=ON | | 29 | CMAKE_ARGS.Linux= -DENABLE_BATTERY=ON |
28 | CMAKE_ARGS.*= -DENABLE_BATTERY=OFF | | 30 | CMAKE_ARGS.*= -DENABLE_BATTERY=OFF |
29 | | | 31 | |
30 | CFLAGS.SunOS+= -D_XOPEN_SOURCE=600 -D__EXTENSIONS__ | | 32 | CFLAGS.SunOS+= -D_XOPEN_SOURCE=600 -D__EXTENSIONS__ |
31 | CFLAGS.SunOS+= -Du_int8_t=uint8_t -Du_int32_t=uint32_t -Du_int64_t=uint64_t | | 33 | CFLAGS.SunOS+= -Du_int8_t=uint8_t -Du_int32_t=uint32_t -Du_int64_t=uint64_t |
32 | | | 34 | |
33 | post-install: | | 35 | post-install: |
34 | ${INSTALL_DATA} ${WRKSRC}/themes/tint2rc \ | | 36 | ${INSTALL_DATA} ${WRKSRC}/themes/tint2rc \ |
35 | ${DESTDIR}${PREFIX}/share/examples/tint2 | | 37 | ${DESTDIR}${PREFIX}/share/examples/tint2 |
36 | | | 38 | |
37 | .include "../../devel/cmake/buildlink3.mk" | | 39 | .include "../../devel/cmake/buildlink3.mk" |
38 | .include "../../graphics/hicolor-icon-theme/buildlink3.mk" | | 40 | .include "../../graphics/hicolor-icon-theme/buildlink3.mk" |
39 | .include "../../graphics/imlib2/buildlink3.mk" | | 41 | .include "../../graphics/imlib2/buildlink3.mk" |
40 | .include "../../graphics/librsvg/buildlink3.mk" | | 42 | .include "../../graphics/librsvg/buildlink3.mk" |
41 | .include "../../sysutils/desktop-file-utils/desktopdb.mk" | | 43 | .include "../../sysutils/desktop-file-utils/desktopdb.mk" |
42 | .include "../../x11/gtk3/buildlink3.mk" | | 44 | .include "../../x11/gtk3/buildlink3.mk" |
43 | .include "../../x11/libXcomposite/buildlink3.mk" | | 45 | .include "../../x11/libXcomposite/buildlink3.mk" |
44 | .include "../../x11/libXdamage/buildlink3.mk" | | 46 | .include "../../x11/libXdamage/buildlink3.mk" |
45 | .include "../../x11/libXinerama/buildlink3.mk" | | 47 | .include "../../x11/libXinerama/buildlink3.mk" |
46 | .include "../../x11/libXrandr/buildlink3.mk" | | 48 | .include "../../x11/libXrandr/buildlink3.mk" |
47 | .include "../../x11/startup-notification/buildlink3.mk" | | 49 | .include "../../x11/startup-notification/buildlink3.mk" |
48 | .include "../../mk/bsd.pkg.mk" | | 50 | .include "../../mk/bsd.pkg.mk" |