67971bd0fb
- Support multiple values in *_OLD_CMD, i.e. we can now fix both "/usr/bin/python" and "/usr/bin/env python" at the same time - Default *_OLD_CMD values are now always appended, so you don't need to specify them in individual ports - Add lua support (depends on USES=lua) - Add more default values, such as "/usr/bin/env foo" for python, perl, bash, ruby and lua - Shebangfix now matches whole words, e.g. we will no longer (erroneously) replace "/usr/bin/perl5.005" with "${perl_CMD}5.005" (but "/usr/bin/perl -tt" is still (correctly) replaced with "${perl_CMD} -tt") Note that *_OLD_CMD items containing spaces must now be quoted (e.g. perl_OLD_CMD=/bin/perl /usr/bin/perl "/usr/bin/env perl") Update shebangfix usage according to new rules in many ports: - Remove *_OLD_CMD for patterns now replaced by default - Quote custom *_OLD_CMD which contain spaces Fix shebangfix usage in many ports (irrelevant to infrastructure change): - Remove redundant SHEBANG_LANG (no need to duplicate default langs) - Remove redundant *_CMD (such as python_CMD=${LOCALBASE}/bin/python${PYTHON_VER} when USES=python is present) - Never use *_OLD_CMD in REINPLACE_CMD matchers, these should always look for exact string Approved by: portmgr (bapt) Differential Revision: D3756
44 lines
1.3 KiB
Makefile
44 lines
1.3 KiB
Makefile
# Created by: Olivier Duchateau
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= lollypop
|
|
PORTVERSION= 0.9.15
|
|
CATEGORIES= audio
|
|
MASTER_SITES= https://github.com/gnumdk/${PORTNAME}/releases/download/${PORTVERSION}/
|
|
|
|
MAINTAINER= olivierd@FreeBSD.org
|
|
COMMENT= Play and organize your music collection
|
|
|
|
LICENSE= GPLv3
|
|
LICENSE_FILE= ${WRKSRC}/COPYING
|
|
|
|
BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}sqlite3>=2.7.8:${PORTSDIR}/databases/py-sqlite3 \
|
|
${PYTHON_PKGNAMEPREFIX}dbus>=1.1.1:${PORTSDIR}/devel/py3-dbus \
|
|
${PYTHON_PKGNAMEPREFIX}gstreamer1>=1.4.0:${PORTSDIR}/multimedia/py3-gstreamer1
|
|
LIB_DEPENDS= libnotify.so:${PORTSDIR}/devel/libnotify \
|
|
libtotem-plparser.so:${PORTSDIR}/multimedia/totem-pl-parser
|
|
|
|
USES= shebangfix python:3 pkgconfig gettext gmake tar:xz
|
|
GNU_CONFIGURE= yes
|
|
USE_GNOME= glib20 gtk30 py3gobject3 introspection:build intltool intlhack
|
|
USE_SQLITE= yes
|
|
USE_GSTREAMER1= yes mad ogg flac opus libav faad good speex
|
|
USE_PYTHON= py3kplist
|
|
INSTALLS_ICONS= yes
|
|
|
|
SHEBANG_FILES= src/*.py
|
|
|
|
GLIB_SCHEMAS= org.gnome.Lollypop.gschema.xml
|
|
|
|
OPTIONS_DEFINE= PULSEAUDIO
|
|
PULSEAUDIO_USE= gstreamer1=pulse
|
|
|
|
SUB_FILES= pkg-message
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
.if defined(PACKAGE_BUILDING) && ${PYTHON_VER} != ${PYTHON_DEFAULT}
|
|
IGNORE= you have python ${PYTHON_DEFAULT} set as the default, and this needs ${PYTHON_VER}
|
|
.endif
|
|
|
|
.include <bsd.port.post.mk>
|