aboutsummaryrefslogtreecommitdiff
path: root/textproc
diff options
context:
space:
mode:
authorDmitry Marakasov <amdmi3@FreeBSD.org>2018-02-05 09:02:17 +0000
committerDmitry Marakasov <amdmi3@FreeBSD.org>2018-02-05 09:02:17 +0000
commit0ef73be69513640f5ad2d8b2ba42337705df6ac6 (patch)
tree90fa5c5cd6ad7e78deecdecc6a3c36225743b781 /textproc
parent267d62f9f99f89c8cf8aabafcbd4a83d058eb371 (diff)
downloadports-0ef73be69513640f5ad2d8b2ba42337705df6ac6.tar.gz
ports-0ef73be69513640f5ad2d8b2ba42337705df6ac6.zip
- Switch to USES=localbase
- Switch to new test framework - Fix portlint by switching to static plist Approved by: portmgr blanket
Notes
Notes: svn path=/head/; revision=460967
Diffstat (limited to 'textproc')
-rw-r--r--textproc/unrtf/Makefile19
-rw-r--r--textproc/unrtf/pkg-plist9
2 files changed, 12 insertions, 16 deletions
diff --git a/textproc/unrtf/Makefile b/textproc/unrtf/Makefile
index 46659bb78604..37df47e045a0 100644
--- a/textproc/unrtf/Makefile
+++ b/textproc/unrtf/Makefile
@@ -12,23 +12,13 @@ COMMENT= Converter from RTF to several formats, including HTML and LaTeX
LICENSE= GPLv3+
LICENSE_FILE= ${WRKSRC}/COPYING
-USES= autoreconf cpe gmake iconv
+USES= autoreconf cpe gmake iconv localbase:ldflags
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --libdir=${PREFIX}/share
CPE_VENDOR= unrtf_project
+TEST_TARGET= check
-PLIST_FILES= bin/unrtf \
- %%DATADIR%%/SYMBOL.charmap \
- %%DATADIR%%/html.conf \
- %%DATADIR%%/latex.conf \
- %%DATADIR%%/rtf.conf \
- %%DATADIR%%/text.conf \
- %%DATADIR%%/troff_mm.conf \
- %%DATADIR%%/vt.conf \
- man/man1/unrtf.1.gz
-
-CPPFLAGS+= -I${LOCALBASE}/include
-LDFLAGS+= -L${LOCALBASE}/lib ${ICONV_LIB}
+LDFLAGS+= ${ICONV_LIB}
post-patch:
@${FIND} -X ${WRKSRC} -type f -and -name "*.[1h]" | ${XARGS} \
@@ -37,7 +27,4 @@ post-patch:
@${REINPLACE_CMD} -e '/^attr_get_param/,/^}/s/return;/return NULL;/' \
${WRKSRC}/src/attr.c
-check regression-test test: build
- @(cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${MAKE} ${_MAKE_JOBS} ${MAKE_ARGS} check)
-
.include <bsd.port.mk>
diff --git a/textproc/unrtf/pkg-plist b/textproc/unrtf/pkg-plist
new file mode 100644
index 000000000000..8b0373599da2
--- /dev/null
+++ b/textproc/unrtf/pkg-plist
@@ -0,0 +1,9 @@
+bin/unrtf
+man/man1/unrtf.1.gz
+%%DATADIR%%/SYMBOL.charmap
+%%DATADIR%%/html.conf
+%%DATADIR%%/latex.conf
+%%DATADIR%%/rtf.conf
+%%DATADIR%%/text.conf
+%%DATADIR%%/troff_mm.conf
+%%DATADIR%%/vt.conf