diff options
author | Baptiste Daroussin <bapt@FreeBSD.org> | 2013-04-26 12:35:50 +0000 |
---|---|---|
committer | Baptiste Daroussin <bapt@FreeBSD.org> | 2013-04-26 12:35:50 +0000 |
commit | dba80fffe43da11d0a331d26ff47ad47939db729 (patch) | |
tree | 94d53c5c905021f480b1c80529f6919181c4c73b /sysutils/xcdroast | |
parent | 9e20b44c8053a22656f664d6c0e3ba06708a98b5 (diff) | |
download | ports-dba80fffe43da11d0a331d26ff47ad47939db729.tar.gz ports-dba80fffe43da11d0a331d26ff47ad47939db729.zip |
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
Notes
Notes:
svn path=/head/; revision=316600
Diffstat (limited to 'sysutils/xcdroast')
-rw-r--r-- | sysutils/xcdroast/Makefile | 28 |
1 files changed, 13 insertions, 15 deletions
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 <Kai_Allard_Liao@gmx.de> -# +# Created by: Oliver Lehmann <Kai_Allard_Liao@gmx.de> # $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 <bsd.port.pre.mk> +.include <bsd.port.options.mk> -.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 <bsd.port.post.mk> +.include <bsd.port.mk> |