freebsd-ports/misc/iselect/Makefile
Eitan Adler fd37d8821f Cleanup unmaintained ports in the misc category:
- Trim Header
	- Convert to OptionsNG
	- Prefer DISTNAME to DISTFILES
	- Reorder variables
	- Fix comments (don't include leading article)
	- @unexec rm must not cause failure
	- Tabs, not spaces
	- Single space for WWW
	- Pet portlint
	- etc.

In a few cases the option DOCS was used to control installation into EXAMPLEDIR.
I opted to keep the existing logic of the port in these cases.

Reviewed by:	koobs, ashish
2013-03-25 04:30:31 +00:00

40 lines
935 B
Makefile

# Created by: Ralf S. Engelschall <rse@engelschall.com>
# $FreeBSD$
PORTNAME= iselect
PORTVERSION= 1.4.0
CATEGORIES= misc
MASTER_SITES= ${MASTER_SITE_OSSP}
MASTER_SITE_SUBDIR= tool/iselect
MAINTAINER= ports@FreeBSD.org
COMMENT= Interactive Selection Tool
OPTIONS_DEFINE= SLANG
SLANG_DESC= Link with slang
GNU_CONFIGURE= yes
MAN1= iselect.1
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MSLANG}
LIB_DEPENDS+= slang.2:${PORTSDIR}/devel/libslang2
CONFIGURE_ARGS+= --with-incdir=${LOCALBASE}/include \
--with-libdir=${LOCALBASE}/lib
.endif
post-patch:
@${REINPLACE_CMD} -e 's|^CFLAGS=|#CFLAGS=|g' ${WRKSRC}/configure
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/iselect ${PREFIX}/bin
${INSTALL_MAN} ${WRKSRC}/iselect.1 ${MANPREFIX}/man/man1
.if ${PORT_OPTIONS:MDOCS}
@${MKDIR} ${EXAMPLESDIR}
cd ${WRKSRC}/example && ${FIND} . | \
${CPIO} -pdm -L -R ${SHAREOWN}:${SHAREGRP} ${EXAMPLESDIR}
.endif
.include <bsd.port.mk>