head	1.6;
access;
symbols
	caudium_1_3_13:1.5
	caudium_1_3_12:1.5
	caudium_1_3_11:1.5
	caudium_1_3_10:1.5
	caudium_1_3_9:1.5
	caudium_1_3_8:1.5
	caudium_1_3_7:1.5
	caudium_1_3_6:1.5
	caudium_1_3_5:1.5
	caudium_1_3_4:1.5;
locks; strict;
comment	@# @;


1.6
date	2003.01.31.22.35.30;	author kiwi;	state dead;
branches;
next	1.5;

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

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

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

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

1.1
date	2002.08.01.22.45.30;	author kiwi;	state Exp;
branches;
next	;


desc
@@


1.6
log
@This is now in Pike 7.4 cvs
@
text
@# New ports collection makefile for:	pike
# Date created:		02 Aug 2002
# Whom:			kiwi@@caudium.net
#
# $FreeBSD$
#

PORTNAME=	pike73cvs
PORTVERSION=	7.3.51
PORTREVISION=	1
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@@caudium.net

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

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

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

WANT_MESA=	yes
WANT_GTK=	yes
WANT_GNOME=	yes
#USE_AUTOCONF_VER=213
#USE_AUTOMAKE=	yes

GNU_CONFIGURE=  yes

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-perl \
		 --with-gmp \
		 --with-zlib \
		 --with-threads \
		 --with-readline \
		 --with-jpeg=${PREFIX} \
		 --with-tiff \
		 --with-gdbm \
		 --without-java \
		 --without-ssleay \
		 --prefix=${PREFIX}

.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/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) || exists(${LOCALBASE}/lib/libpanda.so.0)
WITH_PDF=	yes
.endif

.if exists(${LOCALBASE}/lib/librsvg-2.so.2)
WITH_SVG2=	yes
.endif

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

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

.if defined(WITHOUT_RELOCATABLE_DUMPED_MODULES)
CONFIGURE_ARGS+= --without-relocatable-dumped-modules
.else
CONFIGURE_ARGS+= --with-relocatable-dumped-modules
.endif

.if defined(WITH_EXPIREMENTAL_FEATURES)
CONFIGURE_ARGS+= --with-computed-goto \
		 --with-pg \
		 --with-long-long-int \
		 --with-long-int \
		 --with-short-int \
		 --with-keypair-loop \
		 --without-lock \
		 --with-new-multisets
.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 \
		panda.0:${PORTSDIR}/print/panda
CONFIGURE_ARGS+= --with-libpdf --with-libpanda
.else
CONFIGURE_ARGS+= --without-libpdf --without-libpanda
.endif

.if defined(WITH_SVG2)
LIB_DEPENDS+=	librsvg-2.2:${PORTSDIR}/graphics/librsvg2
CONFIGURE_ARGS+= --with-svg
.else
CONFIGURE_ARGS+= --without-svg
.endif

.if defined(WITH_TDS)
LIB_DEPENDS+=	ct.0:${PORTSDIR}/databases/freetds
CONFIGURE_ARGS+= --with-sybase
.else
CONFIGURE_ARGS+= --without-sybase
.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 --with-libglade-config=/usr/X11R6/bin/libglade-config
.else
CONFIGURE_ARGS+= --without-GTK --without-gnome --without-glade --without-libglade-config
.endif

.if (${MACHINE} == "i386")
CONFIGURE_ARGS+= --with-poll
.else
# Alpha seems to have problems with poll() with pike... :/
CONFIGURE_ARGS+= --without-poll
.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_SVG2)
	@@${ECHO_MSG} "You can enable SVG2 image support by "
	@@${ECHO_MSG} "defining WITH_SVG2."
.endif
.if !defined(WITHOUT_RELOCATABLE_DUMPED_MODULES)
	@@${ECHO_MSG} "You can disable relocatable dumped modules by "
	@@${ECHO_MSG} "defining WITHOUT_RELOCATABLE_DUMPED_MODULES."
.endif
.if !defined(WITH_EXPIREMENTAL_FEATURES)
	@@${ECHO_MSG} "You can enable experemental features and optimization "
	@@${ECHO_MSG} "at you own risk by defining WITH_EXPIREMENTAL_FEATURES."
.endif
.if !defined(WITH_TDS)
	@@${ECHO_MSG} "You can enable direct access to Sybase and MS-SQL "
	@@${ECHO_MSG} "database using FreeTDS be defining WITH_TDS."
.endif


pre-configure:
#	@@cd ${WRKSRC}; \
#	./run_autoconfig
	@@${ECHO} ${CONFIGURE_ARGS}

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

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


1.5
log
@Fix again...
@
text
@@


1.4
log
@Small additions.
@
text
@d10 1
a10 1
PORTREVISION=	0
d65 2
a66 1
		 --without-ssleay
@


1.3
log
@Commit before sleep.
@
text
@d32 1
a32 2
		mird.1:${PORTSDIR}/databases/mird 
#		rsaref:2:${PORTSDIR}/security/rsaref
d109 4
d214 7
d233 1
a233 1
CONFIGURE_ARGS+= --with-GTK --with-gnome --with-glade
d235 1
a235 1
CONFIGURE_ARGS+= --without-GTK --without-gnome --without-glade
d281 16
@


1.2
log
@Somefeatures :)
@
text
@d32 2
a33 1
		mird.1:${PORTSDIR}/databases/mird
@


1.1
log
@FreeBSD port for Pike 7.3. Warning does not work yet.
@
text
@a55 2
		 --without-relocatable-dumped-modules \
		 --without-libpanda \
d64 1
a65 2
#		 --with-gdbm=${PREFIX} \
#		 --without-relocatable-dumped-modules \
d101 1
a101 1
.if exists(${LOCALBASE}/lib/libpdf.so.4)
d105 4
d114 17
d196 10
a205 2
LIB_DEPENDS+=	pdf.4:${PORTSDIR}/print/pdflib
CONFIGURE_ARGS+= --with-libpdf
d207 1
a207 1
CONFIGURE_ARGS+= --without-libpdf
@

