head	1.16;
access;
symbols
	caudium_1_2_25:1.1.2.25
	caudium_1_2_24:1.1.2.25
	caudium_1_3_15:1.15
	caudium_1_3_14:1.15
	caudium_1_2_23:1.1.2.25
	caudium_1_2_22:1.1.2.25
	caudium_1_2_21:1.1.2.25
	caudium_1_2_20:1.1.2.25
	caudium_1_3_13:1.15
	caudium_1_3_12:1.15
	caudium_1_3_11:1.15
	caudium_1_3_10:1.15
	caudium_1_2_19:1.1.2.25
	caudium_1_2_18:1.1.2.25
	caudium_1_3_9:1.15
	caudium_1_3_8:1.15
	caudium_1_3_7:1.15
	caudium_1_3_6:1.15
	caudium_1_2_17:1.1.2.25
	caudium_1_2_16:1.1.2.25
	caudium_1_2_15:1.1.2.25
	caudium_1_2_14:1.1.2.25
	caudium_1_2_12:1.1.2.25
	caudium_1_2_10:1.1.2.25
	caudium_1_3_5:1.11
	caudium_1_3_4:1.11
	caudium_1_2_9:1.1.2.21
	caudium_1_2_8:1.1.2.21
	caudium_1_3_3:1.5
	caudium_1_2_7:1.1.2.19
	caudium_1_2_6:1.1.2.19
	Caudium_1_3_2:1.5
	caudium_1_2_5:1.1.2.2
	caudium_1_2_4:1.1.2.2
	caudium_1_2_3:1.1.2.1
	caudium_1_2_2:1.1.2.1
	caudium_1_3_1:1.1
	caudium_1_2_1:1.1
	stable_1_2:1.1.0.2;
locks; strict;
comment	@# @;


1.16
date	2003.04.17.19.13.52;	author kiwi;	state dead;
branches;
next	1.15;

1.15
date	2002.10.14.23.27.36;	author kiwi;	state Exp;
branches;
next	1.14;

1.14
date	2002.10.14.22.49.27;	author kiwi;	state Exp;
branches;
next	1.13;

1.13
date	2002.10.14.22.45.45;	author kiwi;	state Exp;
branches;
next	1.12;

1.12
date	2002.10.14.22.34.08;	author kiwi;	state Exp;
branches;
next	1.11;

1.11
date	2002.08.12.16.59.15;	author kiwi;	state Exp;
branches;
next	1.10;

1.10
date	2002.08.12.11.32.38;	author kiwi;	state Exp;
branches;
next	1.9;

1.9
date	2002.08.12.11.20.34;	author kiwi;	state Exp;
branches;
next	1.8;

1.8
date	2002.08.01.23.26.39;	author kiwi;	state Exp;
branches;
next	1.7;

1.7
date	2002.08.01.23.06.05;	author kiwi;	state Exp;
branches;
next	1.6;

1.6
date	2002.08.01.22.29.28;	author kiwi;	state Exp;
branches;
next	1.5;

1.5
date	2002.03.27.12.43.38;	author kiwi;	state Exp;
branches;
next	1.4;

1.4
date	2002.03.12.20.27.04;	author kiwi;	state Exp;
branches;
next	1.3;

1.3
date	2002.02.17.22.02.16;	author kiwi;	state Exp;
branches;
next	1.2;

1.2
date	2002.02.02.02.18.35;	author kiwi;	state Exp;
branches;
next	1.1;

1.1
date	2002.01.22.00.37.50;	author kiwi;	state Exp;
branches
	1.1.2.1;
next	;

1.1.2.1
date	2002.01.29.16.15.43;	author kiwi;	state Exp;
branches;
next	1.1.2.2;

1.1.2.2
date	2002.02.17.23.36.31;	author kiwi;	state Exp;
branches;
next	1.1.2.3;

1.1.2.3
date	2002.03.12.20.24.19;	author kiwi;	state Exp;
branches;
next	1.1.2.4;

1.1.2.4
date	2002.03.14.01.26.43;	author kiwi;	state Exp;
branches;
next	1.1.2.5;

1.1.2.5
date	2002.03.14.02.32.16;	author kiwi;	state Exp;
branches;
next	1.1.2.6;

1.1.2.6
date	2002.03.15.14.18.28;	author kiwi;	state Exp;
branches;
next	1.1.2.7;

