2002-10-27 06:04:35 +01:00
|
|
|
# New ports collection makefile for: pike
|
|
|
|
# Date created: 16 Jan 1999
|
|
|
|
# Whom: vns@delta.odessa.ua
|
1999-04-03 04:05:18 +02:00
|
|
|
#
|
1999-08-25 08:35:40 +02:00
|
|
|
# $FreeBSD$
|
1999-04-03 04:05:18 +02:00
|
|
|
#
|
|
|
|
|
2002-10-27 06:04:35 +01:00
|
|
|
PORTNAME= pike72
|
2004-03-19 22:08:09 +01:00
|
|
|
PORTVERSION= 7.2.570
|
1999-04-03 04:05:18 +02:00
|
|
|
CATEGORIES= lang
|
2004-05-21 08:28:33 +02:00
|
|
|
MASTER_SITES= ftp://ftp.oav.net/pike/7.2/unofficial/ \
|
|
|
|
ftp://ftp.us.caudium.net/pub/pike/7.2/unofficial/
|
2002-08-21 20:22:13 +02:00
|
|
|
DISTNAME= pike-${PORTVERSION}
|
1999-04-03 04:05:18 +02:00
|
|
|
|
2002-08-21 20:22:13 +02:00
|
|
|
MAINTAINER= kiwi@oav.net
|
2003-02-21 13:35:09 +01:00
|
|
|
COMMENT= A dynamic programming language with a syntax similar to C++
|
2002-08-21 20:22:13 +02:00
|
|
|
|
2003-05-06 11:15:09 +02:00
|
|
|
LIB_DEPENDS= jpeg.9:${PORTSDIR}/graphics/jpeg \
|
2002-10-27 06:04:35 +01:00
|
|
|
tiff.4:${PORTSDIR}/graphics/tiff \
|
2003-01-03 09:26:35 +01:00
|
|
|
gdbm.3:${PORTSDIR}/databases/gdbm \
|
2002-10-27 06:04:35 +01:00
|
|
|
mird.1:${PORTSDIR}/databases/mird
|
1999-04-03 04:05:18 +02:00
|
|
|
|
|
|
|
WRKSRC= ${WRKDIR}/${DISTNAME}/src/
|
|
|
|
|
2003-02-11 08:12:56 +01:00
|
|
|
USE_BISON= yes
|
2004-03-19 22:08:09 +01:00
|
|
|
USE_GETTEXT= yes
|
2002-10-27 06:04:35 +01:00
|
|
|
|
2004-03-15 03:15:08 +01:00
|
|
|
GNU_CONFIGURE= yes
|
2002-08-23 21:06:16 +02:00
|
|
|
|
2002-10-27 06:04:35 +01:00
|
|
|
CONFIGURE_ARGS+= --without-debug \
|
|
|
|
--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 \
|
2004-03-19 22:08:09 +01:00
|
|
|
--without-GTK \
|
2002-10-27 06:04:35 +01:00
|
|
|
--with-gmp \
|
|
|
|
--with-zlib \
|
|
|
|
--with-threads \
|
|
|
|
--with-readline \
|
|
|
|
--with-jpeg=${PREFIX} \
|
|
|
|
--with-tiff \
|
|
|
|
--with-gdbm \
|
|
|
|
--without-ssleay
|
|
|
|
|
2002-08-23 21:06:16 +02:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2005-03-26 22:13:42 +01:00
|
|
|
.if ${ARCH} == "alpha" || ${ARCH} == "amd64" || ${ARCH} == "ia64"
|
|
|
|
BROKEN= "Does not build on alpha, amd64 or ia64"
|
|
|
|
.endif
|
|
|
|
|
2004-11-27 06:45:43 +01:00
|
|
|
.if ${ARCH} == "i386"
|
|
|
|
CONFIGURE_ARGS+= --with-long-double-precision
|
2004-06-15 13:40:51 +02:00
|
|
|
.endif
|
|
|
|
|
2003-05-06 11:15:09 +02:00
|
|
|
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
|
|
|
|
|
2002-10-27 06:04:35 +01:00
|
|
|
.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
|
|
|
|
|
2005-01-31 01:35:55 +01:00
|
|
|
.if exists(${LOCALBASE}/lib/libpq.so)
|
2002-10-27 06:04:35 +01:00
|
|
|
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
|
|
|
|
|
2004-12-18 16:34:20 +01:00
|
|
|
.if exists(${LOCALBASE}/lib/libpdf.so.7)
|
2002-10-27 06:04:35 +01:00
|
|
|
WITH_PDF= 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
|
2000-10-02 23:53:13 +02:00
|
|
|
.else
|
2002-10-27 06:04:35 +01:00
|
|
|
CONFIGURE_ARGS+= --without-ttflib
|
2000-10-02 23:53:13 +02:00
|
|
|
.endif
|
1999-04-03 04:05:18 +02:00
|
|
|
|
2002-10-27 06:04:35 +01:00
|
|
|
.if defined(WITH_FREETYPE)
|
|
|
|
LIB_DEPENDS+= freetype.9:${PORTSDIR}/print/freetype2
|
|
|
|
CONFIGURE_ARGS+= --with-freetype
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --without-freetype
|
2000-02-13 02:04:28 +01:00
|
|
|
.endif
|
|
|
|
|
2002-10-27 06:04:35 +01:00
|
|
|
.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)
|
2005-01-31 01:35:55 +01:00
|
|
|
USE_PGSQL= yes
|
2002-10-27 06:04:35 +01:00
|
|
|
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)
|
2004-12-18 16:34:20 +01:00
|
|
|
LIB_DEPENDS+= pdf.7:${PORTSDIR}/print/pdflib
|
2002-10-27 06:04:35 +01:00
|
|
|
CONFIGURE_ARGS+= --with-libpdf
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --without-libpdf
|
|
|
|
.endif
|
|
|
|
|
|
|
|
USE_GMAKE= yes
|
2003-05-06 11:15:09 +02:00
|
|
|
MAN1= hilfe.1 pike.1
|
|
|
|
MAN1PREFIX= ${PREFIX}/pike/${PORTVERSION}
|
2002-10-27 06:04:35 +01:00
|
|
|
|
|
|
|
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_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
|
|
|
|
|
1999-04-03 04:05:18 +02:00
|
|
|
pre-configure:
|
2002-10-27 06:04:35 +01:00
|
|
|
# @cd ${WRKSRC}; \
|
|
|
|
# ./run_autoconfig
|
1999-04-03 04:05:18 +02:00
|
|
|
@${ECHO} ${CONFIGURE_ARGS}
|
|
|
|
|
2000-10-02 23:53:13 +02:00
|
|
|
post-install:
|
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}pike ${PREFIX}/bin
|
|
|
|
${INSTALL_SCRIPT} ${WRKSRC}hilfe ${PREFIX}/bin
|
|
|
|
|
2002-08-23 21:06:16 +02:00
|
|
|
.include <bsd.port.post.mk>
|