blob: b7c71fd837e9f82b20bf52bbb08d430845dc9e73 (
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
|
# $NetBSD: Makefile,v 1.5 2013/06/04 22:16:23 tron Exp $
#
DISTNAME= mandelbulber1.13-1
PKGNAME= ${DISTNAME:S/-/./:S/mandelbulber/mandelbulber-/}
PKGREVISION= 3
CATEGORIES= graphics
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=mandelbulber/}
MAINTAINER= ryoon@NetBSD.org
HOMEPAGE= http://www.mandelbulber.com/
COMMENT= 3D fractal explorer
LICENSE= gnu-gpl-v3
USE_TOOLS+= gmake pax pkg-config
USE_LANGUAGES= c++
BUILD_DIRS= makefiles
MAKE_FILE= makefile
SUBST_CLASSES+= lib
SUBST_STAGE.lib= pre-configure
SUBST_MESSAGE.lib= Fix library path, CXXFLAGS, and CXX.
SUBST_FILES.lib+= makefiles/makefile
SUBST_FILES.lib+= makefiles/src/subdir.mk
SUBST_SED.lib+= -e 's;g++;${CXX:Q} ${CXXFLAGSQ} ${COMPILER_RPATH_FLAG}${BUILDLINK_PREFIX.gtk2}/lib ${COMPILER_RPATH_FLAG}${BUILDLINK_PREFIX.freetype2}/lib ${LDFLAGS};'
SUBST_SED.lib+= -e 's,/usr/lib/x86_64-linux-gnu/,${PREFIX}/lib,'
CXXFLAGS+= -DSHARED_DIR=\\"${PREFIX}/share/mandelbulber\\"
LDFLAGS.SunOS+= -lsocket -lnsl
INSTALLATION_DIRS= bin share/mandelbulber
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/makefiles/mandelbulber \
${DESTDIR}${PREFIX}/bin
cd ${WRKSRC}/usr/share && pax -rw -pmp * \
${DESTDIR}${PREFIX}/share/mandelbulber
.include "../../mk/jpeg.buildlink3.mk"
.include "../../x11/gtk2/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
|