head	1.6;
access;
symbols
	RELEASE_4_10_0:1.5;
locks; strict;
comment	@# @;


1.6
date	2004.05.05.21.58.11;	author vanilla;	state dead;
branches;
next	1.5;

1.5
date	2004.03.29.09.05.05;	author kris;	state Exp;
branches;
next	1.4;

1.4
date	2004.03.16.17.27.30;	author vanilla;	state Exp;
branches;
next	1.3;

1.3
date	2004.02.25.17.09.45;	author vanilla;	state Exp;
branches;
next	1.2;

1.2
date	2004.02.25.07.02.51;	author vanilla;	state Exp;
branches;
next	1.1;

1.1
date	2004.02.20.20.13.47;	author vanilla;	state Exp;
branches;
next	;


desc
@@


1.6
log
@Remove pike75, we already repocopy it to pike76.
@
text
@# New ports collection makefile for:	pike75
# Date created:		05 Feb 2004
# Whom:			kiwi@@oav.net
#
# $FreeBSD: ports/lang/pike75/Makefile,v 1.5 2004/03/29 09:05:05 kris Exp $
#

PORTNAME=	pike75
PORTVERSION=	7.5.21
CATEGORIES=	lang
MASTER_SITES=	ftp://pike.ida.liu.se/pub/pike/all/${PORTVERSION}/ \
		ftp://ftp.oav.net/pike/7.5/export/ \
		http://grendel.firewall.com/caudium-pkg/ \
		ftp://ftp.caudium.net/pike/official_releases/${PORTVERSION}/
DISTNAME=	Pike-v${PORTVERSION}

MAINTAINER=	kiwi@@oav.net
COMMENT=	A dynamic programming language with a syntax similar to C++

LIB_DEPENDS=	jpeg.9:${PORTSDIR}/graphics/jpeg \
		tiff.4:${PORTSDIR}/graphics/tiff \
		gdbm.3:${PORTSDIR}/databases/gdbm \
		fftw.2:${PORTSDIR}/math/fftw \
		pcre.0:${PORTSDIR}/devel/pcre \
		nettle.1:${PORTSDIR}/security/nettle \
		mird.1:${PORTSDIR}/databases/mird

OPTIONS=	TTF "Add FreeType 1 support" on \
		FREETYPE "Add FreeType 2 support" on \
		OPT_CFLAGS "Enable additional compiliation optimizations" on \
		MYSQL "Add MySQL support" on

MAN1=		pike.1

WRKSRC=		${WRKDIR}/Pike-v${PORTVERSION}/src/

WANT_MESA=	yes

GNU_CONFIGURE=	yes
CONFIGURE_ENV=	CPPFLAGS+=${PTHREAD_CFLAGS}
CONFIGURE_ARGS+=	--without-debug \
		 --with-thread-library=${PTHREAD_LIBS} \
		 --with-double-precision \
		 --with-long-double-precision \
		 --disable-rpath \
		 --without-rtldebug \
		 --without-cdebug \
		 --without-copt \
		 --without-security \
		 --with-oob \
		 --with-poll \
		 --with-max-fd=60000 \
		 --with-gmp \
		 --with-zlib \
		 --with-threads \
		 --with-readline \
		 --with-jpeg \
		 --with-tiff \
		 --with-gdbm \
		 --without-java \
		 --without-ssleay \
		 --without-GTK \
		 --without-gnome \
		 --without-glade \
		 --without-libglade-config \
		 --without-machine-code \
		 --prefix=${PREFIX}

USE_REINPLACE=	yes
USE_GETTEXT=	yes
USE_BISON=	yes

.include <bsd.port.pre.mk>

.if ${ARCH} != "i386"
BROKEN=		"Does not build on !i386 (errors running pike binary during build)"
.endif

PLIST_SUB+=	PORTVERSION=${PORTVERSION}

# FreeBSD 5.0 Needs to have libgmp port to support gmp.
.if ${OSVERSION} >= 500000
LIB_DEPENDS+=	gmp.6:${PORTSDIR}/math/libgmp4
.endif

# Allow building Embeded perl when >= 5.6
.if ${PERL_LEVEL} > 500600
CONFIGURE_ARGS+=	--with-perl
USE_PERL5=	YES
.else
CONFIGURE_ARGS+=	--without-perl
.endif

.if exists(${LOCALBASE}/lib/libavcodec.so.0)
WITH_FFMPEG=	yes
OPTIONS+=	FFMPEG "Add FFmpeg support" on
.else
OPTIONS+=	FFMPEG "Add FFmpeg support" off
.endif

.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/libpq.so.3)
WITH_POSTGRES=	yes
OPTIONS+=	POSTGRES "Add Postgres SQL support" on
.else
OPTIONS+=	POSTGRES "Add Postgres SQL support" off
.endif

.if exists(${LOCALBASE}/lib/libodbc.so.1)
WITH_UNIXODBC=	yes
OPTIONS+=	UNIXODBC "Add UnixODBC support (incompatible with IODBC)" on
.else
OPTIONS+=	UNIXODBC "Add UnixODBC support (incompatible with IODBC)" off
.endif

.if exists(${LOCALBASE}/lib/libiodbc.so.2)
WITH_IODBC=	yes
OPTIONS+=	IODBC "Add iODBC support (incompatible with UnixODBC)" on
.else
OPTIONS+=	IODBC "Add iODBC support (incompatible with UnixODBC)" off
.endif

