1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-24 00:45:52 +00:00
freebsd-ports/audio/autozen/Makefile
Mathieu Arnold 62a41b423b - Convert to new perl framework
- Remove MAKE_JOBS_SAFE=yes, it's the default.
2013-08-03 13:44:00 +00:00

67 lines
1.4 KiB
Makefile

# 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
MAN1= autozen.1
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:
(cd ${WRKSRC} && ${INSTALL_PROGRAM} autozen seq2wav ${PREFIX}/bin)
(cd ${WRKSRC} && ${INSTALL_SCRIPT} zentime ${PREFIX}/bin)
(cd ${WRKSRC}/doc && ${INSTALL_MAN} autozen.1 ${MANPREFIX}/man/man1)
@${MKDIR} ${DATADIR}
(cd ${WRKSRC} && ${INSTALL_DATA} *.seq ${DATADIR})
.if ${PORT_OPTIONS:MDOCS}
@${MKDIR} ${DOCSDIR}
@(cd ${WRKSRC}/doc && ${COPYTREE_SHARE} HTML ${DOCSDIR})
.endif
.include <bsd.port.mk>