Skip to content

Instantly share code, notes, and snippets.

@astrograzl
Last active May 15, 2020 12:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save astrograzl/ae05c26d8401f2e209da218ee08522e5 to your computer and use it in GitHub Desktop.
Save astrograzl/ae05c26d8401f2e209da218ee08522e5 to your computer and use it in GitHub Desktop.
Munipack @ Arch Linux
--- /usr/local/src/munipack/configure.ac 2019-06-02 20:21:52.075376539 +0200
+++ munipack/configure.ac 2019-06-02 20:33:04.611300838 +0200
@@ -170,23 +170,23 @@
if test "x$disable_gui" = "xno"; then
wxGUI="yes"
AC_SUBST(XMUNIPACKDIR,[xmunipack])
- AC_SUBST(WX_CXXFLAGS_GUI,[`wx-config --cxxflags`])
- AC_SUBST(WX_LIBS_GUI,[`wx-config --libs core,base,net,xml,adv,qa,html --optional-libs webview`])
+ AC_SUBST(WX_CXXFLAGS_GUI,[`wx-config-gtk3 --cxxflags`])
+ AC_SUBST(WX_LIBS_GUI,[`wx-config-gtk3 --libs core,base,net,xml,adv,qa,html --optional-libs webview`])
AC_SUBST(MATPLOTDIR,[wxMathPlot])
fi
if test "x$disable_cli" = "xno"; then
wxCLI="yes"
AC_SUBST(MUNIPACKDIR,[munipack])
- AC_SUBST(WX_CXXFLAGS_CLI,[`wx-config --cxxflags base`])
- AC_SUBST(WX_LIBS_CLI,[`wx-config --libs base`])
+ AC_SUBST(WX_CXXFLAGS_CLI,[`wx-config-gtk3 --cxxflags base`])
+ AC_SUBST(WX_LIBS_CLI,[`wx-config-gtk3 --libs base`])
fi
if test "x$disable_vo" = "xno"; then
wxVO="yes"
AC_SUBST(VODIR,[vo])
- AC_SUBST(WX_CXXFLAGS_VO,[`wx-config --cxxflags base,net,xml`])
- AC_SUBST(WX_LIBS_VO,[`wx-config --libs base,net,xml`])
+ AC_SUBST(WX_CXXFLAGS_VO,[`wx-config-gtk3 --cxxflags base,net,xml`])
+ AC_SUBST(WX_LIBS_VO,[`wx-config-gtk3 --libs base,net,xml`])
fi
fi
#!/usr/bin/bash
# Install Munipack with dependences from source code on Arch Linux
## Munipack: A general astronomical image processing software
## <http://munipack.physics.muni.cz/>
### Install system tools and configure local environment
sudo pacman -Sy gcc-fortran mercurial cfitsio wxgtk3 wget #imagemagick
sudo echo "/usr/local/lib" >> /etc/ld.so.conf.d/local.conf
### Install minpack from Debian source code package
wget http://ftp.debian.org/debian/pool/main/m/minpack/minpack_19961126+dfsg1.orig.tar.gz
tar xf minpack_19961126+dfsg1.orig.tar.gz
cd minpack-19961126/
bash configure
make
sudo make install
sudo ldconfig
cd ..
### Install oakleaf from mercurial repository on integral
hg clone http://integral.physics.muni.cz/hg/oakleaf/
cd oakleaf/
autoreconf -i
./configure
make
sudo make install
sudo ldconfig
cd ..
### Install munipack from mercurial repository on integral
hg clone http://integral.physics.muni.cz/hg/munipack/
cd munipack/
./bootstrap --dev
autoreconf -i
./configure FCFLAGS="-fallow-argument-mismatch"
make
sudo make install
cd ..
echo
echo "Done! Now try running 'munipack --version' and/or 'xmunipack'..."
echo "And don't forget to clean the mess from success compilation ;-)"
echo
# -------------------------------------------------------------------------- #
# "THE BEER-WARE LICENSE" (Revision 42): #
# <janak@physics.muni.cz> wrote this file. As long as you retain this notice #
# you can do whatever you want with this stuff. If we meet some day, and you #
# think this stuff is worth it, you can buy me a beer in return Zdeněk Janák #
# -------------------------------------------------------------------------- #
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment