summaryrefslogtreecommitdiff
path: root/misc/spnavcfg-devel/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'misc/spnavcfg-devel/Makefile')
-rw-r--r--misc/spnavcfg-devel/Makefile22
1 files changed, 11 insertions, 11 deletions
diff --git a/misc/spnavcfg-devel/Makefile b/misc/spnavcfg-devel/Makefile
index 2f14d97c1d09..30545a74e8c9 100644
--- a/misc/spnavcfg-devel/Makefile
+++ b/misc/spnavcfg-devel/Makefile
@@ -1,7 +1,11 @@
PORTNAME= spnavcfg
PORTVERSION= r${GIT_SRC_DATE}
+#PORTREVISION= 1
CATEGORIES= misc
+MASTER_SITES+= https://github.com/FreeSpacenav/spnavcfg/raw/refs/heads/master/icons/:icons
PKGNAMESUFFIX= -devel
+DIST_SUBDIR= ${PORTNAME}
+EXTRACT_ONLY= ${GH_ACCOUNT}-${PORTNAME}-${DISTVERSION}-${GH_TAGNAME}_GH0${EXTRACT_SUFX}
MAINTAINER= mr@freebsd.org
COMMENT= Spacenav daemon interactive configuration program
@@ -11,7 +15,7 @@ LICENSE= GPLv3+
LIB_DEPENDS+= libspnav.so:misc/libspnav
-USES= gmake pkgconfig qt:6 xorg
+USES= desktop-file-utils gmake pkgconfig qt:6 xorg
USE_GITHUB= yes
GH_ACCOUNT= FreeSpacenav
GH_PROJECT= spnavcfg
@@ -21,10 +25,14 @@ USE_XORG+= x11
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --disable-debug
-ICONS= devices.png spnavcfg-128x128.png spnavcfg-256x256.png spnavcfg-48x48.png spnavcfg.png
MAKE_ENV+= MOC="${MOC}" RCC="${RCC}" UIC="${UIC}"
ALL_TARGET= ${PORTNAME}
+ICONS= devices.png spnavcfg-128x128.png spnavcfg-256x256.png spnavcfg-48x48.png spnavcfg.png
+.for f in ${ICONS}
+DISTFILES+= $(f):icons
+.endfor
+
PLIST_FILES= bin/spnavcfg \
share/applications/spnavcfg.desktop \
share/icons/hicolor/128x128/apps/spnavcfg.png \
@@ -33,17 +41,9 @@ PLIST_FILES= bin/spnavcfg \
.include "Makefile.git_rev"
-makeicons:
-.for f in ${ICONS}
- (cd ${FILESDIR}/icons && uuencode -o ${f}.uu ${f} ${f})
-.endfor
-
-#${CP} ${FILESDIR}/icons/*.png ${WRKSRC}/icons/
-#(cd ${WRKSRC} && uudecode ${FILESDIR}/burricons.png.uu)
-#${f}
post-extract:
.for f in ${ICONS}
- (cd ${WRKSRC}/icons/ && uudecode ${FILESDIR}/icons/${f}.uu)
+ (${CP} ${DISTDIR}/${DIST_SUBDIR}/${f} ${WRKSRC}/icons/${f})
.endfor
post-install: