Date: Thu, 23 Jan 2003 18:57:12 +0100 From: Roman Neuhauser <neuhauser@bellavista.cz> To: freebsd-ports <freebsd-ports@freebsd.org> Subject: Porting question Message-ID: <20030123175712.GE86853@freepuppy.bellavista.cz>
next in thread | raw e-mail | index | archive | help
I haven't spotted this in the Porter's Handbook, so I'll ask here: a ported program has some hardcoded paths, in quite a few files. I want to make it $PREFIX-clean. What's the canonical way of doing this? My first thought was something along these lines: files/patch-aa: +++ foo --- foo.orig ... - ... /etc/something + ... @@PREFIX@@/etc/something ... Makefile: USE_REINPLACE= yes PATCHED_FILES= foo bar baz post-patch: for f in ${PATCHED_FILES}; do \ ${REINPLACE_CMD} s,@@PREFIX@@,${PREFIX} $$f; \ done But is this the correct approach? -- FreeBSD 4.7-STABLE 6:49PM up 14 days, 23:56, 19 users, load averages: 0.00, 0.00, 0.00 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030123175712.GE86853>