opnsense-ports/www/unit-ruby/Makefile
Franco Fichtner f609f80dfc */*: sync with upstream
Taken from: FreeBSD
2023-05-15 09:07:47 +02:00

40 lines
908 B
Makefile

PKGNAMESUFFIX= -${UNIT_MODNAME}
UNIT_MODNAME= ruby${RUBY_VER}
COMMENT= Ruby module for NGINX Unit
RUN_DEPENDS= rackup:www/rubygem-rack22 \
unitd:www/unit
PLIST_FILES= libexec/unit/modules/${UNIT_MODNAME}.unit.so
USES= ruby
CFLAGS+= -fdeclspec
USE_RC_SUBR?= # reset to empty
MASTERDIR= ${.CURDIR}/../unit
post-configure:
cd ${CONFIGURE_WRKSRC} && \
${SETENV} ${CONFIGURE_ENV} ${CONFIGURE_CMD} ruby \
--ruby=ruby${RUBY_VER:S|.||} \
--module=${UNIT_MODNAME}
do-build:
cd ${CONFIGURE_WRKSRC} && \
${SETENV} ${MAKE_ENV} ${MAKE_CMD} ${MAKE_FLAGS} \
${MAKEFILE} ${MAKE_ARGS} ${UNIT_MODNAME}
do-install:
${MKDIR} ${STAGEDIR}${PREFIX}/libexec/unit/modules/
${INSTALL_LIB} ${WRKSRC}/build/lib/unit/modules/${UNIT_MODNAME}.unit.so \
${STAGEDIR}${PREFIX}/libexec/unit/modules/
# Overwrite the target in the ${MASTERDIR}/Makefile
post-install:
@${DO_NADA}
.include "${MASTERDIR}/Makefile"