2007-12-29 21:32:37 +01:00
|
|
|
$NetBSD: patch-aa,v 1.4 2007/12/29 20:32:37 joerg Exp $
|
1999-07-06 09:57:20 +02:00
|
|
|
|
2007-12-29 21:32:37 +01:00
|
|
|
--- Makefile.in.orig 1999-07-09 05:24:13.000000000 +0000
|
|
|
|
+++ Makefile.in
|
1999-07-06 09:57:20 +02:00
|
|
|
@@ -31,18 +31,21 @@
|
|
|
|
# SUCH DAMAGE.
|
|
|
|
#
|
1998-12-02 00:27:36 +01:00
|
|
|
|
1999-07-06 09:57:20 +02:00
|
|
|
-CDKLIB = libcdk.a
|
|
|
|
+CDKLIB = libcdk.la
|
1999-08-29 17:29:40 +02:00
|
|
|
VERSION = 4.9.9
|
1999-07-06 09:57:20 +02:00
|
|
|
-CFLAGS = -Iinclude @CFLAGS@ @DEFS@
|
|
|
|
-CC = @CC@
|
|
|
|
+SHLIB_MAJOR = 4
|
1999-08-29 17:29:40 +02:00
|
|
|
+SHLIB_MINOR = 10
|
1999-07-06 09:57:20 +02:00
|
|
|
+CFLAGS = -Iinclude @CFLAGS@ @DEFS@ @CPPFLAGS@
|
|
|
|
+CC = ${LIBTOOL} --mode=compile @CC@
|
|
|
|
LDFLAGS = @LDFLAGS@
|
|
|
|
LIBS = @LIBS@
|
|
|
|
RANLIB = @RANLIB@
|
|
|
|
-INSTALL = @INSTALL@
|
|
|
|
+INSTALL = ${BSD_INSTALL_DATA}
|
|
|
|
INSTALL_DIR = @prefix@
|
|
|
|
INCLUDE_DIR = $(INSTALL_DIR)/include/cdk
|
|
|
|
LIB_DIR = $(INSTALL_DIR)/lib
|
|
|
|
MAN_DIR = $(INSTALL_DIR)/man/man3
|
|
|
|
+DOC_DIR = $(INSTALL_DIR)/share/doc/cdk
|
1998-12-02 00:27:36 +01:00
|
|
|
|
1999-07-06 09:57:20 +02:00
|
|
|
default:: cdklib
|
1998-12-02 00:27:36 +01:00
|
|
|
|
2007-12-29 21:32:37 +01:00
|
|
|
@@ -76,8 +79,8 @@ CDKOBJS = $(CDKSRC:.c=.o)
|
1998-12-02 00:27:36 +01:00
|
|
|
# Standard library directive.
|
|
|
|
#
|
1999-07-06 09:57:20 +02:00
|
|
|
cdklib $(CDKLIB): $(CDKOBJS)
|
|
|
|
- $(AR) -cr $(CDKLIB) $(CDKOBJS)
|
|
|
|
- $(RANLIB) $(CDKLIB)
|
1999-08-29 17:29:40 +02:00
|
|
|
+ ${LIBTOOL} --mode=link @CC@ -o ${CDKLIB} ${CDKOBJS:.o=.lo} \
|
2007-12-29 21:32:37 +01:00
|
|
|
+ -rpath ${LIB_DIR} -version-info ${SHLIB_MAJOR}:${SHLIB_MINOR} -lm
|
1998-12-02 00:27:36 +01:00
|
|
|
|
|
|
|
#
|
1999-07-06 09:57:20 +02:00
|
|
|
# Make the examples directory.
|
2007-12-29 21:32:37 +01:00
|
|
|
@@ -114,9 +117,12 @@ installCDKHeaderFiles::
|
1998-12-02 00:27:36 +01:00
|
|
|
#
|
1999-07-06 09:57:20 +02:00
|
|
|
installCDKReadme::
|
|
|
|
@echo "Installing CDK Readme files..."
|
|
|
|
+ @if [ ! -d $(DOC_DIR) ]; then \
|
|
|
|
+ mkdir -p $(DOC_DIR); \
|
|
|
|
+ fi
|
|
|
|
@for i in $(CDKREADME); do \
|
|
|
|
- echo " $(INSTALL) $$i $(INCLUDE_DIR)"; \
|
|
|
|
- $(INSTALL) $$i $(INCLUDE_DIR); \
|
|
|
|
+ echo " $(INSTALL) $$i $(DOC_DIR)"; \
|
|
|
|
+ $(INSTALL) $$i $(DOC_DIR); \
|
|
|
|
done
|
|
|
|
|
1998-12-02 00:27:36 +01:00
|
|
|
#
|
2007-12-29 21:32:37 +01:00
|
|
|
@@ -127,8 +133,8 @@ installCDKLibrary::
|
1999-07-06 09:57:20 +02:00
|
|
|
@if [ ! -d $(LIB_DIR) ]; then \
|
|
|
|
mkdir $(LIB_DIR); \
|
|
|
|
fi
|
|
|
|
- @echo " $(INSTALL) $(CDKLIB) $(LIB_DIR)"
|
|
|
|
- @$(INSTALL) $(CDKLIB) $(LIB_DIR)
|
1999-08-29 17:29:40 +02:00
|
|
|
+ @echo " ${LIBTOOL} --mode=install $(INSTALL) $(CDKLIB) $(LIB_DIR)"
|
1999-07-06 09:57:20 +02:00
|
|
|
+ @${LIBTOOL} --mode=install $(INSTALL) $(CDKLIB) $(LIB_DIR)
|
1998-12-02 00:27:36 +01:00
|
|
|
|
|
|
|
#
|
1999-07-06 09:57:20 +02:00
|
|
|
# This installs the CDK man pages.
|