Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
HardenedBSD
hardenedbsd-ports
Commits
a4b428c7
Commit
a4b428c7
authored
Mar 30, 2021
by
sunpoet
Browse files
Build and install shared library
- Bump PORTREVISION for package change PR: 254071 (based on) Submitted by: yuri
parent
9f73c5ba
Changes
3
Hide whitespace changes
Inline
Side-by-side
textproc/discount/Makefile
View file @
a4b428c7
...
...
@@ -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>
textproc/discount/files/patch-Makefile.in
View file @
a4b428c7
...
...
@@ -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"
textproc/discount/pkg-plist
View file @
a4b428c7
...
...
@@ -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
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment