diff options
-rw-r--r-- | databases/mysqlcc/Makefile | 13 | ||||
-rw-r--r-- | databases/mysqlcc/pkg-plist | 32 |
2 files changed, 39 insertions, 6 deletions
diff --git a/databases/mysqlcc/Makefile b/databases/mysqlcc/Makefile index 827fc0aaffd..bcb3035f444 100644 --- a/databases/mysqlcc/Makefile +++ b/databases/mysqlcc/Makefile @@ -25,28 +25,29 @@ LIB_DEPENDS= mysqlclient.12:${PORTSDIR}/databases/mysql40-client USE_REINPLACE= yes GNU_CONFIGURE= yes USE_QT_VER= 3 -QT_NONSTANDARD= yes CONFIGURE_ARGS+= --with-qt=${X11BASE} DOCS= Changelog.txt README.txt TODO.txt - SHARE_DATA= error.wav warning.wav syntax.txt post-patch: - ${REINPLACE_CMD} -E -e 's@^(QMAKESPEC=\$$QTDIR).*@\1/share/qt/mkspecs/default@' ${WRKSRC}/configure - ${REINPLACE_CMD} -E -e 's@-pthread -D_THREAD_SAFE@${PTHREAD_CFLAGS}@;s@^(LFLAGS.*)-pthread@\1${PTHREAD_LIBS}@' ${WRKSRC}/Makefile + ${REINPLACE_CMD} -E -e 's@^(QMAKESPEC=\$$QTDIR).*@\1/share/qt/mkspecs/freebsd-g++@' ${WRKSRC}/configure + ${REINPLACE_CMD} -E -e "s@(QString mydir =) QDir.*@\1 \"${DATADIR}/\";@" ${WRKSRC}/src/CApplication.cpp do-install: ${INSTALL_PROGRAM} ${WRKSRC}/mysqlcc ${PREFIX}/bin/ - ${MKDIR} -m 0755 ${DATADIR} + ${MKDIR} -m 0755 -p ${DATADIR}/translations .for f in ${SHARE_DATA} ${INSTALL_DATA} ${WRKSRC}/${f} ${DATADIR}/ .endfor + ${INSTALL_DATA} ${WRKSRC}/translations/*.qm ${DATADIR}/translations/ + ${INSTALL_DATA} ${WRKSRC}/translations/*.ts ${DATADIR}/translations/ .if !defined(NOPORTDOCS) - ${MKDIR} -m 0755 ${DOCSDIR} + ${MKDIR} -m 0755 -p ${DOCSDIR}/plugins .for f in ${DOCS} ${INSTALL_DATA} ${WRKSRC}/${f} ${DOCSDIR}/ .endfor + (umask 022; ${TAR} -C ${WRKSRC}/plugins -cpf - . | ${TAR} -C ${DOCSDIR}/plugins -xpf -) .endif .include <bsd.port.mk> diff --git a/databases/mysqlcc/pkg-plist b/databases/mysqlcc/pkg-plist index e1a3a778ad9..34acd464308 100644 --- a/databases/mysqlcc/pkg-plist +++ b/databases/mysqlcc/pkg-plist @@ -2,8 +2,40 @@ bin/mysqlcc %%DATADIR%%/error.wav %%DATADIR%%/warning.wav %%DATADIR%%/syntax.txt +%%DATADIR%%/translations/Deutsch.qm +%%DATADIR%%/translations/Deutsch.ts +%%DATADIR%%/translations/French.qm +%%DATADIR%%/translations/French.ts +%%DATADIR%%/translations/Italian.qm +%%DATADIR%%/translations/Italian.ts +%%DATADIR%%/translations/Polish.qm +%%DATADIR%%/translations/Polish.ts +%%DATADIR%%/translations/Russian.qm +%%DATADIR%%/translations/Russian.ts +%%DATADIR%%/translations/Spanish.qm +%%DATADIR%%/translations/Spanish.ts +%%DATADIR%%/translations/Simplified_Chinese.qm +%%DATADIR%%/translations/Simplified_Chinese.ts +%%DATADIR%%/translations/Traditional_Chinese.qm +%%DATADIR%%/translations/Traditional_Chinese.ts %%PORTDOCS%%%%DOCSDIR%%/Changelog.txt %%PORTDOCS%%%%DOCSDIR%%/README.txt %%PORTDOCS%%%%DOCSDIR%%/TODO.txt +%%PORTDOCS%%%%DOCSDIR%%/plugins/hello/README.txt +%%PORTDOCS%%%%DOCSDIR%%/plugins/hello/hello.cpp +%%PORTDOCS%%%%DOCSDIR%%/plugins/hello/hello.h +%%PORTDOCS%%%%DOCSDIR%%/plugins/hello/hello_plugin.cpp +%%PORTDOCS%%%%DOCSDIR%%/plugins/hello/hello_plugin.def +%%PORTDOCS%%%%DOCSDIR%%/plugins/hello/hello_plugin.h +%%PORTDOCS%%%%DOCSDIR%%/plugins/hello/hello_plugin.pro +%%PORTDOCS%%%%DOCSDIR%%/plugins/hello/main.cpp +%%PORTDOCS%%%%DOCSDIR%%/plugins/hello/moc_hello.cpp +%%PORTDOCS%%%%DOCSDIR%%/plugins/service/StdAfx.cpp +%%PORTDOCS%%%%DOCSDIR%%/plugins/service/StdAfx.h +%%PORTDOCS%%%%DOCSDIR%%/plugins/service/service.cpp +%%PORTDOCS%%@dirrm %%DOCSDIR%%/plugins/hello +%%PORTDOCS%%@dirrm %%DOCSDIR%%/plugins/service +%%PORTDOCS%%@dirrm %%DOCSDIR%%/plugins %%PORTDOCS%%@dirrm %%DOCSDIR%% +@dirrm %%DATADIR%%/translations @dirrm %%DATADIR%% |