From ce7ffa434879371f128cef9d602a352248938026 Mon Sep 17 00:00:00 2001 From: LAN-TW Date: Tue, 1 Apr 2014 13:38:20 +0800 Subject: [PATCH] Remove gobject-introspection --- configure.ac | 6 ---- gdk/Makefile.am | 98 --------------------------------------------------------- gtk/Makefile.am | 61 ----------------------------------- 3 files changed, 165 deletions(-) diff --git a/configure.ac b/configure.ac index 0539eb5..15e652c 100644 --- a/configure.ac +++ b/configure.ac @@ -1613,12 +1613,6 @@ fi GLIB_GSETTINGS ################################################## -# GObject introspection -################################################## - -GOBJECT_INTROSPECTION_CHECK(introspection_required_version) - -################################################## # colord module ################################################# diff --git a/gdk/Makefile.am b/gdk/Makefile.am index a7fd1ba..1fce47d 100644 --- a/gdk/Makefile.am +++ b/gdk/Makefile.am @@ -1,13 +1,5 @@ ## Makefile.am for gtk+/gdk include $(top_srcdir)/Makefile.decl --include $(INTROSPECTION_MAKEFILE) -INTROSPECTION_GIRS = -INTROSPECTION_SCANNER_ARGS = \ - --add-include-path=../gdk \ - --warn-all -INTROSPECTION_COMPILER_ARGS = \ - --includedir=$(srcdir) \ - --includedir=. SUBDIRS = $(GDK_BACKENDS) . @@ -191,96 +183,6 @@ if USE_WAYLAND libgdk_3_la_LIBADD += wayland/libgdk-wayland.la endif -if HAVE_INTROSPECTION - -introspection_files = \ - $(filter-out gdkkeysyms-compat.h, $(gdk_public_h_sources)) \ - $(gdk_c_sources) \ - gdkenumtypes.c \ - gdkenumtypes.h - -Gdk-3.0.gir: libgdk-3.la Makefile -Gdk_3_0_gir_SCANNERFLAGS = \ - --c-include="gdk/gdk.h" -Gdk_3_0_gir_INCLUDES = Gio-2.0 GdkPixbuf-2.0 Pango-1.0 cairo-1.0 -Gdk_3_0_gir_LIBS = libgdk-3.la -Gdk_3_0_gir_FILES = $(introspection_files) -Gdk_3_0_gir_CFLAGS = $(AM_CPPFLAGS) -Gdk_3_0_gir_EXPORT_PACKAGES = gdk-3.0 -INTROSPECTION_GIRS += Gdk-3.0.gir - -if USE_X11 -x11_introspection_files = \ - x11/gdkapplaunchcontext-x11.c \ - x11/gdkasync.c \ - x11/gdkcursor-x11.c \ - x11/gdkdevice-core-x11.c \ - x11/gdkdevicemanager-core-x11.c \ - x11/gdkdevicemanager-x11.c \ - x11/gdkdevicemanager-xi2.c \ - x11/gdkdevice-xi2.c \ - x11/gdkdisplay-x11.c \ - x11/gdkdisplaymanager-x11.c \ - x11/gdkdnd-x11.c \ - x11/gdkeventsource.c \ - x11/gdkeventtranslator.c \ - x11/gdkgeometry-x11.c \ - x11/gdkkeys-x11.c \ - x11/gdkmain-x11.c \ - x11/gdkproperty-x11.c \ - x11/gdkscreen-x11.c \ - x11/gdkselection-x11.c \ - x11/gdksettings.c \ - x11/gdktestutils-x11.c \ - x11/gdkvisual-x11.c \ - x11/gdkwindow-x11.c \ - x11/gdkxftdefaults.c \ - x11/gdkxid.c \ - x11/xsettings-client.c \ - x11/gdkx.h \ - x11/gdkx11applaunchcontext.h \ - x11/gdkx11cursor.h \ - x11/gdkx11device.h \ - x11/gdkx11device-core.h \ - x11/gdkx11device-xi2.h \ - x11/gdkx11devicemanager.h \ - x11/gdkx11devicemanager-core.h \ - x11/gdkx11devicemanager-xi2.h \ - x11/gdkx11display.h \ - x11/gdkx11displaymanager.h \ - x11/gdkx11dnd.h \ - x11/gdkx11keys.h \ - x11/gdkx11property.h \ - x11/gdkx11screen.h \ - x11/gdkx11selection.h \ - x11/gdkx11utils.h \ - x11/gdkx11visual.h \ - x11/gdkx11window.h - -GdkX11-3.0.gir: libgdk-3.la Gdk-3.0.gir Makefile -GdkX11_3_0_gir_SCANNERFLAGS = \ - --identifier-prefix=Gdk \ - --c-include="gdk/gdkx.h" \ - --include-uninstalled=$(top_builddir)/gdk/Gdk-3.0.gir -GdkX11_3_0_gir_INCLUDES = Gio-2.0 GdkPixbuf-2.0 Pango-1.0 xlib-2.0 -GdkX11_3_0_gir_LIBS = libgdk-3.la -GdkX11_3_0_gir_FILES = $(x11_introspection_files) -GdkX11_3_0_gir_CFLAGS = $(AM_CPPFLAGS) -L$(top_builddir)/gdk -GdkX11_3_0_gir_EXPORT_PACKAGES = gdk-x11-3.0 -INTROSPECTION_GIRS += GdkX11-3.0.gir - -endif # USE_X11 - -girdir = $(datadir)/gir-1.0 -gir_DATA = $(INTROSPECTION_GIRS) - -typelibsdir = $(libdir)/girepository-1.0 -typelibs_DATA = $(INTROSPECTION_GIRS:.gir=.typelib) - -CLEANFILES += $(gir_DATA) $(typelibs_DATA) - -endif # HAVE_INTROSPECTION - if MS_LIB_AVAILABLE noinst_DATA = gdk-win32-$(GTK_API_VERSION).lib diff --git a/gtk/Makefile.am b/gtk/Makefile.am index cbb215a..61f7b79 100644 --- a/gtk/Makefile.am +++ b/gtk/Makefile.am @@ -1,14 +1,5 @@ # Makefile.am for gtk+/gtk include $(top_srcdir)/Makefile.decl --include $(INTROSPECTION_MAKEFILE) -INTROSPECTION_GIRS = -INTROSPECTION_SCANNER_ARGS = \ - --add-include-path=../gdk \ - --warn-all -INTROSPECTION_COMPILER_ARGS = \ - --includedir=$(srcdir) \ - --includedir=. \ - --includedir=../gdk if USE_QUARTZ GTK_PRINT_PREVIEW_COMMAND="open -a /Applications/Preview.app %f" @@ -1330,58 +1321,6 @@ LDADDS = \ $(top_builddir)/gdk/libgdk-3.la \ $(GTK_DEP_LIBS) -if HAVE_INTROSPECTION -# The Quartz clipboard and dnd files aren't annotated for -# introspection. Rather than copy the annotations over from the -# regular files, exclude the quartz ones: -introspection_files = \ - $(filter-out %private.h gtktextdisplay.h gtktextlayout.h, $(gtkinclude_HEADERS) $(deprecatedinclude_HEADERS)) \ - $(filter-out gtkclipboard-quartz.c gtkdnd-quartz.c, \ - $(gtk_base_c_sources)) \ - gtkprintoperation-unix.c \ - gtktypebuiltins.h \ - gtktypebuiltins.c - -# And include the regular ones: -if USE_QUARTZ -introspection_files += \ - gtkclipboard.c \ - gtkdnd.c -endif - -if USE_X11 -introspection_files += \ - gtksocket.c \ - gtkplug.c -endif - -Gtk-3.0.gir: $(INTROSPECTION_SCANNER) libgtk-3.la $(top_builddir)/gdk/Gdk-3.0.gir Makefile -Gtk_3_0_gir_SCANNERFLAGS = \ - --add-include-path=$(top_builddir)/gdk \ - --include-uninstalled=$(top_builddir)/gdk/Gdk-3.0.gir -Gtk_3_0_gir_INCLUDES = Atk-1.0 -if USE_X11 -Gtk_3_0_gir_SCANNERFLAGS += --add-include-path=$(top_builddir)/gdk/x11 -Gtk_3_0_gir_INCLUDES += xlib-2.0 -endif -Gtk_3_0_gir_SCANNERFLAGS += --c-include="gtk/gtkx.h" -Gtk_3_0_gir_CFLAGS = \ - $(AM_CPPFLAGS) \ - -DGTK_TEXT_USE_INTERNAL_UNSUPPORTED_API -Gtk_3_0_gir_LIBS = libgtk-3.la $(top_builddir)/gdk/libgdk-3.la -Gtk_3_0_gir_FILES = $(introspection_files) -Gtk_3_0_gir_EXPORT_PACKAGES = gtk+-3.0 -INTROSPECTION_GIRS += Gtk-3.0.gir - -girdir = $(datadir)/gir-1.0 -gir_DATA = $(INTROSPECTION_GIRS) - -typelibsdir = $(libdir)/girepository-1.0 -typelibs_DATA = $(INTROSPECTION_GIRS:.gir=.typelib) - -CLEANFILES += $(gir_DATA) $(typelibs_DATA) -endif - # # Installed tools # -- 1.9.1 value='search'/>
path: root/math/cadabra2/Makefile
blob: 96e68293d02fefdf29101bf571c8fef0cc401f4b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
# Created by: Yuri Victorovich <yuri@rawbw.com>
# $FreeBSD$

