[BACK]Return to Makefile CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / pkgsrc / x11 / XaoS

File: [cvs.NetBSD.org] / pkgsrc / x11 / XaoS / Makefile (download)

Revision 1.49, Wed Nov 23 16:21:22 2022 UTC (2 months ago) by adam
Branch: MAIN
CVS Tags: pkgsrc-2022Q4-base, pkgsrc-2022Q4, HEAD
Changes since 1.48: +2 -2 lines

massive revision bump after textproc/icu update

# $NetBSD: Makefile,v 1.49 2022/11/23 16:21:22 adam Exp $

DISTNAME=		xaos-4.2.1
PKGREVISION=		8
CATEGORIES=		x11
MASTER_SITES=		${MASTER_SITE_GITHUB:=xaos-project/}
GITHUB_PROJECT=		XaoS
GITHUB_TAG=		refs/tags/release-${PKGVERSION_NOREV}

MAINTAINER=		pkgsrc-users@NetBSD.org
HOMEPAGE=		http://matek.hu/xaos/
COMMENT=		Zoomable fractal rendering doodad
LICENSE=		gnu-gpl-v2

USE_TOOLS+=		gmake
USE_LANGUAGES+=		c c++

SUBST_CLASSES+=		strip
SUBST_MESSAGE.strip=	Filling in missing path to strip
SUBST_STAGE.strip=	post-configure
SUBST_FILES.strip=	Makefile
SUBST_SED.strip=	-e 's,^STRIP .*=.*,STRIP = ${TOOLS_PLATFORM.strip},'

SUBST_CLASSES+=		path
SUBST_MESSAGE.path=	Fixing path to data files
SUBST_STAGE.path=	post-configure
SUBST_FILES.path=	src/include/config.h
SUBST_SED.path=		-e '/^.define DATAPATH/s,".*","${PREFIX}/share/XaoS",'

WRKSRC=			${WRKDIR}/XaoS-release-${PKGVERSION_NOREV}

INSTALLATION_DIRS+=	${PREFIX}/bin
INSTALLATION_DIRS+=	${PREFIX}/share/XaoS

do-configure:
	cd ${WRKSRC} && env ${CONFIGURE_ENV} ${QTDIR}/bin/qmake

# The upstream package has no working install target any more.
do-install:
	${INSTALL_PROGRAM} ${WRKSRC}/bin/xaos  ${DESTDIR}${PREFIX}/bin/
.for dir in catalogs examples tutorial
	cd ${WRKSRC} && pax -wr ${dir} ${DESTDIR}${PREFIX}/share/XaoS/
.endfor
	cd ${DESTDIR}${PREFIX}/share/XaoS/examples && \
		mv */* . && \
		rmdir 0rfelyus Hubicka Langston Malczak ZKovacs ZsKovacs

.include "../../x11/qt5-qtbase/buildlink3.mk"
.include "../../x11/qt5-qttools/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"