1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-24 00:45:52 +00:00
freebsd-ports/textproc/tdhkit/Makefile
Pawel Pekala 32d85c6ad2 - Support CC/CFLAGS properly
- Add LICENSE
- Support staging

PR:		ports/184873
Submitted by:	KATO Tsuguru <tkato432@yahoo.com>
2013-12-20 18:21:04 +00:00

50 lines
1.3 KiB
Makefile

# Created by: corky1951@comcast.net
# $FreeBSD$
PORTNAME= tdhkit
PORTVERSION= 1.0
CATEGORIES= textproc
MASTER_SITES= http://quisp.sourceforge.net/${PORTNAME}/
DISTNAME= ${PORTNAME}${PORTVERSION:C/\.//1}
MAINTAINER= ports@FreeBSD.org
COMMENT= Set of programs for working with tabular ASCII data
LICENSE= GPLv2 # (or later)
OPTIONS_DEFINE= CHRON DOCS
OPTIONS_SUB= yes
CHRON_DESC= Install libchron
BUILD_WRKSRC= ${WRKSRC}/src
post-patch:
@${REINPLACE_CMD} -e \
's|^CFLAGS =|CFLAGS +=|' \
${WRKSRC}/libsrc/Makefile
@${REINPLACE_CMD} -e \
's|^CFLAGS =|CFLAGS +=| ; \
s|^CC =|CC ?=| ; \
/^all:/s|recsel fldsel|recsel fldmap fldsel|' \
${BUILD_WRKSRC}/Makefile
pre-build:
@(cd ${WRKSRC}/libsrc && ${SETENV} ${MAKE_ENV} ${MAKE_CMD} \
${MAKE_FLAGS} ${MAKEFILE} -j${MAKE_JOBS_NUMBER} \
${MAKE_ARGS} default libchron)
do-install:
(cd ${WRKSRC}/bin && ${INSTALL_PROGRAM} * \
${STAGEDIR}${PREFIX}/bin)
(cd ${WRKSRC} && ${INSTALL_DATA} libchron.a \
${STAGEDIR}${PREFIX}/lib)
(cd ${WRKSRC}/man/mantdh && ${INSTALL_MAN} *.1 \
${STAGEDIR}${MAN1PREFIX}/man/man1)
(cd ${WRKSRC}/man/mantdh && ${INSTALL_MAN} *.3 \
${STAGEDIR}${MAN3PREFIX}/man/man3)
@${MKDIR} ${STAGEDIR}${DOCSDIR}
(cd ${WRKSRC}/man/html && ${INSTALL_DATA} * \
${STAGEDIR}${DOCSDIR})
.include <bsd.port.mk>