2012-10-08 12:38:47 +02:00
|
|
|
# Created by: Harald Wille <harald.wille@students.jku.at>
|
2003-04-11 22:37:09 +02:00
|
|
|
|
2014-01-17 05:17:42 +01:00
|
|
|
PORTNAME= wmweather+
|
2020-04-25 19:30:08 +02:00
|
|
|
PORTVERSION= 2.18
|
2014-01-17 05:17:42 +01:00
|
|
|
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}
|
2003-04-11 22:37:09 +02:00
|
|
|
|
2020-09-10 21:17:38 +02:00
|
|
|
MAINTAINER= rhurlin@FreeBSD.org
|
2008-08-04 07:32:59 +02:00
|
|
|
COMMENT= Displays current conditions and forecasts with icons and text
|
2003-04-11 22:37:09 +02:00
|
|
|
|
2016-08-04 11:01:05 +02:00
|
|
|
LICENSE= GPLv2+
|
|
|
|
LICENSE_FILE= ${WRKSRC}/COPYING
|
2013-03-15 19:05:28 +01:00
|
|
|
|
2016-04-01 16:16:16 +02:00
|
|
|
LIB_DEPENDS= libcurl.so:ftp/curl \
|
|
|
|
libpcre.so:devel/pcre \
|
|
|
|
libtiff.so:graphics/tiff \
|
|
|
|
libHermes.so:graphics/Hermes \
|
|
|
|
libpng.so:graphics/png \
|
2020-04-25 19:30:08 +02:00
|
|
|
libgif.so:graphics/giflib \
|
|
|
|
libwraster.so:x11-wm/libwraster
|
2003-04-12 21:05:56 +02:00
|
|
|
|
2019-11-06 19:07:22 +01:00
|
|
|
USES= iconv jpeg xorg
|
2014-01-17 05:17:42 +01:00
|
|
|
GNU_CONFIGURE= yes
|
2016-08-04 11:01:05 +02:00
|
|
|
CONFIGURE_ARGS= --with-libwraster=${LOCALBASE} \
|
|
|
|
--with-libpcre=${LOCALBASE} \
|
|
|
|
--with-libcurl=${LOCALBASE} \
|
|
|
|
--with-xpm-includes=${LOCALBASE} \
|
|
|
|
--with-xpm-libraries=${LOCALBASE}
|
|
|
|
USE_XORG= x11 xext xpm sm ice
|
2014-07-06 01:19:07 +02:00
|
|
|
LDFLAGS+= -lm
|
2006-11-26 00:48:07 +01:00
|
|
|
|
2020-04-25 19:30:08 +02:00
|
|
|
WRKSRC= ${WRKDIR}/wmweather+-${PORTVERSION}
|
|
|
|
|
2013-03-15 19:05:28 +01:00
|
|
|
SUB_FILES= pkg-message
|
|
|
|
|
2014-01-17 05:17:42 +01:00
|
|
|
PLIST_FILES= bin/${PORTNAME} \
|
|
|
|
man/man1/${PORTNAME}.1.gz \
|
|
|
|
share/pixmaps/${PORTNAME}.png
|
|
|
|
|
|
|
|
PORTDOCS= ChangeLog README
|
|
|
|
PORTEXAMPLES= HINTS example.conf
|
|
|
|
|
|
|
|
DESKTOP_ENTRIES="${PORTNAME}" "" "${PORTNAME}" \
|
|
|
|
"${PORTNAME}" "System;Monitor;" ""
|
2008-08-04 07:32:59 +02:00
|
|
|
|
2016-08-04 11:01:05 +02:00
|
|
|
OPTIONS_DEFINE= DOCS EXAMPLES WM
|
|
|
|
WM_DESC= Depend on Window Maker port (otherwise only libwraster)
|
2009-08-17 22:13:26 +02:00
|
|
|
|
2016-08-04 11:01:05 +02:00
|
|
|
WM_LIB_DEPENDS= libWMaker.so:x11-wm/windowmaker
|
2009-08-17 22:13:26 +02:00
|
|
|
|
2008-08-04 07:32:59 +02:00
|
|
|
post-patch:
|
2018-02-07 00:49:44 +01:00
|
|
|
@${REINPLACE_CMD} \
|
|
|
|
-e 's| __THROW __attribute__ ((__noreturn__))||' \
|
|
|
|
-e 's|http://www.nws.noaa.gov/tg/siteloc.shtml|http://www.nws.noaa.gov/tg/siteloc.php|' \
|
|
|
|
-e 's|"/etc/wmweather+.conf"|"${PREFIX}/etc/wmweather+.conf"|' \
|
2014-01-17 05:17:42 +01:00
|
|
|
${WRKSRC}/${PORTNAME}.c
|
2018-02-07 00:49:44 +01:00
|
|
|
@${REINPLACE_CMD} \
|
|
|
|
-e 's|http://www.nws.noaa.gov/tg/siteloc.shtml|http://www.nws.noaa.gov/tg/siteloc.php|' \
|
|
|
|
-e 's|/etc/wmweather+.conf|${PREFIX}/etc/wmweather+.conf|' \
|
2020-04-25 19:30:08 +02:00
|
|
|
${WRKSRC}/${PORTNAME}.1
|
2008-08-04 07:32:59 +02:00
|
|
|
|
2003-04-11 22:37:09 +02:00
|
|
|
do-install:
|
2014-01-17 05:17:42 +01:00
|
|
|
${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/
|
2013-03-15 19:05:28 +01:00
|
|
|
|
2016-08-04 11:01:05 +02:00
|
|
|
do-install-DOCS-on:
|
2014-01-17 05:17:42 +01:00
|
|
|
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
|
|
|
${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}
|
2008-08-04 07:32:59 +02:00
|
|
|
|
2016-08-04 11:01:05 +02:00
|
|
|
do-install-EXAMPLES-on:
|
2014-01-17 05:17:42 +01:00
|
|
|
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
|
|
|
|
${INSTALL_DATA} ${PORTEXAMPLES:S|^|${WRKSRC}/|} ${STAGEDIR}${EXAMPLESDIR}
|
2003-04-12 21:05:56 +02:00
|
|
|
|
2012-10-23 11:23:15 +02:00
|
|
|
.include <bsd.port.mk>
|