aboutsummaryrefslogtreecommitdiff
path: root/textproc/tdhkit/Makefile
diff options
context:
space:
mode:
authorMartin Wilke <miwi@FreeBSD.org>2010-03-09 22:34:45 +0000
committerMartin Wilke <miwi@FreeBSD.org>2010-03-09 22:34:45 +0000
commit4c37f2e14ad7a49c76585f50f7e514237008ba1d (patch)
treecfa13102799409a72497cd43f3cab3b685edbb2a /textproc/tdhkit/Makefile
parent8b47eebfa5ced9e39a37b04ba0d6d9218facc0cc (diff)
downloadports-4c37f2e14ad7a49c76585f50f7e514237008ba1d.tar.gz
ports-4c37f2e14ad7a49c76585f50f7e514237008ba1d.zip
Notes
Diffstat (limited to 'textproc/tdhkit/Makefile')
-rw-r--r--textproc/tdhkit/Makefile77
1 files changed, 77 insertions, 0 deletions
diff --git a/textproc/tdhkit/Makefile b/textproc/tdhkit/Makefile
new file mode 100644
index 000000000000..db9d2bdc9039
--- /dev/null
+++ b/textproc/tdhkit/Makefile
@@ -0,0 +1,77 @@
+# ex:ts=8
+# Ports collection makefile for: tdhkit
+# Date created: 2 Mar 2010
+# Whom: corky1951@comcast.net
+#
+# $FreeBSD$
+#
+
+PORTNAME= tdhkit
+PORTVERSION= 1.0
+CATEGORIES= textproc
+MASTER_SITES= http://quisp.sourceforge.net/${PORTNAME}/
+DISTNAME= ${PORTNAME}${PORTVERSION:C/\.//1}
+
+MAINTAINER= corky1951@comcast.net
+COMMENT= A set of programs for working with tabular ascii data
+
+OPTIONS= LIBCHRON "Install libchron" Off
+
+.include <bsd.port.options.mk>
+
+.if defined(WITH_LIBCHRON)
+PLIST_SUB+= LIBCHRON=""
+.else
+PLIST_SUB+= LIBCHRON="@comment "
+.endif
+
+.if !defined(NO_INSTALL_MANPAGES)
+MAN1= dateconvert.1 \
+ fldfmt.1 \
+ fldmap.1 \
+ fldsel.1 \
+ pjoin.1 \
+ recsel.1 \
+ tabo.1 \
+ tdhfunction.1 \
+ xlcells.1 \
+ xlcleaner.1
+
+.if defined(WITH_LIBCHRON)
+MAN3= libchron.3
+.endif
+MANCOMPRESSED= no
+.endif
+
+do-build:
+ cd ${WRKSRC}/libsrc && ${SETENV} ${MAKE_ENV} \
+ ${MAKE} ${MAKE_FLAGS} ${MAKEFILE} ${MAKE_ARGS}
+ cd ${WRKSRC}/src && ${SETENV} ${MAKE_ENV} \
+ ${MAKE} ${MAKE_FLAGS} ${MAKEFILE} ${MAKE_ARGS}
+.if defined(WITH_LIBCHRON)
+ cd ${WRKSRC}/libsrc && ${SETENV} ${MAKE_ENV} \
+ ${MAKE} ${MAKE_FLAGS} ${MAKEFILE} libchron
+.endif
+
+do-install:
+ ${INSTALL_PROGRAM} ${WRKSRC}/bin/* ${PREFIX}/bin
+
+.if defined(WITH_LIBCHRON)
+ ${INSTALL_PROGRAM} ${WRKSRC}/libchron.a ${PREFIX}/lib
+.endif
+
+.if !defined(NO_INSTALL_MANPAGES)
+.for manpage in ${MAN1}
+ ${INSTALL_MAN} ${WRKSRC}/man/mantdh/${manpage} ${MAN1PREFIX}/man/man1
+.endfor
+.if defined(WITH_LIBCHRON)
+ ${INSTALL_MAN} ${WRKSRC}/man/mantdh/${MAN3} ${MAN3PREFIX}/man/man3
+.endif
+.endif
+
+.if !defined(NOPORTDOCS)
+ ${MKDIR} ${DOCSDIR}
+ ${INSTALL_DATA} ${WRKSRC}/man/html/* ${DOCSDIR}
+.endif
+
+.include <bsd.port.mk>