1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-17 03:25:46 +00:00
freebsd-ports/www/snownews/Makefile
Erwin Lansing 50513d5d52 Add support for DESTDIR part I.
This commit should largele be a NOOP as it only adds support
for DESTDIR undefined. This does allow us to start testing
ports with DESTDIR set, but this is as of yet not supported.

Although this has been extensively tested on pointyhat, this
is a very intrusive change and some cases may have been
overlooked. Please contact Gabor and me if you find any.

PR:             100555
Submitted by:   gabor
Sponsored by:   Google Summer of Code 2006
2006-08-04 12:34:50 +00:00

72 lines
1.8 KiB
Makefile

# ex:ts=8
# New ports collection makefile for: snownews
# Date created: Nov 3 2003
# Whom: Cheng-Lung Sung <clsung@dragon2.net>
#
# $FreeBSD$
#
PORTNAME= snownews
PORTVERSION= 1.5.7
PORTREVISION= 1
CATEGORIES= www
MASTER_SITES= http://kiza.kcore.de/software/snownews/download/
MAINTAINER= clsung@FreeBSD.org
COMMENT= A text mode RSS newsreader
USE_PERL5_BUILD=yes
USE_GMAKE= yes
USE_GNOME= libxml2
HAS_CONFIGURE= yes
OPTIONS= OPML "Outline Processor Markup Support" on
.if defined(CHARSET)
CONFIGURE_ARGS= --charset=${CHARSET}
.if ${CHARSET} == "UTF-8"
post-configure:
@${REINPLACE_CMD} -e 's|ncursesw|ncurses|g' ${WRKSRC}/platform_settings
.endif
.endif
.if !defined(WITHOUT_NLS)
USE_GETTEXT= yes
PLIST_SUB+= NLS=""
.else
PLIST_SUB+= NLS="@comment "
.endif
.if defined(WITHOUT_OPML)
EXTRA_PATCHES= ${FILESDIR}/extra-patch-Makefile
PLIST_SUB+= OPML="@comment "
.else
RUN_DEPENDS= ${SITE_PERL}/${PERL_ARCH}/XML/LibXML.pm:${PORTSDIR}/textproc/p5-XML-LibXML
PLIST_SUB+= OPML=""
# opml2snow only have "" manpage
_MANPAGES+= ${TARGETDIR}/man/man1/opml2snow.1
.endif
MAN1= snownews.1
MANLANG= "" de nl fr it ru_RU.KOI8-R
pre-everything::
@${ECHO_MSG} " "
@${ECHO_MSG} " You can set up CHARSET variable for your localization."
@${ECHO_MSG} " Example: make CHARSET=ISO-8859-2"
@${ECHO_MSG} " Default is ISO-8859-1."
@${ECHO_MSG} " "
post-patch:
@${REINPLACE_CMD} -e 's|#!/usr/bin/perl|#!${PERL}|g' ${WRKSRC}/configure
@${REINPLACE_CMD} -e 's|CFLAGS=|CFLAGS+=|g' ${WRKSRC}/platform_settings
@${REINPLACE_CMD} -e 's|^PREFIX|#PREFIX|' ${WRKSRC}/platform_settings
@${REINPLACE_CMD} -e 's|gcc|${CC}|' ${WRKSRC}/Makefile
@${REINPLACE_CMD} -e 's|make|${GMAKE}|' ${WRKSRC}/Makefile
.if defined(WITHOUT_NLS)
${REINPLACE_CMD} -e 's/ install-locales / /g' ${WRKSRC}/Makefile
${REINPLACE_CMD} -e 's/ locales$$//g' ${WRKSRC}/Makefile
.endif
.include <bsd.port.mk>