mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-30 05:40:06 +00:00
de78af3ac5
Reviewed by: exp8 run on pointyhat Supported by: miwi
58 lines
1.4 KiB
Makefile
58 lines
1.4 KiB
Makefile
# New ports collection makefile for: XChat fish
|
|
# Date created: Mon Jan 17 03:22:41 UTC 2005
|
|
# Whom: Mario Sergio Fujikawa Ferreira <lioux@FreeBSD.org>
|
|
#
|
|
# $FreeBSD$
|
|
# $MCom: ports/irc/xchat-fish/Makefile,v 1.1 2006/10/04 22:30:07 ahze Exp $
|
|
|
|
PORTNAME= fish
|
|
DISTVERSION= 0.98
|
|
PORTREVISION= 3
|
|
CATEGORIES= irc security
|
|
MASTER_SITES= http://fish.secure.la/xchat/
|
|
PKGNAMEPREFIX= xchat-
|
|
DISTNAME= FiSH-XChat.v${DISTVERSION}-source
|
|
|
|
MAINTAINER= dinoex@FreeBSD.org
|
|
COMMENT= An encryption plugin for XChat
|
|
|
|
BUILD_DEPENDS= ${LOCALBASE}/lib/libmiracl.a:${PORTSDIR}/math/miracl
|
|
RUN_DEPENDS= xchat:${PORTSDIR}/irc/xchat
|
|
|
|
USE_ZIP= yes
|
|
NO_WRKSUBDIR= yes
|
|
DOCSDIR= ${PREFIX}/share/doc/${PKGNAMEPREFIX}${PORTNAME}
|
|
CCFLAGS+= -Wall -O2 -I${LOCALBASE}/include
|
|
LDFLAGS+= -L${LOCALBASE}/lib
|
|
MAKE_ENV+= CCFLAGS="${CCFLAGS}"
|
|
MAKE_ENV+= LDFLAGS="${LDFLAGS}"
|
|
|
|
PLIST_FILES= lib/xchat/plugins/xfish.so
|
|
PORTDOCS= FiSH-xchat.txt \
|
|
FiSH-xchat_History.txt
|
|
|
|
post-patch:
|
|
@${CP} -pf ${FILESDIR}/Makefile ${WRKSRC}/
|
|
@${RM} -f ${WRKSRC}/mir*
|
|
# \r\n -> \n
|
|
@${FIND} ${WRKSRC} -type f -exec \
|
|
${REINPLACE_CMD} -E \
|
|
-e 's|
|
|
||' \
|
|
{} \;
|
|
|
|
do-install:
|
|
# docs
|
|
.ifndef(NOPORTDOCS)
|
|
@${MKDIR} ${DOCSDIR}
|
|
.for doc in ${PORTDOCS}
|
|
@${INSTALL_DATA} ${WRKSRC}/${doc} \
|
|
${DOCSDIR}/
|
|
.endfor
|
|
.endif
|
|
# plugin
|
|
@${MKDIR} ${PREFIX}/lib/xchat/plugins
|
|
@${INSTALL_PROGRAM} ${WRKSRC}/xfish.so \
|
|
${PREFIX}/lib/xchat/plugins/
|
|
|
|
.include <bsd.port.mk>
|