Created
February 23, 2015 13:39
-
-
Save jeremytrimble/816a95f18528cbf1bb38 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Contributor: Martin Stolpe <martinstolpe {at} gmail ... com> | |
# Maintainer: Martin Stolpe <martinstolpe {at} gmail ... com> | |
# This file was hacked up by Jeremy Trimble to allow it to build without GraphViz | |
pkgname=qfsm | |
pkgver=0.53.0 | |
pkgrel=2 | |
pkgdesc="A Qt graphical tool for designing finite state machines." | |
arch=('i686' 'x86_64') | |
url="http://qfsm.sourceforge.net/" | |
license=('GPL') | |
depends=('qt4') | |
makedepends=('cmake' 'graphviz') | |
install=qfsm.install | |
source=("http://downloads.sf.net/sourceforge/${pkgname}/${pkgname}-${pkgver}-Source.tar.bz2") | |
prepare() { | |
cd "${srcdir}/${pkgname}-${pkgver}-Source" | |
echo "applying patch" | |
echo '--- CMakeLists.txt 2015-02-23 08:32:25.686668082 -0500 | |
+++ CMakeLists.txt 2015-02-23 08:33:18.916668107 -0500 | |
@@ -35,16 +35,16 @@ | |
ENDIF ( WIN32 ) | |
-FIND_PACKAGE(GraphViz) | |
-IF(graphviz_FOUND) | |
- MESSAGE("Graphviz library found") | |
- ADD_DEFINITIONS(-DGRAPHVIZ_FOUND) | |
- INCLUDE_DIRECTORIES( ${graphviz_INCLUDE_DIRECTORIES} ) | |
-# MESSAGE( ${graphviz_INCLUDE_DIRECTORIES} ) | |
-# MESSAGE( ${graphviz_LIBRARIES} ) | |
-ELSE(graphviz_FOUND) | |
- MESSAGE("WARNING: Graphviz library not found") | |
-ENDIF(graphviz_FOUND) | |
+##FIND_PACKAGE(GraphViz) | |
+##IF(graphviz_FOUND) | |
+## MESSAGE("Graphviz library found") | |
+## ADD_DEFINITIONS(-DGRAPHVIZ_FOUND) | |
+## INCLUDE_DIRECTORIES( ${graphviz_INCLUDE_DIRECTORIES} ) | |
+### MESSAGE( ${graphviz_INCLUDE_DIRECTORIES} ) | |
+### MESSAGE( ${graphviz_LIBRARIES} ) | |
+##ELSE(graphviz_FOUND) | |
+## MESSAGE("WARNING: Graphviz library not found") | |
+##ENDIF(graphviz_FOUND) | |
FIND_PACKAGE(Qt4 REQUIRED) | |
' | patch -p0 | |
} | |
build() { | |
cd "${srcdir}/${pkgname}-${pkgver}-Source" | |
mkdir -p build && cd build | |
cmake .. -DCMAKE_INSTALL_PREFIX=/usr \ | |
-DQT_QMAKE_EXECUTABLE=qmake-qt4 \ | |
-Dgraphviz_FOUND=0 | |
make | |
} | |
package() { | |
cd "${srcdir}/${pkgname}-${pkgver}-Source/build" | |
make DESTDIR="${pkgdir}/" install | |
} | |
md5sums=('17e25b2cd5f0eae761dfe23014d71751') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment