diff options
author | gahr <gahr@FreeBSD.org> | 2008-07-09 00:07:41 +0000 |
---|---|---|
committer | gahr <gahr@FreeBSD.org> | 2008-07-09 00:07:41 +0000 |
commit | 2a47d0caa23a03ad0758a301addc81a1181d73e1 (patch) | |
tree | 16702c23050a44cc2c2c3549d297bb0e053a3023 | |
parent | 6127451db8b640af13eeac18e02d66e2e12bd3c2 (diff) | |
download | FreeBSD-ports-2a47d0caa23a03ad0758a301addc81a1181d73e1.zip FreeBSD-ports-2a47d0caa23a03ad0758a301addc81a1181d73e1.tar.gz |
- Fix "No suitable display found, exiting" problem
- Add dependecy on GCC34
PR: 124094
Submitted by: Jan Henrik Sylvester <me@janh.de>
-rw-r--r-- | editors/qemacs/Makefile | 3 | ||||
-rw-r--r-- | editors/qemacs/files/patch-qe.h | 22 |
2 files changed, 24 insertions, 1 deletions
diff --git a/editors/qemacs/Makefile b/editors/qemacs/Makefile index c635b2d..bc8ea8f 100644 --- a/editors/qemacs/Makefile +++ b/editors/qemacs/Makefile @@ -7,7 +7,7 @@ PORTNAME= qemacs PORTVERSION= 0.3.1 -PORTREVISION= 2 +PORTREVISION= 3 CATEGORIES= editors MASTER_SITES= http://fabrice.bellard.free.fr/qemacs/ @@ -18,6 +18,7 @@ USE_GMAKE= yes HAS_CONFIGURE= yes CONFIGURE_ARGS= --prefix="${PREFIX}" --make="${GMAKE}" --cc="${CC}" \ --extra-cflags="${CFLAGS}" --extra-ldflags="${LDFLAGS}" +USE_GCC= 3.4 DATADIR= ${PREFIX}/share/qe diff --git a/editors/qemacs/files/patch-qe.h b/editors/qemacs/files/patch-qe.h new file mode 100644 index 0000000..3756ddf --- /dev/null +++ b/editors/qemacs/files/patch-qe.h @@ -0,0 +1,22 @@ +--- qe.h.orig 2003-04-22 00:01:42.000000000 +0200 ++++ qe.h 2005-06-07 16:02:27.000000000 +0200 +@@ -576,10 +576,18 @@ + + /* make sure that the keyword is not disabled by glibc (TINYC case) */ + #undef __attribute__ +- ++#if __GNUC__ < 3 || (__GNUC__ == 3 && __GNUC_MINOR__ < 3) + /* same method as the linux kernel... */ + #define __init_call __attribute__ ((unused,__section__ (".initcall.init"))) + #define __exit_call __attribute__ ((unused,__section__ (".exitcall.exit"))) ++#else ++#undef __attribute_used__ ++#define __attribute_used__ __attribute__((__used__)) ++#define __init_call __attribute_used__ __attribute__((__section__ (".initcall.init"))) ++#define __exit_call __attribute_used__ __attribute__((__section__ (".exitcall.exit"))) ++ ++#endif ++ + + #define qe_module_init(fn) \ + static int (*__initcall_##fn)(void) __init_call = fn |