[BACK]Return to patch-BSDmakefile CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / pkgsrc / databases / tinycdb / patches

File: [cvs.NetBSD.org] / pkgsrc / databases / tinycdb / patches / patch-BSDmakefile (download)

Revision 1.2, Tue Jul 30 13:56:20 2013 UTC (7 years ago) by ryoon
Branch: MAIN
CVS Tags: pkgsrc-2020Q2-base, pkgsrc-2020Q2, pkgsrc-2020Q1-base, pkgsrc-2020Q1, pkgsrc-2019Q4-base, pkgsrc-2019Q4, pkgsrc-2019Q3-base, pkgsrc-2019Q3, pkgsrc-2019Q2-base, pkgsrc-2019Q2, pkgsrc-2019Q1-base, pkgsrc-2019Q1, pkgsrc-2018Q4-base, pkgsrc-2018Q4, pkgsrc-2018Q3-base, pkgsrc-2018Q3, pkgsrc-2018Q2-base, pkgsrc-2018Q2, pkgsrc-2018Q1-base, pkgsrc-2018Q1, pkgsrc-2017Q4-base, pkgsrc-2017Q4, pkgsrc-2017Q3-base, pkgsrc-2017Q3, pkgsrc-2017Q2-base, pkgsrc-2017Q2, pkgsrc-2017Q1-base, pkgsrc-2017Q1, pkgsrc-2016Q4-base, pkgsrc-2016Q4, pkgsrc-2016Q3-base, pkgsrc-2016Q3, pkgsrc-2016Q2-base, pkgsrc-2016Q2, pkgsrc-2016Q1-base, pkgsrc-2016Q1, pkgsrc-2015Q4-base, pkgsrc-2015Q4, pkgsrc-2015Q3-base, pkgsrc-2015Q3, pkgsrc-2015Q2-base, pkgsrc-2015Q2, pkgsrc-2015Q1-base, pkgsrc-2015Q1, pkgsrc-2014Q4-base, pkgsrc-2014Q4, pkgsrc-2014Q3-base, pkgsrc-2014Q3, pkgsrc-2014Q2-base, pkgsrc-2014Q2, pkgsrc-2014Q1-base, pkgsrc-2014Q1, pkgsrc-2013Q4-base, pkgsrc-2013Q4, pkgsrc-2013Q3-base, pkgsrc-2013Q3, HEAD
Changes since 1.1: +2 -2 lines

Fix build under Cygwin.

* For Cygwin build -no-undefined is needed for libtool.

$NetBSD: patch-BSDmakefile,v 1.2 2013/07/30 13:56:20 ryoon Exp $

--- BSDmakefile.orig	2012-12-19 17:49:56.000000000 +0000
+++ BSDmakefile
@@ -0,0 +1,57 @@
+# Makefile for libtoolized tinycdb
+# based on tinycdb's Makefile
+
+VERSION=        0.78
+
+CFLAGS+=	-D_FILE_OFFSET_BITS=64
+LDFLAGS+=	-no-undefined
+
+OBJS=		cdb_init.o cdb_find.o cdb_findnext.o cdb_seq.o cdb_seek.o \
+		cdb_unpack.o \
+		cdb_make_add.o cdb_make_put.o cdb_make.o cdb_hash.o
+LOBJS=		${OBJS:R:S/$/.lo/g}
+
+
+all: libcdb.la libcdb_pic.la cdb
+install: install-man install-prog install-lib install-header
+
+.SUFFIXES: .c .lo
+
+.c.lo:
+	${LIBTOOL} --tag=CC --mode=compile ${CC} -c ${CFLAGS} -o ${.TARGET} ${.IMPSRC}
+
+libcdb.la: ${LOBJS}
+	${LIBTOOL} --tag=CC --mode=link ${CC} ${LDFLAGS} ${CFLAGS} -o ${.TARGET} \
+		${LOBJS} -version-info 1 -rpath ${PREFIX}/lib
+
+libcdb_pic.la: ${LOBJS}
+	${LIBTOOL} --tag=CC --mode=link ${CC} ${LDFLAGS} ${CFLAGS} -fPIC -o ${.TARGET} \
+		${LOBJS} -version-info 1 -rpath ${PREFIX}/lib
+
+cdb: cdb.lo libcdb.la
+	${LIBTOOL} --tag=CC --mode=link ${CC} ${LDFLAGS} ${CFLAGS} -o ${.TARGET} \
+		cdb.lo libcdb.la -rpath ${PREFIX}/lib
+
+install-man:
+	${BSD_INSTALL_MAN_DIR} ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1
+	${BSD_INSTALL_MAN_DIR} ${DESTDIR}${PREFIX}/${PKGMANDIR}/man3
+	${BSD_INSTALL_MAN_DIR} ${DESTDIR}${PREFIX}/${PKGMANDIR}/man5
+	${BSD_INSTALL_MAN} cdb.1 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1
+	${BSD_INSTALL_MAN} cdb.3 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man3
+	${BSD_INSTALL_MAN} cdb.5 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man5
+
+install-prog:
+	${BSD_INSTALL_PROGRAM_DIR} ${DESTDIR}${PREFIX}/bin
+	${LIBTOOL} --mode=install ${BSD_INSTALL_PROGRAM} cdb \
+		${DESTDIR}${PREFIX}/bin
+
+install-lib:
+	${BSD_INSTALL_LIB_DIR} ${DESTDIR}${PREFIX}/lib
+	${LIBTOOL} --mode=install ${BSD_INSTALL_LIB} libcdb.la \
+		${DESTDIR}${PREFIX}/lib
+	${LIBTOOL} --mode=install ${BSD_INSTALL_LIB} libcdb_pic.la \
+		${DESTDIR}${PREFIX}/lib
+
+install-header:
+	${BSD_INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/include
+	${BSD_INSTALL_DATA} cdb.h ${DESTDIR}${PREFIX}/include