diff options
author | sunpoet <sunpoet@35697150-7ecd-e111-bb59-0022644237b5> | 2021-03-30 19:16:41 +0000 |
---|---|---|
committer | sunpoet <sunpoet@35697150-7ecd-e111-bb59-0022644237b5> | 2021-03-30 19:16:41 +0000 |
commit | ebd2c0a8cbf501891ce78af7bad04d40debcc67f (patch) | |
tree | 59cc8ac6ea3e169fc05d5967bccef4a396cc6256 | |
parent | 19a7859cb019d509d15b175fe662142517390abd (diff) | |
download | freebsd-ports-ebd2c0a8cbf501891ce78af7bad04d40debcc67f.tar.gz freebsd-ports-ebd2c0a8cbf501891ce78af7bad04d40debcc67f.tar.bz2 |
Build and install shared library
- Bump PORTREVISION for package change
PR: 254071 (based on)
Submitted by: yuri
git-svn-id: http://svn.freebsd.org/ports/head@569584 35697150-7ecd-e111-bb59-0022644237b5
-rw-r--r-- | textproc/discount/Makefile | 11 | ||||
-rw-r--r-- | textproc/discount/files/patch-Makefile.in | 8 | ||||
-rw-r--r-- | textproc/discount/pkg-plist | 3 |
3 files changed, 21 insertions, 1 deletions
diff --git a/textproc/discount/Makefile b/textproc/discount/Makefile index f51232ad8136..22286914dd2d 100644 --- a/textproc/discount/Makefile +++ b/textproc/discount/Makefile @@ -4,6 +4,7 @@ PORTNAME= discount PORTVERSION= 2.2.7 DISTVERSIONPREFIX= v +PORTREVISION= 1 CATEGORIES= textproc devel MAINTAINER= sunpoet@FreeBSD.org @@ -18,12 +19,13 @@ USE_GITHUB= yes GH_ACCOUNT= Orc CFLAGS+= -fPIC -CONFIGURE_ARGS= --mandir=${PREFIX}/share/man --prefix=${PREFIX} +CONFIGURE_ARGS= --mandir=${PREFIX}/share/man --prefix=${PREFIX} --shared CONFIGURE_SCRIPT= configure.sh HAS_CONFIGURE= yes MAKE_JOBS_UNSAFE= yes # libmarkdown is used before it is built INSTALL_TARGET= install install.man TEST_TARGET= test +USE_LDCONFIG= yes CONFLICTS_INSTALL= markdown @@ -38,4 +40,11 @@ EXTRA_CONFIGURE_ON= --with-dl=both --with-fenced-code --with-github-tags --with- SAMPLES_INSTALL_TARGET= install install.samples TAB8_CONFIGURE_ON= --with-tabstops=8 +post-configure: + @${REINPLACE_CMD} -e 's|/sbin/ldconfig|#&|' ${WRKSRC}/librarian.sh + +post-install: + ${INSTALL_DATA} ${WRKSRC}/libmarkdown.a ${STAGEDIR}${PREFIX}/lib/libmarkdown.a + ${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libmarkdown.so + .include <bsd.port.mk> diff --git a/textproc/discount/files/patch-Makefile.in b/textproc/discount/files/patch-Makefile.in index 5e16e6db4d3b..9d4542bd5cfa 100644 --- a/textproc/discount/files/patch-Makefile.in +++ b/textproc/discount/files/patch-Makefile.in @@ -17,3 +17,11 @@ done $(INSTALL_DIR) $(DESTDIR)$(MANDIR)/man7 $(INSTALL_DATA) markdown.7 mkd-extensions.7 $(DESTDIR)$(MANDIR)/man7 +@@ -128,6 +128,7 @@ main.o: main.c mkdio.h config.h + + $(MKDLIB): $(OBJS) + ./librarian.sh make $(MKDLIB) VERSION $(OBJS) ++ ar crv $(MKDLIB).a $(OBJS) + + verify: echo tools/checkbits.sh + @./echo -n "headers ... "; tools/checkbits.sh && echo "GOOD" diff --git a/textproc/discount/pkg-plist b/textproc/discount/pkg-plist index 3b449208f64b..f736121635c5 100644 --- a/textproc/discount/pkg-plist +++ b/textproc/discount/pkg-plist @@ -4,6 +4,9 @@ bin/markdown %%SAMPLES%%bin/theme include/mkdio.h lib/libmarkdown.a +lib/libmarkdown.so +lib/libmarkdown.so.2 +lib/libmarkdown.so.2.2.7 libdata/pkgconfig/libmarkdown.pc %%SAMPLES%%share/man/man1/makepage.1.gz share/man/man1/markdown.1.gz |