Unverified Commit 1e58efb1 authored by Sergei Trofimovich's avatar Sergei Trofimovich
Browse files

hp2ps: install shell wrapper



Before this change we installed hp2ps both
to inplace/bin/ and ${prefix}/bin/

In both cases we added $(CrossCompilePrefix) as
a binary prefix. It's incorrect for inplace install
as none of inplace binaries are prefixed.

The change it to track 'hp2ps' as unprefixed binary.
$(CrossCompilePrefix) prefix is only added to the
installed shell wrapper.

Now 'hp2ps' is handled in a similar way to 'hpc' and
'ghc-pkg'.
Signed-off-by: default avatarSergei Trofimovich <slyfox@gentoo.org>
parent f541fc63
...@@ -16,11 +16,12 @@ utils/hp2ps_dist_C_SRCS = AreaBelow.c Curves.c Error.c Main.c \ ...@@ -16,11 +16,12 @@ utils/hp2ps_dist_C_SRCS = AreaBelow.c Curves.c Error.c Main.c \
Axes.c Dimensions.c Key.c PsFile.c Shade.c \ Axes.c Dimensions.c Key.c PsFile.c Shade.c \
Utilities.c Utilities.c
utils/hp2ps_dist_EXTRA_LIBRARIES = m utils/hp2ps_dist_EXTRA_LIBRARIES = m
utils/hp2ps_dist_PROGNAME = $(CrossCompilePrefix)hp2ps utils/hp2ps_dist_PROGNAME = hp2ps
utils/hp2ps_dist_INSTALL = YES utils/hp2ps_dist_INSTALL = YES
utils/hp2ps_dist_INSTALL_INPLACE = YES utils/hp2ps_dist_INSTALL_INPLACE = YES
utils/hp2ps_dist_SHELL_WRAPPER = YES
utils/hp2ps_dist_INSTALL_SHELL_WRAPPER_NAME = hp2ps
utils/hp2ps_CC_OPTS += $(addprefix -I,$(GHC_INCLUDE_DIRS)) utils/hp2ps_CC_OPTS += $(addprefix -I,$(GHC_INCLUDE_DIRS))
$(eval $(call build-prog,utils/hp2ps,dist,0)) $(eval $(call build-prog,utils/hp2ps,dist,0))
#!/bin/sh
exec "$executablename" ${1+"$@"}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment