From owner-svn-ports-head@FreeBSD.ORG Sun Oct 7 12:09:32 2012 Return-Path: Delivered-To: svn-ports-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 899AC106566C; Sun, 7 Oct 2012 12:09:32 +0000 (UTC) (envelope-from sunpoet@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 733C48FC16; Sun, 7 Oct 2012 12:09:32 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.4/8.14.4) with ESMTP id q97C9WNu095040; Sun, 7 Oct 2012 12:09:32 GMT (envelope-from sunpoet@svn.freebsd.org) Received: (from sunpoet@localhost) by svn.freebsd.org (8.14.4/8.14.4/Submit) id q97C9WNr095038; Sun, 7 Oct 2012 12:09:32 GMT (envelope-from sunpoet@svn.freebsd.org) Message-Id: <201210071209.q97C9WNr095038@svn.freebsd.org> From: Sunpoet Po-Chuan Hsieh Date: Sun, 7 Oct 2012 12:09:32 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r305463 - head/devel/shapelib X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.5 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: Sun, 07 Oct 2012 12:09:32 -0000 Author: sunpoet Date: Sun Oct 7 12:09:31 2012 New Revision: 305463 URL: http://svn.freebsd.org/changeset/ports/305463 Log: - Convert to new options framework - Cleanup Makefile header Modified: head/devel/shapelib/Makefile (contents, props changed) Modified: head/devel/shapelib/Makefile ============================================================================== --- head/devel/shapelib/Makefile Sun Oct 7 12:08:43 2012 (r305462) +++ head/devel/shapelib/Makefile Sun Oct 7 12:09:31 2012 (r305463) @@ -1,9 +1,5 @@ -# New ports collection makefile for: shapelib for reading ARC Shape Files -# Date created: 23 Apr 2001 -# Whom: Randall Hopper -# +# Created by: Randall Hopper # $FreeBSD$ -# PORTNAME= shapelib PORTVERSION= 1.3.0 @@ -19,18 +15,17 @@ COMMENT= C API for reading and writing A MAKE_JOBS_UNSAFE= yes USE_LDCONFIG= yes -OPTIONS= DEBUG "Debugging" off \ - PROJ "Cartographic Projections library" off +OPTIONS_DEFINE= DEBUG DOCS PROJ .include -.if defined(WITH_DEBUG) +.if ${PORT_OPTIONS:MDEBUG} DEBUG= -DDEBUG -DDEBUG2 -g .else DEBUG= # empty .endif -.if defined(WITH_PROJ) +.if ${PORT_OPTIONS:MPROJ} LIB_DEPENDS+= proj:${PORTSDIR}/graphics/proj PLIST_SUB+= PROJ="" PROJ= -DPROJ4 @@ -58,7 +53,7 @@ post-patch: post-install: ${LN} -s libshp.so.1 ${PREFIX}/lib/libshp.so -.if !defined(NOPORTDOCS) +.if ${PORT_OPTIONS:MDOCS} ${MKDIR} ${DOCSDIR}/ ${INSTALL_DATA} ${WRKSRC}/web/*.html ${DOCSDIR}/ .endif