aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordanfe <danfe@FreeBSD.org>2014-01-28 18:21:59 +0800
committerdanfe <danfe@FreeBSD.org>2014-01-28 18:21:59 +0800
commit1c086799c18df17898a03ef8851e745af0f81569 (patch)
tree2f3a9062e722ef9e18427d1c11c696aede8ef82e
parent1fd8aea3396c7ae732e13fea74e5d4ca5dbe8ba7 (diff)
downloadfreebsd-ports-gnome-1c086799c18df17898a03ef8851e745af0f81569.tar.gz
freebsd-ports-gnome-1c086799c18df17898a03ef8851e745af0f81569.tar.zst
freebsd-ports-gnome-1c086799c18df17898a03ef8851e745af0f81569.zip
- Trim Makefile header; remove LICENSE_FILE for a well-known license
- Set LICENSE for more specific, albeit more ugly, BSD3CLAUSE - Remove USE_GMAKE: seems to build fine with BSD default make(1) - Stagify, set OPTIONS_DEFINE (for DOCS), convert to use PORTDOCS
-rw-r--r--japanese/zinnia/Makefile40
-rw-r--r--japanese/zinnia/pkg-plist6
2 files changed, 14 insertions, 32 deletions
diff --git a/japanese/zinnia/Makefile b/japanese/zinnia/Makefile
index f8259b1f83a7..14866a8c6d14 100644
--- a/japanese/zinnia/Makefile
+++ b/japanese/zinnia/Makefile
@@ -1,42 +1,30 @@
+# Created by: Timothy Beyer <beyert@cs.ucr.edu>
# $FreeBSD$
-# Date created: 15 Aug 2010
-# Whom: Timothy Beyer <beyert@cs.ucr.edu>
-#
-# $FreeBSD$
-#
-
PORTNAME= zinnia
PORTVERSION= 0.06
CATEGORIES= japanese
-MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/${PORTVERSION}
+MASTER_SITES= SF
MAINTAINER= beyert@cs.ucr.edu
-COMMENT= Simple, customizable, and portable online hand recognition system
+COMMENT= Simple, customizable, and portable online handwriting recognition system
-LICENSE= BSD
-LICENSE_FILE= ${WRKSRC}/COPYING
+LICENSE= BSD3CLAUSE
-USE_GMAKE= yes
GNU_CONFIGURE= yes
USE_LDCONFIG= yes
-NO_STAGE= yes
-.include <bsd.port.pre.mk>
+PORTDOCS= index-ja.html index.html
+
+OPTIONS_DEFINE= DOCS
post-patch:
- @${REINPLACE_CMD} -e '/^pkgconfigdir/s!=.*!= ${PREFIX}/libdata/pkgconfig!' \
- ${WRKSRC}/Makefile.in
+ @${REINPLACE_CMD} -e \
+ '/^pkgconfigdir/s!=.*!= ${PREFIX}/libdata/pkgconfig!' \
+ ${WRKSRC}/Makefile.in
post-install:
-.if !defined(NOPORTDOCS)
- ${MKDIR} ${DOCSDIR}
- ${INSTALL_DATA} ${WRKSRC}/AUTHORS ${DOCSDIR}
- ${INSTALL_DATA} ${WRKSRC}/COPYING ${DOCSDIR}
- ${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}
- ${INSTALL_DATA} ${WRKSRC}/doc/index.html ${DOCSDIR}
- ${INSTALL_DATA} ${WRKSRC}/doc/index-ja.html ${DOCSDIR}
- ${INSTALL_DATA} ${WRKSRC}/doc/index-ja.html ${DOCSDIR}
-.endif
-
-.include <bsd.port.post.mk>
+ @${MKDIR} ${STAGEDIR}${DOCSDIR}
+ ${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/doc/,} ${STAGEDIR}${DOCSDIR}
+
+.include <bsd.port.mk>
diff --git a/japanese/zinnia/pkg-plist b/japanese/zinnia/pkg-plist
index 6f2c34b1bb45..8d5f31076b74 100644
--- a/japanese/zinnia/pkg-plist
+++ b/japanese/zinnia/pkg-plist
@@ -8,10 +8,4 @@ lib/libzinnia.la
lib/libzinnia.so
lib/libzinnia.so.0
libdata/pkgconfig/zinnia.pc
-%%PORTDOCS%%%%DOCSDIR%%/AUTHORS
-%%PORTDOCS%%%%DOCSDIR%%/COPYING
-%%PORTDOCS%%%%DOCSDIR%%/README
-%%PORTDOCS%%%%DOCSDIR%%/index-ja.html
-%%PORTDOCS%%%%DOCSDIR%%/index.html
-%%PORTDOCS%%@dirrm %%DOCSDIR%%
@dirrm include/zinnia