Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 23 Sep 2013 04:49:58 +0000 (UTC)
From:      Johan van Selst <johans@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r327905 - head/lang/swi-pl
Message-ID:  <201309230449.r8N4nwnA026147@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: johans
Date: Mon Sep 23 04:49:58 2013
New Revision: 327905
URL: http://svnweb.freebsd.org/changeset/ports/327905

Log:
  - Work around failing detection of dlopen()
    this should fix the build on CURRENT
  - While here, minor style cleanups and dependency correction
  
  Reported by:	eadler

Modified:
  head/lang/swi-pl/Makefile

Modified: head/lang/swi-pl/Makefile
==============================================================================
--- head/lang/swi-pl/Makefile	Mon Sep 23 04:39:38 2013	(r327904)
+++ head/lang/swi-pl/Makefile	Mon Sep 23 04:49:58 2013	(r327905)
@@ -3,6 +3,7 @@
 
 PORTNAME=	swi-pl
 PORTVERSION=	6.4.1
+PORTREVISION=	1
 CATEGORIES=	lang
 MASTER_SITES=	http://www.swi-prolog.org/download/stable/src/
 DISTNAME=	pl-${PORTVERSION}
@@ -10,9 +11,8 @@ DISTNAME=	pl-${PORTVERSION}
 MAINTAINER=	johans@FreeBSD.org
 COMMENT=	Edinburgh-style Prolog compiler
 
-LIB_DEPENDS=	gmp:${PORTSDIR}/math/gmp \
-		readline:${PORTSDIR}/devel/readline \
-		jpeg:${PORTSDIR}/graphics/jpeg
+LIB_DEPENDS=	libgmp.so:${PORTSDIR}/math/gmp \
+		libjpeg.so:${PORTSDIR}/graphics/jpeg
 
 OPTIONS_SINGLE=	ODBC
 OPTIONS_SINGLE_ODBC=	IODBC UNIXODBC
@@ -27,9 +27,8 @@ MAN1=		swipl.1 swipl-rc.1 swipl-ld.1 xpc
 MANCOMPRESSED=	no
 
 NOPRECIOUSMAKEVARS=	yes
-USE_GMAKE=	yes
 USE_XORG=	xft xpm xt
-USES=		pkgconfig pathfix
+USES=		pkgconfig pathfix gmake
 MAKE_JOBS_UNSAFE=	yes
 GNU_CONFIGURE=	yes
 CONFIGURE_ENV=	ARCH=${ARCH}-${OPSYS:L}
@@ -44,9 +43,9 @@ NO_STAGE=	yes
 .include <bsd.port.options.mk>
 
 .if ${PORT_OPTIONS:MUNIXODBC}
-LIB_DEPENDS+=	odbc:${PORTSDIR}/databases/unixODBC
+LIB_DEPENDS+=	libodbc.so:${PORTSDIR}/databases/unixODBC
 .else
-LIB_DEPENDS+=	iodbc:${PORTSDIR}/databases/libiodbc
+LIB_DEPENDS+=	libiodbc.so:${PORTSDIR}/databases/libiodbc
 .endif
 
 .include <bsd.port.pre.mk>
@@ -66,6 +65,8 @@ post-configure:
 	@${REINPLACE_CMD} -e '/^CMFLAGS=/s/$$/ -fPIC/' \
 		${WRKSRC}/packages/Dialect.defs
 .endif
+	@{ ${ECHO} "#define HAVE_DLOPEN 1";  ${ECHO} "#define HAVE_DLADDR 1"; }\
+		>> ${WRKSRC}/src/config.h
 
 post-patch:
 	@${REINPLACE_CMD} -e 's!^mandir=@mandir@!mandir=${MANPREFIX}/man!' \



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201309230449.r8N4nwnA026147>