make ports depending on sysutils/cdrtools* USE_GNOME=cdrools

Scot Hetzel swhetzel at gmail.com
Tue Oct 31 20:37:16 UTC 2006


On 10/31/06, Chuck Swiger <chuck at pkix.net> wrote:
> On Oct 31, 2006, at 8:59 AM, Norikatsu Shigemura wrote:
> [ ... ]
> >> Description:
> >       Some ports depending on sysutils/cdrtools and some ports dependeing
> >       on sysutils/cdrtools-cjk are conflicted.  So I want to integrate to
> >       USE_GNOME= cdrtools and OPTIONify WITH_CJK.
> >
> >> How-To-Repeat:
> >       cd /usr/ports/sysutils/gnomebaker; make install WITH_CJK
> >       And, after portupgrade GNOME applications.
> [ ... ]
> > Index: sysutils/dvd+rw-tools/Makefile
> > ===================================================================
> > RCS file: /home/ncvs/ports/sysutils/dvd+rw-tools/Makefile,v
> > retrieving revision 1.22
> > diff -u -r1.22 Makefile
> > --- sysutils/dvd+rw-tools/Makefile    10 May 2006 19:16:18 -0000      1.22
> > +++ sysutils/dvd+rw-tools/Makefile    31 Oct 2006 13:34:29 -0000
> > @@ -14,7 +14,7 @@
> >  MAINTAINER=  chuck at pkix.net
> >  COMMENT=     DVD burning software
> >
> > -RUN_DEPENDS= ${LOCALBASE}/bin/mkisofs:${PORTSDIR}/sysutils/cdrtools
> > +USE_GNOME=   cdrtools
>
> With respect to this, I don't want dvd+rw-tools to depend on X11 or
> GNOME.
>

Does cdrtools have a dependenacy on GNOME?

If it doesn't then it would be better to add a USE_CDRTOOLS knob to bsd.port.mk
that would allow the selection of either the cdrtools or cdrtools-cjk ports.


.if defined(USE_CDRTOOLS)
.if exists(${DOCSDIR}/cdrtools-cjk/README) || defined(WITH_CJK) ||
${USE_CDRTOOLS} == "CJK"
WANT_CDRTOOLS_CJK= yes
.endif

.if defined(WANT_CDRTOOLS_CJK)
RUN_DEPENDS+=  cdrecord:${PORTSDIR}/sysutils/cdrtools-cjk
.else
RUN_DEPENDS+=  cdrecord:${PORTSDIR}/sysutils/cdrtools
 .endif
.endif

-- 
DISCLAIMER:
No electrons were mamed while sending this message. Only slightly bruised.


More information about the freebsd-ports mailing list