2000-03-03 06:25:05 -05:00
|
|
|
# $OpenBSD: Makefile,v 1.12 2000/03/03 11:26:00 turan Exp $
|
|
|
|
|
|
|
|
BROKEN= installs files automatically in /etc
|
1998-08-11 05:14:46 -04:00
|
|
|
|
2000-02-16 15:10:32 -05:00
|
|
|
DISTNAME= analog4.02
|
|
|
|
PKGNAME= analog-4.02
|
1998-08-11 05:14:46 -04:00
|
|
|
CATEGORIES= www
|
|
|
|
MASTER_SITES= http://www.statslab.cam.ac.uk/~sret1/analog/ \
|
1999-02-24 01:07:26 -05:00
|
|
|
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/
|
1998-08-11 05:14:46 -04:00
|
|
|
|
1999-07-05 15:35:57 -04:00
|
|
|
MAINTAINER= form@OpenBSD.ORG
|
1998-08-11 05:14:46 -04:00
|
|
|
|
|
|
|
ETCDIR= /etc
|
|
|
|
ANALOGDIR= ${PREFIX}/lib/analog
|
1999-07-05 15:35:57 -04:00
|
|
|
CONFIGFILE= ${ETCDIR}/analog.cfg
|
1998-08-11 05:14:46 -04:00
|
|
|
DOCDIR= ${PREFIX}/share/doc/analog
|
|
|
|
HTTPDIR= /var/www
|
1999-07-05 15:35:57 -04:00
|
|
|
IMAGEDIR= /analog-images
|
1998-08-11 05:14:46 -04:00
|
|
|
|
|
|
|
CFLAGS+= -DANALOGDIR=\\\"${ANALOGDIR}/\\\" \
|
1999-07-05 15:35:57 -04:00
|
|
|
-DDEFAULTCONFIGFILE=\\\"${CONFIGFILE}\\\" \
|
|
|
|
-DHTTPDIR=\\\"${HTTPDIR}/\\\" \
|
|
|
|
-DIMAGEDIR=\\\"${IMAGEDIR}/\\\" \
|
1998-08-11 05:14:46 -04:00
|
|
|
-DANALOG=\\\"${PREFIX}/bin/analog\\\"
|
|
|
|
|
1999-12-13 12:26:55 -05:00
|
|
|
post-patch:
|
2000-02-16 05:52:08 -05:00
|
|
|
@mv ${WRKSRC}/anlgform.pl ${WRKSRC}/anlgform.pl.src
|
|
|
|
@sed -e "s,@PREFIX@,${PREFIX},g" < ${WRKSRC}/anlgform.pl.src \
|
1999-12-13 12:26:55 -05:00
|
|
|
> ${WRKSRC}/anlgform.pl
|
|
|
|
|
1998-08-11 05:14:46 -04:00
|
|
|
do-install:
|
1999-07-05 15:35:57 -04:00
|
|
|
@${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
|
1998-08-11 05:14:46 -04:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/docs/* ${DOCDIR}
|
1999-07-05 15:35:57 -04:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/images/* ${ANALOGDIR}/images
|
1998-08-11 05:14:46 -04:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/lang/* ${ANALOGDIR}/lang
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/analog.cfg ${ANALOGDIR}
|
1999-07-05 15:35:57 -04:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/anlgform.html ${ANALOGDIR}
|
1999-12-13 12:26:55 -05:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/anlgform.pl ${ANALOGDIR}
|
1999-07-05 15:35:57 -04:00
|
|
|
|
|
|
|
post-install:
|
|
|
|
@PKG_PREFIX="${PREFIX}" ${SH} ${PKGDIR}/INSTALL ${DISTNAME} POST-INSTALL
|
1998-08-11 05:14:46 -04:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|