pkg:setup args = %W[--disable-osx-universal-binary --prefix=#{prefix} --disable-dependency-tracking --disable-silent-rules --disable-opencl --enable-shared --enable-static --with-freetype=yes --with-modules --with-openjp2 --with-openexr --with-webp=yes --with-heic=yes --without-gslib --with-gs-font-dir=#{HOMEBREW_PREFIX}/share/ghostscript/fonts --without-fftw --without-pango --without-x --without-wmf --enable-openmp ac_cv_prog_c_openmp=-Xpreprocessor\ -fopenmp ac_cv_prog_cxx_openmp=-Xpreprocessor\ -fopenmp LDFLAGS=-lomp ] inreplace "configure", "${PACKAGE_NAME}-${PACKAGE_VERSION}", "${PACKAGE_NAME}" pkg:configure *args make DESTDIR=${PKG_DEST} install