openbsd-ports/www/analog/Makefile
1999-09-16 14:09:25 +00:00

49 lines
1.5 KiB
Makefile

# $OpenBSD: Makefile,v 1.7 1999/09/16 14:09:25 form Exp $
DISTNAME= analog3.32
PKGNAME= analog-3.32
CATEGORIES= www
MASTER_SITES= 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/
MAINTAINER= form@OpenBSD.ORG
ETCDIR= /etc
ANALOGDIR= ${PREFIX}/lib/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\\\"
do-install:
@${INSTALL_DATA_DIR} ${DOCDIR}
@${INSTALL_DATA_DIR} ${ANALOGDIR}/lang
@${INSTALL_DATA_DIR} ${ANALOGDIR}/images
@${INSTALL_DATA_DIR} ${HTTPDIR}/htdocs${IMAGEDIR}
${INSTALL_PROGRAM} ${WRKSRC}/analog ${PREFIX}/bin
${INSTALL_DATA} ${WRKSRC}/docs/* ${DOCDIR}
${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.cgi ${ANALOGDIR}
post-install:
@PKG_PREFIX="${PREFIX}" ${SH} ${PKGDIR}/INSTALL ${DISTNAME} POST-INSTALL
.include <bsd.port.mk>