Update www/firefox-esr to version 102.5.0,1
[dports.git] / www / unit-python / Makefile
1 PKGNAMESUFFIX=  -${UNIT_MODNAME}
2
3 UNIT_MODNAME=   python${PYTHON_SUFFIX}
4
5 COMMENT=        Python module for NGINX Unit
6
7 USES=           python:3.7-3.10 gettext-runtime
8 USE_PYTHON=     flavors
9
10 PLIST_FILES=    libexec/unit/modules/${UNIT_MODNAME}.unit.so
11
12 RUN_DEPENDS=    unitd:www/unit
13
14 USE_RC_SUBR?=   # reset to empty
15
16 MASTERDIR=      ${.CURDIR}/../unit
17
18 post-configure:
19         cd ${CONFIGURE_WRKSRC} && \
20         ${SETENV} ${CONFIGURE_ENV} ${CONFIGURE_CMD} python \
21                 --module=${UNIT_MODNAME} \
22                 --config=${PYTHON_CMD}-config
23
24 do-build:
25         cd ${CONFIGURE_WRKSRC} && \
26                 ${SETENV} ${MAKE_ENV} ${MAKE_CMD} ${MAKE_FLAGS} \
27                         ${MAKEFILE} ${MAKE_ARGS} ${UNIT_MODNAME}
28
29 do-install:
30         ${MKDIR} ${STAGEDIR}${PREFIX}/libexec/unit/modules/
31         ${INSTALL_LIB} ${WRKSRC}/build/${UNIT_MODNAME}.unit.so \
32                 ${STAGEDIR}${PREFIX}/libexec/unit/modules/
33
34 # Overwrite the target in the ${MASTERDIR}/Makefile
35 post-install:
36         @${DO_NADA}
37
38 .include "${MASTERDIR}/Makefile"