freebsd-ports/devel/libslang2/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

81 lines
1.8 KiB
Makefile

# New ports collection makefile for: libslang2
# Date created: 2005-05-16
# Whom: Renato Botelho <freebsd@galle.com.br>
#
# $FreeBSD$
#
PORTNAME= libslang2
PORTVERSION= 2.1.1
CATEGORIES= devel
MASTER_SITES= ftp://space.mit.edu/pub/davis/slang/v${PORTVERSION:R}/ \
ftp://ftp.fu-berlin.de/pub/unix/misc/slang/v${PORTVERSION:R}/ \
ftp://ftp.ntua.gr/pub/lang/slang/slang/v${PORTVERSION:R}/ \
ftp://ftp.plig.org/pub/slang/v${PORTVERSION:R}/
DISTNAME= slang-${PORTVERSION}
MAINTAINER= garga@FreeBSD.org
COMMENT= Routines for rapid alpha-numeric terminal applications development
USE_BZIP2= yes
USE_LDCONFIG= yes
GNU_CONFIGURE= yes
CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFLICTS= libslang-[0-9]* libslang-1.*.j[0-9]
ALL_TARGET= all static
INSTALL_TARGET= install install-static
MAN1= slsh.1
DOCSDIR= ${PREFIX}/share/doc/slang
DATADIR= ${PREFIX}/share/slsh
OPTIONS= PCRE "Include pcre support" on \
PNG "Include png support" on \
ICONV "Include iconv support" on \
ONIG "Include Oniguruma support" off
PORTDOCS= *
PORTDATA= *
.include <bsd.port.pre.mk>
.if !defined(WITHOUT_PCRE)
LIB_DEPENDS+= pcre.0:${PORTSDIR}/devel/pcre
PLIST_SUB+= PCRE=""
.else
CONFIGURE_ARGS+= --without-pcre
PLIST_SUB+= PCRE="@comment "
.endif
.if !defined(WITHOUT_PNG)
LIB_DEPENDS+= png.5:${PORTSDIR}/graphics/png
PLIST_SUB+= PNG=""
.else
CONFIGURE_ARGS+= --without-png
PLIST_SUB+= PNG="@comment "
.endif
.if !defined(WITHOUT_ICONV)
USE_ICONV= yes
PLIST_SUB+= ICONV=""
.else
CONFIGURE_ARGS+= --without-iconv
PLIST_SUB+= ICONV="@comment "
.endif
.if defined(WITH_ONIG)
LIB_DEPENDS+= onig.1:${PORTSDIR}/devel/oniguruma4
PLIST_SUB+= ONIG=""
.else
CONFIGURE_ARGS+= --without-onig
PLIST_SUB+= ONIG="@comment "
.endif
post-patch:
.if defined(NOPORTDOCS)
@${REINPLACE_CMD} -e 's, install-docs,,g' ${WRKSRC}/src/Makefile.in
.endif
.include <bsd.port.post.mk>