Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 16 May 2012 07:54:55 -0300 (BRT)
From:      Anderson Soares Ferreira <anderson@cnpm.embrapa.br>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/167955: [update] graphics/tinyows: Fix dependency to postgis
Message-ID:  <20120516105455.B62B13F41D@caraiba.cnpm.embrapa.br>
Resent-Message-ID: <201205161100.q4GB0FTT005929@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         167955
>Category:       ports
>Synopsis:       [update] graphics/tinyows: Fix dependency to postgis
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          update
>Submitter-Id:   current-users
>Arrival-Date:   Wed May 16 11:00:15 UTC 2012
>Closed-Date:
>Last-Modified:
>Originator:     Anderson Soares Ferreira
>Release:        FreeBSD 8.0-STABLE amd64
>Organization:
Embrapa Monitoramento por Satelite
>Environment:
System: FreeBSD caraiba.cnpm.embrapa.br 8.0-STABLE FreeBSD 8.0-STABLE #1: Wed Apr 28 16:03:13 BRT 2010 anderson@caraiba.cnpm.embrapa.br:/usr/obj/usr/src/sys/CARAIBA amd64

>Description:

This patch removes dependency to Postgis library, not needed to enable Postgis support. 
It also adds option to enable shp2pgsql supports that needs postgresql server and postgis binaries.

>How-To-Repeat:

>Fix:
--- tinyows.patch begins here ---
diff -Nru tinyows.old/Makefile tinyows/Makefile
--- tinyows.old/Makefile	2012-05-15 20:54:10.000000000 -0300
+++ tinyows/Makefile	2012-05-15 21:47:25.000000000 -0300
@@ -7,7 +7,7 @@
 
 PORTNAME=		tinyows
 PORTVERSION=		1.0.0
-PORTREVISION=		1
+PORTREVISION=		2
 CATEGORIES=		graphics www geography
 MASTER_SITES=		http://tinyows.org/tracdocs/release/
 
@@ -15,13 +15,14 @@
 COMMENT=		High Performance WFS-T server
 
 LIB_DEPENDS=		xml2:${PORTSDIR}/textproc/libxml2
-BUILD_DEPENDS=		${LOCALBASE}/lib/postgresql/postgis-1.5.so:${PORTSDIR}/databases/postgis
-
+BUILD_DEPENDS=		
+USE_PGSQL=		YES
 USE_BZIP2=		YES
 WRKSRC=      		${WRKDIR}/${PORTNAME}
 GNU_CONFIGURE=		YES
 
 OPTIONS=		FASTCGI "Support FASTCGI" on \
+			SHP2PGSQL "Enable shp2pgsql support" off
 
 .include <bsd.port.pre.mk>
 
@@ -30,6 +31,14 @@
 CONFIGURE_ARGS+=        --with-fastcgi=${LOCALBASE}
 .endif
 
+.if defined(WITH_SHP2PGSQL)
+BUILD_DEPENDS+=		${LOCALBASE}/bin/shp2pgsql:${PORTSDIR}/databases/postgis
+CONFIGURE_ARGS+=	--with-shp2pgsql=${LOCALBASE}/bin/shp2pgsql
+.else
+CONFIGURE_ARGS+=	--without-shp2pgsql
+.endif
+
+
 post-install:
 	${MKDIR} ${WWWDIR}/cgi-bin/
 	${INSTALL_PROGRAM} ${WRKSRC}/tinyows ${WWWDIR}/cgi-bin/tinyows
--- tinyows.patch ends here ---


---
Aviso de confidencialidade:

Esta mensagem da Empresa Brasileira de Pesquisa Agropecuária (Embrapa), 
empresa pública federal regida pelo disposto na Lei Federal nº 5.851, 
de 7 de dezembro de 1972, é enviada exclusivamente a seu destinatário 
e pode conter informações confidenciais, protegidas por sigilo profissional. 
Sua utilização desautorizada é ilegal e sujeita o infrator às penas da lei. 
Se você a recebeu indevidamente, queira, por gentileza, reenviá-la ao emitente, 
esclarecendo o equívoco.

Confidentiality note:

This message from Empresa Brasileira de Pesquisa Agropecuária (Embrapa), 
a government company established under Brazilian law (5.851/72), 
is directed exclusively to its addressee and may contain confidential data, 
protected under professional secrecy rules. Its unauthorized use is illegal 
and may subject the transgressor to the law's penalties. 
If you are not the addressee, please send it back, elucidating the failure. 
>Release-Note:
>Audit-Trail:
>Unformatted:



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