blob: 61d313b8c6b1396ce1b3b2f77d805e7150125fa1 (
plain)
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
|
PORTNAME= dirdiff
PORTVERSION= 2.1
PORTREVISION= 4
CATEGORIES= sysutils tcl tk
MASTER_SITES= https://ftp.samba.org/pub/paulus/
MAINTAINER= tcltk@FreeBSD.org
COMMENT= Graphical diff tool
WWW= http://freecode.com/projects/dirdiff/
LICENSE= GPLv2+
LICENSE_FILE= ${WRKSRC}/COPYING
USES+= tk
USE_LDCONFIG= yes
PLIST_FILES= bin/dirdiff lib/libfilecmp.so.0.0
CFLAGS+= -fPIC -I${TCL_INCLUDEDIR}
# When bsdmake is used to build the port, the ports infrastructure should call
# it with MAKE_ENV+= __MAKE_CONF=/dev/null to avoid sourcing make.conf twice.
# This is a workaround to make sure CFLAGS are passed through.
MAKE_ARGS= CFLAGS="${CFLAGS}"
post-patch:
@${REINPLACE_CMD} -e \
's|.0.0|.0|g ; \
s|^CFLAGS=|CFLAGS?=|g' ${WRKSRC}/Makefile
@${REINPLACE_CMD} -e \
's|^exec wish |exec ${WISH} |' ${WRKSRC}/dirdiff
do-install:
${INSTALL_SCRIPT} ${WRKSRC}/dirdiff ${STAGEDIR}${PREFIX}/bin
${INSTALL_LIB} ${WRKSRC}/libfilecmp.so.0 ${STAGEDIR}${PREFIX}/lib/libfilecmp.so.0.0
.include <bsd.port.mk>
|