aboutsummaryrefslogtreecommitdiffstats
path: root/textproc/gxditview/Makefile
blob: a0a84913f02faa60501d196c8bfcc949265feb1c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
# New ports collection makefile for:   gxditview
# Date created:                24 June 1998
# Whom:                        Dom Mitchell <dom@happygiraffe.net>
#
# $FreeBSD$
#

PORTNAME=   gxditview
CATEGORIES= textproc
DISTFILES=  # none

MAINTAINER= ru@FreeBSD.org
COMMENT=    An X11 based previewer for groff output

MAN1=       gxditview.1
PLIST_FILES=    bin/gxditview lib/X11/app-defaults/GXditview

.if !exists(/usr/src/contrib/groff/src)
IGNORE=     requires /usr/src/contrib/groff/src to build
PORTVERSION=    1.16.1
.endif

GXDVVERSION!=   cat /usr/src/contrib/groff/VERSION
GXDVREVISION!=  sed -e 's/^0$$//' -e 's/^[1-9].*$$/.&/' /usr/src/contrib/groff/REVISION
PORTVERSION=    ${GXDVVERSION}${GXDVREVISION}

.if exists(/usr/src/contrib/groff/src/devices/xditview) && \
    exists(/usr/src/gnu/usr.bin/groff/src/devices/xditview)
USE_X_PREFIX=   yes
MANCOMPRESSED=  maybe
WRKSRC=     /usr/src/gnu/usr.bin/groff/src/devices/xditview
MAKE_ENV=   MAKEOBJDIR=${WRKDIR}

pre-configure-script:
    @${DO_NADA}
.elif exists(/usr/src/contrib/groff/src/xditview)
USE_IMAKE=  yes

do-extract:
    @${RM} -rf ${WRKDIR}
    @${MKDIR} ${WRKSRC}
    ${CP} -rp /usr/src/contrib/groff/src/xditview/* ${WRKSRC}
.endif

.include <bsd.port.mk>