freebsd-ports/textproc/unroff/Makefile
Mathieu Arnold 60d1a83c2a MASTER_SITES cleanup.
- Replace ${MASTER_SITE_FOO} with FOO.
- Merge MASTER_SITE_SUBDIR into MASTER_SITES when possible. (This means 99.9%
  of the time.)
- Remove occurrences of MASTER_SITE_LOCAL when no subdirectory was present and
  no hint of what it should be was present.
- Fix some logic.
- And generally, make things more simple and easy to understand.

While there, add magic values to the FESTIVAL, GENTOO, GIMP, GNUPG, QT and
SAMBA macros.

Also, replace some EXTRACT_SUFX occurences with USES=tar:*.

Checked by:	make fetch-urlall-list
With hat:	portmgr
Sponsored by:	Absolight
2015-05-14 10:15:04 +00:00

42 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/dist/
DISTNAME= ${PORTNAME}-${PORTVERSION:R}
DIST_SUBDIR= unroff
PATCH_SITES= http://www-rn.informatik.uni-bremen.de/software/unroff/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>