mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-05 06:27:37 +00:00
84bf3d16e9
- Add LICENSE_FILE - Switch to options helpers - Regenerate patches
49 lines
1.3 KiB
Makefile
49 lines
1.3 KiB
Makefile
# Created by: Yinghong.Liu <relaxbsd@gmail.com>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= autoq3d
|
|
PORTVERSION= 1.40
|
|
PORTREVISION= 8
|
|
CATEGORIES= graphics
|
|
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/AutoQ3D%20${PORTVERSION}
|
|
DISTNAME= AutoQ3DCommunity${PORTVERSION:C/\./-/}qt4source
|
|
|
|
MAINTAINER= ports@FreeBSD.org
|
|
COMMENT= Qt 4 quick 3D model editor
|
|
|
|
LICENSE= GPLv2+
|
|
LICENSE_FILE= ${WRKSRC}/docs/license.txt
|
|
|
|
USES= dos2unix qmake zip
|
|
DOS2UNIX_FILES= *.pro src/cmds/*.cpp src/fgui/*.cpp docs/*.txt
|
|
DOS2UNIX_REGEX= .*.[^p][^n][^g]$
|
|
USE_GL= glu
|
|
USE_QT4= corelib gui opengl moc_build
|
|
|
|
PORTDOCS= 3DQformat.txt ChangeLog.txt
|
|
|
|
DESKTOP_ENTRIES="AutoQ3D" "" "AutoQ3D" \
|
|
"AutoQ3D" "Graphics;3DGraphics;Qt;" ""
|
|
|
|
OPTIONS_DEFINE= DOCS
|
|
|
|
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-install:
|
|
${INSTALL_PROGRAM} ${WRKSRC}/AutoQ3D ${STAGEDIR}${PREFIX}/bin/
|
|
@(cd ${WRKSRC} && ${COPYTREE_SHARE} "images *.htm *.qm" \
|
|
${STAGEDIR}${DATADIR})
|
|
${INSTALL_DATA} ${WRKSRC}/AutoQ3D.png \
|
|
${STAGEDIR}${PREFIX}/share/pixmaps/
|
|
|
|
do-install-DOCS-on:
|
|
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
|
${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/docs/|} ${STAGEDIR}${DOCSDIR}
|
|
|
|
.include <bsd.port.mk>
|