freebsd-ports/devel/bglibs/Makefile
Sergei Kolobov 97c91ba03d - Unbreak: the self-tests included with bglibs contains several
network related tests (namely, in net/connect4.c and net/tcp4.c)
  that fails in our package build cluster environment.
  Thus, disable running self-tests during build process - create
  a separate "selftest" Makefile target that would allow users
  to run self-tests manually with "make selftest"
- Add USE_LDCONFIG

Nagged by:	pointyhat via kris
Discussed with:	oliver
2006-09-20 10:40:31 +00:00

50 lines
1.2 KiB
Makefile

# New ports collection makefile for: bglibs
# Date created: 03 Mar 2003
# Whom: Sergei Kolobov <sergei@kolobov.com>
#
# $FreeBSD$
#
PORTNAME= bglibs
PORTVERSION= 1.101
CATEGORIES= devel
MASTER_SITES= http://untroubled.org/${PORTNAME}/
MAINTAINER= sergei@FreeBSD.org
COMMENT= One stop library package by Bruce Guenter
NOT_FOR_ARCHS= alpha
USE_GPG= yes
SIG_SUFFIX= .sig
USE_GCC= 3.2+
USE_PERL5= yes
USE_AUTOTOOLS= libtool:15:env
LDFLAGS?= -s
BGLIBS_INC= ${PREFIX}/include/${PORTNAME}
BGLIBS_LIB= ${PREFIX}/lib/${PORTNAME}
USE_LDCONFIG= ${BGLIBS_LIB}
DOCS= NEWS README TODO doc/html/*
MAN1= cli-generate.1
do-configure:
${ECHO_CMD} "${CC} ${CFLAGS}" > ${WRKSRC}/conf-cc
${ECHO_CMD} "${CC} ${LDFLAGS}" > ${WRKSRC}/conf-ld
${ECHO_CMD} "${PREFIX}" > ${WRKSRC}/conf-home
${ECHO_CMD} "${PREFIX}/bin" > ${WRKSRC}/conf-bin
${ECHO_CMD} "${PREFIX}/man" > ${WRKSRC}/conf-man
${ECHO_CMD} "${BGLIBS_INC}" > ${WRKSRC}/conf-include
${ECHO_CMD} "${BGLIBS_LIB}" > ${WRKSRC}/conf-lib
.if !defined(NOPORTDOCS)
post-install:
@${MKDIR} ${DOCSDIR}
cd ${WRKSRC} && ${INSTALL_DATA} ${DOCS} ${DOCSDIR}
.endif
selftest: build
cd ${WRKSRC} && ${SH} selftests.sh
.include <bsd.port.mk>