1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-19 00:13:33 +00:00
freebsd-ports/x11/autorandr/Makefile
Rene Ladan 3d9a815d9c all: remove explicit versions in USES=python for "3.x+"
The logic in USES=python will automatically convert this to 3.8+ by
itself.

Adjust two ports that only had Python 3.7 mentioned but build fine
on Python 3.8 too.

finance/quickfix: mark BROKEN with PYTHON

libtool: compile:  c++ -DHAVE_CONFIG_H -I. -I../.. -I -I. -I.. -I../.. -I../C++ -DLIBICONV_PLUG -DPYTHON_MAJOR_VERSION=3 -Wno-unused-variable -Wno-maybe-uninitialized -O2 -pipe -DLIBICONV_PLUG -fstack-protector-strong -fno-strict-aliasing -DLIBICONV_PLUG -Wall -ansi -Wno-unused-command-line-argument -Wpointer-arith -Wwrite-strings -Wno-overloaded-virtual -Wno-deprecated-declarations -Wno-deprecated -std=c++0x -MT _quickfix_la-QuickfixPython.lo -MD -MP -MF .deps/_quickfix_la-QuickfixPython.Tpo -c QuickfixPython.cpp  -fPIC -DPIC -o .libs/_quickfix_la-QuickfixPython.o
warning: unknown warning option '-Wno-maybe-uninitialized'; did you mean '-Wno-uninitialized'? [-Wunknown-warning-option]
QuickfixPython.cpp:175:11: fatal error: 'Python.h' file not found
          ^~~~~~~~~~
1 warning and 1 error generated.

Reviewed by:	portmgr, vishwin, yuri
Differential Revision:	<https://reviews.freebsd.org/D40568>
2023-06-27 21:34:34 +02:00

56 lines
1.7 KiB
Makefile

PORTNAME= autorandr
DISTVERSION= 1.12.1
CATEGORIES= x11
PATCH_SITES= https://github.com/phillipberndt/autorandr/commit/
PATCHFILES= 2bc71d562765e2023b26a31c485769612e3eb91e.patch:-p1 # PR 282
MAINTAINER= 0mp@FreeBSD.org
COMMENT= Auto-detect displays and configure them with xrandr
WWW= https://github.com/phillipberndt/autorandr
LICENSE= GPLv3
LICENSE_FILE= ${WRKSRC}/gpl-3.0.txt
BUILD_DEPENDS= gsed:textproc/gsed
RUN_DEPENDS= xrandr:x11/xrandr
USES= gmake pkgconfig python:3.8-3.10 shebangfix xorg
# Use GitHub instead of MASTER_SITES=PYPI to get additional files like
# the manual page and the license.
USE_GITHUB= yes
GH_ACCOUNT= phillipberndt
USE_PYTHON= autoplist concurrent distutils
USE_XORG= xcb
MAKE_ARGS= BASH_COMPLETIONS_DIR=${PREFIX}/share/bash-completion/completions \
PREFIX=${PREFIX} \
XDG_AUTOSTART_DIR=${PREFIX}/etc/xdg/autostart
BINARY_ALIAS= sed=gsed
PLIST_FILES= bin/${PORTNAME}-launcher \
etc/xdg/autostart/autorandr-launcher.desktop \
share/bash-completion/completions/autorandr \
share/man/man1/${PORTNAME}.1.gz
_EXTRA_BUILD_TARGETS= contrib/autorandr_launcher/autorandr-launcher
_EXTRA_INSTALL_TARGETS= install_bash_completion install_launcher \
install_manpage
# Regenerate the patches with:
# make clean extract do-patch PATCHFILES=
post-patch:
${REINPLACE_CMD} 's|%%PREFIX%%|${PREFIX}|g' \
${WRKSRC}/${PORTNAME}.py \
${WRKSRC}/contrib/autorandr_launcher/autorandr_launcher.c
post-build:
${SETENV} ${MAKE_ENV} ${MAKE_CMD} -C ${BUILD_WRKSRC} ${MAKE_ARGS} \
${_EXTRA_BUILD_TARGETS}
post-install:
${SETENV} ${MAKE_ENV} ${MAKE_CMD} -C ${INSTALL_WRKSRC} ${MAKE_ARGS} \
${_EXTRA_INSTALL_TARGETS}
${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/${PORTNAME}-launcher
.include <bsd.port.mk>