1.1.2.7
date	2002.03.19.12.12.43;	author kiwi;	state Exp;
branches;
next	1.1.2.8;

1.1.2.8
date	2002.03.28.17.32.06;	author kiwi;	state Exp;
branches;
next	1.1.2.9;

1.1.2.9
date	2002.03.28.18.09.30;	author kiwi;	state Exp;
branches;
next	1.1.2.10;

1.1.2.10
date	2002.03.28.21.39.58;	author kiwi;	state Exp;
branches;
next	1.1.2.11;

1.1.2.11
date	2002.03.28.23.21.43;	author kiwi;	state Exp;
branches;
next	1.1.2.12;

1.1.2.12
date	2002.05.03.17.00.10;	author kiwi;	state Exp;
branches;
next	1.1.2.13;

1.1.2.13
date	2002.05.03.17.02.33;	author kiwi;	state Exp;
branches;
next	1.1.2.14;

1.1.2.14
date	2002.05.03.17.29.02;	author kiwi;	state Exp;
branches;
next	1.1.2.15;

1.1.2.15
date	2002.05.03.22.56.37;	author kiwi;	state Exp;
branches;
next	1.1.2.16;

1.1.2.16
date	2002.05.07.12.40.10;	author kiwi;	state Exp;
branches;
next	1.1.2.17;

1.1.2.17
date	2002.05.07.13.19.03;	author kiwi;	state Exp;
branches;
next	1.1.2.18;

1.1.2.18
date	2002.05.07.15.47.12;	author kiwi;	state Exp;
branches;
next	1.1.2.19;

1.1.2.19
date	2002.05.07.15.56.05;	author kiwi;	state Exp;
branches;
next	1.1.2.20;

1.1.2.20
date	2002.07.02.22.05.11;	author kiwi;	state Exp;
branches;
next	1.1.2.21;

1.1.2.21
date	2002.07.02.22.05.42;	author kiwi;	state Exp;
branches;
next	1.1.2.22;

1.1.2.22
date	2002.07.09.23.49.01;	author kiwi;	state Exp;
branches;
next	1.1.2.23;

1.1.2.23
date	2002.07.09.23.55.43;	author kiwi;	state Exp;
branches;
next	1.1.2.24;

1.1.2.24
date	2002.07.18.17.33.28;	author kiwi;	state Exp;
branches;
next	1.1.2.25;

1.1.2.25
date	2002.08.12.11.19.29;	author kiwi;	state Exp;
branches;
next	1.1.2.26;

1.1.2.26
date	2003.04.17.18.56.22;	author kiwi;	state dead;
branches;
next	;


desc
@@


1.16
log
@Pike 7.2 port is FreeBSD distribution.
But the patches I use to make are still here.
@
text
@# New ports collection makefile for:	pike
# Date created:		05 Sep 2001
# Whom:			kiwi@@oav.net
#
# $FreeBSD$
#

PORTNAME=	pike72
PORTVERSION=	7.2.412
PORTREVISION=	0
CATEGORIES=	lang
MASTER_SITES=	ftp://ftp.oav.net/pkg_freebsd/distfiles/ \
		http://ftp.oav.net/pkg_freebsd/distfiles/ \
		ftp://ftp.oav.net/pike/7.2/unofficial/ \
		http://ftp.oav.net/pike/7.2/unofficial/ \
		http://grendel.firewall.com/caudium-pkg/ \
		ftp://ftp.caudium.net/caudium/snapshots/pike/7.2/unofficial/ \
		http://ftp.caudium.net/caudium/snapshots/pike/7.2/unofficial/
DISTNAME=	pike-${PORTVERSION}

MAINTAINER=	kiwi@@oav.net

LIB_DEPENDS=	jpeg.9:${PORTSDIR}/graphics/jpeg \
		tiff.4:${PORTSDIR}/graphics/tiff \
		gdbm.2:${PORTSDIR}/databases/gdbm \
		mird.1:${PORTSDIR}/databases/mird

.if (${MACHINE} == "i386")
BUILD_DEPENDS+=	nasm:${PORTSDIR}/devel/nasm/
.endif

WRKSRC=		${WRKDIR}/${DISTNAME}/src/

USE_BISON=	yes

WANT_MESA=	yes
WANT_GTK=	yes
WANT_GNOME=	yes

