Index: databases/pgrouting/Makefile
===================================================================
--- databases/pgrouting/Makefile
+++ databases/pgrouting/Makefile
@@ -2,9 +2,8 @@
 # $FreeBSD$
 
 PORTNAME=	pgrouting
-PORTVERSION=	2.3.2
+PORTVERSION=	2.4.1
 DISTVERSIONPREFIX=	v
-PORTREVISION=	2
 CATEGORIES=	databases geography
 
 MAINTAINER=	lbartoletti@tuxfamily.org
Index: databases/pgrouting/distinfo
===================================================================
--- databases/pgrouting/distinfo
+++ databases/pgrouting/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1486559492
-SHA256 (pgRouting-pgrouting-v2.3.2_GH0.tar.gz) = ea443e451baf286b510bdda6a663460209d830c5309b0f6dce1222576e21d5b3
-SIZE (pgRouting-pgrouting-v2.3.2_GH0.tar.gz) = 6567058
+TIMESTAMP = 1494309702
+SHA256 (pgRouting-pgrouting-v2.4.1_GH0.tar.gz) = 11d225391cdac8e15136a51664b22fa007d10cb78bf8208374470a9044850fd4
+SIZE (pgRouting-pgrouting-v2.4.1_GH0.tar.gz) = 6775105
Index: databases/pgrouting/files/patch-CMakeLists.txt
===================================================================
--- /dev/null
+++ databases/pgrouting/files/patch-CMakeLists.txt
@@ -0,0 +1,19 @@
+--- CMakeLists.txt.orig	2017-05-18 20:17:25 UTC
++++ CMakeLists.txt
+@@ -11,11 +11,11 @@ if(POLICY CMP0046)
+     cmake_policy(SET CMP0046 OLD)
+ endif()
+ 
+-if ( ${CMAKE_SOURCE_DIR} STREQUAL ${CMAKE_BINARY_DIR} )
+-        message(FATAL_ERROR "In-source builds not allowed.
+-        Please make a new directory (called a build directory) and run CMake from there.
+-        You may need to remove CMakeCache.txt." )
+-endif()
++#if ( ${CMAKE_SOURCE_DIR} STREQUAL ${CMAKE_BINARY_DIR} )
++#        message(FATAL_ERROR "In-source builds not allowed.
++#        Please make a new directory (called a build directory) and run CMake from there.
++#        You may need to remove CMakeCache.txt." )
++#endif()
+ 
+ #---------------------------------------------
+ # Setting kind of build
Index: databases/pgrouting/pkg-plist
===================================================================
--- databases/pgrouting/pkg-plist
+++ databases/pgrouting/pkg-plist
@@ -1,13 +1,15 @@
-lib/postgresql/libpgrouting-2.3.so
-share/postgresql/extension/pgrouting--2.0.0--2.3.2.sql
-share/postgresql/extension/pgrouting--2.0.1--2.3.2.sql
-share/postgresql/extension/pgrouting--2.1.0--2.3.2.sql
-share/postgresql/extension/pgrouting--2.2.0--2.3.2.sql
-share/postgresql/extension/pgrouting--2.2.1--2.3.2.sql
-share/postgresql/extension/pgrouting--2.2.2--2.3.2.sql
-share/postgresql/extension/pgrouting--2.2.3--2.3.2.sql
-share/postgresql/extension/pgrouting--2.2.4--2.3.2.sql
-share/postgresql/extension/pgrouting--2.3.0--2.3.2.sql
-share/postgresql/extension/pgrouting--2.3.1--2.3.2.sql
-share/postgresql/extension/pgrouting--2.3.2.sql
+lib/postgresql/libpgrouting-2.4.so
+share/postgresql/extension/pgrouting--2.0.0--2.4.1.sql
+share/postgresql/extension/pgrouting--2.0.1--2.4.1.sql
+share/postgresql/extension/pgrouting--2.1.0--2.4.1.sql
+share/postgresql/extension/pgrouting--2.2.0--2.4.1.sql
+share/postgresql/extension/pgrouting--2.2.1--2.4.1.sql
+share/postgresql/extension/pgrouting--2.2.2--2.4.1.sql
+share/postgresql/extension/pgrouting--2.2.3--2.4.1.sql
+share/postgresql/extension/pgrouting--2.2.4--2.4.1.sql
+share/postgresql/extension/pgrouting--2.3.0--2.4.1.sql
+share/postgresql/extension/pgrouting--2.3.1--2.4.1.sql
+share/postgresql/extension/pgrouting--2.3.2--2.4.1.sql
+share/postgresql/extension/pgrouting--2.4.0--2.4.1.sql
+share/postgresql/extension/pgrouting--2.4.1.sql
 share/postgresql/extension/pgrouting.control