From owner-svn-ports-head@freebsd.org Tue Dec 19 16:03:33 2017 Return-Path: Delivered-To: svn-ports-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id D274EE8C478; Tue, 19 Dec 2017 16:03:33 +0000 (UTC) (envelope-from bapt@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 86BA87EB67; Tue, 19 Dec 2017 16:03:33 +0000 (UTC) (envelope-from bapt@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id vBJG3W2N088617; Tue, 19 Dec 2017 16:03:32 GMT (envelope-from bapt@FreeBSD.org) Received: (from bapt@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id vBJG3WA8088616; Tue, 19 Dec 2017 16:03:32 GMT (envelope-from bapt@FreeBSD.org) Message-Id: <201712191603.vBJG3WA8088616@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: bapt set sender to bapt@FreeBSD.org using -f From: Baptiste Daroussin Date: Tue, 19 Dec 2017 16:03:32 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r456731 - head/devel/libopensync X-SVN-Group: ports-head X-SVN-Commit-Author: bapt X-SVN-Commit-Paths: head/devel/libopensync X-SVN-Commit-Revision: 456731 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 19 Dec 2017 16:03:33 -0000 Author: bapt Date: Tue Dec 19 16:03:32 2017 New Revision: 456731 URL: https://svnweb.freebsd.org/changeset/ports/456731 Log: Switch from swig 1.3 t swig 3.0 Use a simpler mechanism to get the installed swig path Add license Modified: head/devel/libopensync/Makefile Modified: head/devel/libopensync/Makefile ============================================================================== --- head/devel/libopensync/Makefile Tue Dec 19 15:53:19 2017 (r456730) +++ head/devel/libopensync/Makefile Tue Dec 19 16:03:32 2017 (r456731) @@ -11,7 +11,9 @@ MASTER_SITES= http://www.opensync.org/download/release MAINTAINER= danilo@FreeBSD.org COMMENT= PIM data synchronization framework -BUILD_DEPENDS= swig1.3:devel/swig13 +LICENSE= LGPL21 + +BUILD_DEPENDS= swig3.0:devel/swig30 LIB_DEPENDS= libexslt.so:textproc/libxslt CONFLICTS= libopensync-0.22* @@ -20,19 +22,16 @@ USES= cmake pkgconfig python tar:bzip2 sqlite:3 CMAKE_ARGS+= -Wno-dev USE_GNOME= glib20 libxml2 USE_LDCONFIG= yes -CMAKE_ARGS+= -DPYTHON_INCLUDE_PATH:PATH=${PYTHON_INCLUDEDIR} +CMAKE_ARGS+= -DPYTHON_INCLUDE_PATH:PATH=${PYTHON_INCLUDEDIR} \ + -DSWIG_DIR=`swig3.0 -swiglib` \ + -DSWIG_EXECUTABLE:FILEPATH=${LOCALBASE}/bin/swig3.0 OPTIONS_DEFINE= DOCS -SWIG_VER= $$(cd ${PORTSDIR}/devel/swig13 && ${MAKE} -V PORTVERSION) -SWIG_DATADIR= $$(cd ${PORTSDIR}/devel/swig13 && ${MAKE} -V DATADIR) - post-patch: @${REINPLACE_CMD} -e "s|\$${LIBDATA_INSTALL_DIR}/pkgconfig|${PREFIX}/libdata/pkgconfig|" \ -e "s|FIND_PACKAGE( SWIG|FIND_PACKAGE( SWIG REQUIRED|" \ -e "/FIND_PACKAGE( Check )/d" ${WRKSRC}/CMakeLists.txt - @${REINPLACE_CMD} -e "s|/usr/local/share/swig1.3|${SWIG_DATADIR}/${SWIG_VER}|g" \ - ${WRKSRC}/cmake/modules/FindSWIG.cmake @${REINPLACE_CMD} -e 's|glib/.*\.h>|glib.h>|g' \ ${WRKSRC}/opensync/common/opensync_list.c