openbsd-ports/www/analog/Makefile
form 1c122d39ff fix compiling; turan@
add HOMEPAGE
2000-06-16 03:32:24 +00:00

61 lines
1.8 KiB
Makefile

# $OpenBSD: Makefile,v 1.19 2000/06/16 03:32:24 form Exp $
DISTNAME= analog-4.11
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://www.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/
MAINTAINER= form@OpenBSD.ORG
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
ETCDIR= /etc
ANALOGDIR= ${PREFIX}/share/analog
CONFIGFILE= ${ETCDIR}/analog.cfg
DOCDIR= ${PREFIX}/share/doc/analog
HTTPDIR= /var/www
IMAGEDIR= /analog-images
CFLAGS+= -DANALOGDIR=\"${ANALOGDIR}/\" \
-DDEFAULTCONFIGFILE=\"${CONFIGFILE}\" \
-DHTTPDIR=\"${HTTPDIR}/\" \
-DIMAGEDIR=\"${IMAGEDIR}/\" \
-DANALOG=\"${PREFIX}/bin/analog\"
ALL_TARGET= analog
post-patch:
@mv ${WRKSRC}/anlgform.pl ${WRKSRC}/anlgform.pl.src
@sed -e "s,@PREFIX@,${PREFIX},g" < ${WRKSRC}/anlgform.pl.src \
> ${WRKSRC}/anlgform.pl
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} ${WRKSRC}/analog ${PREFIX}/bin
${INSTALL_DATA} ${WRKSRC}/docs/* ${PREFIX}/share/doc/analog
${INSTALL_DATA} ${WRKSRC}/examples/* ${PREFIX}/share/examples/analog
${INSTALL_DATA} ${WRKSRC}/images/* ${ANALOGDIR}/images
${INSTALL_DATA} ${WRKSRC}/lang/* ${ANALOGDIR}/lang
${INSTALL_DATA} ${WRKSRC}/analog.cfg ${ANALOGDIR}
${INSTALL_DATA} ${WRKSRC}/anlgform.html ${ANALOGDIR}
${INSTALL_DATA} ${WRKSRC}/anlgform.pl ${ANALOGDIR}
.include <bsd.port.mk>