blob: 1559dc78e21a06c7e23525d8088ab5f2cf062958 (
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
|
# Created by: trevor
# $FreeBSD$
PORTNAME= autozen
PORTVERSION= 2.1
PORTREVISION= 5
CATEGORIES= audio
MASTER_SITES= ftp://ftp.springdaemons.com/soft/ \
http://www.sourcefiles.org/Miscellaneous/
MAINTAINER= ports@FreeBSD.org
COMMENT= Adjust brain waves with sound
LICENSE= GPLv2
OPTIONS_DEFINE= GTK2 DOCS
USES= shebangfix perl5
SHEBANG_FILES= zentime
USE_PERL5= run
DESKTOP_ENTRIES="AutoZen" \
"BrainWave Generator/Synchronizator" \
"" \
"${PORTNAME}" \
"AudioVideo;Player;GTK;" \
false
PORTDOCS= *
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MGTK2}
USES+= pkgconfig
USE_GNOME= gtk20
MAKE_ENV+= GTK_CONFIG="pkg-config gtk+-2.0"
.else
USE_GNOME= gtk12
.endif
post-extract:
@cd ${WRKSRC} && ${RM} -f autozen seq2wav
post-patch:
@${REINPLACE_CMD} -e \
'/^CC/s| =| ?=| ; \
/^CFLAGS/s| =| ?=| ; \
/^PREFIX/s| =| ?=| ; \
s|share/AutoZen|${DATADIR_REL}| ; \
s|gtk-config|$${GTK_CONFIG}|g ; \
s|$$(CC) seq2wav|$$(CC) $$(CFLAGS) seq2wav|' \
${WRKSRC}/Makefile
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/autozen ${WRKSRC}/seq2wav ${STAGEDIR}${PREFIX}/bin
${INSTALL_SCRIPT} ${WRKSRC}/zentime ${STAGEDIR}${PREFIX}/bin
${INSTALL_MAN} ${WRKSRC}/doc/autozen.1 ${STAGEDIR}${MANPREFIX}/man/man1
@${MKDIR} ${STAGEDIR}${DATADIR}
${INSTALL_DATA} ${WRKSRC}/*.seq ${STAGEDIR}${DATADIR}
.if ${PORT_OPTIONS:MDOCS}
@${MKDIR} ${STAGEDIR}${DOCSDIR}
cd ${WRKSRC}/doc && ${COPYTREE_SHARE} HTML ${STAGEDIR}${DOCSDIR}
.endif
.include <bsd.port.mk>
|