aboutsummaryrefslogtreecommitdiffstats
path: root/converters/xdeview/Makefile
blob: 2063c44fe03ce955be6fcd5e96b132859286d337 (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
46
47
# Created by: Tim Vanderhoek <ac199@freenet.hamilton.on.ca>
# $FreeBSD$

PORTNAME=   xdeview
PORTVERSION=    0.5.20
PORTREVISION=   3
CATEGORIES= converters tcl tk
MASTER_SITES=   http://www.fpx.de/fp/Software/UUDeview/download/
DISTNAME=   uudeview-${PORTVERSION}

MAINTAINER= ports@FreeBSD.org
COMMENT=    X11 program for uu/xx/Base64/BinHex/yEnc de-/encoding

LICENSE=    GPLv2+
LICENSE_FILE=   ${WRKSRC}/COPYING

LIB_DEPENDS=    libuu.so:converters/uulib

USES=       desthack tk
GNU_CONFIGURE=  yes
# Explicitly disable Tcl otherwise the configure script picks-up
# crud from the $PATH like /usr/opt/Simili/tcl/.
CONFIGURE_ARGS= --disable-tcl --disable-tk
ALL_TARGET= xdeview
INSTALL_TARGET= install-tcl

CPPFLAGS+=  -I${TCL_INCLUDEDIR} -DHAVE_TCL \
        -I${TK_INCLUDEDIR} -DHAVE_TK \
        -I${LOCALBASE}/include
LDFLAGS+=   -L${LOCALBASE}/lib \
        -lX11 -ltcl${TCL_VER:S/.//} \
        -ltk${TCL_VER:S/.//} -lm

PORTDOCS=   *
PLIST_FILES=    bin/uuwish bin/xdeview man/man1/xdeview.1.gz

OPTIONS_DEFINE= DOCS

post-install:
    @${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/uuwish
    ${INSTALL_MAN} ${WRKSRC}/man/xdeview.1 ${STAGEDIR}${MANPREFIX}/man/man1

post-install-DOCS-on:
    @${MKDIR} ${STAGEDIR}${DOCSDIR}
    @${INSTALL_DATA} ${FILESDIR}/porting.notes ${STAGEDIR}${DOCSDIR}

.include <bsd.port.mk>