74 lines
2.2 KiB
Makefile
74 lines
2.2 KiB
Makefile
# $OpenBSD: Makefile,v 1.43 2005/07/05 14:28:40 naddy Exp $
|
|
|
|
COMMENT= "extremely fast program for analysing WWW logfiles"
|
|
|
|
DISTNAME= analog-5.32
|
|
PKGNAME= ${DISTNAME}p3
|
|
CATEGORIES= www
|
|
|
|
MASTER_SITES= http://www.analog.cx/ \
|
|
http://www.statslab.cam.ac.uk/~sret1/analog/ \
|
|
http://www.magma.ca/~brendanr/analog/ \
|
|
http://brendanr.simplenet.com/analog/ \
|
|
http://analog.gsp.com/ \
|
|
http://redmoon.reverse.net/analog/ \
|
|
http://www.rge.com/pub/infosystems/statistics/analog/ \
|
|
http://blip.cetlink.net/analog/ \
|
|
http://analog.technomancer.com/ \
|
|
http://analog.wizard.net/ \
|
|
ftp://ftp.netcasting.net/pub/packages/analog/
|
|
|
|
HOMEPAGE= http://www.analog.cx/
|
|
|
|
# custom/BSD-like, badly worded
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
PERMIT_PACKAGE_FTP= Yes
|
|
PERMIT_DISTFILES_CDROM= Yes
|
|
PERMIT_DISTFILES_FTP= Yes
|
|
|
|
LIB_DEPENDS= gd.18::graphics/gd \
|
|
pcre.0::devel/pcre
|
|
WANTLIB= jpeg png ttf c m z
|
|
|
|
ANALOGDIR= ${PREFIX}/share/analog
|
|
CONFIGFILE= ${SYSCONFDIR}/analog.cfg
|
|
DOCDIR= ${PREFIX}/share/doc/analog
|
|
HTTPDIR= /var/www
|
|
IMAGEDIR= /analog-images
|
|
|
|
CFLAGS+= -I${LOCALBASE}/include \
|
|
-DANALOGDIR=\"${ANALOGDIR}/\" \
|
|
-DDEFAULTCONFIGFILE=\"${CONFIGFILE}\" \
|
|
-DHTTPDIR=\"${HTTPDIR}/\" \
|
|
-DIMAGEDIR=\"${IMAGEDIR}/\" \
|
|
-DLANGDIR=\"${ANALOGDIR}/lang/\" \
|
|
-DANALOG=\"${PREFIX}/bin/analog\" \
|
|
-DHAVE_GD -DHAVE_ZLIB -DHAVE_PCRE -DHAVE_ADDR_T
|
|
|
|
ALL_TARGET= analog
|
|
MAKE_FLAGS= CC='${CC}' CFLAGS='${CFLAGS}' \
|
|
LIBS="-L${LOCALBASE}/lib -lm -lgd -lpng -ljpeg -lttf -lz -lpcre"
|
|
|
|
post-patch:
|
|
@mv ${WRKSRC}/anlgform.pl ${WRKSRC}/anlgform.pl.src
|
|
@sed -e "s,@PREFIX@,${PREFIX},g" < ${WRKSRC}/anlgform.pl.src \
|
|
> ${WRKSRC}/anlgform.pl
|
|
|
|
NO_REGRESS= Yes
|
|
|
|
do-install:
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/analog
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/analog
|
|
${INSTALL_DATA_DIR} ${ANALOGDIR}/lang
|
|
${INSTALL_DATA_DIR} ${ANALOGDIR}/images
|
|
${INSTALL_PROGRAM} ${WRKBUILD}/analog ${PREFIX}/bin
|
|
${INSTALL_DATA} ${WRKSRC}/docs/* ${PREFIX}/share/doc/analog
|
|
${INSTALL_DATA} ${WRKSRC}/examples/*.cfg \
|
|
${PREFIX}/share/examples/analog
|
|
${INSTALL_DATA} ${WRKSRC}/images/* ${ANALOGDIR}/images
|
|
${INSTALL_DATA} ${WRKSRC}/lang/* ${ANALOGDIR}/lang
|
|
${INSTALL_DATA} ${WRKSRC}/anlgform.html ${ANALOGDIR}
|
|
${INSTALL_DATA} ${WRKSRC}/anlgform.pl ${ANALOGDIR}
|
|
|
|
.include <bsd.port.mk>
|