Lines 6-79
Link Here
|
6 |
# |
6 |
# |
7 |
|
7 |
|
8 |
PORTNAME= cdcat |
8 |
PORTNAME= cdcat |
9 |
PORTVERSION= 1.01b # >1.01 as b doesn't stay for 'beta' |
9 |
PORTVERSION= 1.3 |
10 |
PORTREVISION= 5 |
|
|
11 |
CATEGORIES= deskutils |
10 |
CATEGORIES= deskutils |
12 |
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/${PORTNAME}-${PORTVERSION} \ |
11 |
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/${PORTNAME}-${PORTVERSION} |
13 |
http://cdcat.sourceforge.net/ |
|
|
14 |
|
15 |
DISTNAME= CdCat-${PORTVERSION} |
16 |
|
12 |
|
17 |
MAINTAINER= ports@FreeBSD.org |
13 |
MAINTAINER= ports@FreeBSD.org |
18 |
COMMENT= A QT based tool for offline CD/DVD/disk catalogs |
14 |
COMMENT= A QT based tool for offline CD/DVD/disk catalogs |
19 |
|
15 |
|
20 |
BUILD_DEPENDS= qmake:${PORTSDIR}/devel/qmake |
16 |
LICENSE= GPLv2 |
21 |
LIB_DEPENDS= pcre:${PORTSDIR}/devel/pcre |
17 |
LICENSE_FILE= ${WRKSRC}/COPYING |
22 |
|
18 |
|
23 |
WRKSRC= ${WRKDIR}/CdCat-${PORTVERSION}/src |
19 |
BUILD_WRKSRC= ${WRKSRC}/src |
24 |
|
20 |
|
25 |
USE_BZIP2= yes |
21 |
USE_BZIP2= yes |
26 |
USE_QT_VER= 3 |
22 |
USE_QT_VER= 4 |
27 |
QTDIR?= ${QT_PREFIX} |
23 |
QT_COMPONENTS= corelib gui qt3support xml \ |
28 |
USE_GMAKE= yes |
24 |
linguist_build moc_build qmake_build uic_build |
29 |
MAKE_ENV= QTDIR="${QTDIR}" MAKE="${GMAKE}" \ |
25 |
MAKE_JOBS_SAFE= yes |
30 |
QMAKESPEC="${LOCALBASE}/share/qt/mkspecs/freebsd-g++" |
|
|
31 |
|
26 |
|
32 |
#PLIST= ${WRKDIR}/pkg-plist |
27 |
LRELEASE= ${QT_PREFIX}/bin/lrelease-qt4 |
33 |
|
28 |
|
34 |
.include <bsd.port.pre.mk> |
29 |
.include <bsd.port.pre.mk> |
35 |
|
30 |
|
|
|
31 |
PORTDOCS= Authors ChangeLog README TRANSLATORS_README |
36 |
PLIST_FILES= bin/cdcat \ |
32 |
PLIST_FILES= bin/cdcat \ |
37 |
share/cdcat/Authors \ |
33 |
%%DATADIR%%/cdcat.png \ |
38 |
share/cdcat/COPYING \ |
34 |
%%DATADIR%%/translations/cdcat_cz.qm \ |
39 |
share/cdcat/ChangeLog \ |
35 |
%%DATADIR%%/translations/cdcat_de.qm \ |
40 |
share/cdcat/README \ |
36 |
%%DATADIR%%/translations/cdcat_el.qm \ |
41 |
share/cdcat/TRANSLATORS_README \ |
37 |
%%DATADIR%%/translations/cdcat_es.qm \ |
42 |
share/cdcat/cdcat.png \ |
38 |
%%DATADIR%%/translations/cdcat_hu.qm \ |
43 |
share/cdcat/translations/cdcat_cz.qm \ |
39 |
%%DATADIR%%/translations/cdcat_id.qm \ |
44 |
share/cdcat/translations/cdcat_de.qm \ |
40 |
%%DATADIR%%/translations/cdcat_pl.qm \ |
45 |
share/cdcat/translations/cdcat_el.qm \ |
41 |
%%DATADIR%%/translations/cdcat_pt.qm \ |
46 |
share/cdcat/translations/cdcat_es.qm \ |
42 |
%%DATADIR%%/translations/cdcat_sk.qm |
47 |
share/cdcat/translations/cdcat_fr.qm \ |
43 |
PLIST_DIRS= %%DATADIR%%/translations \ |
48 |
share/cdcat/translations/cdcat_hu.qm \ |
44 |
%%DATADIR%% |
49 |
share/cdcat/translations/cdcat_id.qm \ |
45 |
|
50 |
share/cdcat/translations/cdcat_it.qm \ |
46 |
do-configure: |
51 |
share/cdcat/translations/cdcat_pl.qm \ |
47 |
@${LRELEASE} ${BUILD_WRKSRC}/cdcat.pro |
52 |
share/cdcat/translations/cdcat_pt.qm \ |
48 |
@cd ${BUILD_WRKSRC} && ${QMAKE} cdcat.pro ${QMAKEFLAGS} |
53 |
share/cdcat/translations/cdcat_sk.qm \ |
49 |
|
54 |
share/cdcat/translations/cdcat_sr.qm |
50 |
do-install: |
55 |
PLIST_DIRS= share/cdcat/translations \ |
51 |
${INSTALL_PROGRAM} ${BUILD_WRKSRC}/cdcat ${PREFIX}/bin |
56 |
share/cdcat |
52 |
@${MKDIR} ${DATADIR} |
57 |
|
53 |
${INSTALL_DATA} ${WRKSRC}/cdcat.png ${DATADIR} |
58 |
post-patch: |
54 |
@${MKDIR} ${DATADIR}/translations |
59 |
@${REINPLACE_CMD} -e 's|importGtktalogCsv\:\:importGtktalogCsv|importGtktalogCsv|' \ |
55 |
${INSTALL_DATA} ${BUILD_WRKSRC}/lang/*.qm ${DATADIR}/translations |
60 |
${WRKSRC}/import.h |
56 |
.if !defined(NOPORTDOCS) |
61 |
|
57 |
@${MKDIR} ${DOCSDIR} |
62 |
pre-configure: |
58 |
.for file in ${PORTDOCS} |
63 |
cd ${WRKSRC} && ${MAKE_ENV} qmake cdcat.pro |
59 |
${INSTALL_DATA} ${WRKSRC}/${file} ${DOCSDIR} |
64 |
.if defined(WITH_KDE) |
60 |
.endfor |
65 |
PLIST_DIRS+= share/apps/cdcat |
|
|
66 |
PLIST_FILES+= share/applications/kde/cdcat.desktop \ |
67 |
share/apps/cdcat/cdcat.png |
68 |
.endif |
69 |
|
70 |
post-install: |
71 |
.if defined(WITH_KDE) |
72 |
${INSTALL_DATA} ${WRKSRC}/../KDE/cdcat.desktop ${LOCALBASE}/share/applications/kde |
73 |
${MKDIR} ${LOCALBASE}/share/apps/cdcat |
74 |
${LN} ${LOCALBASE}/share/cdcat/cdcat.png ${LOCALBASE}/share/apps/cdcat |
75 |
.endif |
61 |
.endif |
76 |
|
62 |
|
77 |
${STRIP_CMD} ${LOCALBASE}/bin/cdcat |
|
|
78 |
|
79 |
.include <bsd.port.post.mk> |
63 |
.include <bsd.port.post.mk> |