]> git.ipfire.org Git - people/ms/ipfire-3.x.git/blame - pkgs/core/groff/groff.nm
New package: groff.
[people/ms/ipfire-3.x.git] / pkgs / core / groff / groff.nm
CommitLineData
84a97a99
MT
1###############################################################################
2# #
3# IPFire.org - A linux based firewall #
4# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt #
5# #
6# This program is free software: you can redistribute it and/or modify #
7# it under the terms of the GNU General Public License as published by #
8# the Free Software Foundation, either version 3 of the License, or #
9# (at your option) any later version. #
10# #
11# This program is distributed in the hope that it will be useful, #
12# but WITHOUT ANY WARRANTY; without even the implied warranty of #
13# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the #
14# GNU General Public License for more details. #
15# #
16# You should have received a copy of the GNU General Public License #
17# along with this program. If not, see <http://www.gnu.org/licenses/>. #
18# #
19###############################################################################
20
21###############################################################################
22# Definitions
23###############################################################################
24
25include $(PKGROOT)/Include
26
27PKG_NAME = groff
28PKG_VER = 1.18.1.4
29PKG_REL = 0
30
31PKG_MAINTAINER =
32PKG_GROUP = Applications/Text
33PKG_URL = http://groff.ffii.org/
34PKG_LICENSE = GPLv2 and GFDL
35PKG_SUMMARY = A document formatting system.
36
37PKG_BUILD_DEPS+= bison
38
39define PKG_DESCRIPTION
40 Groff is a document formatting system. Groff takes standard text and \
41 formatting commands as input and produces formatted output. The \
42 created documents can be shown on a display or printed on a printer. \
43 Groff's formatting commands allow you to specify font type and size, \
44 bold type, italic type, the number and size of columns on a page, and \
45 more.
46endef
47
48PKG_TARBALL = $(THISAPP).tar.gz
49
50PKG_PATCHES += $(THISAPP)-debian_fixes-1.patch
51
52export PAGE=A4
53CONFIGURE_OPTIONS += --enable-multibyte
54PARALLELISMFLAGS =
55
56###############################################################################
57# Installation Details
58###############################################################################
59
60define STAGE_PREPARE_CMDS
61 cd $(DIR_APP) && sed -i \
62 -e 's/2010/002D/' \
63 -e 's/2212/002D/' \
64 -e 's/2018/0060/' \
65 -e 's/2019/0027/' font/devutf8/R.proto
66endef
67
68define STAGE_INSTALL
69 -mkdir -pv $(BUILDROOT)/usr/{bin,include,sbin,share/man}
70 cd $(DIR_APP) && make install \
71 manroot=$(BUILDROOT)/usr/share/man \
72 bindir=$(BUILDROOT)/usr/bin \
73 mandir=$(BUILDROOT)/usr/share/man \
74 prefix=$(BUILDROOT)/usr \
75 exec_prefix=$(BUILDROOT)/usr \
76 sbindir=$(BUILDROOT)/usr/sbin \
77 sysconfdir=$(BUILDROOT)/etc \
78 datadir=$(BUILDROOT)/usr/share \
79 infodir=$(BUILDROOT)/usr/share/info \
80 sysconfdir=$(BUILDROOT)/etc \
81 includedir=$(BUILDROOT)/usr/include \
82 libdir=$(BUILDROOT)/usr/lib \
83 libexecdir=$(BUILDROOT)/usr/libexec \
84 localstatedir=$(BUILDROOT)/var \
85 sharedstatedir=$(BUILDROOT)/usr/com \
86 infodir=$(BUILDROOT)/usr/share/info
87
88 ln -svf eqn $(BUILDROOT)/usr/bin/geqn
89 ln -svf tbl $(BUILDROOT)/usr/bin/gtbl
90endef