tscrape-git: Sync with upstream share/doc changes and avoid SUBST-fu

This commit is contained in:
Leonardo Taccari 2019-02-22 14:54:47 +01:00
parent f5f4a7a047
commit 60d4ee77a1
2 changed files with 6 additions and 14 deletions

View File

@ -15,17 +15,9 @@ WRKSRC= ${WRKDIR}/tscrape
USE_LANGUAGES= c99
# Adjust config.mk
SUBST_CLASSES+= makefile
SUBST_STAGE.makefile= pre-configure
SUBST_MESSAGE.makefile= Fixing config.mk
SUBST_FILES.makefile= config.mk
SUBST_SED.makefile= -e 's,/usr/local,${PREFIX},g'
SUBST_SED.makefile+= -e 's,man,${PKGMANDIR},g'
SUBST_SED.makefile+= -e 's/cc/${CC:Q}/'
SUBST_SED.makefile+= -e 's,^CFLAGS *= ,CFLAGS += ,'
SUBST_SED.makefile+= -e 's,^CPPFLAGS *= ,CPPFLAGS += ,'
SUBST_SED.makefile+= -e 's,^LDFLAGS *= ,LDFLAGS += ,'
MAKE_FLAGS+= PREFIX=${PREFIX:Q}
MAKE_FLAGS+= MANPREFIX=${PREFIX:Q}/${PKGMANDIR:Q}
MAKE_FLAGS+= CC=${CC:Q}
.include "../../wip/mk/git-package.mk"
.include "../../mk/bsd.pkg.mk"

View File

@ -4,6 +4,6 @@ bin/tscrape_html
bin/tscrape_plain
bin/tscrape_update
man/man1/tscrape.1
share/tscrape/README
share/tscrape/style.css
share/tscrape/tscraperc.example
share/doc/tscrape/README
share/doc/tscrape/style.css
share/doc/tscrape/tscraperc.example