- Convert to USES=tcl

- STAGE-clean
This commit is contained in:
Pietro Cerutti 2014-02-20 09:47:01 +00:00
parent 87294f0f15
commit 735668549a
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=345196
2 changed files with 39 additions and 115 deletions

View file

@ -14,18 +14,18 @@ COMMENT= The most popular open source Internet Relay Chat bot
LICENSE= GPLv2 LICENSE= GPLv2
USE_TCL= 85+ OPTIONS_DEFINE= DOCS
USES= tcl:85+
GNU_CONFIGURE= yes GNU_CONFIGURE= yes
CONFIGURE_ARGS+=--with-tcllib=${LOCALBASE}/lib/libtcl${TCL_VER:S/.//}.so \ CONFIGURE_ARGS+=--with-tcllib=${LOCALBASE}/lib/libtcl${TCL_SHLIB_VER}.so \
--with-tclinc=${LOCALBASE}/include/tcl${TCL_VER}/tcl.h --with-tclinc=${LOCALBASE}/include/tcl${TCL_VER}/tcl.h
MAKE_JOBS_UNSAFE= yes MAKE_JOBS_UNSAFE= yes
MAN1= eggdrop.1
SUB_FILES= pkg-message SUB_FILES= pkg-message
PORTDOCS= *
NO_STAGE= yes .include <bsd.port.options.mk>
.include <bsd.port.pre.mk>
post-patch: post-patch:
@${SED} -e 's#%%PREFIX%%#${PREFIX}#g' ${WRKSRC}/eggdrop.conf \ @${SED} -e 's#%%PREFIX%%#${PREFIX}#g' ${WRKSRC}/eggdrop.conf \
@ -37,16 +37,16 @@ post-configure:
# @(cd ${WRKSRC}/src && ${LN} -fs ../config.h) # @(cd ${WRKSRC}/src && ${LN} -fs ../config.h)
do-install: do-install:
${INSTALL_PROGRAM} ${WRKSRC}/eggdrop ${PREFIX}/bin ${INSTALL_PROGRAM} ${WRKSRC}/eggdrop ${STAGEDIR}${PREFIX}/bin
${INSTALL_MAN} ${WRKSRC}/doc/man1/eggdrop.1 ${MANPREFIX}/man/man1 ${INSTALL_MAN} ${WRKSRC}/doc/man1/eggdrop.1 ${STAGEDIR}${PREFIX}/man/man1
${INSTALL_DATA} ${WRKSRC}/eggdrop.conf.sample ${PREFIX}/etc ${INSTALL_DATA} ${WRKSRC}/eggdrop.conf.sample ${STAGEDIR}${PREFIX}/etc
@${MKDIR} ${PREFIX}/lib/eggdrop @${MKDIR} ${STAGEDIR}${PREFIX}/lib/eggdrop
.for f in assoc.so blowfish.so channels.so compress.so console.so ctcp.so \ .for f in assoc.so blowfish.so channels.so compress.so console.so ctcp.so \
dns.so filesys.so irc.so notes.so seen.so server.so share.so \ dns.so filesys.so irc.so notes.so seen.so server.so share.so \
transfer.so uptime.so wire.so transfer.so uptime.so wire.so
${INSTALL_DATA} ${WRKSRC}/${f} ${PREFIX}/lib/eggdrop ${INSTALL_PROGRAM} ${WRKSRC}/${f} ${STAGEDIR}${PREFIX}/lib/eggdrop
.endfor .endfor
@${MKDIR} ${DATADIR}/help @${MKDIR} ${STAGEDIR}${DATADIR}/help
.for f in assoc.mod/help/assoc.help channels.mod/help/chaninfo.help \ .for f in assoc.mod/help/assoc.help channels.mod/help/chaninfo.help \
channels.mod/help/channels.help console.mod/help/console.help \ channels.mod/help/channels.help console.mod/help/console.help \
compress.mod/help/compress.help ctcp.mod/help/ctcp.help \ compress.mod/help/compress.help ctcp.mod/help/ctcp.help \
@ -55,64 +55,63 @@ do-install:
server.mod/help/server.help share.mod/help/share.help \ server.mod/help/server.help share.mod/help/share.help \
transfer.mod/help/transfer.help uptime.mod/help/uptime.help \ transfer.mod/help/transfer.help uptime.mod/help/uptime.help \
wire.mod/help/wire.help wire.mod/help/wire.help
${INSTALL_DATA} ${WRKSRC}/src/mod/${f} ${DATADIR}/help ${INSTALL_DATA} ${WRKSRC}/src/mod/${f} ${STAGEDIR}${DATADIR}/help
.endfor .endfor
@${MKDIR} ${DATADIR}/help/set @${MKDIR} ${STAGEDIR}${DATADIR}/help/set
.for f in channels.mod/help/set/channels.help \ .for f in channels.mod/help/set/channels.help \
compress.mod/help/set/compress.help \ compress.mod/help/set/compress.help \
console.mod/help/set/console.help ctcp.mod/help/set/ctcp.help \ console.mod/help/set/console.help ctcp.mod/help/set/ctcp.help \
filesys.mod/help/set/filesys.help irc.mod/help/set/irc.help \ filesys.mod/help/set/filesys.help irc.mod/help/set/irc.help \
notes.mod/help/set/notes.help server.mod/help/set/server.help \ notes.mod/help/set/notes.help server.mod/help/set/server.help \
share.mod/help/set/share.help transfer.mod/help/set/transfer.help share.mod/help/set/share.help transfer.mod/help/set/transfer.help
${INSTALL_DATA} ${WRKSRC}/src/mod/$f ${DATADIR}/help/set ${INSTALL_DATA} ${WRKSRC}/src/mod/$f ${STAGEDIR}${DATADIR}/help/set
.endfor .endfor
@${MKDIR} ${DATADIR}/help/msg @${MKDIR} ${STAGEDIR}${DATADIR}/help/msg
.for f in irc.mod/help/msg/irc.help notes.mod/help/msg/notes.help \ .for f in irc.mod/help/msg/irc.help notes.mod/help/msg/notes.help \
seen.mod/help/msg/seen.help seen.mod/help/msg/seen.help
${INSTALL_DATA} ${WRKSRC}/src/mod/$f ${DATADIR}/help/msg ${INSTALL_DATA} ${WRKSRC}/src/mod/$f ${STAGEDIR}${DATADIR}/help/msg
.endfor .endfor
@${MKDIR} ${DATADIR}/language @${MKDIR} ${STAGEDIR}${DATADIR}/language
${INSTALL_DATA} ${WRKSRC}/language/core.*.lang ${DATADIR}/language ${INSTALL_DATA} ${WRKSRC}/language/core.*.lang ${STAGEDIR}${DATADIR}/language
@cd ${WRKSRC}/src/mod \ @cd ${WRKSRC}/src/mod \
&& ${FIND} . -name "*.lang" -exec ${INSTALL_DATA} "{}" \ && ${FIND} . -name "*.lang" -exec ${INSTALL_DATA} "{}" \
${DATADIR}/language ";" ${STAGEDIR}${DATADIR}/language ";"
@${MKDIR} ${DATADIR}/scripts @${MKDIR} ${STAGEDIR}${DATADIR}/scripts
.for f in CONTENTS action.fix.tcl autobotchk alltools.tcl botchk \ .for f in CONTENTS action.fix.tcl autobotchk alltools.tcl botchk \
cmd_resolve.tcl compat.tcl dccwhois.tcl getops.tcl klined.tcl notes2.tcl ques5.tcl \ cmd_resolve.tcl compat.tcl dccwhois.tcl getops.tcl klined.tcl notes2.tcl ques5.tcl \
quotepass.tcl quotepong.tcl sentinel.tcl userinfo.tcl weed quotepass.tcl quotepong.tcl sentinel.tcl userinfo.tcl weed
${INSTALL_DATA} ${WRKSRC}/scripts/${f} ${DATADIR}/scripts ${INSTALL_DATA} ${WRKSRC}/scripts/${f} ${STAGEDIR}${DATADIR}/scripts
.endfor .endfor
@${MKDIR} ${DATADIR}/scripts/help @${MKDIR} ${STAGEDIR}${DATADIR}/scripts/help
.for f in cmd_resolve.help userinfo.help .for f in cmd_resolve.help userinfo.help
${INSTALL_DATA} ${WRKSRC}/scripts/help/${f} ${DATADIR}/scripts/help ${INSTALL_DATA} ${WRKSRC}/scripts/help/${f} ${STAGEDIR}${DATADIR}/scripts/help
.endfor .endfor
@${MKDIR} ${DATADIR}/scripts/help/msg @${MKDIR} ${STAGEDIR}${DATADIR}/scripts/help/msg
.for f in userinfo.help .for f in userinfo.help
${INSTALL_DATA} ${WRKSRC}/scripts/help/msg/${f} ${DATADIR}/scripts/help/msg ${INSTALL_DATA} ${WRKSRC}/scripts/help/msg/${f} ${STAGEDIR}${DATADIR}/scripts/help/msg
.endfor .endfor
.for f in cmds1.help cmds2.help core.help .for f in cmds1.help cmds2.help core.help
${INSTALL_DATA} ${WRKSRC}/help/${f} ${DATADIR}/help ${INSTALL_DATA} ${WRKSRC}/help/${f} ${STAGEDIR}${DATADIR}/help
.endfor .endfor
.for f in cmds1.help .for f in cmds1.help
${INSTALL_DATA} ${WRKSRC}/help/set/${f} ${DATADIR}/help/set ${INSTALL_DATA} ${WRKSRC}/help/set/${f} ${STAGEDIR}${DATADIR}/help/set
.endfor .endfor
@${MKDIR} ${DATADIR}/text @${MKDIR} ${STAGEDIR}${DATADIR}/text
.for f in banner motd .for f in banner motd
${INSTALL_DATA} ${WRKSRC}/text/${f} ${DATADIR}/text ${INSTALL_DATA} ${WRKSRC}/text/${f} ${STAGEDIR}${DATADIR}/text
.endfor .endfor
.if !defined(NOPORTDOCS) .if ${PORT_OPTIONS:MDOCS}
@${MKDIR} ${DOCSDIR} @${MKDIR} ${STAGEDIR}${DOCSDIR}
.for f in ABOUT BANS BOTNET BUG-REPORT COMPILE-GUIDE CONTENTS \ .for f in ABOUT BANS BOTNET BUG-REPORT COMPILE-GUIDE CONTENTS \
FIRST-SCRIPT KNOWN-PROBLEMS MODULES PARTYLINE PATCH-HOWTO \ FIRST-SCRIPT KNOWN-PROBLEMS MODULES PARTYLINE PATCH-HOWTO \
TEXT-SUBSTITUTIONS TRICKS Changes1.6 USERS WEIRD-MESSAGES \ TEXT-SUBSTITUTIONS TRICKS Changes1.6 USERS WEIRD-MESSAGES \
tcl-commands.doc tcl-commands.doc
${INSTALL_DATA} ${WRKSRC}/doc/${f} ${DOCSDIR} ${INSTALL_DATA} ${WRKSRC}/doc/${f} ${STAGEDIR}${DOCSDIR}
.endfor .endfor
@${MKDIR} ${DOCSDIR}/html @${MKDIR} ${STAGEDIR}${DOCSDIR}/html
cd ${WRKSRC}/doc/html && ${INSTALL_DATA} *.html ${DOCSDIR}/html cd ${WRKSRC}/doc/html && ${INSTALL_DATA} *.html ${STAGEDIR}${DOCSDIR}/html
@${MKDIR} ${DOCSDIR}/settings @${MKDIR} ${STAGEDIR}${DOCSDIR}/settings
cd ${WRKSRC}/doc/settings && ${INSTALL_DATA} * ${DOCSDIR}/settings cd ${WRKSRC}/doc/settings && ${INSTALL_DATA} * ${STAGEDIR}${DOCSDIR}/settings
.endif .endif
@${CAT} ${PKGMESSAGE}
.include <bsd.port.post.mk> .include <bsd.port.mk>

View file

@ -1,5 +1,6 @@
bin/eggdrop bin/eggdrop
etc/eggdrop.conf.sample etc/eggdrop.conf.sample
man/man1/eggdrop.1.gz
lib/eggdrop/assoc.so lib/eggdrop/assoc.so
lib/eggdrop/blowfish.so lib/eggdrop/blowfish.so
lib/eggdrop/channels.so lib/eggdrop/channels.so
@ -16,79 +17,6 @@ lib/eggdrop/share.so
lib/eggdrop/transfer.so lib/eggdrop/transfer.so
lib/eggdrop/uptime.so lib/eggdrop/uptime.so
lib/eggdrop/wire.so lib/eggdrop/wire.so
%%PORTDOCS%%%%DOCSDIR%%/ABOUT
%%PORTDOCS%%%%DOCSDIR%%/BANS
%%PORTDOCS%%%%DOCSDIR%%/BOTNET
%%PORTDOCS%%%%DOCSDIR%%/BUG-REPORT
%%PORTDOCS%%%%DOCSDIR%%/COMPILE-GUIDE
%%PORTDOCS%%%%DOCSDIR%%/CONTENTS
%%PORTDOCS%%%%DOCSDIR%%/Changes1.6
%%PORTDOCS%%%%DOCSDIR%%/FIRST-SCRIPT
%%PORTDOCS%%%%DOCSDIR%%/KNOWN-PROBLEMS
%%PORTDOCS%%%%DOCSDIR%%/MODULES
%%PORTDOCS%%%%DOCSDIR%%/PARTYLINE
%%PORTDOCS%%%%DOCSDIR%%/PATCH-HOWTO
%%PORTDOCS%%%%DOCSDIR%%/TEXT-SUBSTITUTIONS
%%PORTDOCS%%%%DOCSDIR%%/TRICKS
%%PORTDOCS%%%%DOCSDIR%%/USERS
%%PORTDOCS%%%%DOCSDIR%%/WEIRD-MESSAGES
%%PORTDOCS%%%%DOCSDIR%%/html/about.html
%%PORTDOCS%%%%DOCSDIR%%/html/app-problems.html
%%PORTDOCS%%%%DOCSDIR%%/html/app-textsub.html
%%PORTDOCS%%%%DOCSDIR%%/html/app-tricks.html
%%PORTDOCS%%%%DOCSDIR%%/html/app-weird.html
%%PORTDOCS%%%%DOCSDIR%%/html/bans.html
%%PORTDOCS%%%%DOCSDIR%%/html/botnet.html
%%PORTDOCS%%%%DOCSDIR%%/html/compiling.html
%%PORTDOCS%%%%DOCSDIR%%/html/egg-core.html
%%PORTDOCS%%%%DOCSDIR%%/html/faqs.html
%%PORTDOCS%%%%DOCSDIR%%/html/features.html
%%PORTDOCS%%%%DOCSDIR%%/html/index.html
%%PORTDOCS%%%%DOCSDIR%%/html/install.html
%%PORTDOCS%%%%DOCSDIR%%/html/mod-assoc.html
%%PORTDOCS%%%%DOCSDIR%%/html/mod-blowfish.html
%%PORTDOCS%%%%DOCSDIR%%/html/mod-channels.html
%%PORTDOCS%%%%DOCSDIR%%/html/mod-compress.html
%%PORTDOCS%%%%DOCSDIR%%/html/mod-console.html
%%PORTDOCS%%%%DOCSDIR%%/html/mod-ctcp.html
%%PORTDOCS%%%%DOCSDIR%%/html/mod-dns.html
%%PORTDOCS%%%%DOCSDIR%%/html/mod-filesys.html
%%PORTDOCS%%%%DOCSDIR%%/html/mod-irc.html
%%PORTDOCS%%%%DOCSDIR%%/html/mod-notes.html
%%PORTDOCS%%%%DOCSDIR%%/html/mod-seen.html
%%PORTDOCS%%%%DOCSDIR%%/html/mod-server.html
%%PORTDOCS%%%%DOCSDIR%%/html/mod-share.html
%%PORTDOCS%%%%DOCSDIR%%/html/mod-transfer.html
%%PORTDOCS%%%%DOCSDIR%%/html/mod-uptime.html
%%PORTDOCS%%%%DOCSDIR%%/html/mod-wire.html
%%PORTDOCS%%%%DOCSDIR%%/html/mod-woobie.html
%%PORTDOCS%%%%DOCSDIR%%/html/news.html
%%PORTDOCS%%%%DOCSDIR%%/html/party.html
%%PORTDOCS%%%%DOCSDIR%%/html/patch-howto.html
%%PORTDOCS%%%%DOCSDIR%%/html/readme.html
%%PORTDOCS%%%%DOCSDIR%%/html/starting.html
%%PORTDOCS%%%%DOCSDIR%%/html/tcl-commands.html
%%PORTDOCS%%%%DOCSDIR%%/html/users.html
%%PORTDOCS%%%%DOCSDIR%%/settings/CONTENTS
%%PORTDOCS%%%%DOCSDIR%%/settings/core.settings
%%PORTDOCS%%%%DOCSDIR%%/settings/mod.assoc
%%PORTDOCS%%%%DOCSDIR%%/settings/mod.blowfish
%%PORTDOCS%%%%DOCSDIR%%/settings/mod.channels
%%PORTDOCS%%%%DOCSDIR%%/settings/mod.compress
%%PORTDOCS%%%%DOCSDIR%%/settings/mod.console
%%PORTDOCS%%%%DOCSDIR%%/settings/mod.ctcp
%%PORTDOCS%%%%DOCSDIR%%/settings/mod.dns
%%PORTDOCS%%%%DOCSDIR%%/settings/mod.filesys
%%PORTDOCS%%%%DOCSDIR%%/settings/mod.irc
%%PORTDOCS%%%%DOCSDIR%%/settings/mod.notes
%%PORTDOCS%%%%DOCSDIR%%/settings/mod.seen
%%PORTDOCS%%%%DOCSDIR%%/settings/mod.server
%%PORTDOCS%%%%DOCSDIR%%/settings/mod.share
%%PORTDOCS%%%%DOCSDIR%%/settings/mod.transfer
%%PORTDOCS%%%%DOCSDIR%%/settings/mod.uptime
%%PORTDOCS%%%%DOCSDIR%%/settings/mod.wire
%%PORTDOCS%%%%DOCSDIR%%/settings/mod.woobie
%%PORTDOCS%%%%DOCSDIR%%/tcl-commands.doc
%%DATADIR%%/help/assoc.help %%DATADIR%%/help/assoc.help
%%DATADIR%%/help/chaninfo.help %%DATADIR%%/help/chaninfo.help
%%DATADIR%%/help/channels.help %%DATADIR%%/help/channels.help
@ -187,7 +115,4 @@ lib/eggdrop/wire.so
@dirrm %%DATADIR%%/help/msg @dirrm %%DATADIR%%/help/msg
@dirrm %%DATADIR%%/help @dirrm %%DATADIR%%/help
@dirrm %%DATADIR%% @dirrm %%DATADIR%%
%%PORTDOCS%%@dirrm %%DOCSDIR%%/settings
%%PORTDOCS%%@dirrm %%DOCSDIR%%/html
%%PORTDOCS%%@dirrm %%DOCSDIR%%
@dirrm lib/eggdrop @dirrm lib/eggdrop