On 2020/09/09 17:25, bijan wrote: > Hi, > This is a patch to create new port textproc/peg-markdown[1]. > > The port tries to install it's binary as markdown. I don't > know if it conflicts with other packages and should I rename > the binary or not? Since this is my first attempt to port a new > software, I would appreciate it if somebody can educate me on > this one. > > Thanks. > > [1]: https://github.com/jgm/peg-markdown
Here's a diff on top fixing some things. diff --git a/Makefile b/Makefile index 695708c..a90fb82 100644 --- a/Makefile +++ b/Makefile @@ -8,23 +8,20 @@ GH_TAGNAME = 0.4.14 CATEGORIES = textproc -HOMEPAGE = https://github.com/jgm/peg-markdown - # MIT PERMIT_PACKAGE = Yes -WANTLIB += c - -MASTER_SITES = ${MASTER_SITES_GITHUB} +WANTLIB += c glib-2.0 intl -COMPILER = base-clang ports-gcc +USE_GMAKE = Yes +MAKE_FLAGS = CC="${CC}" CFLAGS="${CFLAGS}" -USE_GMAKE = Yes +LIB_DEPENDS = devel/glib2 -ALL_TARGET = ALL -INSTALL_TARGET = +ALL_TARGET = ALL +INSTALL_TARGET = post-install: - ${INSTALL_SCRIPT} ${WRKSRC}/markdown ${PREFIX}/bin/markdown + ${INSTALL_PROGRAM} ${WRKSRC}/markdown ${PREFIX}/bin/peg-markdown .include <bsd.port.mk> diff --git a/pkg/PLIST b/pkg/PLIST index 2000be1..a9368d1 100644 --- a/pkg/PLIST +++ b/pkg/PLIST @@ -1,2 +1,2 @@ @comment $OpenBSD: PLIST,v$ -@bin bin/markdown +@bin bin/peg-markdown
