mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-14 03:10:47 +00:00
053fdb6a6b
(Part 2)
69 lines
1.7 KiB
Makefile
69 lines
1.7 KiB
Makefile
# New ports collection makefile for: autozen
|
|
# Date created: 2000-09-16
|
|
# Whom: Trevor Johnson
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= autozen
|
|
PORTVERSION= 1.3.1
|
|
PORTREVISION= 2
|
|
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_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>
|