aboutsummaryrefslogtreecommitdiffstats
path: root/lang/harbour/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'lang/harbour/Makefile')
-rw-r--r--lang/harbour/Makefile61
1 files changed, 19 insertions, 42 deletions
diff --git a/lang/harbour/Makefile b/lang/harbour/Makefile
index c94d607c6e14..e5fd15d68966 100644
--- a/lang/harbour/Makefile
+++ b/lang/harbour/Makefile
@@ -17,19 +17,16 @@ LIB_DEPENDS= libslang.so:devel/libslang2\
BUILD_DEPENDS= bash:shells/bash
RUN_DEPENDS:= ${BUILD_DEPENDS}
-OPTIONS_DEFINE= MYSQL SQLITE FIREBIRD PGSQL DOCS
-
NOT_FOR_ARCHS= sparc64
NOT_FOR_ARCHS_REASON= does not compile on sparc64: assertion failed
PORTDOCS= *.txt *.hbd NEWS INSTALL TODO COPYING ChangeLog
-USES= bison gmake shebangfix
+USES= bison gmake shebangfix ssl
SHEBANG_FILES= bin/hb3rdpat.hbs
SHEBANG_LANG= hbrun
hbrun_OLD_CMD= /usr/bin/hbrun
hbrun_CMD= ${PREFIX}/bin/hbrun
-USE_OPENSSL= yes
USE_LDCONFIG= ${LOCALBASE}/lib/harbour
HB_WITH_ALLEGRO= no
@@ -59,10 +56,11 @@ HB_INSTALL_BIN= ${STAGEDIR}${LOCALBASE}/bin
HB_INSTALL_LIB= ${STAGEDIR}${LOCALBASE}/lib/harbour
HB_INSTALL_INC= ${STAGEDIR}${LOCALBASE}/include/harbour
HB_INSTALL_DOC= ${STAGEDIR}${DOCSDIR}
-HB_USER_CFLAGS= -fPIC
-HB_USER_LDFLAGS= -L${LOCALBASE}/lib
+HB_USER_CFLAGS= "${CFLAGS} -fPIC"
+HB_USER_LDFLAGS="${LDFLAGS} -L${LOCALBASE}/lib"
MAKE_ENV= HB_ARCHITECTURE=${HB_ARCH} \
+ HB_BUILD_OPTIM=no \
HB_COMPILER=${HB_COMPILER} \
HB_GT_LIB=${HB_GT_LIB} \
HB_INSTALL_PREFIX=${HB_INSTALL_PREFIX} \
@@ -88,47 +86,26 @@ MAKE_ENV= HB_ARCHITECTURE=${HB_ARCH} \
HB_USER_CFLAGS=${HB_USER_CFLAGS} \
HB_USER_LDFLAGS=${HB_USER_LDFLAGS}
+OPTIONS_DEFINE= MYSQL SQLITE FIREBIRD PGSQL DOCS
+OPTIONS_SUB= yes
+
+DOCS_MAKE_ENV= HB_INSTALL_DOC=${HB_INSTALL_DOC}
+DOCS_MAKE_ENV_OFF= HB_INSTALL_DOC=no
PGSQL_USES= pgsql
+PGSQL_MAKE_ENV= HB_WITH_PGSQL=${LOCALBASE}/include
+PGSQL_MAKE_ENV_OFF= HB_WITH_PGSQL=no
FIREBIRD_USES= firebird
+FIREBIRD_MAKE_ENV= HB_WITH_FIREBIRD=${LOCALBASE}/include
+FIREBIRD_MAKE_ENV_OFF= HB_WITH_FIREBIRD=no
MYSQL_USES= mysql
-
-.include <bsd.port.pre.mk>
-
-.if ${PORT_OPTIONS:MDOCS}
-MAKE_ENV+= HB_INSTALL_DOC=${HB_INSTALL_DOC}
-.else
-MAKE_ENV+= HB_INSTALL_DOC=no
-.endif
-
-.if ${PORT_OPTIONS:MFIREBIRD}
-MAKE_ENV+= HB_WITH_FIREBIRD=nolocal
-.else
-MAKE_ENV+= HB_WITH_FIREBIRD=no
-.endif
-
-.if ${PORT_OPTIONS:MSQLITE}
-LIB_DEPENDS+= libsqlite3.so:databases/sqlite3
-MAKE_ENV+= HB_WITH_SQLITE3=nolocal
-PLIST_SUB+= SQLITE=""
-.else
-MAKE_ENV+= HB_WITH_SQLITE3=no
-PLIST_SUB+= SQLITE="@comment "
-.endif
-
-.if ${PORT_OPTIONS:MMYSQL}
-MAKE_ENV+= HB_WITH_MYSQL=nolocal
-.else
-MAKE_ENV+= HB_WITH_MYSQL=no
-.endif
-
-.if ${PORT_OPTIONS:MPGSQL}
-MAKE_ENV+= HB_WITH_PGSQL=nolocal
-.else
-MAKE_ENV+= HB_WITH_PGSQL=no
-.endif
+MYSQL_MAKE_ENV= HB_WITH_MYSQL=${LOCALBASE}/include/mysql
+MYSQL_MAKE_ENV_OFF= HB_WITH_MYSQL=no
+SQLITE_USES= sqlite
+SQLITE_MAKE_ENV= HB_WITH_SQLITE3=${LOCALBASE}/include
+SQLITE_MAKE_ENV_OFF= HB_WITH_SQLITE3=no
post-patch:
${REINPLACE_CMD} \
-e 's|utmp.h|utmpx.h|g' ${WRKSRC}/src/rtl/gtcrs/gtcrs.h
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>