pkgsrc/www/swiftsurf/Makefile
jaapb 56ed9d3f04 Revbump associated with the upgrade of lang/ocaml
(this is the upgrade from 4.06 to 4.06.1)
2018-04-13 13:55:27 +00:00

36 lines
956 B
Makefile

# $NetBSD: Makefile,v 1.33 2018/04/13 13:55:39 jaapb Exp $
DISTNAME= swiftsurf-1.2.5
PKGREVISION= 17
CATEGORIES= www
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=swiftsurf/}
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://swiftsurf.sourceforge.net/
COMMENT= Web proxy that can handle http and https
USE_TOOLS+= gmake
SUBST_CLASSES+= conf
SUBST_FILES.conf= src/conf.ml
SUBST_VARS.conf= PKG_SYSCONFDIR
SUBST_STAGE.conf= pre-configure
.include "../../mk/ocaml.mk"
.if !empty(OCAML_USE_OPT_COMPILER:M[Yy][Ee][Ss])
BUILD_TARGET= nat
SWIFT= swift.opt
.else
BUILD_TARGET= byte
SWIFT= swift
.endif
INSTALLATION_DIRS= bin share/doc/swiftsurf share/examples/swiftsurf
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/src/${SWIFT} ${DESTDIR}${PREFIX}/bin/swiftsurf
${INSTALL_DATA} ${WRKSRC}/swiftsurf.* ${DESTDIR}${PREFIX}/share/examples/swiftsurf
${INSTALL_DATA} ${WRKSRC}/doc/* ${DESTDIR}${PREFIX}/share/doc/swiftsurf
.include "../../mk/bsd.pkg.mk"