freebsd-ports/games/xboard-devel/Makefile
Mathieu Arnold 4e1b79a0a6 Remove ${PORTSDIR}/ from dependencies, categories d, e, f, and g.
With hat:	portmgr
Sponsored by:	Absolight
2016-04-01 14:00:51 +00:00

41 lines
1.2 KiB
Makefile

# $FreeBSD$
PORTNAME= xboard-devel
PORTVERSION= 4.8.0.20151020.3
PORTREVISION=
PORTEPOCH=
MASTER_SITES= http://freeheimdall.spdns.org/files/
# http://hgm.nubati.net/cgi-bin/gitweb.cgi?p=xboard.git;a=snapshot;h=${COMMIT_HASH};sf=tgz
# http://hgm.nubati.net/cgi-bin/gitweb.cgi/xboard.git/snapshot/${COMMIT_HASH}
# but sha256 changes, as creation date of *.tar inside *.tar.gz changes.
DISTNAME= xboard-${COMMIT_HASH}
MAINTAINER= kalten@gmx.at
LICENSE= GPLv3
LIB_DEPENDS?= libpangocairo-1.0.so:x11-toolkits/pango
CONFLICTS= xboard-[0-9]*
MASTERDIR= ${.CURDIR}/../xboard
DISTINFO_FILE= ${.CURDIR}/distinfo
PATCHDIR= ${.CURDIR}/files
PLIST= ${.CURDIR}/pkg-plist
COMMIT_HASH= f49e7e1
DATADIR= ${PREFIX}/share/games/xboard
DOCSDIR= ${PREFIX}/share/doc/xboard
XBOARDCONF= ${WRKSRC}/xboard.conf
USES= autoreconf desktop-file-utils gettext-tools gmake shared-mime-info shebangfix
SHEBANG_FILES= texi2man
INSTALL_TARGET= install-strip
pre-configure:
${RM} ${WRKSRC}/m4/*.m4
${REINPLACE_CMD} -e "s|\(GITVERSION=\).*|\1${COMMIT_HASH}|" ${WRKSRC}/Makefile.am
${REINPLACE_CMD} -E "s|(AC_INIT\(\[xboard\],\[)[^]]+(\].+\))|\1${PORTVERSION}-git:${COMMIT_HASH}\2|" ${WRKSRC}/configure.ac
.include "${MASTERDIR}/Makefile"