2006-03-04 22:28:51 +01:00
|
|
|
# $NetBSD: Makefile,v 1.15 2006/03/04 21:31:04 jlam Exp $
|
2003-06-30 01:15:07 +02:00
|
|
|
|
|
|
|
DISTNAME= swiftsurf-1.2.5
|
2006-02-06 00:08:03 +01:00
|
|
|
PKGREVISION= 3
|
2003-06-30 01:15:07 +02:00
|
|
|
CATEGORIES= www
|
|
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=swiftsurf/}
|
|
|
|
|
2006-03-04 22:28:51 +01:00
|
|
|
MAINTAINER= pkgsrc-users@NetBSD.org
|
2003-12-30 18:27:31 +01:00
|
|
|
HOMEPAGE= http://swiftsurf.sourceforge.net/
|
2003-07-22 06:14:17 +02:00
|
|
|
COMMENT= Web proxy that can handle http and https
|
2003-06-30 01:15:07 +02:00
|
|
|
|
2005-05-22 22:07:36 +02:00
|
|
|
USE_TOOLS+= gmake
|
2003-06-30 01:15:07 +02:00
|
|
|
|
|
|
|
.if (${MACHINE_ARCH} == "i386") || (${MACHINE_ARCH} == "powerpc") || (${MACHINE_ARCH} == "sparc")
|
2004-12-03 16:14:50 +01:00
|
|
|
BUILD_TARGET= nat
|
2003-06-30 01:15:07 +02:00
|
|
|
SWIFT= swift.opt
|
|
|
|
.else
|
2004-12-03 16:14:50 +01:00
|
|
|
BUILD_TARGET= byte
|
2003-06-30 01:15:07 +02:00
|
|
|
SWIFT= swift
|
|
|
|
.endif
|
|
|
|
|
2005-06-17 05:50:19 +02:00
|
|
|
INSTALLATION_DIRS= bin
|
|
|
|
|
2003-06-30 01:15:07 +02:00
|
|
|
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:
|
2004-12-03 16:14:50 +01:00
|
|
|
cd ${WRKSRC}/src && ${GMAKE} ${BUILD_TARGET}
|
2003-06-30 01:15:07 +02:00
|
|
|
|
|
|
|
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
|
|
|
|
|
2004-05-04 00:25:28 +02:00
|
|
|
.include "../../lang/ocaml/buildlink3.mk"
|
2003-06-30 01:15:07 +02:00
|
|
|
.include "../../mk/bsd.pkg.mk"
|