1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-22 08:58:47 +00:00
freebsd-ports/devel/quilt/Makefile
Baptiste Daroussin 9ff06b3cbf Convert a bunch of ports from WITHOUT_NLS -> ${PORT_OPTIONS:MNLS}
While here:
- trim headers
- convert to new options framework
2013-04-29 22:27:05 +00:00

72 lines
1.6 KiB
Makefile

# Created by: Dirk Jagdmann <doj@cubic.org>
# $FreeBSD$
PORTNAME= quilt
PORTVERSION= 0.60
CATEGORIES= devel
MASTER_SITES= ${MASTER_SITE_SAVANNAH}
MASTER_SITE_SUBDIR= quilt
MAINTAINER= doj@cubic.org
COMMENT= A collection of bash scripts to ease working with patch files
LICENSE= GPLv2
BUILD_DEPENDS= bash:${PORTSDIR}/shells/bash \
gcp:${PORTSDIR}/sysutils/coreutils \
gsed:${PORTSDIR}/textproc/gsed \
gpatch:${PORTSDIR}/devel/patch \
diffstat:${PORTSDIR}/textproc/diffstat \
gawk:${PORTSDIR}/lang/gawk
RUN_DEPENDS:= ${BUILD_DEPENDS} \
formail:${PORTSDIR}/mail/procmail
USE_GMAKE= yes
USE_PERL5= yes
OPTIONS_DEFINE= RPMBUILD DOCS NLS
RPMBUILD_DESC= rpmbuild support
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --with-sed=${LOCALBASE}/bin/gsed \
--without-getopt \
--with-patch=${LOCALBASE}/bin/gpatch
MAN1= guards.1 quilt.1
PORTDOCS= README README.MAIL quilt.pdf
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MRPMBUILD}
BUILD_DEPENDS+= rpm:${PORTSDIR}/archivers/rpm
RUN_DEPENDS+= rpm:${PORTSDIR}/archivers/rpm
PLIST_SUB+= RPMBUILD=""
.else
CONFIGURE_ARGS+=--without-rpmbuild
PLIST_SUB+= RPMBUILD="@comment "
.endif
.if ${PORT_OPTIONS:MNLS}
PLIST_SUB+= NLS=""
USES+= gettext
.else
PLIST_SUB+= NLS="@comment "
CONFIGURE_ARGS+= --disable-nls
.endif
.if !exists(${LOCALBASE}/sbin/sendmail)
PLIST_SUB+= SENDMAIL=""
.else
PLIST_SUB+= SENDMAIL="@comment "
.endif
.if ! ${PORT_OPTIONS:MDOCS}
EXTRA_PATCHES= ${PATCHDIR}/extra-patch-Makefile.in
.endif
post-extract:
@${REINPLACE_CMD} -e 's|$$(docdir)/$$(PACKAGE)-$$(VERSION)|$$(docdir)/$$(PACKAGE)|g' \
${WRKSRC}/Makefile.in
.include <bsd.port.mk>