2004-01-22 09:02:15 +01:00
|
|
|
# $NetBSD: Makefile,v 1.15 2004/01/22 08:02:15 grant Exp $
|
2000-07-25 15:02:07 +02:00
|
|
|
#
|
|
|
|
|
2003-01-02 10:34:50 +01:00
|
|
|
DISTNAME= geneweb-4.09
|
2000-07-25 15:02:07 +02:00
|
|
|
CATEGORIES= databases
|
|
|
|
MASTER_SITES= ftp://ftp.inria.fr/INRIA/Projects/cristal/geneweb/Src/
|
|
|
|
|
2003-07-17 23:21:03 +02:00
|
|
|
MAINTAINER= wulf@NetBSD.org
|
2000-07-25 15:02:07 +02:00
|
|
|
HOMEPAGE= http://cristal.inria.fr/~ddr/GeneWeb/
|
2001-02-16 15:17:22 +01:00
|
|
|
COMMENT= GeneWeb is a comprehensive genealogy database application
|
2000-07-25 15:02:07 +02:00
|
|
|
|
2002-08-29 11:59:15 +02:00
|
|
|
DEPENDS+= ocaml>=3.04:../../lang/ocaml
|
2000-07-25 15:02:07 +02:00
|
|
|
|
2003-01-28 23:03:00 +01:00
|
|
|
USE_PKGINSTALL= yes
|
2004-01-22 09:02:15 +01:00
|
|
|
USE_GNU_TOOLS+= make
|
2000-07-25 15:02:07 +02:00
|
|
|
|
2003-01-19 13:34:45 +01:00
|
|
|
RCD_SCRIPTS= geneweb
|
|
|
|
|
2000-07-25 15:02:07 +02:00
|
|
|
.if !exists(${LOCALBASE}/bin/ocamlc.opt)
|
|
|
|
ALL_TARGET= out
|
|
|
|
.endif
|
|
|
|
|
2003-01-02 10:34:50 +01:00
|
|
|
# Stripped OCAML binaries don't seem to work nolonger
|
|
|
|
# Installing unstripped binaries until this is fixed
|
|
|
|
INSTALL_PROGRAM = ${INSTALL} ${COPY} -o ${BINOWN} -g ${BINGRP} -m ${BINMODE}
|
|
|
|
|
2000-07-25 15:02:07 +02:00
|
|
|
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
|
|
|
|
|
|
|
|
do-install:
|
2001-02-25 05:17:35 +01:00
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/geneweb
|
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/geneweb
|
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/geneweb/etc
|
2001-07-15 17:34:57 +02:00
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/geneweb/gwtp_tmp
|
2001-02-25 05:17:35 +01:00
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/geneweb/images
|
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/geneweb/lang
|
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/geneweb/setup
|
2000-07-25 15:02:07 +02:00
|
|
|
cd ${WRKSRC}/distribution/gw && \
|
|
|
|
${INSTALL_PROGRAM} gwd ${PREFIX}/libexec && \
|
|
|
|
${INSTALL_PROGRAM} consang ${PREFIX}/bin && \
|
|
|
|
${INSTALL_PROGRAM} gwc ${PREFIX}/bin && \
|
2001-07-15 17:34:57 +02:00
|
|
|
${INSTALL_PROGRAM} gwtp_tmp/gwtp ${PREFIX}/bin && \
|
2000-07-25 15:02:07 +02:00
|
|
|
${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 && \
|
2001-07-15 17:34:57 +02:00
|
|
|
${CP} -Rp gwtp_tmp ${PREFIX}/share/geneweb && \
|
2000-07-25 15:02:07 +02:00
|
|
|
${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
|
2001-07-15 17:34:57 +02:00
|
|
|
${TOUCH} ${PREFIX}/share/geneweb/gwtp_tmp/passwd
|
|
|
|
${TOUCH} ${PREFIX}/share/geneweb/gwtp_tmp/gwtp.log
|
|
|
|
${CHMOD} 600 ${PREFIX}/share/geneweb/gwtp_tmp/passwd
|
|
|
|
${CHMOD} 600 ${PREFIX}/share/geneweb/gwtp_tmp/gwtp.log
|
2001-12-05 17:03:56 +01:00
|
|
|
${CHOWN} -R nobody.${ROOT_GROUP} ${PREFIX}/share/geneweb
|
2000-07-25 15:02:07 +02:00
|
|
|
|
|
|
|
.include "../../mk/bsd.pkg.mk"
|