0971cda226
pkgsrc changes: * simplify subst with SUBST_VARS. * build and install shared library. * install pkgconfig file. package changes: tinycdb-0.77 - bugfix release: manpage typos, portability fixes and the like - bugfix: improper logic in EINTR handling in _cdb_make_full_write routine which may lead to corruped .cdb file.
36 lines
643 B
Text
36 lines
643 B
Text
$NetBSD: patch-aa,v 1.4 2010/09/11 08:26:04 obache Exp $
|
|
|
|
--- Makefile.orig 2009-01-31 17:12:21.000000000 +0000
|
|
+++ Makefile
|
|
@@ -7,23 +7,23 @@
|
|
|
|
VERSION = 0.77
|
|
|
|
-prefix=/usr/local
|
|
+prefix=@PREFIX@
|
|
exec_prefix=$(prefix)
|
|
bindir=$(exec_prefix)/bin
|
|
libdir=$(exec_prefix)/lib
|
|
syslibdir=$(libdir)
|
|
-sysconfdir=/etc
|
|
+sysconfdir=@PKG_SYSCONFDIR@
|
|
includedir=$(prefix)/include
|
|
-mandir=$(prefix)/man
|
|
+mandir=$(prefix)/@PKGMANDIR@
|
|
NSSCDB_DIR = $(sysconfdir)
|
|
DESTDIR=
|
|
|
|
-CC = cc
|
|
-CFLAGS = -O
|
|
+CC ?= cc
|
|
+CFLAGS ?= -O
|
|
|
|
-AR = ar
|
|
-ARFLAGS = rv
|
|
-RANLIB = ranlib
|
|
+AR ?= ar
|
|
+ARFLAGS ?= rv
|
|
+RANLIB ?= ranlib
|
|
|
|
NSS_CDB = libnss_cdb.so.2
|
|
LIBBASE = libcdb
|