freebsd-ports/misc/wmweather+/Makefile
Tijl Coosemans 97a5771bb5 x11-wm/libwraster:
- USES=libtool
- Remove -DPREFIX=\\\"${PREFIX}\\\" from CPPFLAGS.  Not needed and it
  causes configure test failures with clang.
- Use MAKE_CMD.
- Bump dependent ports.

x11-wm/windowmaker:
- USES=libtool
- Replace -DPREFIX=\\\"${PREFIX}\\\" in CPPFLAGS with post-patch command
  because it causes configure test failures with clang.
- Remove FreeBSD < 8 support.
2014-06-29 21:45:03 +00:00

82 lines
2.4 KiB
Makefile

# Created by: Harald Wille <harald.wille@students.jku.at>
# $FreeBSD$
PORTNAME= wmweather+
PORTVERSION= 2.15
PORTREVISION= 2
CATEGORIES= misc windowmaker geography
MASTER_SITES= SF/wmweatherplus/wmweather%2B/ \
SF/nemysisfreebsdp/misc/:icons
DISTFILES= ${PORTNAME}-${DISTVERSION}${EXTRACT_SUFX} \
${PORTNAME}.png:icons
EXTRACT_ONLY= ${PORTNAME}-${DISTVERSION}${EXTRACT_SUFX}
MAINTAINER= ports@FreeBSD.org
COMMENT= Displays current conditions and forecasts with icons and text
LICENSE= GPLv2
LIB_DEPENDS= libcurl.so:${PORTSDIR}/ftp/curl \
libpcre.so:${PORTSDIR}/devel/pcre \
libtiff.so:${PORTSDIR}/graphics/tiff \
libHermes.so:${PORTSDIR}/graphics/Hermes \
libpng15.so:${PORTSDIR}/graphics/png \
libjpeg.so:${PORTSDIR}/graphics/jpeg \
libgif.so:${PORTSDIR}/graphics/giflib
WRKSRC= ${WRKDIR}/wmweather+-${PORTVERSION}
USES= iconv
USE_XORG= xpm
GNU_CONFIGURE= yes
CONFIGURE_ARGS+= --with-libwraster=${LOCALBASE} \
--with-libpcre=${LOCALBASE} \
--with-libcurl=${LOCALBASE} \
--with-xpm-includes=${LOCALBASE} \
--with-xpm-libraries=${LOCALBASE}
SUB_FILES= pkg-message
PLIST_FILES= bin/${PORTNAME} \
man/man1/${PORTNAME}.1.gz \
share/pixmaps/${PORTNAME}.png
PORTDOCS= ChangeLog README
PORTEXAMPLES= HINTS example.conf
OPTIONS_DEFINE= DOCS EXAMPLES WM
WM_DESC= Depend on Window Maker port (otherwise only libwraster)
DESKTOP_ENTRIES="${PORTNAME}" "" "${PORTNAME}" \
"${PORTNAME}" "System;Monitor;" ""
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MWM}
LIB_DEPENDS+= libWMaker.so:${PORTSDIR}/x11-wm/windowmaker
.else
LIB_DEPENDS+= libwraster.so:${PORTSDIR}/x11-wm/libwraster
.endif
post-patch:
@${REINPLACE_CMD} -e 's| __THROW __attribute__ ((__noreturn__))|| ; \
s|http://www.nws.noaa.gov/tg/siteloc.shtml|http://www.nws.noaa.gov/tg/siteloc.php|' \
${WRKSRC}/${PORTNAME}.c
@${REINPLACE_CMD} -e \
's|http://www.nws.noaa.gov/tg/siteloc.shtml|http://www.nws.noaa.gov/tg/siteloc.php|' \
${WRKSRC}/${PORTNAME}.1.in
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin/
${INSTALL_MAN} ${WRKSRC}/${PORTNAME}.1 \
${STAGEDIR}${MAN1PREFIX}/man/man1/
${INSTALL_DATA} ${_DISTDIR}/${PORTNAME}.png \
${STAGEDIR}${PREFIX}/share/pixmaps/
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
${INSTALL_DATA} ${PORTEXAMPLES:S|^|${WRKSRC}/|} ${STAGEDIR}${EXAMPLESDIR}
.include <bsd.port.mk>