1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-24 04:33:24 +00:00

- Switch to OptionsNg

- Force LFS support when option activated
- Add CONFLICTS with audio/waon
- Add LFS description to bsd.options.desc.mk
This commit is contained in:
Ganael LAPLANCHE 2012-06-11 07:26:27 +00:00
parent 134bcd9255
commit 5fdb2063dd
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=299020
2 changed files with 14 additions and 6 deletions

View File

@ -98,6 +98,7 @@ LASH_DESC?= Enable LDASH audio support
LASTFM_DESC?= Support Last.FM stream input
LCMS2_DESC?= Enable LCMS2 support
LDAP_DESC?= Enable LDAP support
LFS_DESC?= Enable Large Files Support
LIBBLURAY_DESC?= Enable libbluray support
LIBEXTRACTOR_DESC?= Enable libextractor support
LIBPAPER_DESC?= Enable libpaper support

View File

@ -7,6 +7,7 @@
PORTNAME= pv
PORTVERSION= 1.2.0
PORTREVISION= 1
CATEGORIES= sysutils
MASTER_SITES= ${MASTER_SITE_GOOGLE_CODE} \
SF/${PROJECTHOST}/${PROJECTHOST}/${PORTVERSION}
@ -14,9 +15,11 @@ MASTER_SITES= ${MASTER_SITE_GOOGLE_CODE} \
MAINTAINER= martymac@FreeBSD.org
COMMENT= A pipe throughput monitor
PROJECTHOST= pipeviewer
LICENSE= ART20
CONFLICTS= waon-[0-9]*
PROJECTHOST= pipeviewer
USE_BZIP2= yes
USE_GMAKE= yes
GNU_CONFIGURE= yes
@ -25,15 +28,19 @@ MAN1= pv.1
PLIST_FILES= bin/pv
PORTDOCS= README INSTALL NEWS PACKAGE \
TODO VERSION release-checklist
OPTIONS= LFS "Use large filesystem support" on \
NLS "Use Native Language Support" off
OPTIONS_DEFINE= NLS LFS
OPTIONS_DEFAULT= LFS
.include <bsd.port.pre.mk>
.if defined(WITHOUT_LFS)
.if ${PORT_OPTIONS:MLFS}
CONFIGURE_ARGS+= --enable-lfs
.else
CONFIGURE_ARGS+= --disable-lfs
.endif
.if defined(WITH_NLS)
.if ${PORT_OPTIONS:MNLS}
CONFIGURE_ARGS+= --enable-static-nls
.else
CONFIGURE_ARGS+= --disable-nls
@ -45,7 +52,7 @@ post-patch:
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/pv ${PREFIX}/bin/
${INSTALL_MAN} ${WRKSRC}/doc/quickref.1 ${MAN1PREFIX}/man/man1/pv.1
.if !defined(NOPORTDOCS)
.if ${PORT_OPTIONS:MDOCS}
${MKDIR} ${DOCSDIR}
.for doc in ${PORTDOCS}
${INSTALL_DATA} ${WRKSRC}/doc/${doc} ${DOCSDIR}