From 95fc5fbc3481c1c39fc4a1cb924163c31c1532d6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stefan=20E=C3=9Fer?= Date: Wed, 9 Oct 2013 17:11:49 +0000 Subject: Fix build in poudriere: Use LOCALBASE instead of PREFIX for include files. Partial STAGE support has been implemented, but there is a problem with package building that still has to be resolved (missing work/.metadir). --- multimedia/dvbcut/Makefile | 30 ++++++++++++++++++++---------- multimedia/dvbcut/pkg-plist | 18 ++++++++++++++++++ 2 files changed, 38 insertions(+), 10 deletions(-) create mode 100644 multimedia/dvbcut/pkg-plist (limited to 'multimedia') diff --git a/multimedia/dvbcut/Makefile b/multimedia/dvbcut/Makefile index 0721766d5793..10627f0619f3 100644 --- a/multimedia/dvbcut/Makefile +++ b/multimedia/dvbcut/Makefile @@ -23,21 +23,31 @@ RUN_DEPENDS:= ${BUILD_DEPENDS} USE_GCC= any USES= cmake USE_QT4= gui qt3support xml moc_build qmake_build rcc_build uic_build -CXXFLAGS+= -I${PREFIX}/include \ - -I${PREFIX}/include/libavcodec \ - -I${PREFIX}/include/libavformat \ - -I${PREFIX}/include/libswscale +CXXFLAGS+= -I${LOCALBASE}/include \ + -I${LOCALBASE}/include/libavcodec \ + -I${LOCALBASE}/include/libavformat \ + -I${LOCALBASE}/include/libswscale -MAN1= dvbcut.1 -PLIST_FILES= bin/dvbcut - -NO_STAGE= yes +#NO_STAGE= yes +#MAN1= dvbcut.1 pre-patch: cd ${WRKSRC} && ${BZCAT} ${FILESDIR}/use-qt4.diff.bz2 | ${PATCH} -p2 +post-build: + $(SED) -e 's;@prefix@/dvbcut/share/icons;'${PREFIX}/share/icons/dvbcut';' \ + < ${WRKSRC}/dvbcut.desktop.in \ + > ${WRKSRC}/dvbcut.desktop + do-install: - ${INSTALL_PROGRAM} ${WRKSRC}/src/dvbcut ${PREFIX}/bin - ${INSTALL_MAN} ${WRKSRC}/dvbcut.1 ${MANPREFIX}/man/man1 + ${INSTALL_PROGRAM} ${WRKSRC}/src/dvbcut ${STAGEDIR}${PREFIX}/bin/ + ${INSTALL_MAN} ${WRKSRC}/dvbcut.1 ${STAGEDIR}${MANPREFIX}/man/man1/ + ${MKDIR} $(STAGEDIR)$(PREFIX)/share/applications + $(INSTALL_DATA) ${WRKSRC}/dvbcut.desktop $(STAGEDIR)$(PREFIX)/share/applications/ + ${MKDIR} $(STAGEDIR)$(PREFIX)/share/icons/dvbcut + $(INSTALL_DATA) ${WRKSRC}/dvbcut.svg $(STAGEDIR)$(PREFIX)/share/icons/dvbcut/ + $(INSTALL_DATA) ${WRKSRC}/icons/* $(STAGEDIR)$(PREFIX)/share/icons/dvbcut/ + ${MKDIR} $(STAGEDIR)$(PREFIX)/share/mime/packages + $(INSTALL_DATA) ${WRKSRC}/dvbcut.xml $(STAGEDIR)$(PREFIX)/share/mime/packages/ .include diff --git a/multimedia/dvbcut/pkg-plist b/multimedia/dvbcut/pkg-plist new file mode 100644 index 000000000000..34060bd3d8d0 --- /dev/null +++ b/multimedia/dvbcut/pkg-plist @@ -0,0 +1,18 @@ +bin/dvbcut +share/applications/dvbcut.desktop +share/mime/packages/dvbcut.xml +share/icons/dvbcut/bookmark.png +share/icons/dvbcut/chapter.svgz +share/icons/dvbcut/dvbcut.svg +share/icons/dvbcut/play.svgz +share/icons/dvbcut/stop.png +share/icons/dvbcut/play.png +share/icons/dvbcut/icons.qrc.orig +share/icons/dvbcut/bookmark.svgz +share/icons/dvbcut/icons.qrc +share/icons/dvbcut/chapter.png +share/icons/dvbcut/stop.svgz +man/man1/dvbcut.1.gz +@exec %%LOCALBASE%%/bin/update-mime-database %D/share/mime +@unexec %%LOCALBASE%%/bin/update-mime-database %D/share/mime +@dirrm share/icons/dvbcut -- cgit v1.2.3