aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorse <se@FreeBSD.org>2013-10-10 01:11:49 +0800
committerse <se@FreeBSD.org>2013-10-10 01:11:49 +0800
commit9671ff2db307476b8aefb22d06abe1d4d5b209f3 (patch)
tree3021c582a1f1d19507a5cac7e5d733645b6a8891
parentef28472c253e52ab8504af1ecb39efc6b50a8fcb (diff)
downloadfreebsd-ports-gnome-9671ff2db307476b8aefb22d06abe1d4d5b209f3.tar.gz
freebsd-ports-gnome-9671ff2db307476b8aefb22d06abe1d4d5b209f3.tar.zst
freebsd-ports-gnome-9671ff2db307476b8aefb22d06abe1d4d5b209f3.zip
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).
-rw-r--r--multimedia/dvbcut/Makefile30
-rw-r--r--multimedia/dvbcut/pkg-plist18
2 files changed, 38 insertions, 10 deletions
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 <bsd.port.mk>
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