mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-25 00:51:21 +00:00
bb4db2752a
resulted in wrong HAVE_LUA_5_0 (instead of correct HAVE_LUA_5_1) macro to be defined in generated `config.h' header file - Stagify and cleanup all verlihub-plugins* ports while I'm at here
43 lines
1.3 KiB
Makefile
43 lines
1.3 KiB
Makefile
# $FreeBSD$
|
|
|
|
# common bits for verlihub plugins
|
|
|
|
# this controls DISTNAME
|
|
PLUGIN_NAME?= ${PORTNAME}
|
|
|
|
PKGNAMEPREFIX= verlihub-plugins-
|
|
DISTNAME= ${PLUGIN_NAME}-${PORTVERSION}
|
|
WRKSRC?= ${WRKDIR}/${PLUGIN_NAME}
|
|
|
|
COMMENT?= ${PLUGIN_DESC} plugin for the VerliHub - a Direct Connect protocol server
|
|
|
|
BUILD_DEPENDS+= ${LOCALBASE}/bin/verlihub:${PORTSDIR}/net-p2p/verlihub
|
|
RUN_DEPENDS+= ${LOCALBASE}/bin/verlihub:${PORTSDIR}/net-p2p/verlihub
|
|
|
|
USE_GCC= any
|
|
GNU_CONFIGURE= yes
|
|
CFLAGS+= -fPIC
|
|
|
|
PLIST_FILES+= lib/lib${PLUGIN_NAME}_pi.a \
|
|
lib/lib${PLUGIN_NAME}_pi.la \
|
|
lib/lib${PLUGIN_NAME}_pi.so \
|
|
lib/lib${PLUGIN_NAME}_pi.so.0 \
|
|
etc/verlihub/plugins/lib${PLUGIN_NAME}_pi.so
|
|
|
|
PKGMESSAGE= ${WRKDIR}/pkg-message
|
|
PKGMESSAGE_TEMPLATE= ${PORTSDIR}/net-p2p/verlihub-plugins/pkg-message.plugins
|
|
|
|
post-patch::
|
|
@${REINPLACE_CMD} -e 's,echo aout,echo elf,' ${WRKSRC}/configure
|
|
|
|
post-build::
|
|
@${SED} -e 's,%%PLUGIN_DESC%%,${PLUGIN_DESC},' < \
|
|
${PKGMESSAGE_TEMPLATE} > ${PKGMESSAGE}
|
|
|
|
post-install::
|
|
@${MKDIR} ${STAGEDIR}${PREFIX}/etc/verlihub/plugins
|
|
${LN} -sf ../../../lib/lib${PLUGIN_NAME}_pi.so \
|
|
${STAGEDIR}${PREFIX}/etc/verlihub/plugins
|
|
@${ECHO_CMD} '@unexec rmdir %D/etc/verlihub/plugins 2>/dev/null || true' >> ${TMPPLIST}
|
|
@${ECHO_CMD} '@unexec rmdir %D/etc/verlihub 2>/dev/null || true' >> ${TMPPLIST}
|