diff options
-rw-r--r-- | lang/harbour/Makefile | 117 | ||||
-rw-r--r-- | lang/harbour/distinfo | 4 | ||||
-rw-r--r-- | lang/harbour/pkg-plist | 516 |
3 files changed, 395 insertions, 242 deletions
diff --git a/lang/harbour/Makefile b/lang/harbour/Makefile index 545f2188bdf4..a7ed03cb5b4c 100644 --- a/lang/harbour/Makefile +++ b/lang/harbour/Makefile @@ -6,7 +6,7 @@ # PORTNAME= harbour -PORTVERSION= 2.0.0 +PORTVERSION= 3.0.0 CATEGORIES= lang MASTER_SITES= SF/${PORTNAME}-project/source/${PORTVERSION} @@ -18,48 +18,127 @@ LIB_DEPENDS= slang.2:${PORTSDIR}/devel/libslang2\ BUILD_DEPENDS= bash:${PORTSDIR}/shells/bash RUN_DEPENDS:= ${BUILD_DEPENDS} +OPTIONS= MYSQL "MySQL database support" off \ + SQLITE3 "SQLite 3.x database support" off \ + FIREBIRD "Firebird (Interbase) database support" off \ + PGSQL "PostgreSQL database support" off \ + CLANG "Build harbour with Clang (gcc if disabled)" off + +NOT_FOR_ARCHS= sparc64 +NOT_FOR_ARCHS_REASON= does not compile on sparc64: assertion failed + +PORTDOCS= *.txt *.hbd NEWS INSTALL TODO COPYING ChangeLog + MAKE_JOBS_SAFE= yes USE_BISON= build USE_GMAKE= yes +USE_OPENSSL= yes +USE_LDCONFIG= ${LOCALBASE}/lib/harbour + +HB_WITH_ALLEGRO= no +HB_WITH_CAIRO= no +HB_WITH_CUPS= no +HB_WITH_CURL= no +HB_WITH_EXPAT= local +HB_WITH_FREEIMAGE= no +HB_WITH_GD= no +HB_WITH_GS= no +HB_WITH_JPEG= no +HB_WITH_LIBMAGIC= no +HB_WITH_MXML= no +HB_WITH_ODBC= no +HB_WITH_PCRE= nolocal +HB_WITH_PNG= no +HB_WITH_QT= no +HB_WITH_SLANG= nolocal +HB_WITH_X11= no -HB_WITHOUT_X11= yes HB_ARCH= bsd -HB_COMPILER= gcc HB_GT_LIB= gtsln +HB_INSTALL_PREFIX= ${LOCALBASE} HB_BIN_INSTALL= ${LOCALBASE}/bin -HB_DOC_INSTALL= ${DOCSDIR} HB_LIB_INSTALL= ${LOCALBASE}/lib HB_INC_INSTALL= ${LOCALBASE}/include HB_USER_CFLAGS= -fPIC +HB_USER_LDFLAGS= -L${LOCALBASE}/lib MAKE_ENV= HB_ARCHITECTURE=${HB_ARCH} \ HB_COMPILER=${HB_COMPILER} \ HB_GT_LIB=${HB_GT_LIB} \ - HB_BIN_INSTALL=${HB_BIN_INSTALL} \ - HB_LIB_INSTALL=${HB_LIB_INSTALL} \ - HB_INC_INSTALL=${HB_INC_INSTALL} \ - HB_WITHOUT_X11=${HB_WITHOUT_X11} \ - HB_USER_CFLAGS=${HB_USER_CFLAGS} + HB_INSTALL_PREFIX=${HB_INSTALL_PREFIX} \ + HB_WITH_ALLEGRO=${HB_WITH_ALLEGRO} \ + HB_WITH_CAIRO=${HB_WITH_CAIRO} \ + HB_WITH_CUPS=${HB_WITH_CUPS} \ + HB_WITH_CURL=${HB_WITH_CURL} \ + HB_WITH_EXPAT=${HB_WITH_EXPAT} \ + HB_WITH_FREEIMAGE=${HB_WITH_FREEIMAGE} \ + HB_WITH_GD=${HB_WITH_GD} \ + HB_WITH_GS=${HB_WITH_GS} \ + HB_WITH_JPEG=${HB_WITH_JPEG} \ + HB_WITH_LIBMAGIC=${HB_WITH_LIBMAGIC} \ + HB_WITH_MXML=${HB_WITH_MXML} \ + HB_WITH_ODBC=${HB_WITH_ODBC} \ + HB_WITH_PCRE=${HB_WITH_PCRE} \ + HB_WITH_QT=${HB_WITH_QT} \ + HB_WITH_SLANG=${HB_WITH_SLANG} \ + HB_WITH_X11=${HB_WITH_X11} \ + HB_USER_CFLAGS=${HB_USER_CFLAGS} \ + HB_USER_LDFLAGS=${HB_USER_LDFLAGS} .if !defined(NOPORTDOCS) -MAKE_ENV+= HB_DOC_INSTALL=${HB_DOC_INSTALL} +MAKE_ENV+= HB_INSTALL_DOC=${DOCSDIR} +.else +MAKE_ENV+= HB_INSTALL_DOC=no .endif -PORTDOCS= *.txt en-EN +.include <bsd.port.pre.mk> -pre-install: -.if !defined(NOPORTDOCS) - @${MKDIR} ${DOCSDIR} +.if defined(WITH_CLANG) +HB_COMPILER= clang +.if ${OSVERSION} < 900033 +BUILD_DEPENDS+= clang:${PORTSDIR}/lang/clang +.endif +.else +HB_COMPILER= gcc +USE_GCC= 4.2+ .endif -.include <bsd.port.pre.mk> +.if defined(WITH_FIREBIRD) +USE_FIREBIRD= yes +MAKE_ENV+= HB_WITH_FIREBIRD=nolocal +.else +MAKE_ENV+= HB_WITH_FIREBIRD=no +.endif + +.if defined(WITH_SQLITE3) +LIB_DEPENDS+= sqlite3:${PORTSDIR}/databases/sqlite3 +MAKE_ENV+= HB_WITH_SQLITE3=nolocal +PLIST_SUB+= WITH_SQLITE3="" +.else +MAKE_ENV+= HB_WITH_SQLITE3=no +PLIST_SUB+= WITH_SQLITE3="@comment " +.endif + +.if defined(WITH_MYSQL) +USE_MYSQL= yes +MAKE_ENV+= HB_WITH_MYSQL=nolocal +.else +MAKE_ENV+= HB_WITH_MYSQL=no +.endif + +.if defined(WITH_PGSQL) +USE_PGSQL= yes +MAKE_ENV+= HB_WITH_PGSQL=nolocal +.else +MAKE_ENV+= HB_WITH_PGSQL=no +.endif -.if ${ARCH} == "sparc64" -BROKEN= does not compile on sparc64: assertion failed -.elif ${OSVERSION} > 900007 -BROKEN= fails to build with new utmpx +post-patch: +.if ${OSVERSION} > 900007 + ${REINPLACE_CMD} \ + -e 's|utmp.h|utmpx.h|g' ${WRKSRC}/src/rtl/gtcrs/gtcrs.h .endif .include <bsd.port.post.mk> diff --git a/lang/harbour/distinfo b/lang/harbour/distinfo index 5a6e8885154b..db0eedc11209 100644 --- a/lang/harbour/distinfo +++ b/lang/harbour/distinfo @@ -1,2 +1,2 @@ -SHA256 (harbour-2.0.0.tar.gz) = f85342af6f7501e0cc846a248b80272d0899e45a495c6976f02398633c14b88a -SIZE (harbour-2.0.0.tar.gz) = 10990040 +SHA256 (harbour-3.0.0.tar.gz) = 700b9f14941f27c097eea6e6f3c35238c18f587a92db51086beadf8a9e978a1f +SIZE (harbour-3.0.0.tar.gz) = 13114592 diff --git a/lang/harbour/pkg-plist b/lang/harbour/pkg-plist index bc466bdfc293..aff2f029eff4 100644 --- a/lang/harbour/pkg-plist +++ b/lang/harbour/pkg-plist @@ -1,227 +1,301 @@ bin/harbour -bin/hb-build -bin/hb-mkdyn -bin/hb-mkslib -bin/hbcc -bin/hbcmp -bin/hbformat bin/hbi18n -bin/hblnk -bin/hbmk -bin/hbmk.cfg bin/hbmk2 bin/hbpp -bin/hbrun bin/hbtest -include/achoice.ch -include/appevent.ch -include/assert.ch -include/blob.ch -include/box.ch -include/button.ch -include/clipdefs.h -include/color.ch -include/common.ch -include/ct.ch -include/ct.h -include/ctdisk.ch -include/cterror.ch -include/ctextern.ch -include/ctmath.h -include/ctset.h -include/ctstr.h -include/ctstrfil.h -include/ctvideo.ch -include/ctwin.h -include/dbedit.ch -include/dbinfo.ch -include/dbstruct.ch -include/directry.ch -include/error.api -include/error.ch -include/extend.api -include/extend.h -include/fileio.ch -include/filesys.api -include/fm.api -include/ftmenuto.ch -include/getexit.ch -include/gra.ch -include/gt.api -include/harupdf.ch -include/hb_btree.ch -include/hb_btree.h -include/hb_io.h -include/hbapi.h -include/hbapicdp.h -include/hbapicls.h -include/hbapidbg.h -include/hbapierr.h -include/hbapifs.h -include/hbapigt.h -include/hbapiitm.h -include/hbapilng.h -include/hbapirdd.h -include/hbapistr.h -include/hbassert.h -include/hbatomic.h -include/hbbfish.h -include/hbcdpreg.h -include/hbchksum.h -include/hbclass.ch -include/hbcomp.h -include/hbcompat.ch -include/hbcompat.h -include/hbcompdf.h -include/hbdate.h -include/hbdbf.h -include/hbdbferr.h -include/hbdbsort.h -include/hbdebug.ch -include/hbdefs.h -include/hberrors.h -include/hbexprop.h -include/hbextcdp.ch -include/hbextern.ch -include/hbextlng.ch -include/hbgfx.ch -include/hbgfxdef.ch -include/hbgtcore.h -include/hbgtinfo.ch -include/hbgtreg.h -include/hbhash.h -include/hbhrb.ch -include/hbiniseg.h -include/hbinit.h -include/hbinkey.ch -include/hblang.ch -include/hbmacro.ch -include/hbmacro.h -include/hbmath.ch -include/hbmath.h -include/hbmemory.ch -include/hbmemvar.ch -include/hbmsgreg.h -include/hbmzip.ch -include/hboo.ch -include/hbpcode.h -include/hbpers.ch -include/hbpp.h -include/hbrddcdx.h -include/hbrdddbf.h -include/hbrdddel.h -include/hbrddfpt.h -include/hbrddnsx.h -include/hbrddntx.h -include/hbrddsdf.h -include/hbrddsql.ch -include/hbregex.h -include/hbset.h -include/hbsetup.ch -include/hbsetup.h -include/hbsix.ch -include/hbsocket.ch -include/hbsocket.h -include/hbsqlit3.ch -include/hbssl.ch -include/hbstack.h -include/hbstdgen.ch -include/hbsxdef.ch -include/hbsxfunc.h -include/hbthread.ch -include/hbthread.h -include/hbtrace.ch -include/hbtrace.h -include/hbtypes.h -include/hbundoc.api -include/hbusrrdd.ch -include/hbver.ch -include/hbver.h -include/hbvm.h -include/hbvmint.h -include/hbvmopt.h -include/hbvmpub.h -include/hbwince.h -include/hbwinuni.h -include/hbxvm.h -include/hbzlib.ch -include/hbzlib.h -include/inkey.ch -include/item.api -include/memoedit.ch -include/ord.ch -include/rdd.api -include/rddsys.ch -include/reserved.ch -include/set.ch -include/setcurs.ch -include/simpleio.ch -include/std.ch -include/tbrowse.ch -include/telepath.ch -include/thtml.ch -include/time87.ch -include/tip.ch -include/vm.api -include/xbp.ch -include/xbpdev.ch -include/xhb.ch -include/xhb.h -include/xpp.ch -lib/libgtcgi.a -lib/libgtcrs.a -lib/libgtpca.a -lib/libgtsln.a -lib/libgtstd.a -lib/libgttrm.a -lib/libharbour-2.0.0.so +bin/hb3rdpat.hbs +bin/hbformat +bin/hbmk2.es_PE.hbl +bin/hbmk2.hu_HU.hbl +bin/hbmk2.pt_BR.hbl +bin/hbnetio +bin/hbrun +include/harbour/hbsocket.ch +include/harbour/hbzebra.ch +include/harbour/hbsix.ch +include/harbour/hbusrrdd.ch +include/harbour/inkey.ch +include/harbour/assert.ch +include/harbour/hbmemory.ch +include/harbour/set.ch +include/harbour/hbapicls.h +include/harbour/hb_io.h +include/harbour/dbinfo.ch +include/harbour/hbbz2.ch +include/harbour/color.ch +include/harbour/hbgtcore.h +include/harbour/hbcdpreg.h +include/harbour/hbmather.h +include/harbour/hbapicom.h +include/harbour/hbdebug.ch +include/harbour/hbtrace.h +include/harbour/hbset.h +%%WITH_SQLITE3%%include/harbour/hbsqlit3.ch +%%WITH_SQLITE3%%include/harbour/hbsqlit3.hbx +include/harbour/hbgfx.ch +include/harbour/hbmisc.hbx +include/harbour/hbgtinfo.ch +include/harbour/hbvmopt.h +include/harbour/hbver.ch +include/harbour/hbcpage.hbx +include/harbour/ctcom.ch +include/harbour/hbmzip.hbx +include/harbour/ctvideo.ch +include/harbour/hbdbsort.h +include/harbour/ctstrfil.h +include/harbour/ctextern.ch +include/harbour/hbsetup.h +include/harbour/hbmacro.h +include/harbour/memoedit.ch +include/harbour/hbnf.hbx +include/harbour/hbpers.ch +include/harbour/rdd.api +include/harbour/hbrddnsx.h +include/harbour/hbver.h +include/harbour/hbapigt.h +include/harbour/hbcom.ch +include/harbour/hbiniseg.h +include/harbour/hbznet.h +include/harbour/extend.h +include/harbour/hbjson.h +include/harbour/hbclipsm.hbx +include/harbour/xhbcls.ch +include/harbour/hbapistr.h +include/harbour/hboslib.hbx +include/harbour/dbedit.ch +include/harbour/hbundoc.api +include/harbour/xhbextrn.ch +include/harbour/hbgtreg.h +include/harbour/hb.ch +include/harbour/hbrddsdf.h +include/harbour/hbthread.h +include/harbour/hbmlzo.hbx +include/harbour/hbdbf.h +include/harbour/dll.ch +include/harbour/hbapilng.h +include/harbour/hbwinuni.h +include/harbour/hbziparc.hbx +include/harbour/hbdyn.ch +include/harbour/hbexprop.h +include/harbour/gt.api +include/harbour/hbxvm.h +include/harbour/box.ch +include/harbour/hbxdiff.hbx +include/harbour/hbregex.h +include/harbour/hbmacro.ch +include/harbour/hbformat.hbx +include/harbour/hbdbferr.h +include/harbour/clipdefs.h +include/harbour/hbinit.h +include/harbour/hbmath.ch +include/harbour/hbmlzo.ch +include/harbour/hbapi.h +include/harbour/achoice.ch +include/harbour/hbhrb.ch +include/harbour/ct.h +include/harbour/hbextern.ch +include/harbour/hbcomp.h +include/harbour/hbmzip.ch +include/harbour/hblzf.ch +include/harbour/hbmsgreg.h +include/harbour/xhb.ch +include/harbour/hbxppext.ch +include/harbour/hboo.ch +include/harbour/hbnetio.hbx +include/harbour/hbct.hbx +include/harbour/hbtypes.h +include/harbour/ctset.h +include/harbour/harbour.hbx +include/harbour/hbrddntx.h +include/harbour/hbdate.h +include/harbour/hbcompdf.h +include/harbour/hbgt.hbx +include/harbour/hbapiitm.h +include/harbour/hbhttpd.hbx +include/harbour/hbssl.ch +include/harbour/tip.ch +include/harbour/hbrddsql.ch +include/harbour/hbapirdd.h +include/harbour/hbcompat.ch +include/harbour/error.ch +include/harbour/hbbz2.hbx +include/harbour/hbsxfunc.h +include/harbour/hbapierr.h +include/harbour/hbsocket.h +include/harbour/ord.ch +include/harbour/hblzf.hbx +include/harbour/hberrors.h +include/harbour/item.api +include/harbour/hbstdgen.ch +include/harbour/hbsms.hbx +include/harbour/hblang.ch +include/harbour/hbapidbg.h +include/harbour/thread.ch +include/harbour/hblpp.ch +include/harbour/setcurs.ch +include/harbour/directry.ch +include/harbour/hbapifs.h +include/harbour/fm.api +include/harbour/hbxpp.hbx +include/harbour/extend.api +include/harbour/hbcomm.hbx +include/harbour/hbxdiff.ch +include/harbour/cterror.ch +include/harbour/xhb.hbx +include/harbour/hbmemvar.ch +include/harbour/common.ch +include/harbour/hbmath.h +include/harbour/hbsetup.ch +include/harbour/hbtip.hbx +include/harbour/ctdisk.ch +include/harbour/dmlb.ch +include/harbour/hbtask.h +include/harbour/harupdf.ch +include/harbour/ctstr.h +include/harbour/hbvmint.h +include/harbour/ctmath.h +include/harbour/hbscalar.hbx +include/harbour/hblang.hbx +include/harbour/hbapicdp.h +include/harbour/hbrdddbf.h +include/harbour/hbtrace.ch +include/harbour/rddsys.ch +include/harbour/hbextcdp.ch +include/harbour/reserved.ch +include/harbour/hbbfish.h +include/harbour/hbhash.h +include/harbour/filesys.api +include/harbour/hbdefs.h +include/harbour/std.ch +include/harbour/hbfoxpro.hbx +include/harbour/hbcompat.h +include/harbour/hbfloat.h +include/harbour/hbxpp.ch +include/harbour/hbextlng.ch +include/harbour/hbrddfpt.h +include/harbour/hbstack.h +include/harbour/button.ch +include/harbour/hbclass.ch +include/harbour/time87.ch +include/harbour/hbfship.hbx +include/harbour/ctwin.h +include/harbour/hbexpat.ch +include/harbour/hbtpathy.hbx +include/harbour/hbblink.hbx +include/harbour/hbblink.ch +include/harbour/hbusrrdd.hbx +include/harbour/hbrddcdx.h +include/harbour/thtml.ch +include/harbour/hbssl.hbx +include/harbour/fileio.ch +include/harbour/hbvmpub.h +include/harbour/blob.ch +include/harbour/xhb.h +include/harbour/hbvm.h +include/harbour/vm.api +include/harbour/hbgfxdef.ch +include/harbour/getexit.ch +include/harbour/hbassert.h +include/harbour/hbsxdef.ch +include/harbour/hbchksum.h +include/harbour/ftmenuto.ch +include/harbour/hbexpat.hbx +include/harbour/hbrdddel.h +include/harbour/hbzlib.ch +include/harbour/hbzebra.hbx +include/harbour/error.api +include/harbour/hbatomic.h +include/harbour/hbhpdf.hbx +include/harbour/hbfoxpro.ch +include/harbour/hbpp.h +include/harbour/dbstruct.ch +include/harbour/hbstrict.ch +include/harbour/hbinkey.ch +include/harbour/ct.ch +include/harbour/telepath.ch +include/harbour/simpleio.ch +include/harbour/hbpcode.h +include/harbour/hbthread.ch +include/harbour/tbrowse.ch +include/harbour/hbwince.h +include/harbour/hbmemio.hbx +lib/harbour/libhbxpp.a +lib/harbour/libgtstd.a +lib/harbour/libhbgt.a +lib/harbour/libhbtip.a +lib/harbour/libharbour.so +lib/harbour/libhbmzip.a +lib/harbour/libhbcplr.a +lib/harbour/libgttrm.a +lib/harbour/libhboslib.a +lib/harbour/libhbformat.a +lib/harbour/libhbcommon.a +lib/harbour/libhbfoxpro.a +lib/harbour/libhbmemio.a +lib/harbour/libhbnulrdd.a +lib/harbour/librddnsx.a +lib/harbour/libhbsms.a +lib/harbour/libgtpca.a +lib/harbour/libhbcpage.a +lib/harbour/libhbblink.a +lib/harbour/libminilzo.a +lib/harbour/libhbunix.a +lib/harbour/libhbmisc.a +lib/harbour/libhbnf.a +lib/harbour/libhblang.a +lib/harbour/libhbhpdf.a +lib/harbour/libhbsix.a +lib/harbour/liblzf.a +lib/harbour/libhbzebra.a +lib/harbour/libhbdebug.a +lib/harbour/libexpat.a +lib/harbour/libgtcgi.a +lib/harbour/libhbtpathy.a +lib/harbour/librddsql.a +lib/harbour/librddntx.a +lib/harbour/libhbxdiff.a +lib/harbour/libpng.a +lib/harbour/libhbct.a +lib/harbour/libhbclipsm.a +lib/harbour/libhbhttpd.a +lib/harbour/libhbmlzo.a +lib/harbour/libgtcrs.a +lib/harbour/libhbusrrdd.a +lib/harbour/librddbm.a +lib/harbour/libhbbz2.a +lib/harbour/libxhb.a +lib/harbour/libhbuddall.a +lib/harbour/libgtsln.a +lib/harbour/libharbour.so.3.0 +lib/harbour/libhbmacro.a +lib/harbour/libhbextern.a +lib/harbour/librddcdx.a +lib/harbour/libhblzf.a +lib/harbour/libhbssl.a +lib/harbour/libhbnortl.a +lib/harbour/libhbziparc.a +lib/harbour/libminizip.a +lib/harbour/librddfpt.a +lib/harbour/libhbrtl.a +lib/harbour/libhbvm.a +lib/harbour/libharbour.so.3.0.0 +lib/harbour/libhbhsx.a +lib/harbour/libhbvmmt.a +lib/harbour/libhbpp.a +lib/harbour/libxdiff.a +lib/harbour/libhbnetio.a +lib/harbour/liblibhpdf.a +lib/harbour/libhbtipssl.a +lib/harbour/libhbexpat.a +lib/harbour/libhbfship.a +lib/harbour/libhbcomm.a +lib/harbour/libhbrdd.a +%%WITH_SQLITE3%%lib/harbour/libsddsqlt3.a +%%WITH_SQLITE3%%lib/harbour/libhbsqlit3.a lib/libharbour.so -lib/libharbourmt-2.0.0.so -lib/libharbourmt.so -lib/libhbbmcdx.a -lib/libhbbtree.a -lib/libhbclipsm.a -lib/libhbcommon.a -lib/libhbcpage.a -lib/libhbcplr.a -lib/libhbct.a -lib/libhbdebug.a -lib/libhbextern.a -lib/libhbgt.a -lib/libhbhpdf.a -lib/libhbhsx.a -lib/libhblang.a -lib/libhbmacro.a -lib/libhbmemio.a -lib/libhbmisc.a -lib/libhbmzip.a -lib/libhbnetio.a -lib/libhbnf.a -lib/libhbnortl.a -lib/libhbnulrdd.a -lib/libhbpp.a -lib/libhbrdd.a -lib/libhbrtl.a -lib/libhbsix.a -lib/libhbsms.a -lib/libhbsqlit3.a -lib/libhbssl.a -lib/libhbtip.a -lib/libhbtipssl.a -lib/libhbtpathy.a -lib/libhbuddall.a -lib/libhbusrrdd.a -lib/libhbvm.a -lib/libhbvmmt.a -lib/libhbxbp.a -lib/libhbziparc.a -lib/liblibhpdf.a -lib/liblibpng.a -lib/librddcdx.a -lib/librddfpt.a -lib/librddnsx.a -lib/librddntx.a -lib/librddsql.a -lib/libsqlite3.a -lib/libxhb.a -lib/libxpp.a +lib/libharbour.so.3.0 +lib/libharbour.so.3.0.0 +etc/harbour/hb-charmap.def +@dirrm include/harbour +@dirrm lib/harbour +@dirrm etc/harbour |