aboutsummaryrefslogtreecommitdiff
path: root/audio/autozen/Makefile
blob: af15b916560c9df9bb6c9d26e776441fa11700b5 (plain) (blame)
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
67
68
# New ports collection makefile for:	autozen
# Date created:				2000-09-16
# Whom:					Trevor Johnson <trevor@jpj.net>
#
# $FreeBSD$
#

PORTNAME=	autozen
PORTVERSION=	1.3.1
CATEGORIES=	audio
MASTER_SITES=	http://www.linuxlabs.com/software/download/
DISTNAME=	AutoZen-${PORTVERSION}

MAINTAINER=	trevor@FreeBSD.org
COMMENT=	Adjust brain waves with sound

WRKSRC=		${WRKDIR}/AutoZen-${PORTVERSION}

MAKE_ENV+=	PTHREAD_CFLAGS=${PTHREAD_CFLAGS} PTHREAD_LIBS=${PTHREAD_LIBS}

USE_GNOME=	gtk12
USE_GNOMENG=	yes
USE_X_PREFIX=	yes
USE_REINPLACE=	yes
REINPLACE_ARGS=	-i'' -E

DOC_FILES=	CHANGES COPYING
DATA_FILES=	deep-relax.seq deep_delta_slide.seq delta_slide.seq \
		moderate-meditation.seq relax.seq wake-up.seq
PLIST=		${WRKDIR}/pkg-plist

post-patch:
	@if [ -f /usr/include/sys/soundcard.h ]; then \
		${REINPLACE_CMD} "s=machine/soundcard.h=sys/soundcard.h=g" \
			${WRKSRC}/autozen.c; \
	fi
	${REINPLACE_CMD} "s=X11BASE=${X11BASE}=g" ${WRKSRC}/autozen.c
	cd ${WRKSRC} && ${RM} autozen seq2wav

pre-install:
	${ECHO_CMD} bin/autozen > ${PLIST}
	${ECHO_CMD} bin/seq2wav >> ${PLIST}
.for i in ${DATA_FILES}
	${ECHO_CMD} share/autozen/${i} >> ${PLIST}
.endfor
.if !defined(NOPORTDOCS)
.for i in ${DOC_FILES}
	${ECHO_CMD} share/doc/autozen/${i} >> ${PLIST}
.endfor
	${ECHO_CMD} @dirrm share/doc/autozen >> ${PLIST}
.endif
	${ECHO_CMD} @dirrm share/autozen >> ${PLIST}

do-install:
	${INSTALL_PROGRAM} ${WRKSRC}/autozen ${PREFIX}/bin
	${INSTALL_PROGRAM} ${WRKSRC}/seq2wav ${PREFIX}/bin
	${MKDIR} ${PREFIX}/share/autozen
.for i in ${DATA_FILES}
	${INSTALL_DATA} ${WRKSRC}/${i} ${PREFIX}/share/autozen
.endfor
.if !defined(NOPORTDOCS)
	${MKDIR} ${PREFIX}/share/doc/autozen
.for i in ${DOC_FILES}
	${INSTALL_DATA} ${WRKSRC}/${i} ${PREFIX}/share/doc/autozen
.endfor
.endif

.include <bsd.port.mk>