diff options
author | Ruslan Ermilov <ru@FreeBSD.org> | 2005-10-20 11:28:14 +0000 |
---|---|---|
committer | Ruslan Ermilov <ru@FreeBSD.org> | 2005-10-20 11:28:14 +0000 |
commit | f1225673dd67355c8b534ff6aedc0fdebd590f98 (patch) | |
tree | c6e4e6c32e22827cfe6eb7569c578d722c242c32 /textproc/gxditview | |
parent | 0702ceea1aebc93bd5732d816f7e8ea95f252359 (diff) | |
download | ports-f1225673dd67355c8b534ff6aedc0fdebd590f98.tar.gz ports-f1225673dd67355c8b534ff6aedc0fdebd590f98.zip |
Notes
Diffstat (limited to 'textproc/gxditview')
-rw-r--r-- | textproc/gxditview/Makefile | 36 | ||||
-rw-r--r-- | textproc/gxditview/pkg-descr | 2 | ||||
-rw-r--r-- | textproc/gxditview/pkg-plist | 2 |
3 files changed, 21 insertions, 19 deletions
diff --git a/textproc/gxditview/Makefile b/textproc/gxditview/Makefile index deb34b2f1cd8..a0a84913f02f 100644 --- a/textproc/gxditview/Makefile +++ b/textproc/gxditview/Makefile @@ -12,30 +12,34 @@ DISTFILES= # none MAINTAINER= ru@FreeBSD.org COMMENT= An X11 based previewer for groff output -WRKSRC= ${WRKDIR}/${DISTNAME} - -USE_IMAKE= yes 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 -.if exists(/usr/src/contrib/groff/src/xditview) -GXDVSRC= /usr/src/contrib/groff/src/xditview GXDVVERSION!= cat /usr/src/contrib/groff/VERSION GXDVREVISION!= sed -e 's/^0$$//' -e 's/^[1-9].*$$/.&/' /usr/src/contrib/groff/REVISION PORTVERSION= ${GXDVVERSION}${GXDVREVISION} -.else -GXDVSRC= /usr/src/contrib/groff/xditview -PORTVERSION= 1.16.1 -.endif + +.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: - @if [ ! -d ${GXDVSRC} ]; then \ - ${ECHO} "You need the gxditview source in"; \ - ${ECHO} "${GXDVSRC}"; \ - ${ECHO} "to build this port."; \ - exit 1; \ - fi @${RM} -rf ${WRKDIR} @${MKDIR} ${WRKSRC} - ${CP} -rp ${GXDVSRC}/* ${WRKSRC} + ${CP} -rp /usr/src/contrib/groff/src/xditview/* ${WRKSRC} +.endif .include <bsd.port.mk> diff --git a/textproc/gxditview/pkg-descr b/textproc/gxditview/pkg-descr index 6e88886a7cfd..fdf5b408b0f7 100644 --- a/textproc/gxditview/pkg-descr +++ b/textproc/gxditview/pkg-descr @@ -3,7 +3,7 @@ used by adding a -X option to your groff command line. It creates a page preview of what will be printed. Note: to install this as a port, you need to have installed the -contrib source code. +contrib/ and gnu/ source code. -Dom dom@myrddin.demon.co.uk diff --git a/textproc/gxditview/pkg-plist b/textproc/gxditview/pkg-plist deleted file mode 100644 index 2a69adab1dfd..000000000000 --- a/textproc/gxditview/pkg-plist +++ /dev/null @@ -1,2 +0,0 @@ -bin/gxditview -lib/X11/app-defaults/GXditview |