1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-29 01:13:08 +00:00
freebsd-ports/sysutils/hfsutils/Makefile
2014-03-10 16:06:57 +00:00

57 lines
1.4 KiB
Makefile

# Created by: Vanilla I. Shu <vanilla@MinJe.com.TW>
# $FreeBSD$
PORTNAME= hfsutils
PORTVERSION= 3.2.6
PORTREVISION= 3
CATEGORIES= sysutils
MASTER_SITES= ftp://ftp.mars.org/pub/hfs/
MAINTAINER= ports@FreeBSD.org
COMMENT= Utilities for accessing Apple's HFS volumes
LICENSE= GPLv2
CONFLICTS= hfs-[0-9]*
USES= gmake # passing -jX breaks BSD make(1)
GNU_CONFIGURE= yes
ALL_TARGET= all hfsck/hfsck
PORTDOCS= *
OPTIONS_DEFINE= TCLTK DEVLIBS DOCS
OPTIONS_SUB= yes
TCLTK_DESC= Enable Tcl interface (HFS "shell") and Tk-based GUI
DEVLIBS_DESC= Install developer libraries and header files
TCLTK_CATEGORIES= tcl tk
TCLTK_USES= tk
TCLTK_CPPFLAGS= -I${LOCALBASE}/include
TCLTK_CONFIGURE_ON= --with-tcl=${TCL_LIBDIR} --with-tk=${TK_LIBDIR}
TCLTK_CONFIGURE_OFF= --without-tcl --without-tk
DEVLIBS_CONFIGURE_ON= --enable-devlibs
.include <bsd.port.options.mk>
post-patch:
# Unbreak against Tcl 8.6
@${ECHO_CMD} '#define USE_INTERP_RESULT 1' >> ${WRKSRC}/config.h.in
# Allow staging (support DESTDIR)
@${FIND} ${WRKSRC} -type f -name Makefile.in | ${XARGS} \
${REINPLACE_CMD} -e '/^...DEST =/s,@,$$(DESTDIR)&,'
post-install:
${INSTALL_PROGRAM} ${WRKSRC}/hfsck/hfsck ${STAGEDIR}${PREFIX}/bin
.if ${PORT_OPTIONS:MTCLTK}
@${CHMOD} 755 ${STAGEDIR}${PREFIX}/bin/hfs
.endif
@${MKDIR} ${STAGEDIR}${DOCSDIR}
.for f in BLURB CHANGES README TODO doc/*.txt
${INSTALL_DATA} ${WRKSRC}/${f} ${STAGEDIR}${DOCSDIR}
.endfor
.include <bsd.port.mk>