summaryrefslogblamecommitdiff
path: root/irc/pisg/Makefile
blob: 975a3c28392d00e1f0aa2b017cf21b90497acd79 (plain) (tree)
1
2
3
4
5
6
7
8
9







                                                   
                    



                                          
                                
                                               
 


                   
 









                                                                          
                                                



                                                                             



                                                                                                 



                                                      






                                                                                                      
      

                      
# New ports collection makefile for:   pisg
# Date created:        Mon Feb 11 13:02:35 GMT 2002
# Whom:                pgl@instinct.org
#
# $FreeBSD$
#

PORTNAME=	pisg
PORTVERSION=	0.49
CATEGORIES=	irc
MASTER_SITES=	${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR=	${PORTNAME}

MAINTAINER=	mich@FreeBSD.org
COMMENT=	A Perl IRC Statistics Generator

USE_REINPLACE=	YES
USE_PERL5=	YES
NO_BUILD=	YES

pre-patch:
	@${REINPLACE_CMD} -e 's|lang.txt|${PREFIX}/share/pisg/lang.txt|; \
		s|layout/|${PREFIX}/share/pisg/layout/|' \
		${WRKSRC}/modules/Pisg.pm
	@${REINPLACE_CMD} -e 's|/usr/bin/perl|${PERL}|' ${WRKSRC}/pisg

do-install:
	${MKDIR} ${PREFIX}/etc/pisg
	${MKDIR} ${DATADIR}/layout
	${MKDIR} ${DATADIR}/gfx
	${MKDIR} ${SITE_PERL}/Pisg/Parser/Format
	${INSTALL_DATA} ${WRKSRC}/pisg.cfg ${PREFIX}/etc/pisg/pisg.cfg.sample
	${INSTALL_DATA} ${WRKSRC}/gfx/* ${DATADIR}/gfx
	${INSTALL_DATA} ${WRKSRC}/layout/* ${DATADIR}/layout
	${INSTALL_DATA} ${WRKSRC}/lang.txt ${DATADIR}
	${INSTALL_DATA} ${WRKSRC}/modules/Pisg.pm ${SITE_PERL}
	${INSTALL_DATA} ${WRKSRC}/modules/Pisg/*.pm ${SITE_PERL}/Pisg
	${INSTALL_DATA} ${WRKSRC}/modules/Pisg/Parser/*.pm ${SITE_PERL}/Pisg/Parser
	${INSTALL_DATA} ${WRKSRC}/modules/Pisg/Parser/Format/*.pm ${SITE_PERL}/Pisg/Parser/Format
	${INSTALL_SCRIPT} ${WRKSRC}/pisg ${PREFIX}/bin

post-install:
.if !defined(BATCH)
	@${ECHO_MSG} ""
	@${ECHO_MSG} "###############################################################################"
	@${ECHO_MSG} "# Please create a pisg config file in ${PREFIX}/etc/pisg                     #"
	@${ECHO_MSG} "# A sample configuration file is installed as pisg.cfg.sample                 #"
	@${ECHO_MSG} "# Remember to move gfx (${DATADIR}/gfx/) to HTML file destination. #"
	@${ECHO_MSG} "###############################################################################"
	@${ECHO_MSG}
.endif

.include <bsd.port.mk>