# $OpenBSD: Makefile,v 1.3 2012/11/30 19:08:05 chrisz Exp $ COMMENT = the Ocamlnet internet protocol foundation library CATEGORIES = devel www mail V = 3.6 REVISION= 0 DISTNAME = ocamlnet-${V} PKGNAME = ocaml-net-${V} MASTER_SITES = http://download.camlcity.org/download/ HOMEPAGE = http://projects.camlcity.org/projects/ocamlnet.html MAINTAINER = Christopher Zimmermann # Mostly zlib/png, http server module is GPL PERMIT_PACKAGE_FTP = Yes PERMIT_PACKAGE_CDROM = Yes PERMIT_DISTFILES_FTP = Yes PERMIT_DISTFILES_CDROM = Yes MODULES = lang/ocaml FLAVORS = pcre FLAVOR ?= BUILD_DEPENDS = sysutils/findlib WANTLIB = c curses m pthread CONFIGURE_STYLE = simple CONFIGURE_ARGS = -with-nethttpd .if ${FLAVOR:Mpcre} RUN_DEPENDS += devel/ocaml-pcre BUILD_DEPENDS += devel/ocaml-pcre WANTLIB += pcre CONFIGURE_ARGS += -enable-pcre .endif NO_REGRESS = Yes USE_GMAKE = Yes ALL_TARGET = all .include .if ${PROPERTIES:Mocaml_native} ALL_TARGET += opt .endif pre-fake: ${INSTALL_DATA_DIR} ${PREFIX}/lib/ocaml/stublibs EXAMPLEDIR = ${PREFIX}/share/examples/ocaml-net post-install: ${INSTALL_DATA_DIR} ${PREFIX}/share/doc/ocaml-net/html ${INSTALL_DATA} ${WRKSRC}/LICENSE ${PREFIX}/share/doc/ocaml-net/ ${INSTALL_DATA} ${WRKSRC}/ChangeLog ${PREFIX}/share/doc/ocaml-net/ ${INSTALL_DATA} \ ${WRKSRC}/doc/html-main/* \ ${PREFIX}/share/doc/ocaml-net/html/ ${INSTALL_DATA_DIR} ${EXAMPLEDIR} cp -r ${WRKSRC}/examples/* ${EXAMPLEDIR} chown -R ${SHAREOWN}:${SHAREGRP} ${EXAMPLEDIR} .include