freebsd-ports/audio/ctronome/Makefile
Ruslan Makhmatkhanov eec886bfa2 - update to 0.5.4
- remove patch, applied upstream
- add license (GPLv2)
- remove indefinite article in COMMENT
- move pkg-plist content into Makefile

changelog:
- fixed amd64 platform bug that caused ctronome to produce no sound on amd64
platform due to incorrect width of integers used in bitwise operations, thanks
to Dmitry Kazarov - http://www.freebsd.org/cgi/query-pr.cgi?pr=ports/170207
2012-09-30 19:15:57 +00:00

29 lines
785 B
Makefile

# Created by: Charles Mercadal <mercadal@diablonet.net>
# $FreeBSD$
PORTNAME= ctronome
PORTVERSION= 0.5.4
CATEGORIES= audio
MASTER_SITES= http://ctronome.kign.org/source/
MAINTAINER= ports@FreeBSD.org
COMMENT= Programmable console-based metronome
LICENSE= GPLv2
PLIST_FILES= bin/ctronome \
%%DATADIR%%/metronome1.wav \
%%DATADIR%%/metronome2.wav
PLIST_DIRS= %%DATADIR%%
post-patch:
@${REINPLACE_CMD} -e 's|linux/soundcard.h|sys/soundcard.h|' ${WRKSRC}/ctronome.h ${WRKSRC}/dsp.c
@${REINPLACE_CMD} -e 's|/usr/share/ctronome|${DATADIR}|' ${WRKSRC}/ctronome.h
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/ctronome ${PREFIX}/bin
${MKDIR} ${DATADIR}
${INSTALL_DATA} ${WRKSRC}/metronome1.wav ${DATADIR}
${INSTALL_DATA} ${WRKSRC}/metronome2.wav ${DATADIR}
.include <bsd.port.mk>