diff options
author | Alexander Aring <alex.aring@gmail.com> | 2014-06-17 18:13:19 +0200 |
---|---|---|
committer | Michael Olbrich <m.olbrich@pengutronix.de> | 2014-06-18 00:25:10 +0200 |
commit | 3e01616a61844192fb3944982ebe298aaa1f1052 (patch) | |
tree | 38caa0022918a4338bdda453f98fccabcbe2db46 /rules/cmatrix.make | |
parent | 544b49aaf590a7f0d923f099fff2f3a77f1b8976 (diff) | |
download | ptxdist-3e01616a61844192fb3944982ebe298aaa1f1052.tar.gz ptxdist-3e01616a61844192fb3944982ebe298aaa1f1052.tar.xz |
cmatrix: add new package
This is a must have tool for linux hackers. This tool isn't
cross-compile friendly. The added patch removes the static filename
check for consolefonts path. This is removed and should handeld by a
select on KBD_CONSOLEFONTS.
Another issue is that "make install-data-local" should install fonts
into consolefonts directory. This is also a static path without a
${prefix} variable. This is solved by install the necessary fonts
manually in targetinstall. Currently there is no X11 font support.
Signed-off-by: Alexander Aring <alex.aring@gmail.com>
[mol: regenerate patches with git-ptx-patches]
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
Diffstat (limited to 'rules/cmatrix.make')
-rw-r--r-- | rules/cmatrix.make | 68 |
1 files changed, 68 insertions, 0 deletions
diff --git a/rules/cmatrix.make b/rules/cmatrix.make new file mode 100644 index 000000000..2255c7136 --- /dev/null +++ b/rules/cmatrix.make @@ -0,0 +1,68 @@ +# -*-makefile-*- +# +# Copyright (C) 2014 by Alexander Aring <aar@pengutronix.de> +# +# See CREDITS for details about who has contributed to this project. +# +# For further information about the PTXdist project and license conditions +# see the README file. +# + +# +# We provide this package +# +PACKAGES-$(PTXCONF_CMATRIX) += cmatrix + +# +# Paths and names +# +CMATRIX_VERSION := 1.2a +CMATRIX_MD5 := ebfb5733104a258173a9ccf2669968a1 +CMATRIX := cmatrix-$(CMATRIX_VERSION) +CMATRIX_SUFFIX := tar.gz +CMATRIX_URL := http://www.asty.org/cmatrix/dist/$(CMATRIX).$(CMATRIX_SUFFIX) +CMATRIX_SOURCE := $(SRCDIR)/$(CMATRIX).$(CMATRIX_SUFFIX) +CMATRIX_DIR := $(BUILDDIR)/$(CMATRIX) +CMATRIX_LICENSE := GPLv2 + +# ---------------------------------------------------------------------------- +# Prepare +# ---------------------------------------------------------------------------- + +CMATRIX_CONF_ENV := \ + $(CROSS_ENV) \ + ac_cv_file__usr_lib_kbd_consolefonts=no \ + ac_cv_file__usr_share_consolefonts=yes \ + ac_cv_file__usr_lib_X11_fonts_misc=no \ + ac_cv_file__usr_X11R6_lib_X11_fonts_misc=no + +# +# autoconf +# +CMATRIX_CONF_OPT := \ + $(CROSS_AUTOCONF_USR) \ + --disable-debug + +# ---------------------------------------------------------------------------- +# Target-Install +# ---------------------------------------------------------------------------- + +$(STATEDIR)/cmatrix.targetinstall: + @$(call targetinfo) + + @$(call install_init, cmatrix) + @$(call install_fixup, cmatrix,PRIORITY,optional) + @$(call install_fixup, cmatrix,SECTION,base) + @$(call install_fixup, cmatrix,AUTHOR,"Alexander Aring <aar@pengutronix.de>") + @$(call install_fixup, cmatrix,DESCRIPTION,missing) + + @$(call install_copy, cmatrix, 0, 0, 0755, -, /usr/bin/cmatrix) + + @$(call install_copy, cmatrix, 0, 0, 0644, -, /usr/share/consolefonts/matrix.fnt) + @$(call install_copy, cmatrix, 0, 0, 0644, -, /usr/share/consolefonts/matrix.psf.gz) + + @$(call install_finish, cmatrix) + + @$(call touch) + +# vim: syntax=make |