GNU_CONFIGURE=  yes

.include <bsd.port.pre.mk>

CONFIGURE_ARGS+= --without-debug \
		 --with-double-precision \
		 --with-long-double-precision \
		 --disable-rpath \
		 --without-rtldebug \
		 --without-cdebug \
		 --without-copt \
		 --without-shared-nodes \
		 --without-security \
		 --with-oob \
		 --with-poll \
		 --with-max-fd=60000 \
		 --without-relocatable-dumped-modules \
		 --without-libpanda \
		 --without-perl \
		 --with-gmp \
		 --with-zlib \
		 --with-threads \
		 --with-readline \
		 --with-jpeg=${PREFIX} \
		 --with-tiff \
		 --with-gdbm \
		 --without-ssleay \
		 --prefix=${PREFIX}

PLIST_SUB+=     PORTVERSION=${PORTVERSION}

.if exists(${LOCALBASE}/lib/libttf.so.4)
WITH_TTF=	yes
.endif

.if exists(${LOCALBASE}/lib/libfreetype.so.9)
WITH_FREETYPE=	yes
.endif

.if exists(${LOCALBASE}/lib/mysql/libmysqlclient.so.10)
WITH_MYSQL=	yes
.endif

.if exists(${LOCALBASE}/lib/libpq.so.2)
WITH_POSTGRES=	yes
.endif

.if exists(${LOCALBASE}/lib/libodbc.so.1)
WITH_UNIXODBC=	yes
.endif

.if exists(${LOCALBASE}/lib/libiodbc.so.2)
WITH_IODBC=	yes
.endif

.if exists(${LOCALBASE}/lib/libsane.so.1)
WITH_SANE=	yes
.endif

.if exists(${LOCALBASE}/lib/libgtkgl.so.5)
WITH_MESA=	yes
.endif

.if exists(${LOCALBASE}/lib/libpdf.so.4)
WITH_PDF=	yes
.endif

.if exists(${LOCALBASE}/lib/libct.so.0)
WITH_FREETDS=	yes
.endif

.if defined(WITH_MOST)
WITH_TTF=	yes
WITH_FREETYPE=	yes
.endif

.if defined(WITH_OPTIMIZED_CFLAGS)
.if (${MACHINE} == "i386")
CFLAGS+=	-O3 -ffast-math -fomit-frame-pointer
.else
CFLAGS+=	-ffast-math -fomit-frame-pointer
.endif
.endif

.if defined(WITH_TTF)
LIB_DEPENDS+=	ttf.4:${PORTSDIR}/print/freetype
CONFIGURE_ARGS+= --with-ttflib
.else
CONFIGURE_ARGS+= --without-ttflib
.endif

.if defined(WITH_FREETYPE)
LIB_DEPENDS+=	freetype.9:${PORTSDIR}/print/freetype2
CONFIGURE_ARGS+= --with-freetype
.else
CONFIGURE_ARGS+= --without-freetype
.endif

.if defined(WITH_MYSQL)
LIB_DEPENDS+=	mysqlclient.10:${PORTSDIR}/databases/mysql323-client
CONFIGURE_ARGS+= --with-mysql=${PREFIX}
.else
CONFIGURE_ARGS+= --without-mysql
.endif

.if defined(WITH_POSTGRES)
LIB_DEPENDS+=	pq.2:${PORTSDIR}/databases/postgresql7
CONFIGURE_ARGS+= --with-pgsql=${PREFIX}
.else
CONFIGURE_ARGS+= --without-pgsql
.endif

.if defined(WITH_MSQL)
BUILD_DEPENDS+=	msql:${PORTSDIR}/databases/msql
CONFIGURE_ARGS+= --with-msql=${PREFIX}
.else
CONFIGURE_ARGS+= --without-msql
.endif

.if defined(WITH_UNIXODBC)
LIB_DEPENDS+=	odbc.1:${PORTSDIR}/databases/unixODBC
CONFIGURE_ARGS+= --with-odbc
.endif

.if defined(WITH_IODBC)
LIB_DEPENDS+=	iodbc.3:${PORTSDIR}/databases/libiodbc
CONFIGURE_ARGS+= --with-odbc
.endif

.if !defined(WITH_UNIXODBC) && !defined(WITH_IODBC)
CONFIGURE_ARGS+= --without-odbc
.endif

.if defined(WITH_SANE)
LIB_DEPENDS+=	sane.1:${PORTSDIR}/graphics/sane-backends
CONFIGURE_ARGS+= --with-sane
.else
CONFIGURE_ARGS+= --without-sane
.endif

.if defined(WITH_PDF)
LIB_DEPENDS+=	pdf.4:${PORTSDIR}/print/pdflib
CONFIGURE_ARGS+= --with-libpdf
.else
CONFIGURE_ARGS+= --without-libpdf
.endif

.if defined(HAVE_MESA) || defined(WITH_MESA)
USE_MESA=	yes
LIB_DEPENDS+=	gtkgl.5:${PORTSDIR}/x11-toolkits/gtkglarea
CONFIGURE_ARGS+= --with-GL --with-GLUT
.else
CONFIGURE_ARGS+= --without-GL --without-GLUT
.endif

.if defined(HAVE_GNOME)
USE_GNOME=	yes
USE_GTK=	yes
USE_GLI=	yes
CONFIGURE_ARGS+= --with-GTK --with-gnome --with-glade
.else
CONFIGURE_ARGS+= --without-GTK --without-gnome --without-glade
.endif

.if defined(WITH_FREETDS)
LIB_DEPENDS+=	ct.0:${PORTSDIR}/databases/freetds
CONFIGURE_ARGS+= --with-sybase
.else
CONFIGURE_ARGS+= --without-sybase
.endif

USE_GMAKE=	yes

pre-everything::
.if !defined(WITH_OPTIMIZED_CFLAGS)
	@@${ECHO_MSG} "You can enable additional compilation optimizations"
	@@${ECHO_MSG} "by defining WITH_OPTIMIZED_CFLAGS"
.endif
.if !defined(WITH_TTF) && !defined(WITH_MOST)
	@@${ECHO_MSG} "You can enable _Image_TTF support by defining WITH_TTF."
.endif
.if !defined(WITH_FREETYPE) && !defined(WITH_MOST)
	@@${ECHO_MSG} "You can enable _Image_FreeType support by defining WITH_FREETYPE."
.endif
.if !defined(WITH_MYSQL)
	@@${ECHO_MSG} "You can enable MySQL support by defining WITH_MYSQL."
.endif
.if !defined(WITH_POSTGRES)
	@@${ECHO_MSG} "You can enable PostGres support by defining WITH_POSTGRES."
.endif
.if !defined(WITH_UNIXODBC) && !defined(WITH_IODBC)
	@@${ECHO_MSG} "You can enable unixODBC support by defining WITH_UNIXODBC."
	@@${ECHO_MSG} "You can enable iodbc support by defining WITH_IODBC."
	@@${ECHO_MSG} "Note that you can support only ONE of these two ODBC libs."
.endif
.if !defined(WITH_SANE)
	@@${ECHO_MSG} "You can enable Sane support by defining WITH_SANE."
.endif
.if !defined(WITH_SANE) || !defined(HAVE_MESA)
	@@${ECHO_MSG} "You can enable MesaGL support by defining WITH_MESA."
.endif
.if !defined(WITH_PDF)
	@@${ECHO_MSG} "You can enable PDF support by defining WITH_PDF."
.endif
.if !defined(WITH_MOST)
	@@${ECHO_MSG} "You can enable most of the features here except Sane,"
	@@${ECHO_MSG} "MesaGLi, GNOME and SQL support by defining WITH_MOST."
.endif
.if !defined(WITH_FREETDS)
	@@${ECHO_MSG} "You can enable MS SQL / Sybase support by defining WITH_FREETDS."
.endif

pre-configure:
	@@${ECHO} ${CONFIGURE_ARGS}

post-install:
	${INSTALL_PROGRAM} ${WRKSRC}pike ${PREFIX}/bin
	${INSTALL_SCRIPT} ${WRKSRC}hilfe ${PREFIX}/bin

.include <bsd.port.post.mk>
@


1.15
log
@Removed cvs
@
text
@@


1.14
log
@Mutch better :p
@
text
@d8 1
a8 1
PORTNAME=	pike72cvs
@


1.13
log
@Portlint act strangely... ?
@
text
@d204 1
a204 1
.if defined(WITH_TDS)
@


1.12
log
@Update for last version of pike
@
text
@a22 2
USE_BISON=	yes

d33 2
@


