c33d2074af
packages: ocaml, ocaml-graphics and labltk. Bump PKGREVISION.
40 lines
1.1 KiB
Makefile
40 lines
1.1 KiB
Makefile
# $NetBSD: Makefile,v 1.10 2004/12/24 17:21:01 jmmv Exp $
|
|
|
|
DISTNAME= swiftsurf-1.2.5
|
|
PKGREVISION= 2
|
|
CATEGORIES= www
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=swiftsurf/}
|
|
|
|
MAINTAINER= tech-pkg@NetBSD.org
|
|
HOMEPAGE= http://swiftsurf.sourceforge.net/
|
|
COMMENT= Web proxy that can handle http and https
|
|
|
|
USE_BUILDLINK3= yes
|
|
USE_GNU_TOOLS+= make
|
|
|
|
.if (${MACHINE_ARCH} == "i386") || (${MACHINE_ARCH} == "powerpc") || (${MACHINE_ARCH} == "sparc")
|
|
BUILD_TARGET= nat
|
|
SWIFT= swift.opt
|
|
.else
|
|
BUILD_TARGET= byte
|
|
SWIFT= swift
|
|
.endif
|
|
|
|
do-configure:
|
|
for f in ${WRKSRC}/src/conf.ml; do \
|
|
${SED} -e 's:@PKG_SYSCONFDIR@:${PKG_SYSCONFDIR}:g' \
|
|
$$f > $$f.tmp && ${MV} $$f.tmp $$f; \
|
|
done
|
|
|
|
do-build:
|
|
cd ${WRKSRC}/src && ${GMAKE} ${BUILD_TARGET}
|
|
|
|
do-install:
|
|
${INSTALL_PROGRAM} ${WRKSRC}/src/${SWIFT} ${PREFIX}/bin/swiftsurf
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/swiftsurf
|
|
${INSTALL_DATA} ${WRKSRC}/swiftsurf.* ${PREFIX}/share/examples/swiftsurf
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/swiftsurf
|
|
${INSTALL_DATA} ${WRKSRC}/doc/* ${PREFIX}/share/doc/swiftsurf
|
|
|
|
.include "../../lang/ocaml/buildlink3.mk"
|
|
.include "../../mk/bsd.pkg.mk"
|