1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-03 01:23:49 +00:00
freebsd-ports/sysutils/dirdiff/Makefile
Pietro Cerutti e0de4b29fd - Fix build
PR:		199058
Submitted by:	Lawrence Chen <beastie@tardisi.com>
Discussed with:	bapt
2015-03-31 21:53:57 +00:00

40 lines
985 B
Makefile

# Created by: grog
# $FreeBSD$
PORTNAME= dirdiff
PORTVERSION= 2.1
PORTREVISION= 3
CATEGORIES= sysutils tcl tk
MASTER_SITES= ftp://ftp.samba.org/pub/paulus/
MAINTAINER= tcltk@FreeBSD.org
COMMENT= Graphical diff tool
LICENSE= GPLv2 # (or later)
LICENSE_FILE= ${WRKSRC}/COPYING
USES+= tk
USE_LDCONFIG= yes
PLIST_FILES= bin/dirdiff lib/libfilecmp.so.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_DATA} ${WRKSRC}/libfilecmp.so.0 ${STAGEDIR}${PREFIX}/lib
.include <bsd.port.mk>