Lines 3-30
Link Here
|
3 |
|
3 |
|
4 |
PORTNAME= tkdiff |
4 |
PORTNAME= tkdiff |
5 |
PORTVERSION= 4.2 |
5 |
PORTVERSION= 4.2 |
6 |
PORTREVISION= 1 |
6 |
PORTREVISION= 2 |
7 |
CATEGORIES= textproc tk |
7 |
CATEGORIES= textproc tk |
8 |
MASTER_SITES= SF |
8 |
MASTER_SITES= SF |
9 |
|
9 |
|
10 |
MAINTAINER= ports@FreeBSD.org |
10 |
MAINTAINER= portmaster@BSDforge.com |
11 |
COMMENT= Tk frontend for diff(1) |
11 |
COMMENT= Tk frontend for diff(1) |
12 |
|
12 |
|
13 |
LICENSE= GPLv2 |
13 |
LICENSE= GPLv2 |
14 |
LICENSE_FILE= ${WRKSRC}/LICENSE.txt |
14 |
LICENSE_FILE= ${WRKSRC}/LICENSE.txt |
15 |
|
15 |
|
|
|
16 |
BUILD_DEPENDS= base64>0:converters/base64 |
17 |
|
16 |
WRKSRC= ${WRKDIR}/${PORTNAME}-unix |
18 |
WRKSRC= ${WRKDIR}/${PORTNAME}-unix |
17 |
|
19 |
|
18 |
USES= tk:wrapper |
20 |
USES= tk:wrapper |
19 |
NO_BUILD= yes |
21 |
NO_BUILD= yes |
20 |
|
22 |
|
21 |
PLIST_FILES= bin/tkdiff |
23 |
DESKTOP_ENTRIES= "Tkdiff" "Tk frontend for the diff command" \ |
|
|
24 |
"tkdiff" \ |
25 |
"tkdiff" "GNOME;GTK;Development;System;" \ |
26 |
false |
22 |
|
27 |
|
|
|
28 |
UNPACK= base64 -d |
29 |
|
30 |
PLIST_FILES= bin/tkdiff share/pixmaps/tkdiff.png share/pixmaps/tkdiff-256.png \ |
31 |
share/pixmaps/tkdiff-128.png share/pixmaps/tkdiff-64.png |
32 |
|
23 |
post-patch: |
33 |
post-patch: |
24 |
${FIND} ${WRKSRC} -type f | ${XARGS} \ |
34 |
${FIND} ${WRKSRC} -type f | ${XARGS} \ |
25 |
${REINPLACE_CMD} -e '/^exec wish/s|wish|${WISH}|g' -e '/^exec tclsh/s|tclsh|${TCLSH}|g' |
35 |
${REINPLACE_CMD} -e '/^exec wish/s|wish|${WISH}|g' -e '/^exec tclsh/s|tclsh|${TCLSH}|g' |
26 |
|
36 |
|
|
|
37 |
pre-install: |
38 |
${UNPACK} ${FILESDIR}/256 > ${STAGEDIR}${PREFIX}/share/pixmaps/tkdiff-256.png |
39 |
${UNPACK} ${FILESDIR}/128 > ${STAGEDIR}${PREFIX}/share/pixmaps/tkdiff-128.png |
40 |
${UNPACK} ${FILESDIR}/64 > ${STAGEDIR}${PREFIX}/share/pixmaps/tkdiff-64.png |
41 |
${UNPACK} ${FILESDIR}/32 > ${STAGEDIR}${PREFIX}/share/pixmaps/tkdiff.png |
42 |
|
27 |
do-install: |
43 |
do-install: |
28 |
@${INSTALL_SCRIPT} ${WRKSRC}/tkdiff ${STAGEDIR}${PREFIX}/bin |
44 |
${INSTALL_SCRIPT} ${WRKSRC}/tkdiff ${STAGEDIR}${PREFIX}/bin |
29 |
|
45 |
|
30 |
.include <bsd.port.mk> |
46 |
.include <bsd.port.mk> |