pkgsrc-WIP-discuss archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: exec()ing a program



Hi,

On Mon, 26 Apr 2010 17:27:05 +0900, Stefan Schaeckeler 
<schaecsn%gmx.net@localhost> wrote:

> I'm building a package that is exec()ing gs and pstotext. It looks to me that 
> pkgsrc wants absolute paths for exec()ing programs.
>
> For exec()ing gs, apparently, I can do this (+ appropriate patch):
>
> SUBST_CLASSES+=       gs
> SUBST_STAGE.gs=       do-configure
> SUBST_FILES.gs=       afile.c bfile.c cfile.c
> SUBST_SED.gs= -e 's|@GS_CMD@|${TOOLS_PATH.gs}|'
>
>
> How can I do this with pstoext? TOOLS_PATH.pstotext is not defined.

You can use mk/find-prefix.mk for such purposees:

FIND_PREFIX:= PSTOTEXT_DIR=pstotext
.include "../../mk/find-prefix.mk"
#......
SUBST_SED.pstotext= -e 's|@PSTOTEXT@|${PSTOTEXT_DIR}/bin/pstotext|'
#......

-- 
OBATA Akio / obache%users.sourceforge.net@localhost

------------------------------------------------------------------------------
_______________________________________________
pkgsrc-wip-discuss mailing list
pkgsrc-wip-discuss%lists.sourceforge.net@localhost
https://lists.sourceforge.net/lists/listinfo/pkgsrc-wip-discuss


Home | Main Index | Thread Index | Old Index