diff options
Diffstat (limited to 'audio/autozen/Makefile')
-rw-r--r-- | audio/autozen/Makefile | 59 |
1 files changed, 14 insertions, 45 deletions
diff --git a/audio/autozen/Makefile b/audio/autozen/Makefile index 494ced1e58d..190df5475e5 100644 --- a/audio/autozen/Makefile +++ b/audio/autozen/Makefile @@ -6,63 +6,32 @@ # PORTNAME= autozen -PORTVERSION= 1.3.1 -PORTREVISION= 3 +PORTVERSION= 2.1 +PORTREVISION= 0 CATEGORIES= audio -MASTER_SITES= http://freebsd.biz.net.id/distfiles/ \ - http://ftp.dyu.edu.tw/pub/FreeBSD/ -DISTNAME= AutoZen-${PORTVERSION} +MASTER_SITES= http://www.linux.edu/download/ -MAINTAINER= ports@FreeBSD.org +MAINTAINER= ssedov@mbsd.msk.ru COMMENT= Adjust brain waves with sound -WRKSRC= ${WRKDIR}/AutoZen-${PORTVERSION} - -MAKE_ENV+= PTHREAD_CFLAGS=${PTHREAD_CFLAGS} PTHREAD_LIBS=${PTHREAD_LIBS} +MAKE_ENV+= PTHREAD_FLAGS="${PTHREAD_CFLAGS} ${PTHREAD_LIBS}" \ + DATADIR="${DATADIR}" DOCSDIR="${DOCSDIR}" MKDIR="${MKDIR}" USE_GNOME= gtk12 USE_X_PREFIX= yes -REINPLACE_ARGS= -i'' -E +USE_PERL5_RUN= yes -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 +PORTDOCS= * +MAN1= autozen.1 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} + @${RM} -f ${WRKSRC}/autozen ${WRKSRC}/seq2wav +.if exists(/usr/include/sys/soundcard.h) + @${REINPLACE_CMD} "s=machine/soundcard.h=sys/soundcard.h=g" \ + ${WRKSRC}/autozen.c .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 + @${REINPLACE_CMD} "s=#%%DOCS%%==g" ${WRKSRC}/Makefile .endif .include <bsd.port.mk> |