mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-18 03:46:03 +00:00
45 lines
1.3 KiB
Makefile
45 lines
1.3 KiB
Makefile
# Created by: Thomas Gellekum <tg@FreeBSD.org>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= unroff
|
|
PORTVERSION= 1.0.2
|
|
PORTREVISION= 5
|
|
CATEGORIES= textproc
|
|
MASTER_SITES= http://www-rn.informatik.uni-bremen.de/software/unroff/%SUBDIR%/
|
|
MASTER_SITE_SUBDIR= dist
|
|
DISTNAME= ${PORTNAME}-${PORTVERSION:R}
|
|
DIST_SUBDIR= unroff
|
|
|
|
PATCH_SITES= ${MASTER_SITES}
|
|
PATCH_SITE_SUBDIR= contrib
|
|
PATCHFILES= me-misc-patch.gz misc-patch-2.gz
|
|
PATCH_DIST_STRIP= -p1
|
|
|
|
MAINTAINER= ports@FreeBSD.org
|
|
COMMENT= Programmable troff translator with backend for HTML
|
|
|
|
LIB_DEPENDS= libelk.so:${PORTSDIR}/lang/elk
|
|
|
|
BUILD_WRKSRC= ${WRKSRC}/src
|
|
MAKE_ARGS= CC="${CC}" CFLAGS="${CFLAGS} -DBSD" \
|
|
INCLUDE="-I${LOCALBASE}/include/elk" \
|
|
LIBS="-lm -lelk -L${LOCALBASE}/lib" \
|
|
ELKDIR="${LOCALBASE}/share/elk" \
|
|
DIR="${DATADIR}" ELK=""
|
|
|
|
OPTIONS_DEFINE= DOCS
|
|
|
|
do-install:
|
|
${INSTALL_PROGRAM} ${WRKSRC}/src/unroff ${STAGEDIR}${PREFIX}/bin
|
|
${INSTALL_MAN} ${WRKSRC}/doc/*.1 ${STAGEDIR}${MANPREFIX}/man/man1
|
|
@${MKDIR} ${STAGEDIR}${DATADIR}/misc
|
|
.for i in doc/tmac.hyper misc/sample.unroff
|
|
${INSTALL_DATA} ${WRKSRC}/${i} ${STAGEDIR}${DATADIR}/misc
|
|
.endfor
|
|
${TAR} -C ${WRKSRC} -cf - scm | \
|
|
${TAR} -C ${STAGEDIR}${DATADIR} --unlink -xf -
|
|
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
|
${INSTALL_DATA} ${WRKSRC}/doc/manual.ms ${STAGEDIR}${DOCSDIR}
|
|
|
|
.include <bsd.port.mk>
|