summaryrefslogtreecommitdiff
path: root/databases/geneweb/Makefile
diff options
context:
space:
mode:
authorwulf <wulf@pkgsrc.org>2000-07-25 13:02:07 +0000
committerwulf <wulf@pkgsrc.org>2000-07-25 13:02:07 +0000
commit1527984c77b57820a787d98f89c5815a321886b1 (patch)
tree64990f2028e0829ded70cdb32cfeba0b4cc7634c /databases/geneweb/Makefile
parentd9080a24c1a1a0d35053f15b96eb60a4cf0f49cb (diff)
downloadpkgsrc-1527984c77b57820a787d98f89c5815a321886b1.tar.gz
Intial commit of geneweb-3.06 - a comprehensive genealogy database application
Diffstat (limited to 'databases/geneweb/Makefile')
-rw-r--r--databases/geneweb/Makefile57
1 files changed, 57 insertions, 0 deletions
diff --git a/databases/geneweb/Makefile b/databases/geneweb/Makefile
new file mode 100644
index 00000000000..cb1281fba91
--- /dev/null
+++ b/databases/geneweb/Makefile
@@ -0,0 +1,57 @@
+# $NetBSD: Makefile,v 1.1.1.1 2000/07/25 13:02:07 wulf Exp $
+#
+
+DISTNAME= geneweb-3.06
+CATEGORIES= databases
+MASTER_SITES= ftp://ftp.inria.fr/INRIA/Projects/cristal/geneweb/Src/
+
+MAINTAINER= wulf@netbsd.org
+HOMEPAGE= http://cristal.inria.fr/~ddr/GeneWeb/
+
+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:
+ ${MKDIR} ${PREFIX}/share/examples/geneweb
+ ${MKDIR} ${PREFIX}/share/doc/geneweb
+ ${MKDIR} ${PREFIX}/share/geneweb/etc
+ ${MKDIR} ${PREFIX}/share/geneweb/images
+ ${MKDIR} ${PREFIX}/share/geneweb/lang
+ ${MKDIR} ${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} 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
+
+.include "../../mk/bsd.pkg.mk"