Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 30 May 2004 12:52:11 -0500 (CDT)
From:      "Douglas K. Rand" <rand@meridian-enviro.com>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/67387: New port for mapserver
Message-ID:  <200405301752.i4UHqBel033810@sheliak.meridian-enviro.com>
Resent-Message-ID: <200405301800.i4UI0j8N049434@freefall.freebsd.org>

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

>Number:         67387
>Category:       ports
>Synopsis:       New port for mapserver
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sun May 30 11:00:43 PDT 2004
>Closed-Date:
>Last-Modified:
>Originator:     Douglas K. Rand
>Release:        FreeBSD 4.9-RELEASE-p7 i386
>Organization:
Meridian Environmental Technology, Inc.
>Environment:
System: FreeBSD sheliak.meridian-enviro.com 4.9-RELEASE-p7 FreeBSD 4.9-RELEASE-p7 #0: Mon May 10 17:40:45 CDT 2004 root@blah.meridian-enviro.com:/usr/obj/usr/src/sys/SHELIAK i386


	
>Description:
	Here is a new port for mapserver, a system for building web
	based GIS applications.
	
>How-To-Repeat:
	Want mapserver on a FreeBSD box, try
	  $ cd /usr/ports
	  $ make search name=mapserver
	And then install it by hand.
>Fix:
	Approve this port.  :)


# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	mapserver/Makefile
#	mapserver/distinfo
#	mapserver/pkg-descr
#	mapserver/pkg-plist
#
echo x - mapserver/Makefile
sed 's/^X//' >mapserver/Makefile << 'END-of-mapserver/Makefile'
X# New ports collection Makefile for: mapserver
X# Date created:		2004-05-20
X# Whom:			Douglas K. Rand <rand@meridian-enviro.com>
X#
X# $FreeBSD$
X#
X
XPORTNAME=		mapserver
XPORTVERSION=		4.0.2
XCATEGORIES=		graphics www misc
XMASTER_SITES=		http://cvs.gis.umn.edu/dist/
X
XMAINTAINER=		rand@meridian-enviro.com
XCOMMENT=		MapServer is a system for developing web-based GIS applications
X
XLIB_DEPENDS=		gd.4:${PORTSDIR}/graphics/gd \
X			proj.3:${PORTSDIR}/graphics/proj
X
XGNU_CONFIGURE=	yes
XCONFIGURE_ARGS=		--enable-runpath \
X			--with-gd=${LOCALBASE} \
X			--with-proj=${LOCALBASE}
X#			--with-jpeg=${LOCALBASE}
X#			--with-png=${LOCALBASE}
X#			--with-freetype=${LOCALBASE}
X
X.if defined(WITH_TIFF)
XLIB_DEPENDS+=		tiff.4:${PORTSDIR}/graphics/tiff
XCONFIGURE_ARGS+=	--with-tiff=${LOCALBASE}
X.endif
X
X.if defined(WITH_MING)
XLIB_DEPENDS+=		ming.3:${PORTSDIR}/graphics/ming
XCONFIGURE_ARGS+=	--with-ming=${LOCALBASE}
X.endif
X
X.if defined(WITH_PDF)
XLIB_DEPENDS+=		pdf.6:${PORTSDIR}/graphics/pdflib
XCONFIGURE_ARGS+=	--with-pdf=${LOCALBASE}
X.endif
X
X.if defined(WITH_WMS)
XLIB_DEPENDS+=		curl.2:${PORTSDIR}/ftp/curl
XCONFIGURE_ARGS+=	--wmsclient
X.endif
X
X.if defined(WITH_GDAL)
XLIB_DEPENDS+=		gdal.1.1:${PORTSDIR}/graphics/gdal
XCONFIGURE_ARGS+=	--with-gdal=${LOCALBASE}
X.endif
X
X.if defined(WITH_POSTGRESQL)
XPOSTGRESQL_PORT?=	databases/postgresql-client
XLIB_DEPENDS+=		pq.3:${PORTSDIR}/${POSTGRESQL_PORT}
XCONFIGURE_ARGS+=	--with-postgis=${LOCALBASE}/bin/pg_config
X.endif
X
X.if defined(WITH_PHP)
XBUILD_DEPENDS+=		mod_php4:${PORTSDIR}/www/mod_php4:
XCONFIGURE_ARGS+=	--with-php=${LOCALBASE}
X.endif
X
X.if defined(WITH_DEBUG)
XCONFIGURE_ARGS+=	--enable-debug
X.endif
X
XPROG_FILES=		mapserv legend scalebar shp2img shp2pdf shptree shptreetst shptreevis sortshp
X
X.include <bsd.port.pre.mk>
X
Xdo-install:
X.for f in ${PROG_FILES}
X	${INSTALL_PROGRAM} ${WRKSRC}/${f} ${LOCALBASE}/bin
X.endfor
X	${INSTALL} ${WRKSRC}/shp2mysql.pl ${LOCALBASE}/bin/shp2mysql
X
X.include <bsd.port.post.mk>
END-of-mapserver/Makefile
echo x - mapserver/distinfo
sed 's/^X//' >mapserver/distinfo << 'END-of-mapserver/distinfo'
XMD5 (mapserver-4.0.2.tar.gz) = 757ea220ae04aabc44c739682df3d0e4
XSIZE (mapserver-4.0.2.tar.gz) = 868993
END-of-mapserver/distinfo
echo x - mapserver/pkg-descr
sed 's/^X//' >mapserver/pkg-descr << 'END-of-mapserver/pkg-descr'
XMapServer is a system for developing web-based GIS applications. 
XThe basic system consists of a CGI program that can be configured to 
Xrespond to a variety of spatial requests like making maps, scalebars, 
Xand point, area and feature queries. Virtually all aspects of an 
Xapplication, from web interface to map appearance can be developed 
Xwithout any programming. For the more ambitious user, MapServer 
Xapplications can be enhanced using Java, JavaScript or many other web 
Xtechnologies.
X
XWWW: http://mapserver.gis.umn.edu/
END-of-mapserver/pkg-descr
echo x - mapserver/pkg-plist
sed 's/^X//' >mapserver/pkg-plist << 'END-of-mapserver/pkg-plist'
Xbin/mapserv
Xbin/legend
Xbin/scalebar
Xbin/shp2img
Xbin/shp2mysql
Xbin/shp2pdf
Xbin/shptree
Xbin/shptreetst
Xbin/shptreevis
Xbin/sortshp
END-of-mapserver/pkg-plist
exit
>Release-Note:
>Audit-Trail:
>Unformatted:



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