diff options
author | Pawel Pekala <pawel@FreeBSD.org> | 2013-10-05 16:52:12 +0000 |
---|---|---|
committer | Pawel Pekala <pawel@FreeBSD.org> | 2013-10-05 16:52:12 +0000 |
commit | dfc33c10af014a95ed4141eed272f8fffa1d93d0 (patch) | |
tree | ef8d301e100234219e816e79a4ba5a4492d3183e /polish/qnapi | |
parent | 7c71d503f05831e1179ca940efaad669af91527d (diff) | |
download | ports-dfc33c10af014a95ed4141eed272f8fffa1d93d0.tar.gz ports-dfc33c10af014a95ed4141eed272f8fffa1d93d0.zip |
Add support for STAGEDIR
Notes
Notes:
svn path=/head/; revision=329478
Diffstat (limited to 'polish/qnapi')
-rw-r--r-- | polish/qnapi/Makefile | 16 | ||||
-rw-r--r-- | polish/qnapi/pkg-plist | 14 |
2 files changed, 11 insertions, 19 deletions
diff --git a/polish/qnapi/Makefile b/polish/qnapi/Makefile index 52516add3e6f..936c7e974a95 100644 --- a/polish/qnapi/Makefile +++ b/polish/qnapi/Makefile @@ -16,18 +16,14 @@ RUN_DEPENDS= 7z:${PORTSDIR}/archivers/p7zip USE_QT4= corelib gui network xml qmake_build moc_build uic_build rcc_build USE_KDE4= kdehier -QMAKE_ARGS= PREFIX=${PREFIX} KDE4_PREFIX=${KDE4_PREFIX} +PLIST_SUB= KDE4=${KDE4_PREFIX:S|${LOCALBASE}/||} +QMAKE_ARGS= PREFIX=${STAGEDIR}${PREFIX} KDE4_PREFIX=${STAGEDIR}${KDE4_PREFIX} INSTALLS_ICONS= yes -MAN1= qnapi.1 -MANCOMPRESSED= yes PORTDOCS= ChangeLog README.pl COPYRIGHT OPTIONS_DEFINE= DOCS -NO_STAGE= yes -.include <bsd.port.options.mk> - post-patch: @${REINPLACE_CMD} 's|/usr/share/icons/||g' \ ${WRKSRC}/doc/qnapi.desktop \ @@ -38,11 +34,7 @@ pre-build: @cd ${WRKSRC} && ${QMAKE} -spec ${QMAKESPEC} ${QMAKEFLAGS} ${QMAKE_ARGS} post-install: -.if ${PORT_OPTIONS:MDOCS} - @${MKDIR} ${DOCSDIR} -.for file in ${PORTDOCS} - @${INSTALL_DATA} ${WRKSRC}/doc/${file} ${DOCSDIR} -.endfor -.endif + @${MKDIR} ${STAGEDIR}${DOCSDIR} + ${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/doc/|g} ${STAGEDIR}${DOCSDIR} .include <bsd.port.mk> diff --git a/polish/qnapi/pkg-plist b/polish/qnapi/pkg-plist index 54016f01c188..fa637fbd4650 100644 --- a/polish/qnapi/pkg-plist +++ b/polish/qnapi/pkg-plist @@ -1,14 +1,14 @@ bin/qnapi -share/icons/qnapi.png -share/icons/qnapi-48.png -share/icons/qnapi-128.png -share/icons/qnapi-512.png +%%KDE4%%/share/kde4/services/ServiceMenus/qnapi-download.desktop +man/man1/qnapi.1.gz share/applications/qnapi.desktop share/apps/konqueror/servicemenus/qnapi-download.desktop +share/icons/qnapi-128.png +share/icons/qnapi-48.png +share/icons/qnapi-512.png +share/icons/qnapi.png +@dirrmtry share/icons @dirrmtry share/apps/konqueror/servicemenus @dirrmtry share/apps/konqueror @dirrmtry share/apps @dirrmtry share/applications -@dirrmtry share/icons -@cwd %%KDE4_PREFIX%% -share/kde4/services/ServiceMenus/qnapi-download.desktop |