1.11
log
@Better.
@
text
@d9 2
a10 2
PORTVERSION=	7.2.380
PORTREVISION=	3
a22 1
#BUILD_DEPENDS=	bison:${PORTSDIR}/devel/bison/
d24 6
a33 7
LIB_DEPENDS=	gmp.6:${PORTSDIR}/math/libgmp4 \
		jpeg.9:${PORTSDIR}/graphics/jpeg \
		tiff.4:${PORTSDIR}/graphics/tiff \
		gdbm.2:${PORTSDIR}/databases/gdbm \
		mird.1:${PORTSDIR}/databases/mird 
#		rsaref.2:${PORTSDIR}/security/rsaref

a38 2
#USE_AUTOCONF_VER=213
#USE_AUTOMAKE=	yes
d42 2
a67 1
#		 --with-rsaref=${PREFIX}
d69 1
a69 1
.include <bsd.port.pre.mk>
d107 4
d204 3
a206 2
.if (${MACHINE} == "i386")
CONFIGURE_ARGS+= --with-poll
d208 1
a208 2
# Alpha seems to have problems with poll() with pike... :/
CONFIGURE_ARGS+= --without-poll
d248 3
a250 1

a252 2
#	@@cd ${WRKSRC}; \
#	./run_autoconfig
@


1.10
log
@Fix again...
@
text
@d10 1
a10 1
PORTREVISION=	2
d23 2
a24 1
BUILD_DEPENDS=	bison:${PORTSDIR}/devel/bison/
@


1.9
log
@Fix
@
text
@d10 1
a10 1
PORTREVISION=	1
@


1.8
log
@Not the good rsaref lib.. grrs...
@
text
@d67 2
a68 1
		 --without-ssleay
@


1.7
log
@Added RSAREF :)
@
text
@d32 2
a33 2
		mird.1:${PORTSDIR}/databases/mird \
		rsaref.2:${PORTSDIR}/security/rsaref
d67 2
a68 2
		 --without-ssleay \
		 --with-rsaref=${PREFIX}
@


1.6
log
@Syncing with caudium 1.2 tree...
@
text
@d32 2
a33 1
		mird.1:${PORTSDIR}/databases/mird
d67 2
a68 3
		 --without-ssleay
#		 --with-gdbm=${PREFIX} \
#		 --without-relocatable-dumped-modules \
@


1.5
log
@Update from 1.2 tree.
@
text
@d9 2
a10 1
PORTVERSION=	7.2.316
d14 5
a18 1
		http://grendel.firewall.com/caudium-pkg/
d28 6
d36 6
a41 1
IS_INTERACTIVE=	yes
a42 21
.if exists(${WRKDIRPREFIX}${.CURDIR}/Makefile.inc)
.include "${WRKDIRPREFIX}${.CURDIR}/Makefile.inc"
.else
CONFIGURE_ARGS?= \
	--without-ttflib \
	--without-gdbm \
	--without-mysql \
	--without-postgresql \
	--without-msql \
	--without-odbc \
	--without-libpdf \
	--without-sane \
	--without-freetype \
	--without-tifflib \
	--without-GL \
	--without-GLUT \
	--without-GTK \
	--without-glade \
	--without-gnome \
	--without-jpeg
.endif
d58 142
a199 1
		 --without-perl
d210 34
a243 3
pre-fetch:
.if !defined(BATCH)
	@@${SETENV} ${SCRIPTS_ENV} ${SH} ${SCRIPTDIR}/configure.pike
d246 1
d248 2
a251 3
pre-clean:
	@@${RM} -f ${WRKDIRPREFIX}${.CURDIR}/Makefile.inc

d256 1
a256 1
.include <bsd.port.mk>
@


1.4
log
@Update for Pike 7.2.308
@
text
@d9 1
a9 1
PORTVERSION=	7.2.308
d50 8
d59 3
a61 1
		 --with-max-fds=10000 \
@


1.3
log
@Updated to 7.2.296
@
text
@d9 1
a9 1
PORTVERSION=	7.2.296
@


1.2
log
@Updated port to pike 7.2.284
@
text
@d9 1
a9 1
PORTVERSION=	7.2.284
@


1.1
log
@New Caudium-dev port with pike 7.2 :)
@
text
@d9 1
a9 1
PORTVERSION=	7.2.276
@