PORTNAME=   cadabra2
PORTVERSION=    2.1.2
PORTREVISION=   1
CATEGORIES= math

MAINTAINER= yuri@rawbw.com
COMMENT=    Computer algebra system for solving field theory problems

LICENSE=    LGPL3
LICENSE_FILE=   ${WRKSRC}/doc/license.txt

PATCH_DEPENDS=  ${NONEXISTENT}:devel/boost-libs:extract \
        ${NONEXISTENT}:devel/websocketpp:extract
BUILD_DEPENDS=  ${LOCALBASE}/include/websocketpp/client.hpp:devel/websocketpp
LIB_DEPENDS=    libboost_python.so:devel/boost-python-libs \
        libboost_system.so:devel/boost-libs \
        libpcrecpp.so:devel/pcre \
        libjsoncpp.so:devel/jsoncpp \
        libgmp.so:math/gmp \
        libuuid.so:misc/e2fsprogs-libuuid
RUN_DEPENDS=    ${PYTHON_SITELIBDIR}/sympy/__init__.py:math/py-sympy \
        ${PYTHON_SITELIBDIR}/matplotlib/__init__.py:math/py-matplotlib

USE_GITHUB= yes
GH_ACCOUNT= kpeeters

OPTIONS_DEFINE= GUI
OPTIONS_DEFAULT=GUI

