Now calcurse-2.8 builds and works
This commit is contained in:
parent
00ec2ec495
commit
aebb76337b
2 changed files with 4 additions and 53 deletions
|
@ -1,9 +1,8 @@
|
|||
# $NetBSD: Makefile,v 1.1.1.2 2010/06/12 13:09:01 crocusino Exp $
|
||||
# $NetBSD: Makefile,v 1.2 2010/06/12 15:51:15 crocusino Exp $
|
||||
#
|
||||
|
||||
DISTNAME= calcurse-2.8
|
||||
CATEGORIES= time
|
||||
#MASTER_SITES= http://culot.org/cgi-bin/get.cgi?
|
||||
MASTER_SITES= ftp://ftp2.culot.org/culot/
|
||||
|
||||
MAINTAINER= jan.smydke@jh-inst.cas.cz
|
||||
|
@ -17,6 +16,9 @@ PKG_DESTDIR_SUPPORT= user-destdir
|
|||
USE_TOOLS+= gmake
|
||||
GNU_CONFIGURE= yes
|
||||
|
||||
# force to use ncurses from pkgsrc
|
||||
INCOMPAT_CURSES= NetBSD-*-*
|
||||
|
||||
# url2pkg-marker (please do not remove this line.)
|
||||
.include "../../devel/ncurses/buildlink3.mk"
|
||||
.include "../../mk/bsd.pkg.mk"
|
||||
|
|
|
@ -1,51 +0,0 @@
|
|||
PkgSrc build fails
|
||||
------------------
|
||||
|
||||
- calcurse defines ``UP`` for an arrow key, which clashes with ``UP`` in
|
||||
*termcap*. I don't know, why ``/usr/include/termcap.h`` is included. Maybe it
|
||||
should be ``/usr/pkg/include/ncurses/termcap.h`` instead? But there is also ``UP`` defined...
|
||||
|
||||
End of the output of the unsuccessful build::
|
||||
|
||||
===> Building for calcurse-2.8
|
||||
/usr/pkg/bin/gmake all-recursive
|
||||
gmake[1]: Entering directory `/usr/pkgsrc/wip/calcurse-2.8/work/calcurse-2.8'
|
||||
Making all in po
|
||||
gmake[2]: Entering directory `/usr/pkgsrc/wip/calcurse-2.8/work/calcurse-2.8/po'
|
||||
gmake[2]: Leaving directory `/usr/pkgsrc/wip/calcurse-2.8/work/calcurse-2.8/po'
|
||||
Making all in src
|
||||
gmake[2]: Entering directory `/usr/pkgsrc/wip/calcurse-2.8/work/calcurse-2.8/src'
|
||||
if cc -DLOCALEDIR=\"/usr/pkg/share/locale\" -DHAVE_CONFIG_H -I. -I. -I.. -O2 -Wall -MT calcurse.o -MD -MP -MF ".deps/calcurse.Tpo" -c -o calcurse.o calcurse.c; \
|
||||
then mv -f ".deps/calcurse.Tpo" ".deps/calcurse.Po"; else rm -f ".deps/calcurse.Tpo"; exit 1; fi
|
||||
if cc -DLOCALEDIR=\"/usr/pkg/share/locale\" -DHAVE_CONFIG_H -I. -I. -I.. -O2 -Wall -MT apoint.o -MD -MP -MF ".deps/apoint.Tpo" -c -o apoint.o apoint.c; \
|
||||
then mv -f ".deps/apoint.Tpo" ".deps/apoint.Po"; else rm -f ".deps/apoint.Tpo"; exit 1; fi
|
||||
In file included from calcurse.c:41:
|
||||
calcurse.h:524: error: 'UP' redeclared as different kind of symbol
|
||||
/usr/include/termcap.h:69: error: previous declaration of 'UP' was here
|
||||
gmake[2]: *** [calcurse.o] Error 1
|
||||
gmake[2]: *** Waiting for unfinished jobs....
|
||||
In file included from apoint.c:44:
|
||||
calcurse.h:524: error: 'UP' redeclared as different kind of symbol
|
||||
/usr/include/termcap.h:69: error: previous declaration of 'UP' was here
|
||||
gmake[2]: *** [apoint.o] Error 1
|
||||
gmake[2]: Leaving directory `/usr/pkgsrc/wip/calcurse-2.8/work/calcurse-2.8/src'
|
||||
gmake[1]: *** [all-recursive] Error 1
|
||||
gmake[1]: Leaving directory `/usr/pkgsrc/wip/calcurse-2.8/work/calcurse-2.8'
|
||||
gmake: *** [all] Error 2
|
||||
*** Error code 2
|
||||
|
||||
Stop.
|
||||
make: stopped in /usr/pkgsrc/wip/calcurse-2.8
|
||||
*** Error code 1
|
||||
|
||||
Stop.
|
||||
make: stopped in /usr/pkgsrc/wip/calcurse-2.8
|
||||
|
||||
- however a regular build works (we need the ``-I`` flags because *ncursesw* is
|
||||
find first and it needs other includes from *ncurses*)::
|
||||
|
||||
cd calcurse-2.8
|
||||
|
||||
./configure CPPFLAGS="-I/usr/pkg/include -I/usr/pkg/include/ncurses" LDFLAGS="-L/usr/pkg/lib -R/usr/pkg/lib"
|
||||
|
||||
gmake
|
Loading…
Reference in a new issue