1.1.2.1
log
@Up to date ports.
@
text
@d9 1
a9 1
PORTVERSION=	7.2.284
@


1.1.2.2
log
@Update to pike 7.2.296
@
text
@d9 1
a9 1
PORTVERSION=	7.2.296
@


1.1.2.3
log
@Update for Pike 7.2.308
@
text
@d9 1
a9 1
PORTVERSION=	7.2.308
@


1.1.2.4
log
@Non x86 platform are marked as Broken....
@
text
@a22 4
.if (${MACHINE} != "i386")
BROKEN= This software cannot run on non x86 platform
.endif

@


1.1.2.5
log
@Now works on alpha :)
@
text
@d23 4
a34 5
	--with-double-precision \
	--with-long-double-precision \
	--disable-rpath \
	--without-rtldebug \
	--without-cdebug \
@


1.1.2.6
log
@Pike 7.2.312
@
text
@d9 1
a9 1
PORTVERSION=	7.2.312
d31 5
a54 8
		 --with-double-precision \
		 --with-long-double-precision \
		 --disable-rpath \
		 --without-rtldebug \
		 --without-cdebug \
		 --without-copt \
		 --without-shared-nodes \
		 --without-security \
d56 1
a56 3
		 --with-poll \
		 --with-max-fd=60000 \
		 --without-relocatable-dumped-modules \
@


1.1.2.7
log
@Updated to 7.2.316
@
text
@d9 1
a9 1
PORTVERSION=	7.2.316
@


1.1.2.8
log
@More smart freebsd port (not finished yet).
@
text
@a9 1
PORTREVISION=	1
d13 1
a13 5
		ftp://ftp.oav.net/pike/7.2/unofficial/ \
		http://ftp.oav.net/pike/7.2/unofficial/ \
		http://grendel.firewall.com/caudium-pkg/ \
		ftp://ftp.caudium.net/caudium/snapshots/pike/7.2/unofficial/ \
		http://ftp.caudium.net/caudium/snapshots/pike/7.2/unofficial/
a22 7
LIB_DEPENDS=	gmp.4:${PORTSDIR}/math/libgmp3 \
		jpeg.9:${PORTSDIR}/graphics/jpeg \
		tiff.4:${PORTSDIR}/graphics/tiff \
		gdbm.2:${PORTSDIR}/databases/gdbm \
		mird.1:${PORTSDIR}/databases/mird \
		pdf.4:${PORTSDIR}/print/pdflib

d25 1
d27 21
d63 1
a63 92
		 --without-perl \
		 --with-gmp \
		 --with-zlib \
		 --with-threads \
		 --with-readline \
		 --with-jpeg=${PREFIX} \
		 --with-tiff \
		 --with-gdbm=${PREFIX} \
		 --with-ssleay \
		 --with-libpdf

.include <bsd.port.pre.mk>

.if exists(${LOCALBASE}/lib/libttf.so.4)
WITH_TTF=	yes
.endif

.if exists(${LOCALBASE}/lib/libfreetype.so.9)
WITH_FREETYPE=	yes
.endif

.if exists(${LOCALBASE}/lib/libmysqlclient.so.10)
WITH_MYSQL=	yes
.endif

.if exists(${LOCALBASE}/lib/libpq.so.2)
WITH_POSTGRES=	yes
.endif

.if exists(${LOCALBASE}/lib/libodbc.so.1)
WITH_UNIXODBC=	yes
.endif

.if exists(${LOCALBASE}/lib/libsane.so.1)
WITH_SANE=	yes
.endif

.if defined(WITH_TTF)
LIB_DEPENDS+=	ttf.4:${PORTSDIR}/print/freetype
CONFIGURE_ARGS+= --with-ttflib
.else
CONFIGURE_ARGS+= --without-ttflib
.endif

.if defined(WITH_FREETYPE)
LIB_DEPENDS+=	freetype.9:${PORTSDIR}/print/freetype2
CONFIGURE_ARGS+= --with-freetype
.else
CONFIGURE_ARGS+= --without-freetype
.endif

.if defined(WITH_MYSQL)
LIB_DEPENDS+=	mysqlclient.10:${PORTSDIR}/databases/mysql323-client
CONFIGURE_ARGS+= --with-mysql=${PREFIX}
.else
CONFIGURE_ARGS+= --without-mysql
.endif

