1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-02 01:20:54 +00:00
freebsd-ports/audio/solfege/Makefile
Nuno Teixeira 8fb47782c8 audio/solfege: Revive port. Update to 3.23.5pre2
Since removing the port related to the python 2.7 EOL upstream
development picked up speed again adding support for python 3 as well
as other minor improvements.

- resurrect port and update to version 3.23.5pre2
- set maintainer to submitter

PR:		261915

Revert "audio/solfege: USES-= display"

This reverts commit 2b7586353b.
2022-10-07 14:19:38 +01:00

54 lines
1.5 KiB
Makefile

PORTNAME= solfege
DISTVERSION= 3.23.5pre2
CATEGORIES= audio
MASTER_SITES= https://git.savannah.gnu.org/cgit/${PORTNAME}.git/snapshot/
PKGNAMESUFFIX= -nosound
MAINTAINER= m.ne@gmx.net
COMMENT= Free ear training software
WWW= https://www.gnu.org/software/solfege/
LICENSE= GPLv3
LICENSE_FILE= ${WRKSRC}/COPYING
BUILD_DEPENDS= docbook-xsl>0:textproc/docbook-xsl \
git>0:devel/git \
txt2man:textproc/txt2man
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}sqlite3>0:databases/py-sqlite3@${PY_FLAVOR}
USES= autoreconf gettext gmake gnome makeinfo pathfix pkgconfig \
python:3.7+ shebangfix
USE_GNOME= pygobject3
SHEBANG_FILES= exercises/standard/lesson-files/bin/csound-play-harmonic-interval.sh
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --disable-oss-sound \
--enable-docbook-stylesheet=${STYLESHEET}
CONFIGURE_ENV= ac_cv_path_XML2PO=""
MAKE_ARGS= nopycompile=YES \
skipmanual=yes
NO_ARCH= yes
# Restrict to stable (even) versions, indicated by the second component.
PORTSCOUT= limitw:1,even
STYLESHEET= ${LOCALBASE}/share/xsl/docbook/xhtml/chunk.xsl
post-patch:
@${REINPLACE_CMD} -e \
's|cp --parents|${PAX} -rw|' ${WRKSRC}/Makefile.in
@${REINPLACE_CMD} -e \
's|type=sequencer-device|type=fake-synth| ; \
s|/usr/bin|${LOCALBASE}/bin|' ${WRKSRC}/default.config
# @${FIND} ${WRKSRC} -name "*.py" | ${XARGS} ${REINPLACE_CMD} -e \
# 's|.*\(#!\).*|\1${PYTHON_CMD}|'
post-install:
@(cd ${STAGEDIR}${PREFIX} && ${PYTHON_CMD} -m compileall \
-d ${PREFIX} -f ${DATADIR_REL})
.include <bsd.port.mk>