Lines 6-31
Link Here
|
6 |
# |
6 |
# |
7 |
|
7 |
|
8 |
PORTNAME= autoq3d |
8 |
PORTNAME= autoq3d |
9 |
DISTVERSION= 1.36 |
9 |
DISTVERSION= 1.39 |
10 |
PORTREVISION= 2 |
|
|
11 |
CATEGORIES= graphics |
10 |
CATEGORIES= graphics |
12 |
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/AutoQ3D%20${PORTVERSION} |
11 |
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/AutoQ3D%20${PORTVERSION} |
13 |
DISTNAME= AutoQ3DGPL${PORTVERSION:C/\./-/}qt4source |
12 |
DISTNAME= AutoQ3DCommunity${PORTVERSION:C/\./-/}qt4source |
14 |
|
13 |
|
15 |
MAINTAINER= ports@FreeBSD.org |
14 |
MAINTAINER= ports@FreeBSD.org |
16 |
COMMENT= A complete QT quick 3d model editor program |
15 |
COMMENT= A complete QT quick 3d model editor program |
17 |
|
16 |
|
18 |
USE_ZIP= yes |
17 |
USE_ZIP= yes |
19 |
USE_QT_VER= 4 |
18 |
USE_QT_VER= 4 |
20 |
QT_COMPONENTS= qmake_build corelib moc_build gui opengl |
19 |
QT_COMPONENTS= corelib gui opengl \ |
21 |
|
20 |
moc_build qmake_build |
22 |
PORTDOCS= 3DQformat.txt ChangeLog.txt Install.txt license.txt |
|
|
23 |
|
24 |
.if !defined(WITHOUT_NLS) |
25 |
PLIST_SUB+= NLS="" |
26 |
.else |
27 |
PLIST_SUB+= NLS="@comment " |
28 |
.endif |
29 |
|
21 |
|
30 |
DESKTOP_ENTRIES= "AutoQ3D" \ |
22 |
DESKTOP_ENTRIES= "AutoQ3D" \ |
31 |
"A complete QT quick 3d model editor program" \ |
23 |
"A complete QT quick 3d model editor program" \ |
Lines 35-64
Link Here
|
35 |
"false" |
27 |
"false" |
36 |
|
28 |
|
37 |
post-patch: |
29 |
post-patch: |
38 |
@${REINPLACE_CMD} -e 's|/usr/share/AutoQ3D-GPL|${DATADIR}|g' \ |
30 |
.for file in src/main.cpp src/fgui/cadform.cpp src/dialogs/prgsettings.cpp |
39 |
${WRKSRC}/src/main.cpp \ |
31 |
@${REINPLACE_CMD} -e \ |
40 |
${WRKSRC}/src/fgui/cadform.cpp \ |
32 |
's|/usr/share/AutoQ3D-Community|${DATADIR}|g' ${WRKSRC}/${file} |
41 |
${WRKSRC}/src/dialogs/prgsettings.cpp |
33 |
.endfor |
42 |
|
34 |
|
43 |
pre-build: |
35 |
do-configure: |
44 |
@cd ${BUILD_WRKSRC}; ${SETENV} ${MAKE_ENV} ${QMAKE} -spec ${QMAKESPEC} |
36 |
@cd ${BUILD_WRKSRC}; ${SETENV} ${MAKE_ENV} ${QMAKE} -spec ${QMAKESPEC} |
45 |
|
37 |
|
46 |
post-install: |
38 |
do-install: |
47 |
@${INSTALL_PROGRAM} ${WRKSRC}/AutoQ3D ${PREFIX}/bin |
39 |
${INSTALL_PROGRAM} ${WRKSRC}/AutoQ3D ${PREFIX}/bin |
48 |
@${MKDIR} ${PREFIX}/share/pixmaps |
|
|
49 |
@${INSTALL_DATA} ${WRKSRC}/AutoQ3D.png ${PREFIX}/share/pixmaps |
50 |
@${MKDIR} ${DATADIR} |
40 |
@${MKDIR} ${DATADIR} |
51 |
@${INSTALL_DATA} ${WRKSRC}/qref*.htm ${DATADIR} |
41 |
${INSTALL_DATA} ${WRKSRC}/*.htm ${DATADIR} |
|
|
42 |
${INSTALL_DATA} ${WRKSRC}/*.qm ${DATADIR} |
52 |
@${MKDIR} ${DATADIR}/images |
43 |
@${MKDIR} ${DATADIR}/images |
53 |
@${INSTALL_DATA} ${WRKSRC}/images/*.png ${DATADIR}/images |
44 |
${INSTALL_DATA} ${WRKSRC}/images/*.png ${DATADIR}/images |
54 |
.if !defined(WITHOUT_NLS) |
45 |
@${MKDIR} ${PREFIX}/share/pixmaps |
55 |
@${INSTALL_DATA} ${WRKSRC}/*.qm ${DATADIR} |
46 |
${INSTALL_DATA} ${WRKSRC}/AutoQ3D.png ${PREFIX}/share/pixmaps |
56 |
.endif |
|
|
57 |
.if !defined(NOPORTDOCS) |
47 |
.if !defined(NOPORTDOCS) |
58 |
@${MKDIR} ${DOCSDIR} |
48 |
@${MKDIR} ${DOCSDIR} |
59 |
.for doc in ${PORTDOCS} |
49 |
${INSTALL_DATA} ${WRKSRC}/docs/*.txt ${DOCSDIR} |
60 |
@${INSTALL_DATA} ${WRKSRC}/docs/${doc} ${DOCSDIR} |
|
|
61 |
.endfor |
62 |
.endif |
50 |
.endif |
63 |
|
51 |
|
64 |
.include <bsd.port.mk> |
52 |
.include <bsd.port.mk> |