blob: ba688bc1ec2703d536301ed03a7e87fd705aa0e2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
|
# $NetBSD: Makefile,v 1.44 2021/12/08 16:07:02 adam Exp $
DISTNAME= xaos-4.2.1
PKGREVISION= 3
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"
|