.if defined(WITH_POSTGRES)
LIB_DEPENDS+=	pq.2:${PORTSDIR}/databases/postgresql7
CONFIGURE_ARGS+= --with-pgsql=${PREFIX}
.else
CONFIGURE_ARGS+= --without-pgsql
.endif

.if defined(WITH_MSQL)
BUILD_DEPENDS+=	msql:${PORTSDIR}/databases/msql
CONFIGURE_ARGS+= --with-msql=${PREFIX}
.else
CONFIGURE_ARGS+= --without-msql
.endif

.if defined(WITH_UNIXODBC)
LIB_DEPENDS+=	odbc.1:${PORTSDIR}/databases/unixODBC
CONFIGURE_ARGS+= --with-odbc
.endif

.if defined(WITH_IODBC)
LIB_DEPENDS+=	iodbc.3:${PORTSDIR}/databases/libiodbc
CONFIGURE_ARGS+= --with-odbc
.endif

.if !defined(WITH_UNIXODBC) && !defined(WITH_IODBC)
CONFIGURE_ARGS+= --without-odbc
.endif

.id defined(WITH_SANE)
LIB_DEPENDS+=	sane.1:${PORTSDIR}/graphics/sane-backends
CONFIGURE_ARGS+= --with-sane
.else
CONFIGURE_ARGS+= --without-sane
.endif
d74 4
a77 4
#pre-fetch:
#.if !defined(BATCH)
#	@@${SETENV} ${SCRIPTS_ENV} ${SH} ${SCRIPTDIR}/configure.pike
#.endif
d89 1
a89 1
.include <bsd.port.post.mk>
@


1.1.2.9
log
@Now this should far better :)
@
text
@a36 4
WANT_MESA=	yes
WANT_GTK=	yes
WANT_GNOME=	yes

a85 4
.if exists(${LOCALBASE}/lib/libiodbc.so.2)
WITH_IODBC=	yes
.endif

a89 9
.if defined(WITH_MOST)
WITH_TTF=	yes
WITH_FREETYPE=	yes
.endif

.if defined(WITH_OPTIMIZED_CFLAGS)
CFLAGS+=	-O3 -ffast-math -fomit-frame-pointer
.endif

d139 1
a139 1
.if defined(WITH_SANE)
a145 16
.if defined(HAVE_MESA) || defined(WITH_MESA)
USE_MESA=	yes
CONFIGURE_ARGS+= --with-GL --with-GLUT
.else
CONFIGURE_ARGS+= --without-GL --without-GLUT
.endif

.if defined(HAVE_GNOME)
USE_GNOME=	yes
USE_GTK=	yes
USE_GLI=	yes
CONFIGURE_ARGS+= --with-GTK --with-gnome --with-glade
.else
CONFIGURE_ARGS+= --without-GTK --without-gnome --without-glade
.endif

d155 4
a158 33
pre-everything::
.if !defined(WITH_OPTIMIZED_CFLAGS)
	@@${ECHO_MSG} "You can enable additional compilation optimizations"
	@@${ECHO_MSG} "by defining WITH_OPTIMIZED_CFLAGS"
.endif
.if !defined(WITH_TTF) && !defined(WITH_MOST)
	@@${ECHO_MSG} "You can enable _Image_TTF support by defining WITH_TTF."
.endif
.if !defined(WITH_FREETYPE) && !defined(WITH_MOST)
	@@${ECHO_MSG} "You can enable _Image_FreeType support by defining WITH_FREETYPE."
.endif
.if !defined(WITH_MYSQL)
	@@${ECHO_MSG} "You can enable MySQL support by defining WITH_MYSQL."
.endif
.if !defined(WITH_POSTGRES)
	@@${ECHO_MSG} "You can enable PostGres support by defining WITH_POSTGRES."
.endif
.if !defined(WITH_UNIXODBC) && !defined(WITH_IODBC)
	@@${ECHO_MSG} "You can enable unixODBC support by defining WITH_UNIXODBC."
	@@${ECHO_MSG} "You can enable iodbc support by defining WITH_IODBC."
	@@${ECHO_MSG} "Note that you can support only ONE of these two ODBC libs."
.endif
.if !defined(WITH_SANE)
	@@${ECHO_MSG} "You can enable Sane support by defining WITH_SANE."
.endif
.if !defined(WITH_SANE) || !defined(HAVE_MESA)
	@@${ECHO_MSG} "You can enable MesaGL support by defining WITH_MESA."
