1e9f298d4f
- add pcre FLAVOR - use the ocaml_native arch check - remove old patches From: Christopher Zimmermann <madroach@gmerlin.de>
66 lines
1.5 KiB
Makefile
66 lines
1.5 KiB
Makefile
# $OpenBSD: Makefile,v 1.2 2012/08/18 22:19:21 avsm Exp $
|
|
|
|
COMMENT = the Ocamlnet internet protocol foundation library
|
|
CATEGORIES = devel www mail
|
|
|
|
V = 3.6
|
|
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 <madroach@zakweb.de>
|
|
|
|
# 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 <bsd.port.arch.mk>
|
|
.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 <bsd.port.mk>
|