61 lines
1.9 KiB
Makefile
61 lines
1.9 KiB
Makefile
# $OpenBSD: Makefile,v 1.25 2004/12/11 13:29:22 alek Exp $
|
|
|
|
COMMENT= "access counter, clock and date for WWW pages"
|
|
|
|
DISTNAME= wwwcount2.5
|
|
PKGNAME= wwwcount-2.5p0
|
|
CATEGORIES= www
|
|
MASTER_SITES= http://wwwcount.yeehaw.net/mirror/$S/ \
|
|
http://mirror.njit.edu/counter/$S/ \
|
|
http://www.neonramp.com/Count/$S/ \
|
|
http://wwwcount.iinetwork.net/$S/ \
|
|
http://www.jesterscastle.com/mirror/Count/$S/ \
|
|
http://www.quiltersdream.com/Count/$S/ \
|
|
http://muquit.com/muquit/software/Count/$S/
|
|
|
|
S= src/wwwcount2.5
|
|
|
|
# For digit images look at:
|
|
# http://www.digitmania.holowww.com/
|
|
HOMEPAGE= http://www.muquit.com/muquit/software/Count/Count.html
|
|
|
|
# BSD-like
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
PERMIT_PACKAGE_FTP= Yes
|
|
PERMIT_DISTFILES_CDROM= Yes
|
|
PERMIT_DISTFILES_FTP= Yes
|
|
WANTLIB= c
|
|
|
|
CONFIGURE_STYLE=gnu
|
|
|
|
WWWDIR= /var/www
|
|
|
|
pre-configure:
|
|
@sed -e "s,@PREFIX@,${PREFIX},g" -e "s,@WWWDIR@,${WWWDIR},g" \
|
|
${FILESDIR}/config.h.in > ${WRKSRC}/src/config.h
|
|
|
|
NO_REGRESS= Yes
|
|
|
|
do-install:
|
|
.for d in A B C D E bang cd cdd cdr
|
|
${INSTALL_DATA_DIR} ${PREFIX}/lib/wwwcount/digits/${d}
|
|
${INSTALL_DATA} ${WRKSRC}/data/digits/${d}/*.gif \
|
|
${PREFIX}/lib/wwwcount/digits/${d}
|
|
.endfor
|
|
${INSTALL_DATA} -s ${WRKSRC}/src/Count.cgi ${PREFIX}/lib/wwwcount
|
|
${INSTALL_DATA} ${FILESDIR}/count.cfg.sample ${PREFIX}/lib/wwwcount
|
|
${INSTALL_DATA} ${WRKSRC}/data/rgb.txt ${PREFIX}/lib/wwwcount
|
|
${INSTALL_PROGRAM} ${WRKSRC}/utils/mkstrip/mkstrip ${PREFIX}/bin
|
|
${INSTALL_MAN} ${WRKSRC}/utils/mkstrip/mkstrip.1 ${PREFIX}/man/man1
|
|
${INSTALL_PROGRAM} ${WRKSRC}/utils/extdgts/extdgts ${PREFIX}/bin
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/wwwcount
|
|
@cd ${WRKSRC}/docs; cp -RP * ${PREFIX}/share/doc/wwwcount
|
|
@/usr/sbin/chown -R ${SHAREOWN}:${SHAREGRP} \
|
|
${PREFIX}/share/doc/wwwcount
|
|
@find ${PREFIX}/share/doc/wwwcount -type f -print | \
|
|
xargs chmod ${SHAREMODE}
|
|
@find ${PREFIX}/share/doc/wwwcount -type d -print | \
|
|
xargs chmod ${BINMODE}
|
|
|
|
.include <bsd.port.mk>
|