mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-19 03:52:17 +00:00
122 lines
3.3 KiB
Makefile
122 lines
3.3 KiB
Makefile
# $FreeBSD$
|
|
|
|
PORTNAME= pike78
|
|
PORTVERSION= ${PIKEVERSION}
|
|
PORTREVISION= 2
|
|
CATEGORIES= lang
|
|
MASTER_SITES= http://pike.ida.liu.se/pub/pike/all/${PORTVERSION}/ \
|
|
ftp://pike.ida.liu.se/pub/pike/beta/${PORTVERSION}/ \
|
|
http://pike.ida.liu.se/pub/pike/beta/${PORTVERSION}/ \
|
|
ftp://ftp.caudium.net/pike/official_releases/${PORTVERSION}/
|
|
DISTNAME= Pike-v${PORTVERSION}
|
|
|
|
MAINTAINER= ports@FreeBSD.org
|
|
COMMENT= Dynamic programming language with a syntax similar to C++
|
|
|
|
BROKEN= fails to build
|
|
DEPRECATED= Broken for more than 6 months
|
|
EXPIRATION_DATE= 2018-01-27
|
|
|
|
LIB_DEPENDS= libtiff.so:graphics/tiff \
|
|
libgdbm.so:databases/gdbm \
|
|
libpcre.so:devel/pcre \
|
|
libgmp.so:math/gmp \
|
|
libnettle.so:security/nettle
|
|
|
|
CONFLICTS= pike7[26]-[0-9]*
|
|
|
|
OPTIONS_DEFINE= TTF FREETYPE MYSQL PGSQL
|
|
OPTIONS_DEFAULT=TTF FREETYPE MYSQL
|
|
NO_OPTIONS_SORT=yes
|
|
TTF_DESC?= Enable FreeType 1 (libttf) font rendering engine
|
|
TTF_LIB_DEPENDS= libttf.so:print/freetype
|
|
TTF_CONFIGURE_WITH= ttflib
|
|
FREETYPE_LIB_DEPENDS= libfreetype.so:print/freetype2
|
|
FREETYPE_CONFIGURE_WITH=freetype
|
|
MYSQL_USE= mysql=yes
|
|
MYSQL_CONFIGURE_WITH= mysql
|
|
PGSQL_USES= pgsql
|
|
PGSQL_CONFIGURE_WITH= pgsql
|
|
|
|
CFLAGS+= -ffast-math -fomit-frame-pointer
|
|
|
|
GNU_CONFIGURE= yes
|
|
CONFIGURE_ENV= M4="/usr/bin/m4 -g"
|
|
CONFIGURE_ARGS+= --without-debug \
|
|
--with-thread-library="-lpthread" \
|
|
--with-double-precision \
|
|
--with-long-double-precision \
|
|
--disable-rpath \
|
|
--without-rtldebug \
|
|
--without-cdebug \
|
|
--without-copt \
|
|
--without-security \
|
|
--with-oob \
|
|
--without-poll \
|
|
--without-devpoll \
|
|
--with-max-fd=60000 \
|
|
--with-gmp \
|
|
--with-zlib \
|
|
--with-threads \
|
|
--with-readline \
|
|
--with-jpeg \
|
|
--with-tiff \
|
|
--with-gdbm \
|
|
--with-perl \
|
|
--with-relocatable-dumped-modules \
|
|
--without-GL --without-GLUT \
|
|
--without-GTK \
|
|
--without-ffmpeg \
|
|
--without-fftw \
|
|
--without-glade \
|
|
--without-gnome \
|
|
--without-gssapi \
|
|
--without-java \
|
|
--without-libglade-config \
|
|
--without-libpdf --without-libpanda \
|
|
--without-machine-code \
|
|
--without-msql \
|
|
--without-odbc \
|
|
--without-sane \
|
|
--without-svg \
|
|
--without-sybase \
|
|
--prefix=${PREFIX}
|
|
|
|
USES= bison gettext gmake jpeg perl5
|
|
|
|
PLIST_FILES= bin/pike bin/pike78 bin/hilfe \
|
|
man/man1/pike.1.gz
|
|
|
|
ONLY_FOR_ARCHS= i386 amd64
|
|
|
|
do-configure:
|
|
@${MAKE} -C ${WRKSRC} configure CONFIGUREARGS="${CONFIGURE_ARGS}"
|
|
|
|
post-patch:
|
|
@${REINPLACE_CMD} -e 's| -lgmp| -L${LOCALBASE}/lib -lgmp|' \
|
|
${WRKSRC}/src/modules/Gmp/configure ${WRKSRC}/src/modules/_Image_XFace/configure
|
|
@${REINPLACE_CMD} -e '/memchr_memcmp.*needle/s/^/static /' \
|
|
${WRKSRC}/src/pike_search_engine2.c
|
|
@${REINPLACE_CMD} -e 's|%%PTHREAD_CFLAGS%%||' \
|
|
-e 's|%%PTHREAD_LIBS%%|-lpthread|' \
|
|
-e 's|,-Bshareable|& -shared|' \
|
|
${WRKSRC}/src/configure
|
|
@${REINPLACE_CMD} -e '/install.*MANDIR/s|^|//|' \
|
|
${WRKSRC}/bin/install.pike
|
|
|
|
do-install:
|
|
@cd ${WRKSRC} && ${MAKE_CMD} ${INSTALL_TARGET} buildroot=${STAGEDIR}
|
|
${STRIP_CMD} ${STAGEDIR}${PREFIX}/pike/${PORTVERSION}/bin/pike
|
|
${INSTALL_SCRIPT} ${WRKSRC}/bin/hilfe ${STAGEDIR}${PREFIX}/bin
|
|
${INSTALL_MAN} ${WRKSRC}/man/pike.1 ${STAGEDIR}${MAN1PREFIX}/man/man1
|
|
@cd ${STAGEDIR}${PREFIX} && \
|
|
(${FIND} pike/${PORTVERSION} ! -type d && \
|
|
${FIND} pike/${PORTVERSION} -type d -empty -delete \
|
|
) >> ${TMPPLIST}
|
|
|
|
verify:
|
|
cd ${WRKSRC}; ${MAKE_CMD} verify
|
|
|
|
.include "Makefile.common"
|
|
.include <bsd.port.mk>
|