svn commit: r316995 - in head/www: gurlchecker mod_musicindex
Jason Helfman
jgh at FreeBSD.org
Wed May 1 07:23:23 UTC 2013
Author: jgh
Date: Wed May 1 07:23:22 2013
New Revision: 316995
URL: http://svnweb.freebsd.org/changeset/ports/316995
Log:
- conversion to USES framework
- conversion to optionsNG (gurlchecker)
Approved by: portmgr (bapt@)
Modified:
head/www/gurlchecker/Makefile
head/www/mod_musicindex/Makefile
Modified: head/www/gurlchecker/Makefile
==============================================================================
--- head/www/gurlchecker/Makefile Wed May 1 07:20:26 2013 (r316994)
+++ head/www/gurlchecker/Makefile Wed May 1 07:23:22 2013 (r316995)
@@ -1,9 +1,5 @@
-# New ports collection makefile for: gURLChecker
-# Date created: 06 Jun 2003
-# Whom: Koop Mast <einekoai at chello.nl>
-#
+# Created by: Koop Mast <einekoai at chello.nl>
# $FreeBSD$
-#
PORTNAME= gurlchecker
PORTVERSION= 0.10.1
@@ -13,52 +9,56 @@ MASTER_SITES= http://labs.libre-entrepri
MASTER_SITE_SUBDIR= 547
MAINTAINER= clsung at FreeBSD.org
-COMMENT= A Gnome program to check a page/website for broken links
+COMMENT= Gnome program to check a page/website for broken links
LIB_DEPENDS= gnet-2.0.0:${PORTSDIR}/net/gnet2
-OPTIONS= CROCO "Use CROCO library for CSS2 validation" off \
- TIDY "Use TIDY library for HTML w3c validation" off \
- CLAMAV "Use CLAMAV library for virii scan" on \
- GNUTLS "Use GNU TLS library for HTTPS check" on
+OPTIONS_DEFINE= CROCO TIDY CLAMAV GNUTLS
+CROCO_DESC=Library for CSS2 validation
+TIDY_DESC=Library for HTML w3c validation
+CLAMAV_DESC=Library for virii scan
+GNUTLS_DESC=Library for HTTPS check
-USE_GNOME= gnomehack gnomeprefix intlhack libgnomeui
+OPTIONS_DEFAULT= CLAMAV GNUTLS
+
+USE_GNOME= gnomeprefix intlhack libgnomeui
+USES= pathfix
USE_GMAKE= yes
GNU_CONFIGURE= yes
CPPFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib
-.include <bsd.port.pre.mk>
+.include <bsd.port.options.mk>
-.if !defined(WITHOUT_NLS)
-USE_GETTEXT= yes
+.if ${PORT_OPTIONS:MNLS}
+USES+= gettext
PLIST_SUB+= NLS=""
.else
PLIST_SUB+= NLS="@comment "
.endif
-.if defined(WITH_CROCO)
+.if ${PORT_OPTIONS:MCROCO}
LIB_DEPENDS+= croco-0.6.3:${PORTSDIR}/textproc/libcroco
.else
CONFIGURE_ARGS+= --disable-croco
.endif
-.if defined(WITH_TIDY)
+.if ${PORT_OPTIONS:MTIDY}
LIB_DEPENDS+= tidy-0.99.0:${PORTSDIR}/www/tidy-lib
.else
CONFIGURE_ARGS+= --disable-tidy
.endif
-.if defined(WITH_CLAMAV)
+.if ${PORT_OPTIONS:MCLAMAV}
LIB_DEPENDS+= clamav.7:${PORTSDIR}/security/clamav
.else
CONFIGURE_ARGS+= --disable-clamav
.endif
-.if defined(WITHOUT_GNUTLS)
-CONFIGURE_ARGS+= --disable-gnutls
-.else
+.if ${PORT_OPTIONS:MGNUTLS}
LIB_DEPENDS+= gnutls.26:${PORTSDIR}/security/gnutls
+.else
+CONFIGURE_ARGS+= --disable-gnutls
.endif
post-patch:
@@ -68,9 +68,9 @@ post-patch:
'/^SUBDIRS/s|doc ui man|ui|g' ${WRKSRC}/Makefile.in
@${REINPLACE_CMD} -e \
's|-lresolv||g' ${WRKSRC}/src/Makefile.in
-.if defined(WITHOUT_NLS)
+.if ! ${PORT_OPTIONS:MNLS}
@${REINPLACE_CMD} -e \
'/^SUBDIRS/s|po ui|ui|g' ${WRKSRC}/Makefile.in
.endif
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>
Modified: head/www/mod_musicindex/Makefile
==============================================================================
--- head/www/mod_musicindex/Makefile Wed May 1 07:20:26 2013 (r316994)
+++ head/www/mod_musicindex/Makefile Wed May 1 07:23:22 2013 (r316995)
@@ -14,8 +14,6 @@ LICENSE= LGPL21
USE_APACHE= 22
-.include <bsd.port.pre.mk>
-
OPTIONS_DEFINE= NLS FLAC MP3 MP4 VORBIS LIBARCHIVE FILECACHE MYSQLCACHE
OPTIONS_DEFAULT=NLS MP3 LIBARCHIVE FILECACHE
@@ -39,7 +37,7 @@ SUB_LIST= PORTNAME=${PORTNAME}
PORTDOCS= README
.if ${PORT_OPTIONS:MNLS}
-USE_GETTEXT= yes
+USES== gettext
CFLAGS+= -lintl
PLIST_SUB+= NLS=""
CONFIGURE_ARGS+=--enable-nls
@@ -117,4 +115,4 @@ post-install:
@${CAT} ${PKGMESSAGE}
@${ECHO_MSG} ""
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>
More information about the svn-ports-all
mailing list