[Frugalware-darcs] frugalware-current: gammu-1.11.91-1-x86_64

Christian Hamar alias krix krics at linuxforum.hu
Sat Jun 2 16:38:05 CEST 2007


Darcsweb-Url: http://darcs.frugalware.org/darcsweb/darcsweb.cgi?r=frugalware-current;a=darcs_commitdiff;h=20070602143533-d209c-97451dc65e85034da391eb95e5e7e7c845efb582.gz;

[gammu-1.11.91-1-x86_64
Christian Hamar alias krix <krics at linuxforum.hu>**20070602143533
   * Version bump
   * Thx for crazy to rework FB to cmake one :)
   * Added cmake as makedepends
 
] {
hunk ./source/apps-extra/gammu/FrugalBuild 5
-pkgver=1.10.6
-pkgrel=2
+pkgver=1.11.91
+pkgrel=1
hunk ./source/apps-extra/gammu/FrugalBuild 10
-depends=('libmysqlclient' 'bluez-libs>=3.10' 'openssl') # depends on openssl, dont remove it
-makedepends=('mysql')
+depends=('libmysqlclient' 'bluez-libs>=3.11' 'openssl') # depends on openssl, dont remove it
+makedepends=('mysql' 'cmake')
hunk ./source/apps-extra/gammu/FrugalBuild 17
-build() {
-	Fsed "-O2 -fPIC -Wall -Wno-format-y2k -pthread" "$CFLAGS -fPIC -Wno-format-y2k -pthread" cfg/Makefile.cfg
-	Fsed "-lbluetooth -lsdp" "-lbluetooth" cfg/Makefile.cfg
-	Fsed "/etc/gammurc" "/etc/gammu/gammurc" common/gsmstate.c
-	Fconf --sysconfdir=/etc/gammu --enable-cb \
-		--enable-7110incoming --enable-6210calendar \
-		--with-bluedir=/usr/lib --with-docdir=/usr/share/doc/$pkgname-$pkgver \
-		--with-localedir=/usr/share/gammu --prefix=/usr
-	Fsed "-lz  -pthread" "-lz  -lpthread -lssl" cfg/Makefile.cfg
+build()
+{
+	if [ "$CARCH" == "x86_64" ] ; then
+	    CFLAGS="$CFLAGS -fPIC"
+	    CXXFLAGS="$CXXFLAGS -fPIC"
+	fi
+	Fcd
+	mkdir build || Fdie
+	cd build || Fdie
+	cmake .. \
+		-DCMAKE_INSTALL_PREFIX="$Fdestdir/usr" \
+		-DENABLE_SHARED=ON \
+		-DWITH_NOKIA_SUPPORT=ON \
+		-DWITH_Bluez=ON \
+		-DWITH_IrDA=ON \
+		-DINSTALL_DOC_DIR="share/doc/$pkgname-$pkgver" \
+		-DINSTALL_LIB_DIR="lib" \
+		-DINSTALL_BIN_DIR="bin" \
+		-DCMAKE_C_FLAGS="$CFLAGS" \
+		-DCMAKE_CXX_FLAGS="$CXXFLAGS" \
+		-DCMAKE_EXE_LINKER_FLAGS="$LDFLAGS"
hunk ./source/apps-extra/gammu/FrugalBuild 39
-	make DESTDIR=$Fdestdir installshared || Fdie
-	Ffilerel docs/examples/config/gammurc /etc/gammu/gammurc
-	chmod +x $Fdestdir/usr/lib/libGammu.so.* || Fdie
+	make install || Fdie
+	# Fixup for .so :P
+	chmod +x $Fdestdir/usr/lib/*.so || Fdie
hunk ./source/apps-extra/gammu/FrugalBuild 43
+	
+sha1sums=('554436b09369d72f82b9a6f69210850da0fdeb4f')
hunk ./source/apps-extra/gammu/FrugalBuild 46
-sha1sums=('d257df3b945dfd692e957c5fb18f16b775c38fdd')
+# optimization OK
}


More information about the Frugalware-darcs mailing list