aboutsummaryrefslogtreecommitdiff
path: root/audio/gnuitar
diff options
context:
space:
mode:
Diffstat (limited to 'audio/gnuitar')
-rw-r--r--audio/gnuitar/Makefile37
-rw-r--r--audio/gnuitar/pkg-plist2
2 files changed, 13 insertions, 26 deletions
diff --git a/audio/gnuitar/Makefile b/audio/gnuitar/Makefile
index abcc6cb51ccc..2573aa30acd9 100644
--- a/audio/gnuitar/Makefile
+++ b/audio/gnuitar/Makefile
@@ -1,20 +1,19 @@
# Created by: Gabor Kovesdan
# $FreeBSD$
-PORTNAME= gnuitar
-PORTVERSION= 0.3.2
+PORTNAME= gnuitar
+PORTVERSION= 0.3.2
PORTREVISION= 8
-CATEGORIES= audio multimedia
-MASTER_SITES= SF
+CATEGORIES= audio multimedia
+MASTER_SITES= SF
MAINTAINER= ports@FreeBSD.org
COMMENT= The real-time guitar processor
USE_BZIP2= yes
-NO_STAGE= yes
USE_GNOME= gtk20
GNU_CONFIGURE= yes
-CONFIGURE_ARGS+=--with-gtk2 \
+CONFIGURE_ARGS= --with-gtk2 \
--enable-clip-everywhere \
--enable-float
@@ -26,6 +25,7 @@ USES= gmake pkgconfig
OPTIONS_DEFINE= SUID DOCS
OPTIONS_DEFAULT= SUID
SUID_DESC= Use suid to allow highest priority (priv. dropped)
+OPTIONS_SUB= yes
DESKTOP_ENTRIES="GNUitar" \
"Apply guitar effects in real-time" \
@@ -34,8 +34,6 @@ DESKTOP_ENTRIES="GNUitar" \
"" \
true
-.include <bsd.port.options.mk>
-
pre-fetch:
@${CAT} pkg-message
@@ -44,23 +42,10 @@ post-patch:
${WRKSRC}/configure ${WRKSRC}/src/Makefile
do-install:
- @${INSTALL_PROGRAM} ${WRKSRC}/src/gnuitar ${PREFIX}/bin
-
-post-install:
- @${INSTALL_DATA} ${WRKSRC}/src/gnuitar.xpm ${PREFIX}/share/pixmaps
-.if ${PORT_OPTIONS:MDOCS}
- @${MKDIR} ${DOCSDIR}
-.for i in ${TXT_DOCS}
- @${INSTALL_DATA} ${WRKSRC}/${i} ${DOCSDIR}
-.endfor
-.for i in ${HTML_DOCS}
- @${INSTALL_DATA} ${WRKSRC}/docs/${i} ${DOCSDIR}
-.endfor
-.endif
-.if ${PORT_OPTIONS:MSUID}
-# make it setuid-root to be able to set realtime priority (root
-# privileges are dropped in the main routine)
- @${CHMOD} u+s ${PREFIX}/bin/gnuitar
-.endif
+ ${INSTALL_PROGRAM} ${WRKSRC}/src/gnuitar ${STAGEDIR}${PREFIX}/bin
+ ${INSTALL_DATA} ${WRKSRC}/src/gnuitar.xpm ${STAGEDIR}${PREFIX}/share/pixmaps
+ @${MKDIR} ${STAGEDIR}${DOCSDIR}
+ ${INSTALL_DATA} ${TXT_DOCS:S,^,${WRKSRC}/,} ${STAGEDIR}${DOCSDIR}
+ ${INSTALL_DATA} ${HTML_DOCS:S,^,${WRKSRC}/docs/,} ${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>
diff --git a/audio/gnuitar/pkg-plist b/audio/gnuitar/pkg-plist
index a56cfca1e3b7..5ae4de0b1b67 100644
--- a/audio/gnuitar/pkg-plist
+++ b/audio/gnuitar/pkg-plist
@@ -1,2 +1,4 @@
+%%SUID%%@mode 4555
bin/gnuitar
+%%SUID%%@mode
share/pixmaps/gnuitar.xpm