PORTNAME=	qqwing
PORTVERSION=	1.3.4
DISTVERSIONPREFIX=	v
PORTREVISION=	6
CATEGORIES=	games gnome
DIST_SUBDIR=	gnome

MAINTAINER=	gnome@FreeBSD.org
COMMENT=	Sudoku generating and solving software
WWW=		https://people.freedesktop.org/~hughsient/appdata/

USES=		autoreconf compiler:c++11-lang gmake libtool pathfix pkgconfig
USE_GITHUB=	yes
GH_ACCOUNT=	stephenostermiller

USE_LDCONFIG=	yes
GNU_CONFIGURE=	yes
GNU_CONFIGURE_MANPREFIX=${PREFIX}/share
CONFIGURE_OUTSOURCE=	yes
AUTORECONF_WRKSRC=	${WRKSRC}/build
CONFIGURE_CMD=	${AUTORECONF_WRKSRC}/configure
INSTALL_TARGET=	install-strip

pre-build:
	@${LN} -sf ${WRKSRC}/doc/qqwing.man ${BUILD_WRKSRC}/qqwing.1
	@${LN} -sf ${WRKSRC}/src/cpp/*.[ch]pp ${BUILD_WRKSRC}/

.include <bsd.port.mk>