.if exists(${LOCALBASE}/lib/libsane.so.1)
WITH_SANE=	yes
OPTIONS+=	SANE "Add SANE support" on
.else
OPTIONS+=	SANE "Add SANE support" off
.endif

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

.if exists(${LOCALBASE}/lib/libpdf.so.6) || exists(${LOCALBASE}/lib/libpanda.so.0)
WITH_PDF=	yes
OPTIONS+=	PDF "Add PDF support" on
.else
OPTIONS+=	PDF "Add PDF support" off
.endif

.if exists(${LOCALBASE}/lib/librsvg-2.so.2)
WITH_SVG2=	yes
OPTIONS+=	SVG2 "Add SVG2 support" on
.else
OPTIONS+=	SVG2 "Add SVG2 support" off
.endif

.if exists(${LOCALBASE}/lib/libct.so.1)
WITH_TDS=	yes
OPTIONS+=	TDS "Add FreeTDS (Sybase and MSSQL) support" on
.else
OPTIONS+=	TDS "Add FreeTDS (Sybase and MSSQL) support" off
.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_OPT_CFLAGS)
.if (${MACHINE} == "i386")
CFLAGS+=	-O3 -ffast-math -fomit-frame-pointer
.else
CFLAGS+=	-ffast-math -fomit-frame-pointer
.endif
.endif

.if defined(WITH_FFMPEG)
LIB_DEPENDS+=	avcodec.0:${PORTSDIR}/multimedia/ffmpeg
CONFIGURE_ARGS+=	--with-ffmpeg
.else
CONFIGURE_ARGS+=	--without-ffmpeg
.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)
USE_MYSQL=	yes
CONFIGURE_ARGS+=	--with-mysql=${PREFIX}
.else
CONFIGURE_ARGS+=	--without-mysql
.endif

.if defined(WITH_POSTGRES)
LIB_DEPENDS+=	pq.3:${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.6:${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.1:${PORTSDIR}/databases/freetds
CONFIGURE_ARGS+=	--with-sybase
PLIST_SUB+=	SYBASE:=""
.else
CONFIGURE_ARGS+=	--without-sybase
PLIST_SUB+=	SYBASE:="@@comment "
.endif

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

USE_GMAKE=	yes

INSTALL_TARGET=	install_nodoc

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

post-patch:
	@@${REINPLACE_CMD} -e 's| -lgmp| -L${LOCALBASE}/lib -lgmp|' \
		${WRKSRC}/modules/Gmp/configure ${WRKSRC}/modules/_Image_XFace/configure
	@@${REINPLACE_CMD} -e 's|%%PTHREAD_CFLAGS%%|${PTHREAD_CFLAGS}|' \
		${WRKSRC}/configure
	@@${REINPLACE_CMD} -e 's|%%PTHREAD_LIBS%%|${PTHREAD_LIBS}|' \
		${WRKSRC}/configure

post-install:
	${STRIP_CMD} ${PREFIX}/pike/${PORTVERSION}/bin/pike
	${INSTALL_SCRIPT} ${WRKSRC}hilfe ${PREFIX}/bin
	${INSTALL_MAN} ${WRKSRC}../man/pike.1 ${MAN1PREFIX}/man/man1

verify:
	@@(cd ${WRKSRC}; make verify)

# Autodocs is currently b0rken.... :/
#doc:
#	@@(cd ${WRKSRC}; make documentation)

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


1.5
log
@BROKEN on !i386: Does not build (errors running pike binary during build)
@
text
@d5 1
a5 1
# $FreeBSD$
@


1.4
log
@- Update to 7.5.21
- Fix threads support that was broken

PR:		ports/64344
Submitted by:	maintainer
@
text
@d75 4
@


1.3
log
@Should append variable to LDFLAGS, no assign it.

Submitted by:	maintainer
@
text
@d9 1
a9 2
PORTVERSION=	7.5.17
PORTREVISION=	1
a11 2
		ftp://ftp.oav.net/pkg_freebsd/distfiles/ \
		http://ftp.oav.net/pkg_freebsd/distfiles/ \
a12 1
		http://ftp.oav.net/pike/7.5/export/ \
d15 1
a15 1
DISTNAME=	Pike-v${PORTVERSION}-4
d25 1
a26 2
# Nettle doesn't work ;(
#		nettle.1:${PORTSDIR}/security/nettle \
d40 1
a40 1
CONFIGURE_ENV=	LDFLAGS+=${PTHREAD_LIBS} CPPFLAGS+=${PTHREAD_CFLAGS}
d42 1
d278 1
a278 6
#.if (${MACHINE} == "i386")
#CONFIGURE_ARGS+= --with-poll
#.else
## Alpha seems to have problems with poll() with pike... :/
#CONFIGURE_ARGS+= --without-poll
#.endif
d280 1
a280 1
USE_GMAKE=	yes
@


1.2
log
@- Added mird support
- Fixed detection of libs that was b0rken
- Fixed patch for PTHREAD_LIBS and PTHREADS_CFLAGS

PR:		ports/63187
Submitted by:	maintainer
@
text
@d45 1
a45 1
CONFIGURE_ENV=	LDFLAGS=${PTHREAD_LIBS} CPPFLAGS+=${PTHREAD_CFLAGS}
@


1.1
log
@Add pike75 7.5.17, a dynamic programming language with a syntax similar
to C++.

PR:		ports/62436
Submitted by:	kiwi@@oav.net
@
text
@d10 1
d28 2
a29 1
		pcre.0:${PORTSDIR}/devel/pcre
d61 1
a61 1
		 --with-jpeg=${PREFIX} \
@

