summaryrefslogtreecommitdiff
path: root/graphics/autoq3d/Makefile
blob: de250514b0f088f7d496645a3b7719bbefa7224d (plain) (blame)
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
51
52
# Created by: Yinghong.Liu <relaxbsd@gmail.com>
# $FreeBSD$

PORTNAME=	autoq3d
PORTVERSION=	1.40
PORTREVISION=	4
CATEGORIES=	graphics
MASTER_SITES=	SF/${PORTNAME}/${PORTNAME}/AutoQ3D%20${PORTVERSION}
DISTNAME=	AutoQ3DCommunity${PORTVERSION:C/\./-/}qt4source

MAINTAINER=	nemysis@gmx.ch
COMMENT=	Qt4 quick 3D model editor

LICENSE=	GPLv2 GPLv3
LICENSE_COMB=	dual

USE_DOS2UNIX=	yes
USE_GL=		glu
USE_ZIP=	yes
USE_QT4=	corelib gui opengl \
		moc_build qmake_build
MAKE_JOBS_SAFE=	yes

PORTDOCS=	3DQformat.txt ChangeLog.txt

DESKTOP_ENTRIES="AutoQ3D" \
		"${COMMENT}" \
		"AutoQ3D" \
		"AutoQ3D" \
		"Graphics;3DGraphics;Qt;" \
		false

.include <bsd.port.options.mk>
post-patch:
.for file in src/main.cpp src/fgui/cadform.cpp src/dialogs/prgsettings.cpp
	@${REINPLACE_CMD} -e \
		's|/usr/share/AutoQ3D-Community|${DATADIR}|g' ${WRKSRC}/${file}
.endfor

do-configure:
	@(cd ${WRKSRC} && ${SETENV} ${CONFIGURE_ENV} ${QMAKE} ${QMAKEFLAGS})

do-install:
	${INSTALL_PROGRAM} ${WRKSRC}/AutoQ3D ${PREFIX}/bin
	@(cd ${WRKSRC} && ${COPYTREE_SHARE} "images *.htm *.qm" ${DATADIR})
	${INSTALL_DATA} ${WRKSRC}/AutoQ3D.png ${PREFIX}/share/pixmaps
.if ${PORT_OPTIONS:MDOCS}
	@${MKDIR} ${DOCSDIR}
	${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/docs/|} ${DOCSDIR}
.endif

.include <bsd.port.mk>