mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-24 00:45:52 +00:00
- Update to version 2.13
- Add license info - Use pkg-message file to display configure tips - Support DOCS option - Give maintainership to submitter PR: ports/174099 Submitted by: nemysis <nemysis@gmx.ch>
This commit is contained in:
parent
b6d558d5af
commit
1935c47900
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=314321
@ -2,22 +2,25 @@
|
|||||||
# $FreeBSD$
|
# $FreeBSD$
|
||||||
|
|
||||||
PORTNAME= wmweather+
|
PORTNAME= wmweather+
|
||||||
PORTVERSION= 2.11
|
PORTVERSION= 2.13
|
||||||
PORTREVISION= 7
|
|
||||||
CATEGORIES= misc windowmaker geography
|
CATEGORIES= misc windowmaker geography
|
||||||
MASTER_SITES= SF/wmweatherplus/wmweather%2B/
|
MASTER_SITES= SF/wmweatherplus/wmweather%2B/
|
||||||
DISTNAME= wmweather%2B-${PORTVERSION}
|
DISTNAME= wmweather%2B-${PORTVERSION}
|
||||||
|
|
||||||
MAINTAINER= ports@FreeBSD.org
|
MAINTAINER= nemysis@gmx.ch
|
||||||
COMMENT= Displays current conditions and forecasts with icons and text
|
COMMENT= Displays current conditions and forecasts with icons and text
|
||||||
|
|
||||||
|
LICENSE= GPLv2
|
||||||
|
|
||||||
LIB_DEPENDS= curl:${PORTSDIR}/ftp/curl \
|
LIB_DEPENDS= curl:${PORTSDIR}/ftp/curl \
|
||||||
pcre:${PORTSDIR}/devel/pcre \
|
pcre:${PORTSDIR}/devel/pcre \
|
||||||
tiff:${PORTSDIR}/graphics/tiff \
|
tiff:${PORTSDIR}/graphics/tiff \
|
||||||
Hermes:${PORTSDIR}/graphics/Hermes \
|
Hermes:${PORTSDIR}/graphics/Hermes \
|
||||||
png15:${PORTSDIR}/graphics/png \
|
png15:${PORTSDIR}/graphics/png \
|
||||||
jpeg:${PORTSDIR}/graphics/jpeg \
|
jpeg:${PORTSDIR}/graphics/jpeg \
|
||||||
gif.5:${PORTSDIR}/graphics/giflib
|
gif:${PORTSDIR}/graphics/giflib
|
||||||
|
|
||||||
|
WRKSRC= ${WRKDIR}/wmweather+-${PORTVERSION}
|
||||||
|
|
||||||
GNU_CONFIGURE= yes
|
GNU_CONFIGURE= yes
|
||||||
USE_ICONV= yes
|
USE_ICONV= yes
|
||||||
@ -29,8 +32,12 @@ CONFIGURE_ARGS+= --with-libwraster=${LOCALBASE} \
|
|||||||
--with-xpm-includes=${LOCALBASE} \
|
--with-xpm-includes=${LOCALBASE} \
|
||||||
--with-xpm-libraries=${LOCALBASE}
|
--with-xpm-libraries=${LOCALBASE}
|
||||||
|
|
||||||
OPTIONS_DEFINE= WM EXAMPLES
|
PORTEXAMPLES= HINTS example.conf
|
||||||
OPTIONS_DEFAULT= WM
|
PORTDOCS= ChangeLog README
|
||||||
|
|
||||||
|
SUB_FILES= pkg-message
|
||||||
|
|
||||||
|
OPTIONS_DEFINE= DOCS EXAMPLES WM
|
||||||
WM_DESC= Depend on Window Maker port (otherwise only libwraster)
|
WM_DESC= Depend on Window Maker port (otherwise only libwraster)
|
||||||
|
|
||||||
MAN1= wmweather+.1
|
MAN1= wmweather+.1
|
||||||
@ -39,45 +46,34 @@ PLIST_FILES= bin/wmweather+
|
|||||||
|
|
||||||
.include <bsd.port.options.mk>
|
.include <bsd.port.options.mk>
|
||||||
|
|
||||||
CFLAGS:= ${CFLAGS:C/-O[0-9]/-O0/}
|
|
||||||
|
|
||||||
.if ${PORT_OPTIONS:MWM}
|
.if ${PORT_OPTIONS:MWM}
|
||||||
LIB_DEPENDS+= wraster:${PORTSDIR}/x11-wm/windowmaker
|
LIB_DEPENDS+= wraster:${PORTSDIR}/x11-wm/windowmaker
|
||||||
.else
|
.else
|
||||||
LIB_DEPENDS+= wraster:${PORTSDIR}/x11-wm/libwraster
|
LIB_DEPENDS+= wraster:${PORTSDIR}/x11-wm/libwraster
|
||||||
.endif
|
.endif
|
||||||
|
|
||||||
WRKSRC= ${WRKDIR}/wmweather+-${PORTVERSION}
|
|
||||||
|
|
||||||
post-patch:
|
post-patch:
|
||||||
@${CP} ${WRKSRC}/wmweather+.c ${WRKSRC}/wmweather+.c.dist
|
@${REINPLACE_CMD} -e 's|void usage(int i) __THROW __attribute__ ((__noreturn__));|void usage(int i);|' \
|
||||||
@${SED} -e "s#^void usage(int i) __THROW.*#void usage(int i);#" \
|
${WRKSRC}/wmweather+.c
|
||||||
${WRKSRC}/wmweather+.c.dist > ${WRKSRC}/wmweather+.c
|
|
||||||
|
|
||||||
do-install:
|
do-install:
|
||||||
${INSTALL_PROGRAM} ${WRKSRC}/wmweather+ ${PREFIX}/bin
|
${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin
|
||||||
${INSTALL_MAN} ${WRKSRC}/wmweather+.1 ${PREFIX}/man/man1
|
${INSTALL_MAN} ${WRKSRC}/${MAN1} ${MAN1PREFIX}/man/man1
|
||||||
|
|
||||||
|
.if ${PORT_OPTIONS:MDOCS}
|
||||||
|
${MKDIR} ${DOCSDIR}
|
||||||
|
${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${DOCSDIR}
|
||||||
|
.endif
|
||||||
|
|
||||||
.if ${PORT_OPTIONS:MEXAMPLES}
|
.if ${PORT_OPTIONS:MEXAMPLES}
|
||||||
${MKDIR} ${EXAMPLESDIR}
|
${MKDIR} ${EXAMPLESDIR}
|
||||||
${INSTALL_DATA} ${WRKSRC}/HINTS ${EXAMPLESDIR}/HINTS
|
${INSTALL_DATA} ${WRKSRC}/HINTS ${EXAMPLESDIR}
|
||||||
${INSTALL_DATA} ${WRKSRC}/example.conf ${EXAMPLESDIR}/example.conf
|
${INSTALL_DATA} ${WRKSRC}/example.conf ${EXAMPLESDIR}
|
||||||
PLIST_FILES+= ${EXAMPLESDIR_REL}/HINTS
|
|
||||||
PLIST_FILES+= ${EXAMPLESDIR_REL}/example.conf
|
|
||||||
PLIST_DIRS+= ${EXAMPLESDIR_REL}
|
|
||||||
PM= ${WRKDIR}/pkg-message
|
|
||||||
PKGMESSAGE= ${WRKDIR}/pkg-message
|
|
||||||
.endif
|
.endif
|
||||||
|
|
||||||
post-install:
|
post-install:
|
||||||
.if ${PORT_OPTIONS:MEXAMPLES}
|
@${ECHO_CMD}
|
||||||
@${ECHO} "===================================================" > ${PM}
|
|
||||||
@${ECHO} "A sample configuration file has been copied to" >> ${PM}
|
|
||||||
@${ECHO} "${EXAMPLESDIR}/example.conf" >> ${PM}
|
|
||||||
@${ECHO} "" >> ${PM}
|
|
||||||
@${ECHO} "Please copy it to ~/.wmweather+/conf and adjust it" >> ${PM}
|
|
||||||
@${ECHO} "to your needs!" >> ${PM}
|
|
||||||
@${ECHO} "===================================================" >> ${PM}
|
|
||||||
@${CAT} ${PKGMESSAGE}
|
@${CAT} ${PKGMESSAGE}
|
||||||
.endif
|
@${ECHO_CMD}
|
||||||
|
|
||||||
.include <bsd.port.mk>
|
.include <bsd.port.mk>
|
||||||
|
@ -1,2 +1,2 @@
|
|||||||
SHA256 (wmweather%2B-2.11.tar.gz) = bab0d2d2cac65db51bb25f70b028ee7c55642119d2b38441aff65553a35566f9
|
SHA256 (wmweather%2B-2.13.tar.gz) = d15d8f491022e2f092d91a3a463b3200a4ac620ac93b0ecff796751d28e997d2
|
||||||
SIZE (wmweather%2B-2.11.tar.gz) = 193596
|
SIZE (wmweather%2B-2.13.tar.gz) = 195094
|
||||||
|
12
misc/wmweather+/files/pkg-message.in
Normal file
12
misc/wmweather+/files/pkg-message.in
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
===============================================================================
|
||||||
|
|
||||||
|
wmweather+ has been installed.
|
||||||
|
|
||||||
|
All options are given in the config file and in command line (CLI)
|
||||||
|
|
||||||
|
Please copy example.conf to yours home directory and adjust it to your needs!
|
||||||
|
|
||||||
|
mkdir ~/.wmweather+
|
||||||
|
cp -a %%EXAMPLESDIR%%/example.conf ~/.wmweather+/conf
|
||||||
|
|
||||||
|
===============================================================================
|
@ -1,7 +1,7 @@
|
|||||||
wmweather+ will download the National Weather Serivce METAR bulletins,
|
wmweather+ will download the National Weather Serivce METAR bulletins;
|
||||||
ANV and MRF forecasts, and any weather map for display in a WindowMaker
|
AVN, ETA, and MRF forecasts; and any weather map for display in a
|
||||||
dockapp. Think wmweather with a smaller font, forecasts, a weather map,
|
WindowMaker dockapp. Think wmweather with a smaller font, forecasts,
|
||||||
and a sky condition display.
|
a weather map, and a sky condition display.
|
||||||
|
|
||||||
You will need to look up the METAR code for your city (a standard code
|
You will need to look up the METAR code for your city (a standard code
|
||||||
used in aviation).
|
used in aviation).
|
||||||
|
Loading…
Reference in New Issue
Block a user