Skip to content

Commit

Permalink
devel/py-fam: Fix build with llvm15
Browse files Browse the repository at this point in the history
- Adopt port
  • Loading branch information
5u623l20 committed Jun 4, 2023
1 parent db53b5a commit 6320c4c
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions devel/py-fam/Makefile
Expand Up @@ -6,7 +6,7 @@ MASTER_SITES= SF/python-${PORTNAME}/python-${PORTNAME}/${PORTVERSION}
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
DISTNAME= python-fam-${PORTVERSION}

MAINTAINER= ports@FreeBSD.org
MAINTAINER= bofh@FreeBSD.org
COMMENT= Python Interface to the File Alteration Monitor
WWW= http://python-fam.sourceforge.net/

Expand All @@ -16,10 +16,16 @@ LICENSE_FILE= ${WRKSRC}/COPYING
USES= python:3.6+ fam
USE_PYTHON= distutils autoplist

.include <bsd.port.pre.mk>

.if ${OPSYS} == FreeBSD && ( ${OSVERSION} >= 1400079 || ( ${OSVERSION} >= 1302505 && ${OSVERSION} < 1400000 ))
CFLAGS+= -Wno-error=int-conversion
.endif

pre-patch:
${INSTALL_DATA} ${FILESDIR}/setup.py ${WRKSRC}

post-install:
${STRIP_CMD} ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/_fam*.so

.include <bsd.port.mk>
.include <bsd.port.post.mk>

0 comments on commit 6320c4c

Please sign in to comment.