# $NetBSD: Makefile,v 1.5 2001/02/25 04:17:40 hubertf Exp $ # DISTNAME= geneweb-3.07 CATEGORIES= databases MASTER_SITES= ftp://ftp.inria.fr/INRIA/Projects/cristal/geneweb/Src/ MAINTAINER= wulf@netbsd.org HOMEPAGE= http://cristal.inria.fr/~ddr/GeneWeb/ COMMENT= GeneWeb is a comprehensive genealogy database application DEPENDS+= ocaml-3.*:../../lang/ocaml DEPENDS+= camlp4-3.*:../../lang/camlp4 USE_GMAKE= yes .if !exists(${LOCALBASE}/bin/ocamlc.opt) ALL_TARGET= out .endif pre-configure: if ! ${TEST} -x ${LOCALBASE}/bin/ocamlc.opt; then \ ${ECHO} "No optimized ocaml binaries found"; \ cd ${WRKSRC}/tools/; \ ${MV} Makefile.inc Makefile.inc.orig; \ ${SED} -e "s/\.opt//g" Makefile.inc.orig > Makefile.inc; \ fi post-build: cd ${WRKSRC} && ${GMAKE} distrib ${SED} s#@PREFIX@#${PREFIX}#g <${FILESDIR}/geneweb.sh \ >${WRKDIR}/geneweb.sh do-install: ${INSTALL_DATA_DIR} ${PREFIX}/share/examples/geneweb ${INSTALL_DATA_DIR} ${PREFIX}/share/doc/geneweb ${INSTALL_DATA_DIR} ${PREFIX}/share/geneweb/etc ${INSTALL_DATA_DIR} ${PREFIX}/share/geneweb/images ${INSTALL_DATA_DIR} ${PREFIX}/share/geneweb/lang ${INSTALL_DATA_DIR} ${PREFIX}/share/geneweb/setup cd ${WRKSRC}/distribution/gw && \ ${INSTALL_PROGRAM} gwd ${PREFIX}/libexec && \ ${INSTALL_PROGRAM} consang ${PREFIX}/bin && \ ${INSTALL_PROGRAM} gwc ${PREFIX}/bin && \ ${INSTALL_PROGRAM} gwtp ${PREFIX}/bin && \ ${INSTALL_PROGRAM} ged2gwb ${PREFIX}/bin && \ ${INSTALL_PROGRAM} gwb2ged ${PREFIX}/bin && \ ${INSTALL_PROGRAM} gwsetup ${PREFIX}/sbin && \ ${INSTALL_PROGRAM} gwu ${PREFIX}/bin && \ ${CP} -Rp doc/* ${PREFIX}/share/doc/geneweb && \ ${CP} -Rp etc ${PREFIX}/share/geneweb && \ ${CP} -Rp images ${PREFIX}/share/geneweb && \ ${CP} -Rp lang ${PREFIX}/share/geneweb && \ ${CP} -Rp setup ${PREFIX}/share/geneweb && \ ${INSTALL_DATA} a.gwf ${PREFIX}/share/examples/geneweb && \ ${INSTALL_DATA} only.txt ${PREFIX}/share/examples/geneweb ${INSTALL_SCRIPT} ${WRKDIR}/geneweb.sh ${PREFIX}/etc/rc.d/geneweb .include "../../mk/bsd.pkg.mk"