pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/textproc/discount Libtoolize for portability across pk...
details: https://anonhg.NetBSD.org/pkgsrc/rev/c3fa53cf3bdb
branches: trunk
changeset: 377388:c3fa53cf3bdb
user: schmonz <schmonz%pkgsrc.org@localhost>
date: Fri Mar 16 03:45:18 2018 +0000
description:
Libtoolize for portability across pkgsrc platforms. Bump PKGREVISION.
diffstat:
textproc/discount/Makefile | 6 +-
textproc/discount/PLIST | 4 +-
textproc/discount/distinfo | 3 +-
textproc/discount/patches/patch-Makefile.in | 103 ++++++++++++++++++++++++++++
4 files changed, 111 insertions(+), 5 deletions(-)
diffs (159 lines):
diff -r ca30f87d13ac -r c3fa53cf3bdb textproc/discount/Makefile
--- a/textproc/discount/Makefile Thu Mar 15 23:45:34 2018 +0000
+++ b/textproc/discount/Makefile Fri Mar 16 03:45:18 2018 +0000
@@ -1,8 +1,8 @@
-# $NetBSD: Makefile,v 1.4 2018/03/10 05:37:44 schmonz Exp $
+# $NetBSD: Makefile,v 1.5 2018/03/16 03:45:18 schmonz Exp $
#
DISTNAME= discount-2.2.3a
-PKGREVISION= 1
+PKGREVISION= 2
CATEGORIES= textproc
MASTER_SITES= ${HOMEPAGE}
EXTRACT_SUFX= .tar.bz2
@@ -21,6 +21,8 @@
CONFIGURE_ARGS+= --shared
CONFIGURE_ARGS+= --enable-all-features
+USE_LIBTOOL= yes
+
INSTALL_TARGET= install.everything
TEST_TARGET= test
diff -r ca30f87d13ac -r c3fa53cf3bdb textproc/discount/PLIST
--- a/textproc/discount/PLIST Thu Mar 15 23:45:34 2018 +0000
+++ b/textproc/discount/PLIST Fri Mar 16 03:45:18 2018 +0000
@@ -1,10 +1,10 @@
-@comment $NetBSD: PLIST,v 1.4 2018/03/10 05:37:44 schmonz Exp $
+@comment $NetBSD: PLIST,v 1.5 2018/03/16 03:45:18 schmonz Exp $
bin/makepage
bin/markdown
bin/mkd2html
bin/theme
include/mkdio.h
-lib/libmarkdown.so
+lib/libmarkdown.la
lib/pkgconfig/libmarkdown.pc
man/man1/makepage.1
man/man1/markdown.1
diff -r ca30f87d13ac -r c3fa53cf3bdb textproc/discount/distinfo
--- a/textproc/discount/distinfo Thu Mar 15 23:45:34 2018 +0000
+++ b/textproc/discount/distinfo Fri Mar 16 03:45:18 2018 +0000
@@ -1,7 +1,8 @@
-$NetBSD: distinfo,v 1.4 2018/03/10 05:37:44 schmonz Exp $
+$NetBSD: distinfo,v 1.5 2018/03/16 03:45:18 schmonz Exp $
SHA1 (discount-2.2.3a.tar.bz2) = 9ff2985b89e7bc7ca6a18f82aade2b25db2c97f8
RMD160 (discount-2.2.3a.tar.bz2) = 66a13d6848251ab8a73a59ba4ec95befe9bbdc2d
SHA512 (discount-2.2.3a.tar.bz2) = cf995a46879f269f3e02f7d480303d229676bb36f71fe045d3a8eab7306fca9cce98496611b9fb9e0a14a9cf46ee66bd239dd9c946dff54ae09277fd66459c1f
Size (discount-2.2.3a.tar.bz2) = 98325 bytes
+SHA1 (patch-Makefile.in) = ee288e3b03368dbc4a0f4c472bfbbdf2283b9967
SHA1 (patch-configure.inc) = 19e31e0b845e6c3f3822b556223d7a3cc3e2c028
diff -r ca30f87d13ac -r c3fa53cf3bdb textproc/discount/patches/patch-Makefile.in
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/textproc/discount/patches/patch-Makefile.in Fri Mar 16 03:45:18 2018 +0000
@@ -0,0 +1,103 @@
+$NetBSD: patch-Makefile.in,v 1.1 2018/03/16 03:45:18 schmonz Exp $
+
+Libtoolize for portability across pkgsrc platforms.
+
+--- Makefile.in.orig 2018-03-02 22:52:05.000000000 +0000
++++ Makefile.in
+@@ -1,3 +1,10 @@
++LIBTOOL=libtool --tag=CC
++
++.c.o:
++ $(LIBTOOL) --mode=compile $(CC) $(CFLAGS) -c -o $@ $<
++.c.lo:
++ $(LIBTOOL) --mode=compile $(CC) $(CFLAGS) -c -o $@ $<
++
+ CC=@CC@ -I.
+ LFLAGS=-L.
+ CFLAGS=@CFLAGS@
+@@ -19,6 +26,11 @@ OBJS=mkdio.o markdown.o dumptree.o gener
+ xml.o Csio.o xmlpage.o basename.o emmatch.o \
+ github_flavoured.o setup.o tags.o html5.o flags.o \
+ @AMALLOC@ @H1TITLE@
++LOBJS=mkdio.lo markdown.lo dumptree.lo generate.lo \
++ resource.lo docheader.lo version.lo toc.lo css.lo \
++ xml.lo Csio.lo xmlpage.lo basename.lo emmatch.lo \
++ github_flavoured.lo setup.lo tags.lo html5.lo flags.lo \
++ @AMALLOC@ @H1TITLE@
+ TESTFRAMEWORK=echo cols branch
+
+ # modules that markdown, makepage, mkd2html, &tc use
+@@ -29,8 +41,10 @@ MAN3PAGES=mkd-callbacks.3 mkd-functions.
+ all: $(PGMS) $(SAMPLE_PGMS) $(TESTFRAMEWORK)
+
+ install: $(PGMS) $(DESTDIR)$(BINDIR) $(DESTDIR)$(LIBDIR) $(DESTDIR)$(INCDIR) $(DESTDIR)$(PKGDIR)
+- @INSTALL_PROGRAM@ $(PGMS) $(DESTDIR)$(BINDIR)
+- ./librarian.sh install libmarkdown VERSION $(DESTDIR)$(LIBDIR)
++ for x in $(PGMS); do \
++ $(LIBTOOL) --mode=install $(BSD_INSTALL_PROGRAM) $$x $(DESTDIR)$(BINDIR)/$$x; \
++ done
++ $(LIBTOOL) --mode=install $(BSD_INSTALL_LIB) $(MKDLIB).la $(DESTDIR)$(LIBDIR)/$(MKDLIB).la
+ @INSTALL_DATA@ mkdio.h $(DESTDIR)$(INCDIR)
+ @MK_PKGCONFIG@@INSTALL_DATA@ $(MKDLIB).pc $(DESTDIR)$(PKGDIR)
+
+@@ -39,7 +53,7 @@ install.everything: install install.samp
+ install.samples: $(SAMPLE_PGMS) install $(DESTDIR)$(BINDIR)
+ @INSTALL_DIR@ $(DESTDIR)$(MANDIR)/man1
+ for x in $(SAMPLE_PGMS); do \
+- @INSTALL_PROGRAM@ $$x $(DESTDIR)$(BINDIR)/$(SAMPLE_PFX)$$x; \
++ $(LIBTOOL) --mode=install $(BSD_INSTALL_PROGRAM) $$x $(DESTDIR)$(BINDIR)/$(SAMPLE_PFX)$$x; \
+ @INSTALL_DATA@ $$x.1 $(DESTDIR)$(MANDIR)/man1/$(SAMPLE_PFX)$$x.1; \
+ done
+
+@@ -75,7 +89,7 @@ $(DESTDIR)$(LIBDIR):
+ @MK_PKGCONFIG@ @INSTALL_DIR@ $(DESTDIR)$(PKGDIR)
+
+ version.o: version.c VERSION branch
+- $(CC) $(CFLAGS) -DBRANCH=`./branch` -DVERSION=\"`cat VERSION`\" -c version.c
++ $(LIBTOOL) --mode=compile $(CC) $(CFLAGS) -DBRANCH=`./branch` -DVERSION=\"`cat VERSION`\" -c version.c
+
+ VERSION:
+ @true
+@@ -87,20 +101,19 @@ blocktags: mktags
+
+ # example programs
+ @THEME@theme: theme.o $(COMMON) $(MKDLIB) mkdio.h
+-@THEME@ $(CC) $(CFLAGS) $(LFLAGS) -o theme theme.o $(COMMON) -lmarkdown @LIBS@
+-
++@THEME@ $(LIBTOOL) --mode=link $(CC) $(CFLAGS) $(LFLAGS) -o theme theme.o $(COMMON) $(MKDLIB).la @LIBS@
+
+-mkd2html: mkd2html.o $(MKDLIB) mkdio.h gethopt.h $(COMMON)
+- $(CC) $(CFLAGS) $(LFLAGS) -o mkd2html mkd2html.o $(COMMON) -lmarkdown @LIBS@
++mkd2html: mkd2html.o $(COMMON) $(MKDLIB)
++ $(LIBTOOL) --mode=link $(CC) $(CFLAGS) $(LFLAGS) -o mkd2html mkd2html.o $(COMMON) $(MKDLIB).la @LIBS@
+
+ markdown: main.o $(COMMON) $(MKDLIB)
+- $(CC) $(CFLAGS) $(LFLAGS) -o markdown main.o $(COMMON) -lmarkdown @LIBS@
++ $(LIBTOOL) --mode=link $(CC) $(CFLAGS) $(LFLAGS) -o markdown main.o $(COMMON) $(MKDLIB).la @LIBS@
+
+-makepage: makepage.c $(COMMON) $(MKDLIB) mkdio.h
+- $(CC) $(CFLAGS) $(LFLAGS) -o makepage makepage.c $(COMMON) -lmarkdown @LIBS@
++makepage: makepage.o $(COMMON) $(MKDLIB)
++ $(LIBTOOL) --mode=link $(CC) $(CFLAGS) $(LFLAGS) -o makepage makepage.o $(COMMON) $(MKDLIB).la @LIBS@
+
+ pgm_options.o: pgm_options.c mkdio.h config.h
+- $(CC) $(CFLAGS) -I. -c pgm_options.c
++ $(LIBTOOL) --mode=compile $(CC) $(CFLAGS) -I. -c pgm_options.c
+
+ notspecial.o: notspecial.c
+ $(CC) $(CFLAGS) -I. -c notspecial.c
+@@ -111,8 +124,12 @@ gethopt.o: gethopt.c
+ main.o: main.c mkdio.h config.h
+ $(CC) $(CFLAGS) -I. -c main.c
+
+-$(MKDLIB): $(OBJS)
+- ./librarian.sh make $(MKDLIB) VERSION $(OBJS)
++libtool-version-info: VERSION
++ awk -F. '{ printf "%d:%d:0\n", $$1 - 1, $$2 }' < VERSION > libtool-version-info
++
++$(MKDLIB): $(MKDLIB).so
++$(MKDLIB).so: $(OBJS) libtool-version-info
++ $(LIBTOOL) --mode=link @CC@ $(LDFLAGS) -o $(MKDLIB).la $(LOBJS) -version-info `cat libtool-version-info` -rpath $(LIBDIR)
+
+ verify: echo tools/checkbits.sh
+ @./echo -n "headers ... "; tools/checkbits.sh && echo "GOOD"
Home |
Main Index |
Thread Index |
Old Index