1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-24 00:45:52 +00:00
freebsd-ports/net/gatekeeper/Makefile
Erwin Lansing 096bf9b8d2 Due to a missing symbol in the default thread library on sparc64 in
OSVERSION <= 700003, the build ends with an linker error.
- mark it as BROKEN for this particular case

- fix a spelling bug in pkg-install
- add an entry to stop the daemon when uninstalling and the rcNG script
  is installed without .sh extension

Reported by:		Kris (pointyhat)
Discussed on:		freebsd-threads@, freebsd-sparc64@
Review and test on:	RELENG_6_1 i386, amd64, sparc64
			CURRENT i386, amd64
PR:			96135
Submitted by:		Joerg Pulz <Joerg.Pulz@frm2.tum.de> (maintainer)
2006-04-21 13:12:38 +00:00

121 lines
3.1 KiB
Makefile

# New ports collection makefile for: gatekeeper
# Date created: Wed Apr 15 15:41:00 GMT 2000
# Whom: Roger Hardiman <roger@FreeBSD.org>
#
# $FreeBSD$
#
PORTNAME= gatekeeper
#PORTVERSION= 2.2.3
DISTVERSION= 2.2.3-2
PORTREVISION= 1
CATEGORIES= net
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= openh323gk
DISTNAME= gnugk-${DISTVERSION}
MAINTAINER= Joerg.Pulz@frm2.tum.de
COMMENT= GnuGK is GPL Gate Keeper for OhPhone, GnomeMeeting, NetMeeting and H323
LIB_DEPENDS= h323_r.1:${PORTSDIR}/net/openh323
WRKSRC= ${WRKDIR}/${MASTER_SITE_SUBDIR}-${DISTVERSION:C/-[0-9]$//}
USE_RC_SUBR= gnugk.sh
USE_AUTOTOOLS= autoconf:259
CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
USE_GMAKE= yes
ALL_TARGET= optshared addpasswd
MAKE_ENV= PWLIBDIR=${LOCALBASE}/share/pwlib \
OPENH323DIR=${LOCALBASE}/share/openh323 \
SYSLIBDIR=${LOCALBASE}/lib
MAKE_ARGS= OSTYPE=${OPSYS} MACHTYPE=${ARCH:S/i386/x86/} \
OSRELEASE=${OSVERSION} CPLUS=${CXX}
PLIST_SUB= PORTNAME=${PORTNAME}
DOCSDIR= ${PREFIX}/share/doc/openh323
EXAMPLESDIR= ${PREFIX}/share/examples/openh323
.include <bsd.port.pre.mk>
.if ${OSVERSION} < 500000
BROKEN= does not build
.elif ${ARCH} == sparc64 && ${OSVERSION} <= 700003
BROKEN= does not link due to missing symbol in default thread library
.endif
.if defined(WITH_FDSET)
CONFIGURE_ARGS+= --with-large-fdset=${WITH_FDSET}
.endif
.if ${OSVERSION} >= 500000
. if defined(WITH_RADIUS)
CONFIGURE_ARGS+= --enable-radius
. else
CONFIGURE_ARGS+= --disable-radius
. endif
.endif
.if defined(WITH_MYSQL)
USE_MYSQL= yes
CONFIGURE_ARGS+= --enable-mysql \
--with-mysql-dir=${LOCALBASE}
.else
CONFIGURE_ARGS+= --disable-mysql
.endif
.if defined(WITH_PGSQL)
USE_PGSQL= yes
CONFIGURE_ARGS+= --enable-pgsql
.else
CONFIGURE_ARGS+= --disable-pgsql
.endif
pre-everything::
.if !defined(WITH_RADIUS) || !defined(WITH_MYSQL) || !defined(WITH_PGSQL) || !defined(WITH_FDSET)
@${ECHO_MSG} "Additional build options are:"
@${ECHO_MSG} ""
.endif
.if ${OSVERSION} >= 500000
. ifndef(WITH_RADIUS)
@${ECHO_MSG} "WITH_RADIUS=yes - enable Radius support"
@${ECHO_MSG} ""
. endif
.endif
.ifndef(WITH_MYSQL)
@${ECHO_MSG} "WITH_MYSQL=yes - enable the MySQL backend"
@${ECHO_MSG} ""
.endif
.ifndef(WITH_PGSQL)
@${ECHO_MSG} "WITH_PGSQL=yes - enable the PostgreSQL backend"
@${ECHO_MSG} ""
.endif
.ifndef(WITH_FDSET)
@${ECHO_MSG} "WITH_FDSET=<some number> - expand the 'Maximum number of sockets'"
@${ECHO_MSG} "Default is: 1024"
@${ECHO_MSG} ""
.endif
pre-su-install:
@${SETENV} PKG_PREFIX=${PREFIX} \
${SH} ${PKGINSTALL} ${PKGNAME} PRE-INSTALL
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/obj_r/gnugk ${PREFIX}/bin
${INSTALL_PROGRAM} ${WRKSRC}/obj_r/addpasswd ${PREFIX}/bin
${INSTALL_DATA} ${WRKSRC}/etc/complete.ini ${PREFIX}/etc/gnugk.ini.default
.if !defined(NOPORTDOCS)
@${MKDIR} ${DOCSDIR}/${PORTNAME}
@${CP} -Rp ${WRKSRC}/docs/*.txt ${DOCSDIR}/${PORTNAME}
.endif
@${MKDIR} ${EXAMPLESDIR}/${PORTNAME}
@${CP} -Rp ${WRKSRC}/etc/*.ini ${EXAMPLESDIR}/${PORTNAME}
post-install:
@${SETENV} PKG_PREFIX=${PREFIX} \
${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
.include <bsd.port.post.mk>