freebsd-ports/deskutils/google-gadgets/files/patch-configure.ac
Martin Wilke 5250a0223f - Update to 0.10.2
PR:		128077
Submitted by:	Ashish Shukla <wahjava@gmail.com> (maintainer)
2008-10-19 14:59:04 +00:00

36 lines
1.1 KiB
Text

$FreeBSD$
--- configure.ac.orig
+++ configure.ac
@@ -371,6 +371,13 @@
GGL_PLATFORM_SHORT=\"linux\"
GGL_PLATFORM=\"linux\"
;;
+ *freebsd* )
+ ggl_host_type=freebsd
+ PREDEFINED_MACROS="$PREDEFINED_MACROS -DGGL_HOST_LINUX=1"
+ build_linux_system_framework=yes
+ GGL_PLATFORM_SHORT=\"freebsd\"
+ GGL_PLATFORM=\"freebsd\"
+ ;;
*solaris* )
ggl_host_type=solaris
PREDEFINED_MACROS="$PREDEFINED_MACROS -DGGL_HOST_SOLARIS=1"
@@ -389,6 +396,7 @@
AM_CONDITIONAL([GGL_HOST_MACOSX], [test x$ggl_host_type = xmacosx])
AM_CONDITIONAL([GGL_HOST_LINUX], [test x$ggl_host_type = xlinux])
AM_CONDITIONAL([GGL_HOST_SOLARIS], [test x$ggl_host_type = xsolaris])
+AM_CONDITIONAL([GGL_HOST_FREEBSD], [test x$ggl_host_type = xfreebsd])
AC_SUBST(PREDEFINED_MACROS)
AC_SUBST(DEFAULT_COMPILE_FLAGS)
@@ -489,7 +497,7 @@
has_qtnetwork=no
has_qtwebkit=no
has_qtscript=no
-if test x$ggl_host_type = xlinux; then
+if test x$ggl_host_type = xlinux -o x$ggl_host_type = xfreebsd; then
PKG_CHECK_MODULES(QT4, [QtGui >= 4.3 QtCore >= 4.3 QtNetwork >= 4.3],
[has_qt4=yes
MOC=`$PKG_CONFIG --variable=moc_location QtCore`],