Commit a4b428c7 authored by sunpoet's avatar sunpoet
Browse files

Build and install shared library

- Bump PORTREVISION for package change

PR:		254071 (based on)
Submitted by:	yuri
parent 9f73c5ba
......@@ -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>
......@@ -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"
......@@ -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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment