void-packages/srcpkgs/mdocml/patches/void.patch

30 lines
1.1 KiB
Diff

--- Makefile.orig 2012-11-23 17:07:53.741714557 +0100
+++ Makefile 2012-11-23 17:08:53.593252859 +0100
@@ -10,7 +10,7 @@
# Specify this if you want to hard-code the operating system to appear
# in the lower-left hand corner of -mdoc manuals.
#
-# CFLAGS += -DOSNAME="\"OpenBSD 4.5\""
+CFLAGS += -DOSNAME="\"Void Linux\""
VERSION = 1.12.1
VDATE = 23 March 2012
@@ -32,7 +32,7 @@ CFLAGS += -DUSE_WCHAR
# If your system supports static binaries only, uncomment this. This
# appears only to be BSD UNIX systems (Mac OS X has no support and Linux
# requires -pthreads for static libdb).
-STATIC = -static
+#STATIC = -static
CFLAGS += -g -DHAVE_CONFIG_H -DVERSION="\"$(VERSION)\""
CFLAGS += -W -Wall -Wstrict-prototypes -Wno-unused-parameter -Wwrite-strings
@@ -57,7 +57,7 @@ INSTALL_MAN = $(INSTALL_DATA)
# However, if you don't have -ldb at all (or it's not native), then
# comment out apropos and mandocdb.
#
-#DBLIB = -ldb
+DBLIB = -ldb
DBBIN = apropos mandocdb man.cgi catman whatis
DBLN = llib-lapropos.ln llib-lmandocdb.ln llib-lman.cgi.ln llib-lcatman.ln