Switch from DISTVERSION to PORTVERSION as the version contains letters (see also PHB 5.2.2). Using DISTVERSION has the effect that the resulting package version (0.21.a) is considered as outdated by version comparison sites such as repology.org (https://repology.org/project/stymulator/packages).
37 lines
986 B
Makefile
37 lines
986 B
Makefile
# Created by: Emanuel Haupt <ehaupt@FreeBSD.org>
|
|
|
|
PORTNAME= stymulator
|
|
PORTVERSION= 0.21a
|
|
PORTREVISION= 4
|
|
CATEGORIES= audio
|
|
MASTER_SITES= http://atariarea.krap.pl/stymulator/files/ \
|
|
LOCAL/ehaupt
|
|
DISTNAME= STYMulator-${DISTVERSION}
|
|
|
|
MAINTAINER= ehaupt@FreeBSD.org
|
|
COMMENT= Command-line Yamaha YM2149 (.ym) chiptune player
|
|
|
|
LICENSE= GPLv2
|
|
|
|
USES= dos2unix ncurses
|
|
MAKE_JOBS_UNSAFE= yes
|
|
|
|
WRKSRC= ${WRKDIR}/${DISTNAME}/src
|
|
|
|
MANPAGE1= ymplayer.1 ym2wav.1
|
|
PLIST_FILES= bin/ym2wav bin/ymplayer bin/stymulator man/man1/ymplayer.1.gz \
|
|
man/man1/ym2wav.1.gz
|
|
|
|
post-patch:
|
|
@${REINPLACE_CMD} -e 's|-lncurses|$$(LDFLAGS) -lncurses|' \
|
|
${WRKSRC}/Makefile
|
|
|
|
do-install:
|
|
${INSTALL_PROGRAM} ${WRKSRC}/ym2wav ${STAGEDIR}${PREFIX}/bin
|
|
${INSTALL_PROGRAM} ${WRKSRC}/ymplayer ${STAGEDIR}${PREFIX}/bin
|
|
${LN} ${STAGEDIR}${PREFIX}/bin/ymplayer ${STAGEDIR}${PREFIX}/bin/${PORTNAME}
|
|
.for f in ${MANPAGE1}
|
|
${INSTALL_MAN} ${FILESDIR}/${f} ${STAGEDIR}${MANPREFIX}/man/man1
|
|
.endfor
|
|
|
|
.include <bsd.port.mk>
|