openbsd-ports/net/gnugk/Makefile
2013-01-16 14:18:53 +00:00

85 lines
2.1 KiB
Makefile

# $OpenBSD: Makefile,v 1.26 2013/01/16 14:18:53 ajacoutot Exp $
SHARED_ONLY= Yes
COMMENT= H.323 gatekeeper
V= 3.2
DISTNAME= gnugk-${V}-2
PKGNAME= gnugk-${V}
WRKDIST= ${WRKDIR}/gnugk-${V}
CATEGORIES= net telephony
HOMEPAGE= http://www.gnugk.org/
MAINTAINER= Antoine Jacoutot <ajacoutot@openbsd.org>
# GPLv2
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
WANTLIB += SDL c crypto expat h323 kvm lber ldap ldap_r lua5.1
WANTLIB += m netsnmp netsnmpagent netsnmpmibs pt pthread ssh ssl
WANTLIB += stdc++ wrap
MODULES= lang/lua
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=openh323gk/}
BUILD_DEPENDS= databases/mysql \
databases/postgresql
# XXX PaxHeaders
TAR= ${LOCALBASE}/bin/gtar
BUILD_DEPENDS +=archivers/gtar
LIB_DEPENDS= net/h323plus>=1.24.99 \
net/net-snmp \
security/libssh
USE_GMAKE= Yes
ALL_TARGET= optshared # XXX gkdefault
NO_REGRESS= Yes
CONFIGURE_STYLE=gnu
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib" \
PTLIBDIR=`ptlib-config --ptlibdir`
CONFIGURE_ARGS= --disable-firebird \
--disable-unixodbc \
--with-pgsql-include-dir=${LOCALBASE}/include/postgresql \
--with-lua-include-dir=${MODLUA_INCL_DIR} \
--with-lua-lib-dir=${LOCALBASE}/lib
# patented
CONFIGURE_ARGS += --disable-h46018
MAKE_ENV= CC=${CC} CPLUS=${CXX} \
STDCCFLAGS="${STDCCFLAGS} -I${LOCALBASE}/include/openh323" \
INSTALLBIN_DIR=${WRKINST}${TRUEPREFIX}/bin
pre-configure:
${SUBST_CMD} ${WRKSRC}/docs/gnugk.1 ${WRKSRC}/configure
perl -pi -e 's,-llua,-llua${MODLUA_DEFAULT_VERSION} -lm,g' ${WRKSRC}/configure
post-build:
cd ${WRKSRC}/addpasswd && \
OBJDIR=. \
SYSLIBDIR=`ptlib-config --libdir` \
PTLIBDIR=`ptlib-config --ptlibdir` ${MAKE_PROGRAM}
post-install:
${INSTALL_MAN_DIR} ${PREFIX}/man/man1/
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/gnugk/
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/gnugk/
${INSTALL_MAN} ${WRKSRC}/docs/gnugk.1 ${PREFIX}/man/man1/
${INSTALL_DATA} ${WRKSRC}/docs/*.txt ${PREFIX}/share/doc/gnugk/
cp ${WRKSRC}/etc/* ${PREFIX}/share/examples/gnugk/
${INSTALL_PROGRAM} ${WRKSRC}/addpasswd/addpasswd \
${PREFIX}/bin/addpasswd
.include <bsd.port.mk>