Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 18 Sep 2014 15:53:33 +0000 (UTC)
From:      Tijl Coosemans <tijl@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r368490 - in head/devel/swig20: . files
Message-ID:  <201409181553.s8IFrXI6012914@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: tijl
Date: Thu Sep 18 15:53:32 2014
New Revision: 368490
URL: http://svnweb.freebsd.org/changeset/ports/368490
QAT: https://qat.redports.org/buildarchive/r368490/

Log:
  - Remove autoconf dependency and USES=libtool
  - Remove -fPIC, left over from version 1.3
  - Patch configure for modern versions of FreeBSD and DragonFly

Added:
  head/devel/swig20/files/patch-configure   (contents, props changed)
Modified:
  head/devel/swig20/Makefile

Modified: head/devel/swig20/Makefile
==============================================================================
--- head/devel/swig20/Makefile	Thu Sep 18 15:44:25 2014	(r368489)
+++ head/devel/swig20/Makefile	Thu Sep 18 15:53:32 2014	(r368490)
@@ -3,6 +3,7 @@
 
 PORTNAME=	swig
 PORTVERSION=	2.0.12
+PORTREVISION=	1
 CATEGORIES=	devel
 MASTER_SITES=	SF/${PORTNAME}/${PORTNAME}/${PORTNAME}-${PORTVERSION}
 
@@ -13,14 +14,12 @@ LICENSE=	GPLv3
 
 LIB_DEPENDS=	libpcre.so:${PORTSDIR}/devel/pcre
 
-USES=		gmake libtool lua:51
-USE_AUTOTOOLS=	autoconf:env
+USES=		gmake lua:51
 
 VER=		${PORTVERSION:R}
 PLIST_SUB+=	PORTVERSION=${PORTVERSION} VER="${VER}"
 
 GNU_CONFIGURE=	yes
-CFLAGS+=	-fPIC -DPIC
 ALL_TARGET=	# none
 
 CONFIGURE_ARGS+=--program-suffix=${VER}
@@ -33,7 +32,7 @@ OCTAVE_VER_CMD=	${LOCALBASE}/bin/octave-
 
 OPTIONS_DEFINE=	DOCS EXAMPLES
 
-.include <bsd.port.pre.mk>
+.include <bsd.port.options.mk>
 
 post-patch:
 	${SETENV} OCTAVE_VER=$$(${OCTAVE_VER_CMD}) \
@@ -68,4 +67,4 @@ post-install:
 regression-test: build
 	cd ${WRKSRC} && ${MAKE_CMD} check
 
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>

Added: head/devel/swig20/files/patch-configure
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/swig20/files/patch-configure	Thu Sep 18 15:53:32 2014	(r368490)
@@ -0,0 +1,24 @@
+--- configure.orig	2014-02-09 22:21:00 UTC
++++ configure
+@@ -6420,8 +6420,8 @@
+ 		fi ;;
+ 	*-*-linux*) LDSHARED="gcc -shared";;
+ 	*-*-dgux*) LDSHARED="ld -G";;
+-	*-*-freebsd3*) LDSHARED="gcc -shared";;
+-	*-*-freebsd* | *-*-openbsd*) LDSHARED="ld -Bshareable";;
++	*-*-dragonfly* | *-*-freebsd*) LDSHARED="$CC -shared";;
++	*-*-openbsd*) LDSHARED="ld -Bshareable";;
+ 	*-*-netbsd*)
+ 		if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
+ 		then
+@@ -6489,8 +6489,8 @@
+ 		 else CCSHARED="+z"
+ 		 fi;;
+ 	*-*-linux*) CCSHARED="-fpic";;
+-	*-*-freebsd* | *-*-openbsd*) CCSHARED="-fpic";;
+-	*-*-netbsd*) CCSHARED="-fPIC";;
++	*-*-openbsd*) CCSHARED="-fpic";;
++	*-*-dragonfly* | *-*-freebsd* | *-*-netbsd*) CCSHARED="-fPIC";;
+ 	*-sco-sysv*) CCSHARED="-KPIC -dy -Bdynamic";;
+ 	*-*-irix6*)  case $CC in
+ 		   *gcc*) CCSHARED="-shared";;



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