aboutsummaryrefslogtreecommitdiffstats
path: root/irc/gseen.mod/Makefile
blob: c7259349cd9584a5125580b1aa6274fae611c14f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
# Ports collection makefile for:  gseen.mod
# Date created:           28 Mai 2004
# Whom:               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= gerrit.beine@gmx.de
COMMENT=    A seen-module for the eggdrop IRC bot

USE_TCL=    85+

EXTRACT_DEPENDS=    ${NONEXISTENT}:${PORTSDIR}/irc/eggdrop:extract
BUILD_DEPENDS=  eggdrop:${PORTSDIR}/irc/eggdrop
RUN_DEPENDS=    eggdrop:${PORTSDIR}/irc/eggdrop

WRKSRC=     ${WRKDIR}/eggdrop

CONFIGURE_ARGS= --with-tcllib=${LOCALBASE}/lib/libtcl${TCL_VER:S/.//}.so \
        --with-tclinc=${TCL_INCLUDEDIR}/tcl.h

GNU_CONGFIGURE= yes

do-extract:
    @${RM} -rf ${WRKDIR}
    @${MKDIR} ${WRKDIR}
    @${CP} -R ${WRKDIRPREFIX}${.CURDIR}/../../irc/eggdrop/work/eggdrop1.6.20 ${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

do-install:
    @${INSTALL_PROGRAM} ${WRKSRC}/gseen.so ${PREFIX}/lib/eggdrop
    @${INSTALL_DATA} ${WRKSRC}/src/mod/gseen.mod/*lang ${PREFIX}/share/eggdrop/language
    @${INSTALL_DATA} ${WRKSRC}/src/mod/gseen.mod/gseen.conf ${PREFIX}/etc
    @${ECHO_MSG} "Please add the line"
    @${ECHO_MSG} "source ${PREFIX}/etc/gseen.conf"
    @${ECHO_MSG} "at the end of your eggdrop config file"
    @${ECHO_MSG} "and .rehash your bot"

.include <bsd.port.mk>