summaryrefslogtreecommitdiffstats
path: root/audio/gnuitar/Makefile
blob: abcc6cb51ccce56ff08c9a98e883a8c2c2169fcb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
# Created by: Gabor Kovesdan
# $FreeBSD$

PORTNAME=		gnuitar
PORTVERSION=		0.3.2
PORTREVISION=	8
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 \
		--enable-clip-everywhere \
		--enable-float

TXT_DOCS=	AUTHORS COPYING FAQ INSTALL NEWS README TODO ChangeLog
HTML_DOCS=	faq.html index.html install.html readme.html
PORTDOCS=	${TXT_DOCS} ${HTML_DOCS}
USES=		gmake pkgconfig

OPTIONS_DEFINE=	SUID DOCS
OPTIONS_DEFAULT=	SUID
SUID_DESC=	Use suid to allow highest priority (priv. dropped)

DESKTOP_ENTRIES="GNUitar" \
		"Apply guitar effects in real-time" \
		"${PREFIX}/share/pixmaps/${PORTNAME}.xpm" \
		"gnuitar" \
		"" \
		true

.include <bsd.port.options.mk>

pre-fetch:
	@${CAT} pkg-message

post-patch:
	@${REINPLACE_CMD} -e "s|-lpthread|${PTHREAD_LIBS}|g" \
		${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

.include <bsd.port.mk>
OpenPOWER on IntegriCloud