1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-18 08:02:48 +00:00
freebsd-ports/graphics/imgv/Makefile
Gerald Pfeifer ea8c8ec7da Bump PORTREVISION for ports depending on the canonical version of GCC
as defined in Mk/bsd.default-versions.mk which has moved from GCC 8.3
to GCC 9.1 under most circumstances now after revision 507371.

This includes ports
 - with USE_GCC=yes or USE_GCC=any,
 - with USES=fortran,
 - using Mk/bsd.octave.mk which in turn features USES=fortran, and
 - with USES=compiler specifying openmp, nestedfct, c11, c++0x, c++11-lang,
   c++11-lib, c++14-lang, c++17-lang, or gcc-c++11-lib
plus, everything INDEX-11 shows with a dependency on lang/gcc9 now.

PR:		238330
2019-07-26 20:46:53 +00:00

53 lines
1.4 KiB
Makefile

# Created by: Simon Olofsson <simon@olofsson.de>
# $FreeBSD$
PORTNAME= imgv
PORTVERSION= 3.1.6
DISTVERSIONSUFFIX= -src
PORTREVISION= 8
CATEGORIES= graphics python
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/${PORTNAME}%20${PORTVERSION}
MAINTAINER= ports@FreeBSD.org
COMMENT= Unique and feature rich Image Viewer
LICENSE= GPLv2
RUN_DEPENDS= ${PYGAME} \
${PYTHON_PKGNAMEPREFIX}pillow>0:graphics/py-pillow@${PY_FLAVOR}
NO_ARCH= yes
NO_BUILD= yes
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
USES= python:2.7 shebangfix
SHEBANG_FILES= imgv.py
post-patch:
@${REINPLACE_CMD} -e \
's|%%DATADIR%%|${DATADIR}|' ${WRKSRC}/gl.py
do-configure:
@${ECHO_CMD} -n > ${WRKSRC}/__init__.py
do-install:
(cd ${WRKSRC} && ${INSTALL_SCRIPT} imgv.py \
${STAGEDIR}${PREFIX}/bin/imgv)
@${MKDIR} ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/imgv
(cd ${WRKSRC} && ${FIND} . -maxdepth 1 -type f \
-name "*.py" -a ! -name "setup.py" -a ! -name "imgv.py" | \
${XARGS} -J % ${INSTALL_DATA} % \
${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/imgv)
@${MKDIR} ${STAGEDIR}${DATADIR}/data
(cd ${WRKSRC}/data && ${INSTALL_DATA} * \
${STAGEDIR}${DATADIR}/data)
@(cd ${STAGEDIR}${PREFIX} && ${PYTHON_CMD} -m compileall \
-d ${PYTHONPREFIX_SITELIBDIR} \
-f ${PYTHONPREFIX_SITELIBDIR:S;${PREFIX}/;;})
@(cd ${STAGEDIR}${PREFIX} && ${PYTHON_CMD} -O -m compileall \
-d ${PYTHONPREFIX_SITELIBDIR} \
-f ${PYTHONPREFIX_SITELIBDIR:S;${PREFIX}/;;})
.include <bsd.port.mk>