USES=       compiler:c++14-lang cmake gettext-runtime pkgconfig python:2 sqlite
GUI_USE=    GNOME=gtkmm30,gdkpixbuf2
USE_TEX=    base texmf texhash
USE_LDCONFIG=   yes
OPTIONS_SUB=    yes
GUI_INSTALLS_ICONS= yes
GUI_USES=   desktop-file-utils

CMAKE_ARGS+=    -DBOOST_ROOT=${LOCALBASE}
CMAKE_ARGS+=    -DUSE_PYTHON_3:BOOL=OFF
GUI_CMAKE_BOOL= FRONTEND
CXXFLAGS+=  -I${LOCALBASE}/include
CXXFLAGS+=  -I${LOCALBASE}/include/jsoncpp
LDFLAGS+=   -L${LOCALBASE}/lib -ljsoncpp
CMAKE_CXX_FLAGS=${CXXFLAGS}
CMAKE_INSTALL_PREFIX=${PREFIX}

post-extract:
    @${RM} -r ${WRKSRC}/client_server/jsoncpp ${WRKSRC}/client_server/websocketpp

pre-patch:
    # workaround for https://github.com/zaphoyd/websocketpp/issues/563, so that the local patch can be applied
    @${MKDIR} ${WRKSRC}/override/include/boost/asio/detail/impl
    @${CP} `${MAKE} -C ${PORTSDIR}/devel/boost-libs -V WRKSRC`/boost/asio/detail/impl/socket_ops.ipp \
        ${WRKSRC}/override/include/boost/asio/detail/impl/
    # workaround for https://github.com/zaphoyd/websocketpp/issues/587, so that the local patch can be applied
    @${MKDIR} ${WRKSRC}/override/include/websocketpp/transport/asio
    @${CP} `${MAKE} -C ${PORTSDIR}/devel/websocketpp -V WRKSRC`/websocketpp/transport/asio/endpoint.hpp \
        ${WRKSRC}/override/include/websocketpp/transport/asio/

post-patch:
    @${REINPLACE_CMD} -e 's|execute|#execute|' \
            -e 's|"$${GIT_COMMIT_SERIAL}.$${GIT_SHORT_SHA}"|"FreeBSD port version=${PORTVERSION} tag=${GH_TAGNAME}"|' \
            -e 's|set(CADABRA_VERSION_DATE "$${THE_DATE}"|set(CADABRA_VERSION_DATE "'`date "+%Y-%m-%d"`'"|' \
            -e 's|include_directories(|include_directories($${PROJECT_SOURCE_DIR}/override/include |' \
                ${WRKSRC}/CMakeLists.txt

post-install:
    ${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/cadabra2html
    ${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/cadabra-server
    ${STRIP_CMD} ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/cadabra2.so

post-install-GUI-on:
    ${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/cadabra2-gtk
    @${GZIP_CMD}    < ${STAGEDIR}${PREFIX}/share/icons/hicolor/scalable/apps/cadabra2-gtk.svg \
            > ${STAGEDIR}${PREFIX}/share/icons/hicolor/scalable/apps/cadabra2-gtk.svgz
    @${RM} ${STAGEDIR}${PREFIX}/share/icons/hicolor/scalable/apps/cadabra2-gtk.svg
    @${LN} ${STAGEDIR}${PREFIX}/share/icons/hicolor/256x256/apps/cadabra2-gtk.png \
           ${STAGEDIR}${PREFIX}/share/icons/hicolor/256x256/apps/cadabra-gtk.png
    @${LN} ${STAGEDIR}${PREFIX}/share/icons/hicolor/128x128/apps/cadabra2-gtk.png \
           ${STAGEDIR}${PREFIX}/share/icons/hicolor/128x128/apps/cadabra-gtk.png
    @${LN} ${STAGEDIR}${PREFIX}/share/icons/hicolor/64x64/apps/cadabra2-gtk.png \
           ${STAGEDIR}${PREFIX}/share/icons/hicolor/64x64/apps/cadabra-gtk.png
    @${LN} ${STAGEDIR}${PREFIX}/share/icons/hicolor/scalable/apps/cadabra2-gtk.svgz \
           ${STAGEDIR}${PREFIX}/share/icons/hicolor/scalable/apps/cadabra-gtk.svgz

.include <bsd.port.mk>