.endif
.if !defined(WITH_MOST)
	@@${ECHO_MSG} "You can enable most of the features here except Sane,"
	@@${ECHO_MSG} "MesaGLi, GNOME and SQL support by defining WITH_MOST."
.endif

@


1.1.2.10
log
@Small addition :)
@
text
@a97 4
.if exists(${LOCALBASE}/lib/libgtkgl.so.5)
WITH_MESA=	yes
.endif

a164 1
LIB_DEPENDS+=	gtkgl.5:${PORTSDIR}/x11-toolkits/gtkglarea
@


1.1.2.11
log
@Small fix till RIS will upgrade their autoconf / automake script to recent version of this tools... :-/
@
text
@a39 2
#USE_AUTOCONF_VER=213
#USE_AUTOMAKE=	yes
a227 2
#	@@cd ${WRKSRC}; \
#	./run_autoconfig
d229 3
@


1.1.2.12
log
@Pike 7.2.352
@
text
@d9 1
a9 1
PORTVERSION=	7.2.352
@


1.1.2.13
log
@Dependencies....
@
text
@d28 1
a28 1
LIB_DEPENDS=	gmp.5:${PORTSDIR}/math/libgmp4 \
@


1.1.2.14
log
@Fixes 'cause PDFlib seems to have woes to compiles on Freebsd 4.6-Prerelease.
@
text
@d32 2
a33 1
		mird.1:${PORTSDIR}/databases/mird
d67 2
a68 1
		 --with-ssleay
a103 4
.if exists(${LOCALBASE}/lib/libpdf.so.4)
WITH_PDF=	yes
.endif

a168 7
.if defined(WITH_PDF)
LIB_DEPENDS+=	pdf.4:${PORTSDIR}/print/pdflib
CONFIGURE_ARGS+= --with-libpdf
.else
CONFIGURE_ARGS+= --without-libpdf
.endif

a221 3
.endif
.if !defined(WITH_PDF)
	@@${ECHO_MSG} "You can enable PDF support by defining WITH_PDF."
@


1.1.2.15
log
@Update to 7.2.354 and fix for _Image_TTF with new location of freetype1 includes.
@
text
@d9 1
a9 1
PORTVERSION=	7.2.354
@


1.1.2.16
log
@Typo in mysql detection... And it seems that ssleay is somewhat buggy on FreeBSD... :/
@
text
@d9 1
a9 1
PORTVERSION=	7.2.356
d66 1
a66 1
		 --without-ssleay
d78 1
a78 1
.if exists(${LOCALBASE}/lib/mysql/libmysqlclient.so.10)
@


1.1.2.17
log
@Update...
@
text
@d10 1
a10 1
PORTREVISION=	2
@


1.1.2.18
log
@Now _Image_TTF works :)
@
text
@d10 1
a10 1
PORTREVISION=	4
@


1.1.2.19
log
@Fixed gdbm
@
text
@d10 1
a10 1
PORTREVISION=	5
d65 1
a65 1
		 --with-gdbm \
a66 1
#		 --with-gdbm=${PREFIX} \
@


1.1.2.20
log
@Dammed !
@
text
@a67 1
#		 --without-relocatable-dumped-modules \
@


1.1.2.21
log
@Dammed ! (bis)
@
text
@d10 1
a10 1
PORTREVISION=	6
@


1.1.2.22
log
@Pike 7.2.380
@
text
@d9 2
a10 2
PORTVERSION=	7.2.380
PORTREVISION=	0
@


1.1.2.23
log
@Gmp 4.1 supports./
@
text
@d10 1
a10 1
PORTREVISION=	1
d28 1
a28 1
LIB_DEPENDS=	gmp.6:${PORTSDIR}/math/libgmp4 \
@


1.1.2.24
log
@-03 gives buggy code under Alpha platform.
@
text
@a113 1
.if (${MACHINE} == "i386")
a114 3
.else
CFLAGS+=	-ffast-math -fomit-frame-pointer
.endif
@


1.1.2.25
log
@Fix
@
text
@d10 1
a10 1
PORTREVISION=	2
d66 1
a66 2
		 --without-ssleay \
		 --prefix=${PREFIX}
@


1.1.2.26
log
@Some ports are now in FreeBSD ports distributions... :)
@
text
@@


