Date: Sun, 21 Jan 2007 19:52:59 +0100 From: Ulrich Spoerlein <uspoerlein@gmail.com> To: Paul Hoffman <phoffman@proper.com> Cc: freeBSD-ports@freebsd.org Subject: Re: Modifying a port and keeping the mods across updates Message-ID: <20070121185259.GA3017@roadrunner.q.local> In-Reply-To: <p06240841c1d75354626b@[10.20.30.108]> References: <p06240841c1d75354626b@[10.20.30.108]>
next in thread | previous in thread | raw e-mail | index | archive | help
Paul Hoffman wrote: > Greetings again. I have a two-part question that may be a ports FAQ, but I couldn't find such > a beast. > > (1) For a particular port, I need to change the the MAKE_ENV to make it build the way I want. > What is the proper way to do this that will live beyond the next time I do a cvsup? That is, > editing the Makefile works just fine, but I want something that will live if the Makefile > gets reverted. /etc/make.conf: .if ${.CURDIR:M*/devel/dmalloc} CFLAGS= -O -pipe -g STRIP= DEBUG_FLAGS= -g .endif > (2) For a particular port, I need to patch a particular source file. This is a patch that > will probably be in a future release. Same question as above: what's the proper way to do > this that will live beyond the next cvsup? I know how to use 'patch' to apply patches, but > not yet to create them. /etc/make.conf: .if ${.CURDIR:M*/sysutils/cdrtools} EXTRA_PATCHES= /path/to/my/cdrtools.patch .endif Your patch needs to be relative to ${WRKSRC}, just as the usual patches in files/patch-*. Be careful though, some of these vars might be set by the port itself. (You can use VAR+=foo then, this needs to be judged on a case by case basis, though) hth, Ulrich Spoerlein -- A: Yes. >Q: Are you sure? > >A: Because it reverses the logical flow of conversation. > >>Q: Why is top posting frowned upon?
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20070121185259.GA3017>