1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-11 07:22:22 +00:00
freebsd-ports/audio/jack/Makefile
Rong-En Fan f935a609c5 - Set --mandir and --infodir in CONFIGURE_ARGS if the configure script
supports them.  This is determined by running ``configure --help'' in
  do-configure target and set the shell variable _LATE_CONFIGURE_ARGS
  which is then passed to CONFIGURE_ARGS.
- Remove --mandir and --infodir in ports' Makefile where applicable
  Few ports use REINPLACE_CMD to achieve the same effect, remove them too.
- Correct some manual pages location from PREFIX/man to MANPREFIX/man
- Define INFO_PATH where necessary
- Document that .info files are installed in a subdirectory relative to
  PREFIX/INFO_PATH and slightly change add-plist-info to use INFO_PATH and
  subdirectory detection.

PR:		ports/111470
Approved by:	portmgr
Discussed with:	stas (Mk/*), gerald (info related stuffs)
Tested by:	pointyhat exp run
2007-07-23 09:36:51 +00:00

85 lines
2.3 KiB
Makefile

# New ports collection Makefile for: jackit
# Date created: 14 May 2002
# Whom: arved
#
# $FreeBSD$
#
PORTNAME= jackit
PORTVERSION= 0.103.0
CATEGORIES= audio
MASTER_SITES= SF
DISTNAME= jack-audio-connection-kit-${PORTVERSION}
MAINTAINER= multimedia@FreeBSD.org
COMMENT= A low-latency audio server
LIB_DEPENDS= portaudio.0:${PORTSDIR}/audio/portaudio \
sndfile.1:${PORTSDIR}/audio/libsndfile \
FLAC.7:${PORTSDIR}/audio/flac
OPTIONS= DOCS "Build HTML documentation. Requires doxygen/TeX." off
LATEST_LINK= jack
CONFIGURE_ENV= LIBS="${PTHREAD_LIBS}" LDFLAGS="-L${LOCALBASE}/lib" \
CPPFLAGS="-I${LOCALBASE}/include" \
CFLAGS="${CFLAGS} ${PTHREAD_CFLAGS}"
GNU_CONFIGURE= yes
USE_GETOPT_LONG=yes
USE_LDCONFIG= yes
USE_GNOME= pkgconfig gnometarget gnomehack
MAN1= jackd.1 jackstart.1
.include <bsd.port.pre.mk>
.if exists(${LOCALBASE}/bin/doxygen) && !defined(WITH_GNOKII)
DOCS_OVERRIDE= yes
WITH_DOCS= yes
.endif
.if defined(WITH_DOCS) || defined(PACKAGE_BUILDING)
BUILD_DEPENDS+= doxygen:${PORTSDIR}/devel/doxygen
PLIST_SUB+= DOCS=""
.else
CONFIGURE_ENV+= ac_cv_prog_HAVE_DOXYGEN="false"
PLIST_SUB+= DOCS="@comment "
.endif
.if (${OSVERSION} < 502102 )
BROKEN= Does not compile
.endif
.if exists(${LOCALBASE}/lib/libreadline.so.5)
LIB_DEPENDS+= readline.5:${PORTSDIR}/devel/readline
.endif
pre-everything::
.if defined(DOCS_OVERRIDE)
@${ECHO_MSG}
@${ECHO_MSG} "**********************************************************"
@${ECHO_MSG} "* Doxygen has been detected, documentation will be built *"
@${ECHO_MSG} "**********************************************************"
@${ECHO_MSG}
.endif
post-patch:
@${REINPLACE_CMD} -e 's|define USE_MLOCK|undef USE_MLOCK|' \
${WRKSRC}/configure
@${REINPLACE_CMD} -e "s,-lpthread,${PTHREAD_LIBS}," \
${WRKSRC}/configure ${WRKSRC}/libjack/Makefile.in \
${WRKSRC}/jackd/Makefile.in \
${WRKSRC}/example-clients/Makefile.in ${WRKSRC}/jack.pc.in
@${REINPLACE_CMD} -e "s,-lrt,," ${WRKSRC}/libjack/Makefile.in \
${WRKSRC}/jackd/Makefile.in \
${WRKSRC}/example-clients/Makefile.in
@${REINPLACE_CMD} -e "s,-ldl,," ${WRKSRC}/jackd/Makefile.in \
${WRKSRC}/example-clients/Makefile.in
@${REINPLACE_CMD} -e 's|md5sum|md5 -q|g' \
${WRKSRC}/jackd/Makefile.in
post-build:
@${RM} -f ${WRKSRC}/doc/reference/html/dir__2F*
.include <bsd.port.post.mk>