Skip to content
This repository has been archived by the owner on Jul 7, 2023. It is now read-only.

修复Makefile.am编写不当,导致源码树外编译不成功(推错了,请删除) #99

Closed
wants to merge 97 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
97 commits
Select commit Hold shift + click to select a range
d91ee35
Change todo file
mathslinux Jan 10, 2012
0a9f8e8
Add libnotify support.
mathslinux Jan 10, 2012
955af64
Update INSTALL file
Jan 12, 2012
ae0838f
Update README. Add tips on installation.
Jan 12, 2012
83459ff
Update README
Jan 12, 2012
a261b96
modify Proxy Panel
shwangdev Jan 13, 2012
618b7ca
change proxypanel
Jan 13, 2012
6814c5b
Merge branches 'master' and 'alpha' of github.com:kernelhcy/gtkqq int…
shwangdev Jan 13, 2012
63e5c20
Merge branch 'master' into dev
shwangdev Jan 13, 2012
52cd4db
让用户自己设定编译参数,不直接在 autogen.sh 里面制定
Jan 16, 2012
5104cac
添加登录界面按下回车键即可登录的功能。对话框用GtkPaned布局,使编辑区域可以增加/缩小。
windwhinny Jan 16, 2012
646bcaf
Merge pull request #54 from billzt/master
kernelhcy Jan 17, 2012
6465cd9
build: do not install test programs
4179e1 Jan 18, 2012
f74ff46
build: add spec file for rpm
4179e1 Jan 18, 2012
01d3c17
build: add `make rpm' command
4179e1 Jan 18, 2012
8114886
Merge pull request #56 from 4179e1/master
kernelhcy Jan 18, 2012
5fe9e09
move rpm. change something unimportant.
ekd123 Jan 19, 2012
90839a2
Merge pull request #58 from ekd123/master
kernelhcy Jan 19, 2012
cca026e
merge from master
kernelhcy Jan 19, 2012
7dcc85c
Merge pull request #59 from windwhinny/master
kernelhcy Jan 19, 2012
161d31f
调整Packages和PACKAGES
kernelhcy Jan 19, 2012
5bd5ac6
重新加入Packages
kernelhcy Jan 19, 2012
ae713ec
nomsg
kernelhcy Jan 19, 2012
1505482
Merge branch 'master' into dev
kernelhcy Jan 19, 2012
7f4cf73
修复notify把所有消息都显示为群消息的BUG。另外将notify中显示的图标由以前的webqq默认图标改为消息发送者的头像。
Jan 19, 2012
36941ca
Merge pull request #60 from windwhinny/master
mathslinux Jan 21, 2012
2f22bd7
Support command line options.
mathslinux Jan 21, 2012
96ae15f
Fix spelling mistakes.
mathslinux Jan 21, 2012
f211cbe
修正新版本GTK兼容问题
Jan 21, 2012
e7dfb72
Merge pull request #62 from crab2313/dev
kernelhcy Jan 22, 2012
78999bd
Fix some Segmentation fault.
mathslinux Jan 22, 2012
49378fb
make it readable, and I think we need a API reference of the project
Jan 22, 2012
9c79b9c
Merge pull request #63 from crab2313/dev
kernelhcy Jan 22, 2012
665c1f8
write a empty function.
Jan 22, 2012
5f77bd6
sort code, no code changed.
Jan 22, 2012
285bc50
add a simple about dialog for the tray menu.
Jan 22, 2012
cb2e73d
不好意思,忘了测试,现在改了过来
Jan 22, 2012
14f159b
Bugfix: Support verify code login
mathslinux Jan 23, 2012
ea8aa69
Merge pull request #64 from crab2313/master
kernelhcy Jan 24, 2012
bb0fdfe
增加中文注释、修改分类
Jan 26, 2012
0b0d703
xiang wang add socks5 protocol proxy
shwangdev Jan 27, 2012
f88d54a
Merge branch 'beta' into alpha
shwangdev Jan 27, 2012
01a7155
xiang wang enhance connection error point
shwangdev Jan 28, 2012
95b1efa
Fix conflicts
mathslinux Feb 3, 2012
05f1c71
BuildError: notify_notification_new
mathslinux Feb 3, 2012
641c570
Add some content to about window
mathslinux Feb 3, 2012
26f5d1e
xiang wang refine branch
shwangdev Feb 7, 2012
92a947f
xiang wang fix proxy setting save defect
shwangdev Feb 8, 2012
80e3a8d
xiang wang fix save proxy with null issue
shwangdev Feb 8, 2012
60e4830
xiang add proxy parameters
shwangdev Feb 8, 2012
606bc10
change notify_notification_new() parameter
Feb 12, 2012
a9e775a
Rename Chinese filenames to English
Feb 12, 2012
2893252
Merge pull request #71 from billzt/dev
kernelhcy Feb 12, 2012
f0a05c9
Merge branches 'alpha', 'alpha', 'alpha', 'alpha' and 'dev' of github…
shwangdev Feb 12, 2012
ffc6189
xiang wang add versionc check for libnotify
shwangdev Feb 13, 2012
316e13d
Merge branches 'alpha', 'alpha', 'alpha', 'alpha' and 'dev' of github…
shwangdev Feb 12, 2012
41f191b
xiang wang add versionc check for libnotify
shwangdev Feb 13, 2012
c9a4089
set default http thread 100
shwangdev Feb 14, 2012
365416c
change doxygen path
shwangdev Feb 14, 2012
ba584b2
set default http thread 100
shwangdev Feb 14, 2012
319fe84
change doxygen path
shwangdev Feb 14, 2012
2169c19
Update INSTALL
Feb 14, 2012
ad92d38
Merge pull request #78 from billzt/dev
shwangdev Feb 16, 2012
823fa1e
Merge branches 'alpha', 'alpha', 'alpha', 'alpha', 'dev', 'dev', 'alp…
shwangdev Feb 16, 2012
4dd97f7
change threading module. using thread pool for face image and buddy
shwangdev Feb 16, 2012
1359ad1
simple gtk3 port
Feb 16, 2012
27e8725
Merge pull request #80 from crab2313/gtk3-port
kernelhcy Feb 16, 2012
1bc2626
这个差点忘了
Feb 16, 2012
be31690
Merge branches 'dev' and 'dev' of github.com:kernelhcy/gtkqq into dev
shwangdev Feb 17, 2012
765a2ed
啊, 忘了, 不好意思, 不过我没动源码,用了个USE_GTK3 macro
Feb 17, 2012
90e9a74
Merge pull request #81 from crab2313/gtk3-port
shwangdev Feb 17, 2012
dcda9de
change expose-event to draw
Feb 17, 2012
081931f
Merge branch 'dev' of git://github.com/kernelhcy/gtkqq into gtk3-port
Feb 18, 2012
e4aa83b
fix bug
Feb 19, 2012
c174c7f
Merge pull request #82 from crab2313/gtk3-port
shwangdev Feb 19, 2012
6e6923f
config.h
Feb 19, 2012
117642b
sort
Feb 19, 2012
0683e42
修正GTK3 crash问题
Feb 19, 2012
68f5339
Merge pull request #83 from crab2313/gtk3-port
shwangdev Feb 20, 2012
fbf3578
add log parameters
shwangdev Feb 21, 2012
ebf915c
fixed issue #86
ekd123 Feb 23, 2012
5f71785
Merge pull request #88 from ekd123/dev
kernelhcy Feb 23, 2012
d9263c8
fixed casting error.
ekd123 Feb 24, 2012
dbaaa5c
Merge pull request #89 from ekd123/dev
shwangdev Feb 24, 2012
0825177
fixed g_thread_init
ekd123 Feb 24, 2012
1bae927
don't use deprecated interface
ekd123 Feb 24, 2012
05a2d77
Merge pull request #90 from ekd123/dev
shwangdev Feb 24, 2012
e7af9c2
Fix a grammer error
Feb 26, 2012
6697254
Fix parameters of g_io_channel_shutdown
Feb 26, 2012
3d07b71
Fix segment fatal error
Feb 26, 2012
a5b3563
change GLIB check version
Feb 26, 2012
abd5600
Fix segmental error
Feb 26, 2012
e92afa9
Merge pull request #91 from billzt/dev
shwangdev Feb 26, 2012
da95395
use GOption
Mar 2, 2012
27c3ab6
add gst option group
Mar 15, 2012
3073051
Merge pull request #93 from crab2313/gtk3-port
shwangdev Mar 18, 2012
158f9ac
Fix out-of-tree build error
thynson Mar 28, 2012
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion .gitignore
@@ -1,4 +1,4 @@
*.in
Makefile.in
*.lo
*.log
*.o
Expand Down
1,662 changes: 1,662 additions & 0 deletions Doxyfile

Large diffs are not rendered by default.

393 changes: 54 additions & 339 deletions INSTALL

Large diffs are not rendered by default.

4 changes: 3 additions & 1 deletion Makefile.am
@@ -1,2 +1,4 @@
SUBDIRS= src pixmaps
SUBDIRS= src pixmaps Packages
ACLOCAL_AMFLAGS = -I m4


1 change: 1 addition & 0 deletions Packages/Makefile.am
@@ -0,0 +1 @@
SUBDIRS = rpm
9 changes: 9 additions & 0 deletions Packages/rpm/Makefile.am
@@ -0,0 +1,9 @@
rpm:
(cd ../../ ; make dist)
mkdir -p rpmbuild
mv ../../${PACKAGE}-${VERSION}.tar.gz rpmbuild
rpmbuild --define "_sourcedir `pwd`/rpmbuild" \
--define "_srcrpmdir `pwd`/rpmbuild" \
--define "_builddir `pwd`/rpmbuild" \
--define "_rpmdir `pwd`/rpmbuild" \
-ba ${PACKAGE}.spec
101 changes: 101 additions & 0 deletions Packages/rpm/gtkqq.spec.in
@@ -0,0 +1,101 @@
%if 0%{?suse_version}
%define pkgconfig pkg-config
%define sqlite sqlite3
%define sqlite_devel sqlite3-devel
%define gstreamer_devel gstreamer-0_10-devel
%define group Productivity/Networking/Instant Messenger
%else
%define pkgconfig pkgconfig
%define sqlite sqlite
%define sqlite_devel sqlite-devel
%define gstreamer_devel gstreamer-devel
%define group Productivity/Networking
%endif

Name: @PACKAGE@
Version: @VERSION@
Release: 1%{?dist}%{?extra_release}
Summary: A Gtk QQ client

Group: %{group}
License: GPL
URL: https://github.com/kernelhcy/gtkqq
Source0: %{name}-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root

BuildRequires: %{pkgconfig}
BuildRequires: zlib-devel
BuildRequires: glib2-devel
BuildRequires: gtk2-devel >= 2.24.0
BuildRequires: %{sqlite_devel} >= 3.7.0
BuildRequires: %{gstreamer_devel} >= 0.10.0
%if 0%{?suse_version}
BuildRequires: update-desktop-files
%endif
Requires: libwebqq = %{version}

%description
GtkQQ is a QQ client. It is written using gtk and based on the webqq protocol.

The webqq protocol is based on the HTTP.
Visit http://web.qq.com to see it.

Maybe GtkQQ is a browser, whick can only visit http://web.qq.com.
I think there is no copyright problem, because I just write a highly custommed
broswer.

%package -n libwebqq
License: GPL
Group: System/Libraries
Requires: gtk2 >= 2.24
Requires: %{sqlite}
Summary: Library for GtkQQ

%description -n libwebqq
GtkQQ is a QQ client. It is written using gtk and based on the webqq protocol.

This packages provides the library required for gtkqq.


%prep
%setup -q -n %{name}-%{version}

%build
./configure --prefix=%{_prefix} --libdir=%{_libdir}
# %configure
make %{?_smp_mflags}

%install
make install DESTDIR=%{buildroot}
# buggy, not sure the purpose of it
rm -f %{buildroot}/%{_bindir}/qq
# don't need these files, unless a devel package is added
rm -f %{buildroot}/%{_libdir}/libwebqq.so
rm -f %{buildroot}/%{_libdir}/libwebqq.la
rm -f %{buildroot}/%{_libdir}/libwebqq.a
%if 0%{?suse_version}
%suse_update_desktop_file gtkqq GNOME GTK Network InstantMessaging
%endif

%clean
rm -rf %{buildroot}

%post -n libwebqq -p /sbin/ldconfig

%postun -n libwebqq -p /sbin/ldconfig

%files -n libwebqq
%defattr(-,root,root,-)
%{_libdir}/libwebqq.so.*

%files
%defattr(-,root,root,-)
%{_bindir}/gtkqq
%dir %{_datadir}/gtkqq
%{_datadir}/gtkqq/*
%{_datadir}/applications/gtkqq.desktop
%{_datadir}/pixmaps/gtkqq.png

%changelog
* Sun Jan 15 2012 Lyre <lyre@poetpalace.org> - 0.1-1
- Initial rpm packages.
3 changes: 3 additions & 0 deletions README
Expand Up @@ -15,3 +15,6 @@ src-|
|--misc some resource files. such as pictures.
|--tool some tool used to develop
|--test the test codes.

Please refer to INSTALL for detailed information on installation.
Refer to PACKAGES for details about building packages like RPM.
8 changes: 5 additions & 3 deletions autoclean.sh
@@ -1,4 +1,6 @@
#!/bin/bash
make distclean
rm aclocal.m4 autom4te.cache/ config.h.in m4 usr build-aux -rf
rm configure
make distclean 2>/dev/null
rm aclocal.m4 autom4te.cache/ config.h.in m4 usr build-aux -rf 2>/dev/null
rm configure 2>/dev/null
(rm -rf Packages/rpm/rpmbuild 2>/dev/null)
(find . -name Makefile.in -exec rm {} \;)
2 changes: 0 additions & 2 deletions autogen.sh
Expand Up @@ -4,5 +4,3 @@ aclocal \
&& autoconf \
&& libtoolize --copy --force --automake \
&& autoreconf --install \
&& [ -d usr ] || mkdir usr \
&& ./configure --enable-debug --prefix=`pwd`/usr
109 changes: 79 additions & 30 deletions configure.ac
Expand Up @@ -2,7 +2,7 @@
# Process this file with autoconf to produce a configure script.

AC_PREREQ([2.6])
AC_INIT([GtkQQ], [0.1], [huangcongyu2006@gmail.com])
AC_INIT([GtkQQ], [0.1], [huangcongyu2006@gmail.com], [gtkqq], [http://github.com/kernelhcy/gtkqq])
AC_CONFIG_AUX_DIR([build-aux])
AC_CONFIG_MACRO_DIR([m4])
AM_INIT_AUTOMAKE([-Wall -Werror])
Expand Down Expand Up @@ -42,18 +42,26 @@ AC_CHECK_LIB([zlib], [compress])
AC_CHECK_HEADERS([arpa/inet.h fcntl.h netdb.h netinet/in.h stdint.h\
stdlib.h string.h sys/ioctl.h sys/socket.h unistd.h zlib.h])

AC_ARG_ENABLE(debug,
[ --enable-debug turn on debug],
CFLAGS="$CFLAGS -DGTKQQ_DEBUG -ggdb")

AC_ARG_ENABLE(unity,
[ --enable-unity build on ubuntu unity],
[AS_HELP_STRING([--enable-unity], [build on ubuntu unity])],
CFLAGS="$CFLAGS -DUSE_UNITY")

AC_ARG_ENABLE(proxy,
[ --enable-proxy build on ubuntu unity],
CFLAGS="$CFLAGS -DUSE_PROXY")

[AS_HELP_STRING([--disable-proxy], [compile without proxy setting])],
enable_proxy="$enableval", enable_proxy="yes")

AC_ARG_ENABLE(gtk3,
[AS_HELP_STRING([--enable-gtk3], [enable gtk3 support])],
enable_gtk3="yes")


if test "x$enable_proxy" != "xno" ; then
CFLAGS="$CFLAGS -DUSE_PROXY"
else
$enable_proxy="no"
fi


#AC_ARG_ENABLE(libnotify,
# AS_HELP_STRING([--enable-libnotify],
# [Enable libnotify support (used to show message\
Expand All @@ -73,13 +81,25 @@ PKG_CHECK_MODULES(ZLIB, [zlib >= 1.2], [
AC_SUBST(ZLIB_LIBS)
] ,
)
# checks for gtk+2.0


# checks for gtk+-2.0 or gtk+-3.0
if test x"$enable_gtk3" = x"yes"; then
PKG_CHECK_MODULES(GTK, [gtk+-3.0 >= 3.2], [
AC_DEFINE(USE_GTK3, 1, [Use GTK])
AC_SUBST(GTK_CFLAGS)
AC_SUBST(GTK_LIBS)
] ,
)
else
PKG_CHECK_MODULES(GTK, [gtk+-2.0 >= 2.24], [
AC_DEFINE(USE_GTK, 1, [Use GTK])
AC_DEFINE(USE_GTK2, 1, [Use GTK])
AC_SUBST(GTK_CFLAGS)
AC_SUBST(GTK_LIBS)
] ,
)
fi

# checks for glib2.0
PKG_CHECK_MODULES(GLIB, [glib-2.0 >= 2.18], [
AC_DEFINE(USE_GLIB, 1, [Use GLIB])
Expand Down Expand Up @@ -109,23 +129,23 @@ PKG_CHECK_MODULES(SQLITE3, [sqlite3 > 3.3], [
])

# checks for libnotify
#if test "x$enable_libnotify" = "xyes"; then
#PKG_CHECK_MODULES(LIBNOTIFY, [libnotify], [
# AC_DEFINE(USE_LIBNOTIFY, 1, [Use libnotify for\
# notification])
# AC_SUBST(LIBNOTIFY_CFLAGS)
# AC_SUBST(LIBNOTIFY_LIBS)
# ] , [
# echo ""
# echo "configure: error: "
# echo "libnotify development headers not found."
# echo "Use --disable-libnotify if you do not need it."
# echo "If you're using debian or ubuntu,install it by "
# echo "\"sudo apt-get install libnotify-dev\""
# echo ""
# exit -1
# ])
#fi
if test "x$enable_libnotify" = "xyes"; then
PKG_CHECK_MODULES(LIBNOTIFY, [libnotify], [
AC_DEFINE(USE_LIBNOTIFY, 1, [Use libnotify for\
notification])
AC_SUBST(LIBNOTIFY_CFLAGS)
AC_SUBST(LIBNOTIFY_LIBS)
] , [
echo ""
echo "configure: error: "
echo "libnotify development headers not found."
echo "Use --disable-libnotify if you do not need it."
echo "If you're using debian or ubuntu,install it by "
echo "\"sudo apt-get install libnotify-dev\""
echo ""
exit -1
])
fi

# checks for gstreamer-0.10
#if test "x$enable_gst" = "xyes"; then
Expand Down Expand Up @@ -206,6 +226,26 @@ Use --disable-gstreamer if you do not need GStreamer (sound) support.
fi])
fi

dnl #######################################################################
dnl # Check for libnotify
dnl #######################################################################
dnl
AC_ARG_ENABLE(libnotify, AS_HELP_STRING([--disable-libnotify],[compile without libnotify support]),,enable_libnotify=yes)

if test "x$enable_libnotify" = "xyes"; then
PKG_CHECK_MODULES([LIBNOTIFY], [libnotify],enable_libnotify=yes,enable_libnotify=no)
AC_SUBST(LIBNOTIFY_CFLAGS)
AC_SUBST(LIBNOTIFY_LIBS)
else
enable_libnotify=no
fi

if test "x$enable_libnotify" = "xyes"; then
AC_DEFINE(USE_LIBNOTIFY, 1, [Define if libnotify support is enabled])
fi

AM_CONDITIONAL(WITH_LIBNOTIFY, test "x$enable_libnotify" = "xyes")

dnl #######################################################################
dnl # Check for GStreamer Interfaces
dnl #######################################################################
Expand Down Expand Up @@ -245,11 +285,20 @@ AC_CONFIG_FILES([Makefile
src/misc/status/Makefile
src/misc/qqfaces/Makefile
src/misc/sound/Makefile
src/test/Makefile]
pixmaps/Makefile)
src/test/Makefile
pixmaps/Makefile

Packages/Makefile
Packages/rpm/Makefile
Packages/rpm/gtkqq.spec
])
AC_OUTPUT

echo ======== OPTIONS ============
#echo Use libnotify................. : $enable_libnotify
#echo Use gstreamer0.10............. : $enable_gst
#echo Use NetworkManager............ : $enable_nm
echo Build with GStreamer support.. : $enable_gst
echo Build with Proxy support ..... : $enable_proxy
echo Build with gtk3 support ...... : ${enable_gtk3:="no"}
echo =============================