1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-27 00:57:50 +00:00

get rid of libgnugetopt dependency.

This port does not use getopt_long(); use getopt() in libc instead.
This commit is contained in:
FUJISHIMA Satsuki 2003-07-14 02:37:04 +00:00
parent 6dd69bbdb1
commit 1337d85a81
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=84831
2 changed files with 10 additions and 14 deletions

View File

@ -7,26 +7,24 @@
PORTNAME= reed PORTNAME= reed
PORTVERSION= 5.4 PORTVERSION= 5.4
PORTREVISION= 1
CATEGORIES= misc CATEGORIES= misc
MASTER_SITES= http://www.sacredchao.net/software/reed/ MASTER_SITES= http://www.sacredchao.net/software/reed/
MAINTAINER= petef@FreeBSD.org MAINTAINER= petef@FreeBSD.org
COMMENT= A text pager with autoscrolling and more COMMENT= A text pager with autoscrolling and more
LIB_DEPENDS= gnugetopt.1:${PORTSDIR}/devel/libgnugetopt
USE_PERL5= yes USE_PERL5= yes
HAS_CONFIGURE= yes HAS_CONFIGURE= yes
CONFIGURE_SCRIPT= configures CONFIGURE_SCRIPT= configures
CONFIGURE_ENV= INCDIR="${LOCALBASE}/include"
CFLAGS+= -I${LOCALBASE}/include
MAN1= breed.1 reed.1 wrap.1 MAN1= breed.1 reed.1 wrap.1
post-patch: post-patch:
@${PERL} -pi -e 's!/usr/local/!${PREFIX}!g' ${WRKSRC}/configures @${PERL} -pi -e 's!/usr/local!${PREFIX}!g' ${WRKSRC}/configures
@${PERL} -pi -e 's!sys/dir.h!dirent.h!g' ${WRKSRC}/reed.c @${PERL} -pi -e 's!sys/dir.h!dirent.h!g;s!.*getopt.h.*\n!!' \
${WRKSRC}/reed.c
@${PERL} -pi -e 's!getopt.h !!' ${WRKSRC}/cfg.data
@${PERL} -pi -e 's!-O2!${CFLAGS}!' ${WRKSRC}/Makefile.in @${PERL} -pi -e 's!-O2!${CFLAGS}!' ${WRKSRC}/Makefile.in
@${PERL} -pi -e 's!^#!/usr/bin/perl!#!${PERL}!' \ @${PERL} -pi -e 's!^#!/usr/bin/perl!#!${PERL}!' \
${WRKSRC}/fix_bookmarks.pl ${WRKSRC}/fix_bookmarks.pl

View File

@ -7,26 +7,24 @@
PORTNAME= reed PORTNAME= reed
PORTVERSION= 5.4 PORTVERSION= 5.4
PORTREVISION= 1
CATEGORIES= misc CATEGORIES= misc
MASTER_SITES= http://www.sacredchao.net/software/reed/ MASTER_SITES= http://www.sacredchao.net/software/reed/
MAINTAINER= petef@FreeBSD.org MAINTAINER= petef@FreeBSD.org
COMMENT= A text pager with autoscrolling and more COMMENT= A text pager with autoscrolling and more
LIB_DEPENDS= gnugetopt.1:${PORTSDIR}/devel/libgnugetopt
USE_PERL5= yes USE_PERL5= yes
HAS_CONFIGURE= yes HAS_CONFIGURE= yes
CONFIGURE_SCRIPT= configures CONFIGURE_SCRIPT= configures
CONFIGURE_ENV= INCDIR="${LOCALBASE}/include"
CFLAGS+= -I${LOCALBASE}/include
MAN1= breed.1 reed.1 wrap.1 MAN1= breed.1 reed.1 wrap.1
post-patch: post-patch:
@${PERL} -pi -e 's!/usr/local/!${PREFIX}!g' ${WRKSRC}/configures @${PERL} -pi -e 's!/usr/local!${PREFIX}!g' ${WRKSRC}/configures
@${PERL} -pi -e 's!sys/dir.h!dirent.h!g' ${WRKSRC}/reed.c @${PERL} -pi -e 's!sys/dir.h!dirent.h!g;s!.*getopt.h.*\n!!' \
${WRKSRC}/reed.c
@${PERL} -pi -e 's!getopt.h !!' ${WRKSRC}/cfg.data
@${PERL} -pi -e 's!-O2!${CFLAGS}!' ${WRKSRC}/Makefile.in @${PERL} -pi -e 's!-O2!${CFLAGS}!' ${WRKSRC}/Makefile.in
@${PERL} -pi -e 's!^#!/usr/bin/perl!#!${PERL}!' \ @${PERL} -pi -e 's!^#!/usr/bin/perl!#!${PERL}!' \
${WRKSRC}/fix_bookmarks.pl ${WRKSRC}/fix_bookmarks.pl