forked from Lainports/freebsd-ports
Rather than conflicting with xxd (which presents a dependency problem for users who don't want to install vim), add an option to depend on xxd. So, the vim port will no longer install xxd, but the option is on by default so most users won't see a difference (other than the new dependency). PR: 274104 Reported by: corvink
35 lines
872 B
Makefile
35 lines
872 B
Makefile
PORTNAME= xxd
|
|
DISTVERSIONPREFIX= v
|
|
DISTVERSION= ${VIM_DISTVERSION}
|
|
CATEGORIES= sysutils
|
|
|
|
MAINTAINER= gmarco@giovannelli.it
|
|
COMMENT= Hexdump and reverse hexdump utility from vim distribution
|
|
WWW= https://www.vim.org/
|
|
|
|
LICENSE= VIM
|
|
LICENSE_NAME= VIM License
|
|
LICENSE_FILE= ${WRKSRC}/../../runtime/doc/uganda.txt
|
|
LICENSE_PERMS= dist-mirror dist-sell pkg-mirror pkg-sell auto-accept
|
|
|
|
DISTINFO_FILE= ${VIM_PORT}/distinfo
|
|
ALL_TARGET= ${PORTNAME}
|
|
PORTSCOUT= ignore:1
|
|
EXTRACT_AFTER_ARGS= --include='*/src/xxd*' --include='*/runtime/doc/uganda.txt'
|
|
WRKSRC_SUBDIR= src/xxd
|
|
|
|
PLIST_FILES= bin/xxd
|
|
|
|
USE_GITHUB= yes
|
|
GH_ACCOUNT= vim
|
|
GH_PROJECT= vim
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
VIM_PORT= ${.CURDIR}/../../editors/vim
|
|
VIM_DISTVERSION!= ${BSDMAKE} -f ${VIM_PORT}/Makefile -V DISTVERSION
|
|
|
|
do-install:
|
|
${INSTALL_PROGRAM} ${WRKSRC}/xxd ${STAGEDIR}${PREFIX}/bin
|
|
|
|
.include <bsd.port.post.mk>
|