From dba80fffe43da11d0a331d26ff47ad47939db729 Mon Sep 17 00:00:00 2001 From: Baptiste Daroussin Date: Fri, 26 Apr 2013 12:35:50 +0000 Subject: Remove USE_CDRTOOLS from bsd.port.mk This macros has been useless since cdrtools-cjk port has gone. This macros also lead to badly handled dependencies assuming that the dependency on cdrtools was most BUILD and RUN dependency. While most of the time it is simply a RUN dependency and sometime a build one. While here: - Trim some headers - Convert some ports to optionsng - Convert some ports to USES= gettext --- sysutils/xcdroast/Makefile | 28 +++++++++++++--------------- 1 file changed, 13 insertions(+), 15 deletions(-) (limited to 'sysutils/xcdroast') diff --git a/sysutils/xcdroast/Makefile b/sysutils/xcdroast/Makefile index d95c29ab31c9..cc3072306ef0 100644 --- a/sysutils/xcdroast/Makefile +++ b/sysutils/xcdroast/Makefile @@ -1,9 +1,5 @@ -# New ports collection makefile for: xcdroast -# Date Created: 28 Sep 2000 -# Whom: Oliver Lehmann -# +# Created by: Oliver Lehmann # $FreeBSD$ -# PORTNAME= xcdroast PORTVERSION= 0.98.a.16 @@ -17,12 +13,14 @@ DISTNAME= ${PORTNAME}-${PORTVERSION:S/.a./alpha/} MAINTAINER= oliver@FreeBSD.org COMMENT= Another X11 frontend to mkisofs/cdrecord -OPTIONS= GTK2 "Enable GTK2 support" on \ - NONROOT "Use xcdroast w/o being root" off \ - NLS "Native language support" on +OPTIONS_DEFINE= GTK2 NONROOT NLS +OPTIONS_DEFAULT= GTK2 +NONROOT_DESC= Use xcdroast w/o being root + +RUN_DEPENDS= cdrecord:${PORTSDIR}/sysutils/cdrtools +BUILD_DEPENDS= cdrecord:${PORTSDIR}/sysutils/cdrtools USES= gettext -USE_CDRTOOLS= yes GNU_CONFIGURE= yes WANT_GNOME= yes USE_GMAKE= yes @@ -36,16 +34,16 @@ CONFIGURE_ARGS= --with-cdrtools-prefix=${LOCALBASE} \ MAN1= xcdroast.1 -.include +.include -.if defined(WITHOUT_NLS) +.if ${PORT_OPTIONS:MNLS} CONFIGURE_ARGS+=--disable-nls PLIST_SUB= NLS="@comment " .else PLIST_SUB= NLS="" .endif -.if defined(WITH_GTK2) +.if ${PORT_OPTIONS:MGTK2} CONFIGURE_ARGS+=--enable-gtk2 USE_GNOME= gtk20 .else @@ -53,7 +51,7 @@ CONFIGURE_ARGS+=--disable-gtk2 USE_GNOME= gdkpixbuf .endif -.if defined(WITH_NONROOT) +.if ${PORT_OPTIONS:MNONROOT} CONFIGURE_ARGS+=--enable-nonrootmode .else CONFIGURE_ARGS+=--disable-nonrootmode @@ -64,7 +62,7 @@ post-patch: ${WRKSRC}/src/xtools.c pre-everything:: -.if defined(WITH_NONROOT) +.if ${PORT_OPTIONS:MNONROOT} @${CAT} ${PKGMESSAGE} @${ECHO_MSG} @${ECHO_MSG} "Are you sure you want this? If not, hit Ctrl+C right now " @@ -76,4 +74,4 @@ pre-everything:: sleep 5 .endif -.include +.include -- cgit v1.2.3