1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-10 07:04:03 +00:00

Stage support

This commit is contained in:
Antoine Brodin 2014-01-16 18:23:42 +00:00
parent e15ebccf59
commit 3de866c1aa
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=339955
2 changed files with 13 additions and 26 deletions

View File

@ -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>

View File

@ -1,2 +1,4 @@
%%SUID%%@mode 4555
bin/gnuitar
%%SUID%%@mode
share/pixmaps/gnuitar.xpm