ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/ozone/mgar/pkg/mandoc/Makefile
Revision: 37
Committed: Tue Jun 23 07:48:12 2026 UTC (4 weeks ago) by operz
File size: 1444 byte(s)
Log Message:
Add OZSWmandoc 1.14.6 recipe (configure.local fix)

File Contents

# User Rev Content
1 operz 37 NAME = mandoc
2     VERSION = 1.14.6
3    
4     CATEGORIES = utils
5    
6     DESCRIPTION = BSD man page compiler and formatter
7     define BLURB
8     mandoc is a suite of tools compiling mdoc(7) and man(7) and other roff
9     dialects into text, HTML, PDF, and more. Properly renders -mdoc format
10     man pages that the system nroff cannot handle.
11     endef
12    
13     MASTER_SITES = http://mandoc.bsd.lv/snapshots/
14     DISTFILES = $(DISTNAME).tar.gz
15    
16     LICENSE = LICENSE
17    
18     PACKAGES = OZSWmandoc
19     SPKG_DESC_OZSWmandoc = BSD man page compiler and formatter
20     SPKG_CLASSES = cswdictconf
21     RUNTIME_DEP_PKGS_OZSWmandoc =
22    
23     # mandoc uses a custom non-autoconf configure script; skip GAR's default phases
24     CONFIGURE_SCRIPTS =
25     BUILD_SCRIPTS =
26     INSTALL_SCRIPTS =
27     TEST_SCRIPTS =
28    
29     include gar/category.mk
30    
31     .DEFAULT_GOAL := all
32    
33     pre-configure:
34     ( echo 'CC="$(CC)"' ; \
35     echo 'CFLAGS="$(CFLAGS)"' ; \
36     echo 'LDFLAGS="$(LDFLAGS)"' ; \
37     echo 'PREFIX="$(BUILD_PREFIX)"' ; \
38     echo 'BINDIR="$(BUILD_PREFIX)/bin"' ; \
39     echo 'SBINDIR="$(BUILD_PREFIX)/sbin"' ; \
40     echo 'MANDIR="$(BUILD_PREFIX)/share/man"' ; \
41     echo 'INCLUDEDIR="$(BUILD_PREFIX)/include"' ; \
42     echo 'LIBDIR="$(BUILD_PREFIX)/lib"' ; \
43     echo 'MANPATH_DEFAULT="$(BUILD_PREFIX)/share/man:/usr/share/man"' ) \
44     > $(WORKSRC)/configure.local
45     cd $(WORKSRC) && ./configure
46     @$(MAKECOOKIE)
47    
48     pre-build:
49     cd $(WORKSRC) && gmake
50     @$(MAKECOOKIE)
51    
52     pre-install:
53     cd $(WORKSRC) && gmake DESTDIR=$(DESTDIR) install
54     @$(MAKECOOKIE)