From 973cc23070f73583f0623eb72e8e973360b864c8 Mon Sep 17 00:00:00 2001 From: Sunpoet Po-Chuan Hsieh Date: Sun, 7 Oct 2012 10:14:54 +0000 Subject: - Convert to new options framework - Cleanup Makefile header --- textproc/tidyp/Makefile | 21 ++++++++------------- textproc/tidyp/pkg-descr | 2 +- 2 files changed, 9 insertions(+), 14 deletions(-) (limited to 'textproc/tidyp') diff --git a/textproc/tidyp/Makefile b/textproc/tidyp/Makefile index ec374f00aae5..130aefeb71ed 100644 --- a/textproc/tidyp/Makefile +++ b/textproc/tidyp/Makefile @@ -1,9 +1,5 @@ -# New ports collection makefile for: tidyp -# Date created: 2010-05-14 -# Whom: Sunpoet Po-Chuan Hsieh -# +# Created by: Sunpoet Po-Chuan Hsieh # $FreeBSD$ -# PORTNAME= tidyp PORTVERSION= 1.04 @@ -17,10 +13,9 @@ COMMENT= A library and program to validate and fix HTML GNU_CONFIGURE= yes USE_LDCONFIG= yes -OPTIONS= ACCESS "Support Accessibility checks" off \ - ASIAN "Support Asian encoding" off \ - DEBUG "Enable debugging" off \ - UTF16 "Support UTF-16 encoding" off +OPTIONS_DEFINE= ACCESS ASIAN DEBUG UTF16 +ACCESS_DESC= Accessibility checks +ASIAN_DESC= Asian encodings PLIST_FILES= bin/${PORTNAME} \ include/${PORTNAME}/buffio.h \ @@ -36,19 +31,19 @@ PLIST_DIRS= include/${PORTNAME} .include -.if defined(WITH_ACCESS) +.if ${PORT_OPTIONS:MACCESS} CONFIGURE_ARGS+=--enable-access .endif -.if defined(WITH_ASIAN) +.if ${PORT_OPTIONS:MASIAN} CONFIGURE_ARGS+=--enable-asian .endif -.if defined(WITH_DEBUG) +.if ${PORT_OPTIONS:MDEBUG} CONFIGURE_ARGS+=--enable-debug .endif -.if defined(WITH_UTF16) +.if ${PORT_OPTIONS:MUTF16} CONFIGURE_ARGS+=--enable-utf16 .endif diff --git a/textproc/tidyp/pkg-descr b/textproc/tidyp/pkg-descr index 82b0b2f727d0..48850b6a6d1f 100644 --- a/textproc/tidyp/pkg-descr +++ b/textproc/tidyp/pkg-descr @@ -4,4 +4,4 @@ but all internal API stays the same. tidyp will validate your HTML, and output cleaned-up HTML. -WWW: http://tidyp.com/ +WWW: http://tidyp.com/ -- cgit v1.2.3