mirror of
https://git.freebsd.org/ports.git
synced 2025-07-18 17:59:20 -04:00
Unbreak textproc/unroff on FreeBSD-5.x
- fix breakage noticed by bento - de-pkg-comment while here - CFLAG-police - condense makefile, obsolete scripts - honour NOPORTDOCS PR: ports/48795 Submitted by: Volker Stolz <vs@foldr.org>
This commit is contained in:
parent
a127113f1b
commit
423e0fbe6e
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=76820
4 changed files with 17 additions and 34 deletions
|
@ -14,6 +14,7 @@ DISTNAME= ${PORTNAME}-1.0
|
|||
DISTFILES= ${DISTNAME}${EXTRACT_SUFX} ${PATCH1} ${PATCH2}
|
||||
|
||||
MAINTAINER= wosch@freebsd.org
|
||||
COMMENT= A programmable troff translator with backend for HTML
|
||||
|
||||
RUN_DEPENDS= elk:${PORTSDIR}/lang/elk
|
||||
BUILD_DEPENDS= elk:${PORTSDIR}/lang/elk
|
||||
|
@ -26,9 +27,10 @@ UNROFF_SITE= http://www-rn.informatik.uni-bremen.de/software/unroff
|
|||
PATCH1= me-misc-patch
|
||||
PATCH2= misc-patch-2
|
||||
|
||||
BUILD_WRKSRC= ${WRKSRC}/src
|
||||
|
||||
MAN1= unroff.1 unroff-html.1 unroff-html-man.1 \
|
||||
unroff-html-me.1 unroff-html-ms.1
|
||||
MANCOMPRESSED= yes
|
||||
|
||||
pre-patch:
|
||||
@${ECHO_MSG} "===> Applying distribution patches for ${PKGNAME}"
|
||||
|
@ -42,4 +44,15 @@ pre-patch:
|
|||
fi; \
|
||||
${PATCH} ${PATCH_DIST_ARGS} -p1 < ${PATCH2})
|
||||
|
||||
do-install:
|
||||
@${MKDIR} ${DATADIR}/misc
|
||||
${INSTALL_PROGRAM} ${WRKSRC}/src/unroff ${PREFIX}/bin/unroff
|
||||
${CP} -R ${WRKSRC}/scm ${DATADIR}
|
||||
${INSTALL_DATA} ${WRKSRC}/doc/tmac.hyper ${WRKSRC}/misc/sample.unroff ${DATADIR}/misc
|
||||
${INSTALL_MAN} ${WRKSRC}/doc/*.1 ${PREFIX}/man/man1
|
||||
.if !defined(NOPORTDOCS)
|
||||
@${MKDIR} ${DOCSDIR}
|
||||
${INSTALL_DATA} ${WRKSRC}/doc/manual.ms ${DOCSDIR}
|
||||
.endif
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
|
|
@ -22,7 +22,7 @@ diff -cr unroff-1.0.orig/src/Makefile unroff-1.0/src/Makefile
|
|||
|
||||
### You need a C compiler that compiles ANSI C code.
|
||||
! #CC = gcc
|
||||
! #CFLAGS = -Wall -pedantic -O
|
||||
! CFLAGS += -DBSD
|
||||
|
||||
### If you need additional linker flags add them here.
|
||||
! LDFLAGS = -s
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
bin/unroff
|
||||
share/unroff/doc/manual.ms
|
||||
share/unroff/misc/sample.unroff
|
||||
share/unroff/misc/tmac.hyper
|
||||
share/unroff/scm/troff.scm
|
||||
|
@ -14,7 +13,8 @@ share/unroff/scm/html/ms.scm
|
|||
share/unroff/scm/html/ms.scm.orig
|
||||
share/unroff/scm/misc/hyper.scm
|
||||
share/unroff/scm/misc/hyper.scm.orig
|
||||
@dirrm share/unroff/doc
|
||||
%%PORTDOCS%%share/doc/unroff/manual.ms
|
||||
%%PORTDOCS%%@dirrm share/doc/unroff
|
||||
@dirrm share/unroff/misc
|
||||
@dirrm share/unroff/scm/html
|
||||
@dirrm share/unroff/scm/misc
|
||||
|
|
30
textproc/unroff/scripts/configure
vendored
30
textproc/unroff/scripts/configure
vendored
|
@ -1,30 +0,0 @@
|
|||
#!/bin/sh
|
||||
|
||||
# write a small makefile to ${WRKSRC}
|
||||
|
||||
cat >${WRKSRC}/Makefile <<EOF
|
||||
CFLAGS+= -DBSD
|
||||
BINDIR= \${PREFIX}/bin
|
||||
LIBDIR= \${PREFIX}/share/unroff
|
||||
MANDIR= \${PREFIX}/man/man1
|
||||
|
||||
all:
|
||||
(cd src; make 'CFLAGS=\${CFLAGS}' 'PREFIX=\${PREFIX}' all)
|
||||
|
||||
install:
|
||||
@mkdir -p \${BINDIR} \${LIBDIR} \${MANDIR}
|
||||
install -c -o bin -g bin src/unroff \${PREFIX}/bin/unroff
|
||||
cp -R scm \${LIBDIR}
|
||||
@mkdir -p \${LIBDIR}/doc
|
||||
cp doc/manual.ms \${LIBDIR}/doc
|
||||
@mkdir -p \${LIBDIR}/misc
|
||||
cp doc/tmac.hyper misc/sample.unroff \${LIBDIR}/misc
|
||||
@chown -R bin.bin \${LIBDIR}
|
||||
install -c -m 644 -o bin -g bin doc/*.1 \${MANDIR}
|
||||
.if !defined(NOMANCOMPRESS)
|
||||
gzip -9nf \${MANDIR}/unroff*.1
|
||||
.endif
|
||||
|
||||
EOF
|
||||
|
||||
exit 0
|
Loading…
Add table
Reference in a new issue