mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-06 01:57:40 +00:00
b9398223bd
Approved by: portmgr blanket
57 lines
1.6 KiB
Makefile
57 lines
1.6 KiB
Makefile
# Created by: Gerrit Beine (<tux@pinguru.net>)
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= gseen.mod
|
|
PORTVERSION= 1.1.1.p3
|
|
PORTREVISION= 4
|
|
CATEGORIES= irc
|
|
MASTER_SITES= http://www.kreativrauschen.de/gseen.mod/
|
|
DISTNAME= ${PORTNAME}.${PORTVERSION:S/p/dev/}
|
|
|
|
MAINTAINER= ports@FreeBSD.org
|
|
COMMENT= Seen-module for the eggdrop IRC bot
|
|
|
|
LICENSE= GPLv2+
|
|
|
|
EXTRACT_DEPENDS=${NONEXISTENT}:${PORTSDIR}/irc/eggdrop:extract
|
|
BUILD_DEPENDS= eggdrop:${PORTSDIR}/irc/eggdrop
|
|
RUN_DEPENDS= eggdrop:${PORTSDIR}/irc/eggdrop
|
|
|
|
USES= tcl:85+
|
|
GNU_CONGFIGURE= yes
|
|
CONFIGURE_ARGS= --with-tcllib=${LOCALBASE}/lib/libtcl${TCL_VER:S/.//}.so \
|
|
--with-tclinc=${TCL_INCLUDEDIR}/tcl.h
|
|
WRKSRC= ${WRKDIR}/eggdrop
|
|
MAKE_JOBS_UNSAFE= yes
|
|
|
|
SUB_FILES= pkg-message
|
|
|
|
do-extract:
|
|
@${RM} -rf ${WRKDIR}
|
|
@${MKDIR} ${WRKDIR}
|
|
@${CP} -R $$(${MAKE} -C ${PORTSDIR}/irc/eggdrop -V WRKSRC) ${WRKSRC}
|
|
cd ${WRKSRC}/src/mod && ${EXTRACT_CMD} ${EXTRACT_BEFORE_ARGS} ${_DISTDIR}/${EXTRACT_ONLY} ${EXTRACT_AFTER_ARGS}
|
|
|
|
post-extract:
|
|
@${REINPLACE_CMD} -e 's|"-g -O2"|"${CFLAGS}"|' \
|
|
-e 's|"-g"|"${CFLAGS}"|' \
|
|
-e 's|"-O2"|"${CFLAGS}"|' \
|
|
${WRKSRC}/configure
|
|
|
|
pre-build:
|
|
@${ECHO_CMD} gseen.mod >> ${WRKSRC}/.modules
|
|
@${ECHO_CMD} gseen.mod >> ${WRKSRC}/.known_modules
|
|
@cd ${WRKSRC} && ./configure ${CONFIGURE_ARGS}
|
|
|
|
do-install:
|
|
@${MKDIR} ${STAGEDIR}${LOCALBASE}/lib/eggdrop \
|
|
${STAGEDIR}${LOCALBASE}/share/eggdrop/language
|
|
${INSTALL_PROGRAM} ${WRKSRC}/gseen.so \
|
|
${STAGEDIR}${LOCALBASE}/lib/eggdrop
|
|
${INSTALL_DATA} ${WRKSRC}/src/mod/gseen.mod/*lang \
|
|
${STAGEDIR}${LOCALBASE}/share/eggdrop/language
|
|
${INSTALL_DATA} ${WRKSRC}/src/mod/gseen.mod/gseen.conf \
|
|
${STAGEDIR}${PREFIX}/etc
|
|
|
|
.include <bsd.port.mk>
|