mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-22 04:17:44 +00:00
c37c260672
Accidentally added during WIP rebase, committed in r465900.
68 lines
1.7 KiB
Makefile
68 lines
1.7 KiB
Makefile
# Created by: Edini <ports@edini.net>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= evangeline
|
|
PORTVERSION= 1.1.4
|
|
CATEGORIES= irc tcl
|
|
MASTER_SITES= http://www.averse.piasta.pl/_data/evangeline/${PORTVERSION}/
|
|
DISTNAME= ${PORTNAME}-${PORTVERSION}-b1
|
|
|
|
MAINTAINER= ports@FreeBSD.org
|
|
COMMENT= IRC Bot based on Eggdrop
|
|
|
|
LICENSE= GPLv2
|
|
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}
|
|
|
|
USES= gmake tcl
|
|
GNU_CONFIGURE= yes
|
|
CONFIGURE_ARGS+=--with-tcllib=${LOCALBASE}/lib/libtcl${TCL_SHLIB_VER}.so \
|
|
--with-tclinc=${TCL_INCLUDEDIR}/tcl.h
|
|
LLD_UNSAFE= yes # Needs linker to provide library search paths.
|
|
|
|
PLIST_FILES= bin/evangeline
|
|
|
|
OPTIONS_DEFINE= IPV6 CRYPT
|
|
OPTIONS_DEFAULT= CRYPT
|
|
CRYPT_DESC= Enable Encryption
|
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
.if ${PORT_OPTIONS:MIPV6}
|
|
CONFIGURE_ARGS+= --enable-ipv6
|
|
.else
|
|
CONFIGURE_ARGS+= --disable-ipv6
|
|
.endif
|
|
|
|
.if ${PORT_OPTIONS:MCRYPT}
|
|
CONFIGURE_ARGS+= --enable-crypt
|
|
.else
|
|
CONFIGURE_ARGS+= --disable-crypt
|
|
.endif
|
|
|
|
pre-everything::
|
|
@${ECHO_MSG} 'To redefine the "admin" user name, set ADMIN_NAME'
|
|
@${ECHO_MSG} 'To redefine the "Permanent owner" name, set OWNER_NAME'
|
|
|
|
post-patch:
|
|
@${REINPLACE_CMD} 's,^read usersq,usersq=n,' ${WRKDIR}/evangeline/configure
|
|
|
|
# Turns out that putting ADMIN_NAME more than 9 chars creates an overflow...
|
|
# Fix that here while replacing the name.
|
|
post-configure:
|
|
.if !empty(ADMIN_NAME)
|
|
@${REINPLACE_CMD} \
|
|
's,^char admin[^ ]* = [^;]*,const char* admin = "${ADMIN_NAME}",' \
|
|
${WRKDIR}/evangeline/src/main.c
|
|
.endif
|
|
.if !empty(OWNER_NAME)
|
|
@${REINPLACE_CMD} \
|
|
's,^char owner[^ ]* = [^;]*,const char* owner = "${OWNER_NAME}",' \
|
|
${WRKDIR}/evangeline/src/main.c
|
|
.endif
|
|
|
|
do-install:
|
|
${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME}-${PORTVERSION}-B1 ${STAGEDIR}${PREFIX}/bin/evangeline
|
|
|
|
.include <bsd.port.mk>
|