Lines 6-41
Link Here
|
6 |
# |
6 |
# |
7 |
|
7 |
|
8 |
PORTNAME= qtm |
8 |
PORTNAME= qtm |
9 |
PORTVERSION= 0.5.5 |
9 |
PORTVERSION= 0.5.8.2 |
10 |
CATEGORIES= deskutils |
10 |
CATEGORIES= deskutils |
11 |
MASTER_SITES= SF |
11 |
MASTER_SITES= SF/catkin |
12 |
MASTER_SITE_SUBDIR=catkin |
|
|
13 |
|
12 |
|
14 |
MAINTAINER= ports@FreeBSD.org |
13 |
MAINTAINER= ports@FreeBSD.org |
15 |
COMMENT= Blog management application based on Qt 4 |
14 |
COMMENT= Blog management application based on Qt 4 |
16 |
|
15 |
|
17 |
USE_QT_VER= 4 |
16 |
BUILD_DEPENDS= cmake:${PORTSDIR}/devel/cmake |
18 |
QT_COMPONENTS= gui network corelib xml qmake_build uic_build moc_build |
|
|
19 |
PLIST_FILES= bin/QTM |
20 |
|
17 |
|
21 |
PORTDOCS= COPYING Changelog INSTALL README |
18 |
USE_QT_VER= 4 |
|
|
19 |
QT_COMPONENTS= corelib gui network xml moc_build qmake4_build uic_build |
22 |
|
20 |
|
23 |
DESKTOP_ENTRIES= "QTM" \ |
21 |
MAN= qtm.1 |
24 |
"Weblog management application" \ |
22 |
PORTDOCS= Changelog INSTALL README |
25 |
"" \ |
23 |
PLIST_FILES= bin/qtm \ |
26 |
"QTM" \ |
24 |
share/applications/qtm.desktop \ |
27 |
"Application;Network;" \ |
25 |
share/icons/qtm-logo1.png |
28 |
"false" |
|
|
29 |
|
26 |
|
30 |
pre-build: |
27 |
pre-build: |
31 |
@cd ${BUILD_WRKSRC}; ${SETENV} ${MAKE_ENV} ${QMAKE} -unix QTM.pro |
28 |
@cd ${BUILD_WRKSRC}; ${SETENV} ${MAKE_ENV} cmake . \ |
|
|
29 |
-DCMAKE_INSTALL_PREFIX:PATH=${PREFIX} \ |
30 |
-DCMAKE_C_FLAGS="${CFLAGS} ${PTHREAD_CFLAGS}" \ |
31 |
-DCMAKE_CXX_FLAGS="${CXXFLAGS} ${PTHREAD_CFLAGS}" \ |
32 |
-DCMAKE_C_LINK_FLAGS="${PTHREAD_LIBS}" \ |
33 |
-DCMAKE_CXX_LINK_FLAGS="${PTHREAD_LIBS}" \ |
34 |
-DMANPAGE_DIRECTORY="${MANPREFIX}/man/man1" |
32 |
|
35 |
|
33 |
post-install: |
36 |
post-install: |
34 |
@${INSTALL_PROGRAM} ${WRKSRC}/QTM ${PREFIX}/bin |
37 |
@${ECHO_CMD} "@unexec rmdir %D/share/applications 2>/dev/null || true" \ |
|
|
38 |
>> ${TMPPLIST} |
35 |
.if !defined(NOPORTDOCS) |
39 |
.if !defined(NOPORTDOCS) |
36 |
@${MKDIR} ${DOCSDIR} |
40 |
@${MKDIR} ${DOCSDIR} |
37 |
.for doc in ${PORTDOCS} |
41 |
.for doc in ${PORTDOCS} |
38 |
@${INSTALL_DATA} ${WRKSRC}/${doc} ${DOCSDIR} |
42 |
${INSTALL_DATA} ${WRKSRC}/${doc} ${DOCSDIR} |
39 |
.endfor |
43 |
.endfor |
40 |
.endif |
44 |
.endif |
41 |
|
45 |
|