aboutsummaryrefslogtreecommitdiffstats
path: root/sysutils/uniutils
diff options
context:
space:
mode:
authoramdmi3 <amdmi3@FreeBSD.org>2018-02-09 17:02:49 +0800
committeramdmi3 <amdmi3@FreeBSD.org>2018-02-09 17:02:49 +0800
commitbb87b278c804c69b1d617a8e56b56f270463c152 (patch)
tree5d20e1b68cce2635e2642ad294ed9022a122c8cc /sysutils/uniutils
parent89db8cb752306693b5f7b76b20801742790adef1 (diff)
downloadfreebsd-ports-gnome-bb87b278c804c69b1d617a8e56b56f270463c152.tar.gz
freebsd-ports-gnome-bb87b278c804c69b1d617a8e56b56f270463c152.tar.zst
freebsd-ports-gnome-bb87b278c804c69b1d617a8e56b56f270463c152.zip
- Add LICENSE_FILE
- Switch to USES=localbase - Switch to new test framework - Switch to options helpers - Cosmetic fixes Approved by: portmgr blanket
Diffstat (limited to 'sysutils/uniutils')
-rw-r--r--sysutils/uniutils/Makefile21
1 files changed, 12 insertions, 9 deletions
diff --git a/sysutils/uniutils/Makefile b/sysutils/uniutils/Makefile
index 2ee5e03c2db3..a54adc24726a 100644
--- a/sysutils/uniutils/Makefile
+++ b/sysutils/uniutils/Makefile
@@ -11,13 +11,14 @@ MAINTAINER= thierry@FreeBSD.org
COMMENT= Unicode Description Utilities
LICENSE= GPLv3
+LICENSE_FILE= ${WRKSRC}/COPYING
RUN_DEPENDS= ascii2binary:converters/ascii2binary
GNU_CONFIGURE= yes
-CPPFLAGS+= -I${LOCALBASE}/include
-LIBS+= -L${LOCALBASE}/lib -lintl
-USES= gettext
+USES= gettext localbase
+
+LIBS+= -lintl
TESTFILES= Test1.ann Test1.u Test2.ann Test2.u Test3.ann Test3.u \
Test4.ann Test4.u Test5.ann Test5.u
@@ -26,18 +27,20 @@ PORTDOCS= AUTHORS NEWS README
OPTIONS_DEFINE= DOCS EXAMPLES
pre-configure:
- ${REINPLACE_CMD} -e 's|/usr/local|${PREFIX}|' ${WRKSRC}/Makefile.in
- ${REINPLACE_CMD} -e 's|TestData|${EXAMPLESDIR}|' ${WRKSRC}/README
+ @${REINPLACE_CMD} -e 's|/usr/local|${PREFIX}|' ${WRKSRC}/Makefile.in
+ @${REINPLACE_CMD} -e 's|TestData|${EXAMPLESDIR}|' ${WRKSRC}/README
-regression-test:
+do-test:
(cd ${WRKSRC} && \
./unidesc TestData/Test1.u && \
./uniname TestData/Test1.ann)
-post-install:
- ${MKDIR} ${STAGEDIR}${DOCSDIR}
+post-install-DOCS-on:
+ @${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}
- ${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
+
+post-install-EXAMPLES-on:
+ @${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
${INSTALL_DATA} ${TESTFILES:S|^|${WRKSRC}/TestData/|} ${STAGEDIR}${EXAMPLESDIR}
.include <bsd.port.mk>