aboutsummaryrefslogtreecommitdiffstats
path: root/www/getleft/Makefile
blob: 4dc5662cf568407c55d878629d6b176dd68ca1a8 (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
# Created by: alepulver
# $FreeBSD$

PORTNAME=   getleft
PORTVERSION=    1.2
PORTEPOCH=  1
CATEGORIES= www ftp
MASTER_SITES=   SF/${PORTNAME}down/${PORTNAME}-Stable/${PORTVERSION}
DISTNAME=   Getleft-v${PORTVERSION}

MAINTAINER= bofh@FreeBSD.org
COMMENT=    Web site downloader

RUN_DEPENDS=    ${LOCALBASE}/lib/Tktable2.10/libTktable2.10.so:x11-toolkits/tktable \
        ${LOCALBASE}/lib/libttkstub.a:x11-toolkits/tile

USES=       tk
PORTSCOUT=  ignore:1

do-build:
    @(${ECHO_CMD} "#!${SH}"; ${ECHO_CMD} "cd ${DATADIR} || exit 1"; \
      ${ECHO_CMD} 'exec ${WISH} Getleft.tcl "$$@"') > ${WRKDIR}/${PORTNAME}

do-install:
    ${INSTALL_SCRIPT} ${WRKDIR}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin
    @${MKDIR} ${STAGEDIR}${DATADIR}
    ${INSTALL_SCRIPT} ${WRKSRC}/Getleft.tcl ${STAGEDIR}${DATADIR}
.for dir in Languages doc scripts images
    @(cd ${WRKSRC} && ${COPYTREE_SHARE} ${dir} ${STAGEDIR}${DATADIR})
.endfor

.include <bsd.port.mk>