aboutsummaryrefslogtreecommitdiffstats
path: root/textproc
diff options
context:
space:
mode:
authoramdmi3 <amdmi3@FreeBSD.org>2018-02-05 17:02:17 +0800
committeramdmi3 <amdmi3@FreeBSD.org>2018-02-05 17:02:17 +0800
commitb81513942bd97c89437753bd74a2e82e65d17f34 (patch)
tree90fa5c5cd6ad7e78deecdecc6a3c36225743b781 /textproc
parented2ffe4086753b2f534557fefa1f4a0d7e698ca0 (diff)
downloadfreebsd-ports-gnome-b81513942bd97c89437753bd74a2e82e65d17f34.tar.gz
freebsd-ports-gnome-b81513942bd97c89437753bd74a2e82e65d17f34.tar.zst
freebsd-ports-gnome-b81513942bd97c89437753bd74a2e82e65d17f34.zip
- Switch to USES=localbase
- Switch to new test framework - Fix portlint by switching to static plist Approved by: portmgr blanket
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