2000-12-19 09:13:28 +01:00
|
|
|
# New ports collection makefile for: sed
|
|
|
|
# Date created: 12 October 2000
|
|
|
|
# Whom: Cyrille Lefevre <clefevre@citeweb.net>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
2001-02-03 13:06:11 +01:00
|
|
|
PORTNAME= sed
|
2004-01-27 19:50:06 +01:00
|
|
|
PORTVERSION= 4.0.9
|
2004-02-04 06:10:27 +01:00
|
|
|
PORTREVISION= 1
|
2000-12-19 09:13:28 +01:00
|
|
|
CATEGORIES= textproc
|
|
|
|
MASTER_SITES= ${MASTER_SITE_GNU}
|
2001-02-03 13:06:11 +01:00
|
|
|
MASTER_SITE_SUBDIR= ${PORTNAME}
|
2004-01-27 19:50:06 +01:00
|
|
|
PKGNAMEPREFIX= g
|
2000-12-19 09:13:28 +01:00
|
|
|
|
2002-01-18 00:13:38 +01:00
|
|
|
MAINTAINER= cyrille.lefevre@laposte.net
|
2003-02-21 14:42:50 +01:00
|
|
|
COMMENT= The GNU stream editor
|
2001-02-03 13:06:11 +01:00
|
|
|
|
|
|
|
# Global variables
|
|
|
|
#
|
2000-12-19 09:13:28 +01:00
|
|
|
|
2002-06-24 06:44:17 +02:00
|
|
|
USE_REINPLACE= yes
|
2000-12-19 09:13:28 +01:00
|
|
|
GNU_CONFIGURE= yes
|
2003-01-03 07:29:27 +01:00
|
|
|
CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
|
|
|
|
CONFIGURE_ENV= MAKEINFO="makeinfo --no-split"
|
|
|
|
CONFIGURE_ARGS= --disable-nls
|
2001-02-03 13:06:11 +01:00
|
|
|
USE_GMAKE= yes
|
|
|
|
|
2004-01-27 19:50:06 +01:00
|
|
|
INFO= sed
|
2000-12-19 09:13:28 +01:00
|
|
|
MAN1= gsed.1
|
|
|
|
|
2001-02-03 13:06:11 +01:00
|
|
|
# Local variables
|
|
|
|
#
|
|
|
|
|
|
|
|
PATCH_SUBDIRS= . doc lib sed
|
2004-01-27 19:50:06 +01:00
|
|
|
DATADIR= ${PREFIX}/share/${PKGBASE}
|
2001-02-03 13:06:11 +01:00
|
|
|
|
2004-01-27 19:50:06 +01:00
|
|
|
SAMP_FILES= binary*.sed dc.sed
|
|
|
|
EXAMPLESDIR= ${PREFIX}/share/examples/${PKGBASE}
|
2001-02-03 13:06:11 +01:00
|
|
|
|
2003-05-19 03:46:43 +02:00
|
|
|
DOC_FILES= AUTHORS BUGS COPYING COPYING.DOC NEWS README THANKS
|
|
|
|
DOCSDIR= ${PREFIX}/share/doc/${PKGBASE}
|
|
|
|
|
2001-02-03 13:06:11 +01:00
|
|
|
# Post-configure
|
|
|
|
#
|
|
|
|
|
|
|
|
post-configure: patch-makefiles
|
|
|
|
|
|
|
|
patch-makefiles:
|
|
|
|
.for subdir in ${PATCH_SUBDIRS}
|
2002-06-24 06:44:17 +02:00
|
|
|
@${REINPLACE_CMD} -e 's|s,x,x,|s,^,g,|' ${WRKSRC}/${subdir}/Makefile
|
2001-02-03 13:06:11 +01:00
|
|
|
.endfor
|
|
|
|
|
|
|
|
# Post-install
|
|
|
|
#
|
|
|
|
|
2003-05-19 03:46:43 +02:00
|
|
|
post-install: install-sample-files install-doc-files
|
2001-02-03 13:06:11 +01:00
|
|
|
|
|
|
|
install-sample-files:
|
2004-01-27 19:50:06 +01:00
|
|
|
@${MKDIR} ${EXAMPLESDIR}
|
2001-02-03 13:06:11 +01:00
|
|
|
.for file in ${SAMP_FILES}
|
2004-01-27 19:50:06 +01:00
|
|
|
@${INSTALL_DATA} ${WRKSRC}/testsuite/${file} ${EXAMPLESDIR}
|
2003-05-19 03:46:43 +02:00
|
|
|
.endfor
|
|
|
|
|
|
|
|
install-doc-files:
|
2003-12-12 13:21:56 +01:00
|
|
|
.if !defined(NOPORTDOCS)
|
2003-05-19 03:46:43 +02:00
|
|
|
@${MKDIR} ${DOCSDIR}
|
|
|
|
.for file in ${DOC_FILES}
|
|
|
|
@${INSTALL_DATA} ${WRKSRC}/${file} ${DOCSDIR}
|
2001-02-03 13:06:11 +01:00
|
|
|
.endfor
|
2003-05-19 03:46:43 +02:00
|
|
|
.endif
|
2000-12-19 09:13:28 +01:00
|
|
|
|
2003-02-04 13:29:28 +01:00
|
|
|
# Maintainer only
|
|
|
|
#
|
|
|
|
test:
|
|
|
|
@cd ${WRKSRC}/testsuite; ${MAKE} check
|
|
|
|
|
2000-12-19 09:13:28 +01:00
|
|
|
.include <bsd.port.mk>
|