File: me.gapixels.Megapixels.yml

package info (click to toggle)
megapixels 2.0.0-2
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 2,876 kB
  • sloc: ansic: 6,530; python: 442; xml: 367; sh: 116; makefile: 3
file content (180 lines) | stat: -rw-r--r-- 5,013 bytes parent folder | download | duplicates (2)
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
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
---
app-id: me.gapixels.Megapixels
runtime: org.gnome.Platform
runtime-version: "47"
sdk: org.gnome.Sdk
command: megapixels
finish-args:
  # access /dev/media* and /dev/video*
  - --device=all
  # access /sys/firmware/devicetree/base/compatible
  - --filesystem=/sys

  # X11 + XShm access
  - --socket=fallback-x11
  - --share=ipc

  # wayland access
  - --socket=wayland

  # sound recording
  - --socket=pulseaudio

  # Needs to save file locally
  - --filesystem=xdg-pictures
  - --filesystem=xdg-videos

  # camera shutter feedback
  - --talk-name=org.sigxcpu.Feedback

  # accelerometer sensor for orientation
  - --system-talk-name=net.hadess.SensorProxy

modules:
  - name: megapixels
    buildsystem: meson
    run-tests: false
    sources:
      - type: dir
        path: ../
    post-install:
      # meson should probably be doing this
      - glib-compile-schemas --strict /app/share/glib-2.0/schemas

    modules:
      - name: libmegapixels
        buildsystem: meson
        sources:
          - type: git
            url: https://gitlab.com/megapixels-org/libmegapixels
            tag: 0.2.2
        modules:
          - name: libconfig
            sources:
              - type: archive
                url: https://hyperrealm.github.io/libconfig/dist/libconfig-1.8.tar.gz
                sha256: 051e15dd0e907c44905f317933f5487314f2a56e8c6726c8304ce990884850aa
            cleanup:
              - "/include"
              - "*.la"
              - "*.a"
              - "/lib/pkgconfig"
      - name: libfeedback
        buildsystem: meson
        config-opts:
          - -Dtests=false
          - -Ddaemon=false
        sources:
          - type: git
            url: https://source.puri.sm/Librem5/feedbackd.git
            tag: v0.8.1
      - name: zbar
        config-opts:
          - --disable-doc
          - --disable-video
          - --enable-codes=qrcode
          - --without-dbus
          - --without-directshow
          - --without-gir
          - --without-graphicsmagick
          - --without-gtk
          - --without-imagemagick
          - --without-jpeg
          - --without-java
          - --without-npapi
          - --without-python
          - --without-qt
          - --without-qt5
          - --without-xshm
          - --without-xv
        sources:
          - type: git
            url: https://github.com/mchehab/zbar
            tag: 0.23.93
          - type: script
            dest-filename: autogen.sh
            commands:
              - autoreconf -vfi -W none
      - name: libdng
        buildsystem: meson
        sources:
          - type: git
            url: https://gitlab.com/megapixels-org/libdng
            tag: 0.2.1
  - name: postprocessd
    buildsystem: meson
    sources:
      - type: git
        url: https://gitlab.com/megapixels-org/postprocessd
        commit: 7cc9a0390290c6d9b1600c7cdbcca89b98aeb3be
    modules:
      - name: libraw
        builddir: true
        sources:
          - type: git
            url: https://github.com/LibRaw/LibRaw
            tag: 0.21.4
          - type: shell
            commands:
              - autoreconf -vfi
      - name: opencv
        buildsystem: cmake-ninja
        builddir: true
        config-opts:
          - -DCMAKE_BUILD_TYPE=Release
          - -DOPENCV_GENERATE_PKGCONFIG=ON
          - -DBUILD_LIST=core,imgproc,tracking,imgcodecs,videostab
        sources:
          - type: archive
            url: https://github.com/opencv/opencv/archive/4.11.0.tar.gz
            sha256: 9a7c11f924eff5f8d8070e297b322ee68b9227e003fd600d4b8122198091665f
          - type: archive
            url: https://github.com/opencv/opencv_contrib/archive/4.11.0.tar.gz
            sha256: 2dfc5957201de2aa785064711125af6abb2e80a64e2dc246aca4119b19687041
      - name: lensfun
        buildsystem: cmake-ninja
        config-opts:
          - -DCMAKE_BUILD_TYPE=RelWithDebInfo
        cleanup:
          - /bin
          - '/lib/python3.*'
        sources:
          - type: git
            url: https://github.com/lensfun/lensfun.git
            tag: v0.3.4
  - name: ImageMagick
    config-opts:
      - --disable-static
      - --disable-docs
      - --with-hdri
      - --with-pic
    sources:
      - type: git
        url: https://github.com/ImageMagick/ImageMagick
        tag: 7.1.1-47
  - name: exiftool
    buildsystem: simple
    build-commands:
      - perl Makefile.PL
      - make install
    cleanup:
      - '*.pod'
    sources:
      - type: git
        url: https://github.com/exiftool/exiftool.git
        tag: "13.29"
    modules:
      - name: perl
        buildsystem: simple
        build-commands:
          - ./Configure -des -Dprefix=$FLATPAK_DEST -Dman1dir=none -Dman3dir=none
          - make
          - make install
        sources:
          - type: git
            url: https://github.com/Perl/perl5.git
            tag: v5.40.2
            disable-fsckobjects: true
        post-install:
          # Fix permissions
          - chmod -R u+w $FLATPAK_DEST/lib/perl5