aboutsummaryrefslogtreecommitdiff
path: root/net-p2p/verlihub-plugins/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'net-p2p/verlihub-plugins/Makefile')
-rw-r--r--net-p2p/verlihub-plugins/Makefile17
1 files changed, 5 insertions, 12 deletions
diff --git a/net-p2p/verlihub-plugins/Makefile b/net-p2p/verlihub-plugins/Makefile
index 3f170a029d17..ee493491f001 100644
--- a/net-p2p/verlihub-plugins/Makefile
+++ b/net-p2p/verlihub-plugins/Makefile
@@ -16,17 +16,18 @@ MAINTAINER= hurbold@yahoo.com
COMMENT= Plugins for the Verlihub Linux/Unix Direct Connect Hub Software
BUILD_DEPENDS= ${LOCALBASE}/bin/verlihub:${PORTSDIR}/net-p2p/verlihub
-LIB_DEPENDS= lua.5:${PORTSDIR}/lang/lua50
WRKSRC= ${WRKDIR}/vh_plugins-0.1
USE_GMAKE= yes
+USE_LUA= 5.0
+USE_GCC= 3.3
GNU_CONFIGURE= yes
INSTALLS_SHLIB= yes
LDCONFIG_DIRS= %%PREFIX%%/include/verlihub
-CONFIGURE_ENV+= CPPFLAGS="-I${LOCALBASE}/include -I${LOCALBASE}/include/verlihub -I${LOCALBASE}/include/mysql"
-
-DATADIR= ${PREFIX}/share/${PORTNAME}
+CONFIGURE_ENV= CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}"
+CPPFLAGS= -I${LOCALBASE}/include -I${LOCALBASE}/include/verlihub -I${LOCALBASE}/include/mysql -I${LUA_INCDIR}
+LDFLAGS= -L${LUA_LIBDIR}
post-install:
@${MKDIR} ${DATADIR}
@@ -45,14 +46,6 @@ post-install:
.include <bsd.port.pre.mk>
-.if ${OSVERSION} < 502010
-USE_GCC= 3.3
-.endif
-
-.if ${OSVERSION} > 502126
-BROKEN= Does not compile with gcc 3.4
-.endif
-
.if ${PERL_LEVEL} < 500800
IGNORE= requires perl 5.8 or later. Install lang/perl5.8 and try again
.endif