pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

configures now and added gtk2/3 option, but not building @the moment



Module Name:	pkgsrc-wip
Committed By:	andyb <andyb%m42.one@localhost>
Pushed By:	andyb
Date:		Wed Feb 27 10:51:42 2019 +0100
Changeset:	3b02de2c8747a9c57db4c2ca09b9bdde41cd1c4b

Modified Files:
	spacefm/Makefile
	spacefm/TODO
	spacefm/options.mk

Log Message:
configures now and added gtk2/3 option, but not building @the moment

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=3b02de2c8747a9c57db4c2ca09b9bdde41cd1c4b

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 spacefm/Makefile   | 16 +++++++++++++++-
 spacefm/TODO       | 17 ++++++++++++++---
 spacefm/options.mk | 24 ++++++++++++++++++++++--
 3 files changed, 51 insertions(+), 6 deletions(-)

diffs:
diff --git a/spacefm/Makefile b/spacefm/Makefile
index 3a5d0bbbf2..4f2ef8efa8 100644
--- a/spacefm/Makefile
+++ b/spacefm/Makefile
@@ -16,18 +16,32 @@ LICENSE=	gnu-gpl-v3
 WRKSRC=		${WRKDIR}/spacefm-1.0.6
 GNU_CONFIGURE=	yes
 USE_LIBTOOL=	yes
+USE_LANGUAGES=	c c++
+#CC=		gcc $(pkg-config --cflags gtk+-3.0) $(pkg-config --cflags glib-2.0) $(pkg-config --cflags gdk)
+#CC=		gcc -I/usr/pkg/include/gtk-3.0/ -I/usr/pkg/include/glib/glib-2.0/
 
-USE_TOOLS+=	perl gmake pkg-config automake autoconf
+USE_TOOLS+=	intltool msgfmt pkg-config automake autoconf
 
 DEPENDS+=	libX11-[0-9]*:../../x11/libX11
 DEPENDS+=	hal-[0-9]*:../../sysutils/hal
 DEPENDS+=	desktop-file-utils-[0-9]*:../../sysutils/desktop-file-utils
 DEPENDS+=	shared-mime-info-[0-9]*:../../databases/shared-mime-info
+DEPENDS+=	ffmpegthumbnailer-[0-9]*:../../multimedia/ffmpegthumbnailer
+
+#edit me
+export LIBUDEV_CFLAGS=	-I/usr/lib/pkgconfig/
+export LIBUDEV_LIBS=	/usr/lib/pkgconfig/
+#edit me
 
 .include "options.mk"
 .include "../../mk/bsd.pkg.mk"
+.include "../../sysutils/desktop-file-utils/desktopdb.mk"
+.include "../../sysutils/menu-cache/buildlink3.mk"
+.include "../../sysutils/libfm/buildlink3.mk"
+.include "../../sysutils/libfm-extra/buildlink3.mk"
 .include "../../lang/perl5/buildlink3.mk"
 .include "../../x11/libX11/buildlink3.mk"
 .include "../../sysutils/hal/buildlink3.mk"
 .include "../../sysutils/desktop-file-utils/buildlink3.mk"
 .include "../../databases/shared-mime-info/buildlink3.mk"
+.include "../../multimedia/ffmpegthumbnailer/buildlink3.mk"
diff --git a/spacefm/TODO b/spacefm/TODO
index 60fa686170..092d4ba16e 100644
--- a/spacefm/TODO
+++ b/spacefm/TODO
@@ -1,4 +1,15 @@
-NetBSD cant configure/build spacefm, while: XClearWindow in -lX11... no
-x11/libX11 dont support XClearWindow
+configures, but dont compile @the moment.
 
-Current work is get the package on linux systems working.
+#####
+You must edit in the Makefile in "wip/spacefm" between both "#edit me" lines, 
+where are yours libudev.pc file is located from yours linux package manager or
+self compiling/installation.
+#####
+##
+Note: libudev is not in the pkgsrc-tree in the moment, you must install libudev
+your own, or with the package manager of your linux system.
+##
+
+- NetBSD cant configure/build spacefm, while: XClearWindow in -lX11... no
+  x11/libX11 dont support XClearWindow
+- NetBSD/pkgsrc dont support the required libudev package at the moment.
diff --git a/spacefm/options.mk b/spacefm/options.mk
index 9e30e5e03b..a88130108f 100644
--- a/spacefm/options.mk
+++ b/spacefm/options.mk
@@ -7,14 +7,34 @@ PKG_OPTIONS_GROUP.gtk=          gtk2 gtk3
 
 PKG_SUGGESTED_OPTIONS=  gtk2
 
+.include "../../mk/bsd.options.mk"
+
 PLIST_VARS+=            gtk3
 .if !empty(PKG_OPTIONS:Mgtk2)
-CONFIGURE_ARGS+=        --enable-default-toolkit=cairo-gtk2
+CONFIGURE_ARGS+=        --with-gtk2
+GTK_CFLAGS=      $(pkg-config --cflags gtk+-2.0)
+GTK_LIBS=        $(pkg-config --libs gtk+-2.0)
+CFLAGS+=          $(pkg-config --cflags gtk+-2.0) $(pkg-config --cflags glib-2.0) $(pkg-config --cflags gdk) $(pkg-config --cflags libffmpegthumbnailer)
+LDFLAG+=         $(pkg-config --libs gtk+-2.0) $(pkg-config --libs glib-2.0) $(pkg-config --libs gdk) $(pkg-config --libs libffmpegthumbnailer)
+export FFMPEG_CFLAGS=   $(pkg-config --cflags libffmpegthumbnailer)
+export FFMPEG_LIBS=     $(pkg-config --libs libffmpegthumbnailer)
+AM_CFLAGS+=      $(pkg-config --cflags gtk+-2.0)
+CPPFLAGS+=       $(pkg-config --cflags gtk+-2.0) $(pkg-config --cflags glib-2.0) $(pkg-config --cflags gdk) $(pkg-config --cflags libffmpegthumbnailer)
+
 .include "../../x11/gtk2/buildlink3.mk"
 .endif
 
 .if !empty(PKG_OPTIONS:Mgtk3)
-CONFIGURE_ARGS+=        --enable-default-toolkit=cairo-gtk3
+CONFIGURE_ARGS+=        --with-gtk3
+GTK_CFLAGS=      $(pkg-config --cflags gtk+-3.0)
+GTK_LIBS=        $(pkg-config --libs gtk+-3.0)
+CFLAGS+=          $(pkg-config --cflags gtk+-3.0) $(pkg-config --cflags glib-2.0) $(pkg-config --cflags gdk) $(pkg-config --cflags libffmpegthumbnailer)
+LDFLAG+=         $(pkg-config --libs gtk+-3.0) $(pkg-config --libs glib-2.0) $(pkg-config --libs gdk) $(pkg-config --libs libffmpegthumbnailer)
+export FFMPEG_CFLAGS=   $(pkg-config --cflags libffmpegthumbnailer)
+export FFMPEG_LIBS=     $(pkg-config --libs libffmpegthumbnailer)
+AM_CFLAGS+=      $(pkg-config --cflags gtk+-3.0)
+CPPFLAGS+=       $(pkg-config --cflags gtk+-3.0) $(pkg-config --cflags glib-2.0) $(pkg-config --cflags gdk) $(pkg-config --cflags libffmpegthumbnailer)
+
 .include "../../x11/gtk3/buildlink3.mk"
 PLIST.gtk3=             yes
 .endif


Home | Main Index | Thread Index | Old Index