diff options
-rw-r--r-- | emulators/hfs/Makefile | 17 |
1 files changed, 14 insertions, 3 deletions
diff --git a/emulators/hfs/Makefile b/emulators/hfs/Makefile index c58a1250fd13..ab634601d530 100644 --- a/emulators/hfs/Makefile +++ b/emulators/hfs/Makefile @@ -19,20 +19,31 @@ USE_GMAKE= yes MAKE_ARGS= CCPLUSPLUS="${CXX} -c" LD="${CXX}" DEBUG="${CFLAGS}" \ INSTALLPATH="${PREFIX}" MANINSTALLDIR="${MANPREFIX}/man/man1" -MAN1= hfs.1 -PLIST_FILES= bin/hfs +MAN1= ${PORTNAME}.1 +PLIST_FILES= bin/${PORTNAME} PORTDOCS= README -OPTIONS_DEFINE= DOCS +OPTIONS_DEFINE= ALIASES DOCS +ALIASES_DESC= Install subcommand symbolic links .include <bsd.port.options.mk> +.if ${PORT_OPTIONS:MALIASES} +ALIASES= bin/hcat bin/hcd bin/hdir bin/hls bin/hpwd bin/hread +PLIST_FILES+= ${ALIASES} +.endif + post-patch: @${REINPLACE_CMD} -e 's|/usr/.* ||' ${WRKSRC}/Makefile @${REINPLACE_CMD} -e 's|Volume::Enumerate|Enumerate|' \ ${WRKSRC}/volume.h post-install: +.if ${PORT_OPTIONS:MALIASES} +. for l in ${ALIASES} + ${LN} -sf ${PORTNAME} ${PREFIX}/${l} +. endfor +.endif .if ${PORT_OPTIONS:MDOCS} @${MKDIR} ${DOCSDIR} ${INSTALL_DATA} ${WRKSRC}/${PORTDOCS} ${DOCSDIR} |